:root {
  --ink: #14181f;
  --ink-soft: #4a5361;
  --line: #e2e6ec;
  --bg: #ffffff;
  --bg-alt: #f6f8fa;
  --accent: #1f3a5f;
  --accent-soft: #eef2f7;
  --max: 68rem;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* header */
header.site {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px); z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; min-height: 68px; flex-wrap: wrap;
}
.brand {
  font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
  color: var(--accent); text-decoration: none;
}
nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .94rem;
  margin-left: 1.5rem;
}
nav a:hover { color: var(--accent); }

/* hero */
.hero { padding: 5rem 0 3.5rem; border-bottom: 1px solid var(--line); }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15;
  margin: 0 0 1.25rem; letter-spacing: -.02em; max-width: 22ch;
}
.hero p { font-size: 1.15rem; color: var(--ink-soft); margin: 0; max-width: 62ch; }

/* generic page head */
.page-head { padding: 3.5rem 0 2rem; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); margin: 0 0 .5rem; letter-spacing: -.015em; }
.page-head .updated { color: var(--ink-soft); font-size: .92rem; margin: 0; }

section { padding: 3.5rem 0; }
section + section { border-top: 1px solid var(--line); }
section.alt { background: var(--bg-alt); }

h2 { font-size: 1.4rem; margin: 0 0 1rem; letter-spacing: -.01em; }
h3 { font-size: 1.05rem; margin: 2rem 0 .5rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); }

.cards { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.card {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 1.5rem;
}
.card h3 { margin: 0 0 .5rem; font-size: 1.05rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }

/* prose pages */
.prose { max-width: 44rem; padding: 2.5rem 0 4rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: .5rem; }

.callout {
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  padding: 1.15rem 1.35rem; border-radius: 0 8px 8px 0; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* contact */
.contact-grid { display: grid; gap: 1.25rem 3rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.contact-grid dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: .3rem; }
.contact-grid dd { margin: 0 0 1rem; }

/* form */
form.signup { max-width: 34rem; }
.field { margin-bottom: 1.35rem; }
.field label { display: block; font-weight: 600; font-size: .93rem; margin-bottom: .4rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select {
  width: 100%; padding: .7rem .8rem; font-size: 1rem; font-family: inherit;
  border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

.consent {
  display: flex; gap: .8rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 9px; padding: 1.1rem 1.2rem;
  background: var(--bg-alt); margin-bottom: 1.25rem;
}
.consent input[type="checkbox"] { margin-top: .3rem; width: 1.05rem; height: 1.05rem; flex: none; }
.consent label { font-size: .91rem; line-height: 1.6; color: var(--ink); }

.note { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.5rem; }

button.submit {
  background: var(--accent); color: #fff; border: 0; border-radius: 7px;
  padding: .8rem 1.6rem; font-size: 1rem; font-weight: 600; font-family: inherit; cursor: pointer;
}
button.submit:hover { background: #162c49; }
button.submit:disabled { opacity: .55; cursor: default; }

.form-status { margin-top: 1.1rem; font-size: .95rem; }
.form-status.ok { color: #17603a; }
.form-status.err { color: #9b2020; }

/* footer */
footer.site {
  border-top: 1px solid var(--line); background: var(--bg-alt);
  padding: 2.5rem 0; font-size: .9rem; color: var(--ink-soft);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
footer.site a { color: var(--ink-soft); text-decoration: none; margin-right: 1.25rem; }
footer.site a:hover { color: var(--accent); text-decoration: underline; }
