/* Given Word Notary — site styles.
   Navy is dominant, ivory is the page, gold is the seam and the one action on navy.
   Lettering is never set in gold. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/fraunces-latin-opsz-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
}

:root {
  --navy: #16233f;
  --navy-deep: #101a30;
  --gold: #c2972f;
  --ivory: #f6f1e6;
  --paper: #fbf8f1;
  --muted: #4b556c;
  --line: rgba(22, 35, 63, 0.16);
  --line-on-navy: rgba(246, 241, 230, 0.2);
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: var(--ivory); padding: 10px 16px; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* ---------- type ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.08; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 9.5vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); }
h3 { font-size: 1.4rem; line-height: 1.2; letter-spacing: -0.005em; }
h1 em, h2 em { font-style: italic; font-weight: 300; }
.page-title { font-size: clamp(2.4rem, 7.5vw, 4.2rem); }
.eyebrow {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.1rem, 2.4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40em; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

/* ---------- the seam: a rule with one dovetail key where two sides meet ---------- */
.seam { display: flex; align-items: flex-end; width: 100%; color: var(--gold); }
.seam i { flex: 1; height: 2px; background: currentColor; margin-bottom: 1px; }
.seam svg { flex: none; width: 40px; height: 18px; overflow: visible; }
.seam path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: miter; stroke-miterlimit: 6; }
.seam.short { max-width: 220px; }
.seam.draw i { transform: scaleX(0); animation: seam-in 1.1s cubic-bezier(0.6, 0, 0.2, 1) 0.25s forwards; }
.seam.draw i:first-child { transform-origin: left; }
.seam.draw i:last-child { transform-origin: right; }
.seam.draw svg { opacity: 0; animation: key-in 0.45s ease-out 1.25s forwards; }
@keyframes seam-in { to { transform: scaleX(1); } }
@keyframes key-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .seam.draw i, .seam.draw svg { animation: none; transform: none; opacity: 1; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none; border-radius: 2px; cursor: pointer;
  background: var(--navy); color: var(--ivory); border: 1.5px solid var(--navy);
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--navy-deep); }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: var(--ivory); }
.on-navy .btn { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.on-navy .btn:hover { background: #d0a640; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.more { font-weight: 600; }

/* ---------- header ---------- */
.notice { background: var(--navy); color: var(--ivory); text-align: center; font-size: 0.9rem; padding: 9px var(--gutter); }
.notice a { font-weight: 600; }
.site-head { border-bottom: 1px solid var(--line); background: var(--ivory); position: relative; z-index: 10; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; }
.brand span { font-family: var(--serif); font-weight: 500; letter-spacing: 0.14em; font-size: 1.02rem; white-space: nowrap; }
.nav-toggle { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: none; border: 1.5px solid var(--navy); border-radius: 2px; color: var(--navy); font: 600 0.92rem var(--sans); cursor: pointer; }
.nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; }
.nav.open { display: block; }
.nav a:not(.btn) { display: block; padding: 13px 0; text-decoration: none; border-bottom: 1px solid var(--line); font-weight: 500; }
.nav a[aria-current="page"] { font-weight: 700; }
.nav .btn { margin-top: 16px; width: 100%; }
@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav { display: flex; position: static; align-items: center; gap: 28px; padding: 0; border: 0; background: none; }
  .nav a:not(.btn) { padding: 6px 0; border: 0; font-size: 0.97rem; }
  .nav a:not(.btn):hover, .nav a[aria-current="page"] { box-shadow: 0 2px 0 var(--gold); }
  .nav a[aria-current="page"] { font-weight: 500; }
  .nav .btn { margin: 0; width: auto; min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
}

/* ---------- sections ---------- */
section { padding: clamp(56px, 9vw, 104px) 0; }
.on-navy { background: var(--navy); color: var(--ivory); }
.on-navy .muted, .on-navy .lede { color: rgba(246, 241, 230, 0.78); }
.on-paper { background: var(--paper); }
.sec-head { margin-bottom: clamp(28px, 5vw, 48px); }
.sec-head .lede { margin-top: 1rem; }

.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(48px, 8vw, 88px); }
.hero .seam { margin: clamp(28px, 5vw, 48px) 0; }
.hero .btn-row { margin-top: 28px; }
.facts { list-style: none; margin: clamp(36px, 6vw, 56px) 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.97rem; }
.facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.1rem; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.page-hero { padding: clamp(44px, 7vw, 84px) 0 clamp(32px, 5vw, 56px); }
.page-hero .seam { margin-top: clamp(24px, 4vw, 40px); }
.page-hero + section { padding-top: clamp(24px, 4vw, 40px); }

.statement p { font-family: var(--serif); font-weight: 300; font-size: clamp(1.45rem, 3.6vw, 2.25rem); line-height: 1.32; letter-spacing: -0.01em; max-width: 26em; margin: 0; }
.statement .seam { margin: 0 0 clamp(28px, 4vw, 44px); }
.statement .sig { font-family: var(--sans); font-size: 0.95rem; font-weight: 400; letter-spacing: 0; margin-top: 1.6rem; color: rgba(246, 241, 230, 0.78); }

/* cards and grids */
.grid { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid.three { grid-template-columns: repeat(3, 1fr); gap: 28px; } .grid.two { grid-template-columns: repeat(2, 1fr); gap: 40px; } }
.card { background: var(--paper); border: 1px solid var(--line); padding: 26px 24px 28px; display: flex; flex-direction: column; }
.on-paper .card { background: var(--ivory); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--muted); font-size: 1rem; }
.card .seam { margin-bottom: 20px; }
.after-grid { margin-top: 32px; }

/* monthly plans */
.plan { padding-top: 0; }
.plan .seam { margin: 0 -24px 24px; width: auto; }
.plan .price { color: var(--navy); font-family: var(--serif); font-size: 2.6rem; line-height: 1; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.plan .price small { font-family: var(--sans); font-size: 0.95rem; color: var(--muted); }
.plan .checks { margin: 18px 0 24px; font-size: 0.98rem; flex: 1; }
.plan .checks li { color: var(--navy); }
.plan .btn { width: 100%; }

/* steps, numbered the old way */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 2px solid var(--navy); padding-top: 18px; }
.steps li::before { content: counter(step, upper-roman) "."; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1.6rem; display: block; margin-bottom: 6px; }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { color: var(--muted); font-size: 1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; } }

/* the two-line price */
.slip { background: var(--paper); border: 1px solid var(--line); padding: 24px; max-width: 460px; width: 100%; }
.on-paper .slip { background: var(--ivory); }
.slip-title { font-family: var(--serif); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 16px; }
.slip-line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.slip-line span:first-child { font-size: 0.98rem; }
.slip-line small { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.4; margin-top: 2px; }
.slip-line .amt { font-family: var(--serif); font-size: 1.35rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.slip .seam { margin: 12px 0 14px; }
.slip-total { border-top: 2px solid var(--navy); margin-top: 18px; padding-top: 14px; }
.slip-total span:first-child { font-weight: 600; }
.slip-total .amt { font-size: 1.9rem; }
.slip-note { margin: 14px 0 0; font-size: 0.86rem; color: var(--muted); line-height: 1.5; }
.split { display: grid; gap: 36px; align-items: start; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.wide-left { grid-template-columns: 1.15fr 0.85fr; } }

/* tables */
.rates { width: 100%; border-collapse: collapse; margin: 0 0 8px; font-size: 1rem; }
.rates caption { text-align: left; font-family: var(--serif); font-size: 1.25rem; padding-bottom: 10px; }
.rates th, .rates td { text-align: left; padding: 11px 0; border-top: 1px solid var(--line); vertical-align: top; font-weight: 400; }
.rates td:last-child { text-align: right; white-space: nowrap; font-family: var(--serif); font-size: 1.1rem; font-variant-numeric: tabular-nums; padding-left: 16px; }
.rate-block + .rate-block { margin-top: 36px; }

/* lists */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding: 12px 0 12px 30px; border-top: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 2px; top: 1.25em; width: 14px; height: 2px; background: var(--gold); }
.on-navy .checks li { border-color: var(--line-on-navy); }
.plain { margin: 0; padding-left: 1.1em; }
.plain li { margin-bottom: 0.4em; }

.service { border-top: 2px solid var(--navy); padding: 28px 0 8px; display: grid; gap: 18px; }
.service + .service { margin-top: 28px; }
.service h3 { font-size: 1.7rem; }
.service dl { margin: 0; display: grid; gap: 14px; }
.service dt { font-family: var(--serif); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 3px; }
.service dd { margin: 0; color: var(--muted); }
@media (min-width: 860px) { .service { grid-template-columns: 0.8fr 1.2fr; gap: 48px; } }

/* estimator and forms */
.field { margin-bottom: 20px; }
label, legend { display: block; font-weight: 600; font-size: 0.97rem; margin-bottom: 6px; padding: 0; }
.hint { display: block; font-weight: 400; color: var(--muted); font-size: 0.88rem; line-height: 1.45; margin: -2px 0 8px; }
input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 13px;
  font: 400 1rem/1.4 var(--sans); color: var(--navy);
  background: #fff; border: 1.5px solid rgba(22, 35, 63, 0.45); border-radius: 2px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-color: var(--navy); }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choices.stack { flex-direction: column; }
.choice { position: relative; display: block; margin: 0; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice span { display: flex; align-items: center; min-height: 46px; padding: 8px 15px; border: 1.5px solid rgba(22, 35, 63, 0.45); border-radius: 2px; background: #fff; font-weight: 500; font-size: 0.97rem; }
.choice input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--ivory); }
.choice input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.err { display: none; color: #8f1d1d; font-size: 0.9rem; font-weight: 500; margin-top: 6px; }
.invalid .err { display: block; }
.invalid input, .invalid select { border-color: #8f1d1d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; font-weight: 500; min-height: 1.6em; }
.form-status.ok { padding: 16px 18px; background: var(--paper); border-left: 3px solid var(--gold); }
.aside { border-top: 2px solid var(--navy); padding-top: 20px; }
.aside h3 { margin-bottom: 0.6rem; }
.aside + .aside { margin-top: 36px; }
.contact-line { font-family: var(--serif); font-size: 1.35rem; text-decoration: none; display: block; margin-bottom: 4px; overflow-wrap: anywhere; }

/* FAQs */
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: 1.6rem; margin-bottom: 12px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-family: var(--serif); font-size: 1.18rem; line-height: 1.3; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 0 22px; color: var(--muted); max-width: 44em; }

/* quote */
.quote { margin: 0; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: clamp(1.5rem, 4vw, 2.4rem); line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 1.1rem; max-width: 22em; }
.quote cite { font-family: var(--serif); font-style: normal; font-weight: 500; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; }

.prose h2 { font-size: 1.6rem; margin: 2.2rem 0 0.7rem; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }

.closing { text-align: center; }
.closing .seam { margin: 0 auto 36px; }
.closing .lede { margin: 1.1rem auto 0; }
.closing .btn-row { justify-content: center; margin-top: 28px; }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: var(--ivory); padding: 56px 0 36px; font-size: 0.95rem; }
.site-foot .wordmark { width: 250px; margin: -20px 0 0 -20px; }
.foot-grid { display: grid; gap: 32px; margin-bottom: 36px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; } }
.site-foot h2 { font-family: var(--serif); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.22em; text-transform: uppercase; margin-bottom: 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 7px; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot p, .site-foot .muted { color: rgba(246, 241, 230, 0.78); }
.legal { border-top: 1px solid var(--line-on-navy); padding-top: 22px; font-size: 0.86rem; line-height: 1.55; }
.legal p { max-width: 62em; }
.legal .disclaimer { color: var(--ivory); }
