/* Self-hosted fonts (SIL Open Font Licence) - no third-party requests */
@font-face{font-family:"Bricolage Grotesque";font-weight:700;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-700-normal.woff2) format("woff2")}
@font-face{font-family:"Bricolage Grotesque";font-weight:800;font-display:swap;src:url(/assets/fonts/bricolage-grotesque-latin-800-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:400;font-display:swap;src:url(/assets/fonts/figtree-latin-400-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:500;font-display:swap;src:url(/assets/fonts/figtree-latin-500-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:600;font-display:swap;src:url(/assets/fonts/figtree-latin-600-normal.woff2) format("woff2")}
@font-face{font-family:"Figtree";font-weight:700;font-display:swap;src:url(/assets/fonts/figtree-latin-700-normal.woff2) format("woff2")}
/* Pairfold site styles. Tokens match the Pairfold design system. */
:root {
  /* Pairfold tokens: see the Pairfold design system */
  --mist: #eef3f1;
  --paper: #ffffff;
  --ink: #1c2a30;
  --ink-soft: #4f6067;
  --line: #d6e0dc;
  --evergreen: #1e5b57;
  --on-evergreen: #ffffff;
  --evergreen-tint: #dcebe8;
  --shelter: #123f3c;
  --hearth: #9e3b2c;
  --hearth-tint: #f6e4df;
  --willow: #3f7a3a;
  --daylight: #f2c14e;
  --on-daylight: #2a1f03;
  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 18px;
  --focus: 0 0 0 3px #f2c14e;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --mist: #13201f; --paper: #1a2a29; --ink: #e9f0ee; --ink-soft: #a6b6b3; --line: #2c403e;
    --evergreen: #6cc1bf; --on-evergreen: #0d1d1c; --evergreen-tint: #1f3a39; --shelter: #0b2624;
    --hearth: #e58a76; --hearth-tint: #3a2420; --willow: #8fc07a; --daylight: #f2c14e; --on-daylight: #2a1f03;
  }
}
:root[data-theme="dark"] {
  --mist: #13201f; --paper: #1a2a29; --ink: #e9f0ee; --ink-soft: #a6b6b3; --line: #2c403e;
    --evergreen: #6cc1bf; --on-evergreen: #0d1d1c; --evergreen-tint: #1f3a39; --shelter: #0b2624;
    --hearth: #e58a76; --hearth-tint: #3a2420; --willow: #8fc07a; --daylight: #f2c14e; --on-daylight: #2a1f03;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--mist); color: var(--ink);
  font: 17px/1.6 "Figtree", system-ui, sans-serif;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--evergreen); text-underline-offset: 3px; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

h1, h2, h3 { font-family: "Bricolage Grotesque", "Figtree", sans-serif; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.3rem, 6.5vw, 4rem); font-weight: 800; max-width: 15ch; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 64ch; }
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 46ch; }
.small { font-size: .9rem; color: var(--ink-soft); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }

/* header */
.site-head { padding: 14px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand svg, .foot-brand svg { width: 34px; height: 32px; flex: none; }
.wordmark { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.75rem; letter-spacing: -0.035em; line-height: 1; color: var(--ink); }
.place-tag { font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; font-size: .92rem; line-height: 1; background: var(--daylight); color: var(--on-daylight); padding: 5px 11px; border-radius: 999px; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.foot-brand .wordmark { font-size: 1.4rem; }
.nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; font-size: .95rem; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover { text-decoration: underline; }
.nav a.btn { color: var(--on-evergreen); text-decoration: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--evergreen);
  background: var(--evergreen); color: var(--on-evergreen); font: 700 1rem "Figtree", sans-serif; padding: 11px 20px;
  border-radius: 999px; text-decoration: none; cursor: pointer; }
.btn:hover { filter: brightness(1.08); }
.btn.quiet { background: transparent; color: var(--evergreen); }
.btn.small-btn { padding: 7px 14px; font-size: .92rem; }
.btn.danger { background: transparent; color: var(--hearth); border-color: var(--hearth); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkish { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }

/* code-name tag: the signature element */
.tag { display: inline-flex; align-items: center; gap: 6px; background: var(--daylight); color: var(--on-daylight);
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 700; padding: 3px 12px 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--on-daylight); opacity: .75; }
.tag.big { font-size: 1.4rem; padding: 6px 18px 6px 12px; }
h1 .tag.big { font-size: .8em; vertical-align: .08em; padding: 2px 20px 6px 14px; }
h1 .tag.big::before { width: 14px; height: 14px; }

/* hero */
.hero { padding: 28px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; align-items: end; }
@media (max-width: 820px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 24px 0 8px; }
.street { margin-top: 28px; width: 100%; height: auto; }

.tally { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 20px; }
.tally-num { font-family: "Bricolage Grotesque", sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; color: var(--evergreen); }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.areas div { background: var(--evergreen-tint); border-radius: var(--radius-s); padding: 6px 8px; font-size: .85rem; }
.areas b { display: block; font-size: 1.15rem; font-family: "Bricolage Grotesque", sans-serif; }

/* sections */
.band { padding: 64px 0; }
.band.paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: s; border-top: 3px solid var(--evergreen); padding-top: 12px; }
.steps li::before { content: counter(s); font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2rem; color: var(--evergreen); display: block; line-height: 1; margin-bottom: 8px; }
.steps p { font-size: .97rem; color: var(--ink-soft); }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; gap: 24px; } }
.two > * { min-width: 0; }
@media (max-width: 374px) { .calc-out { gap: 8px; } .calc-out div { padding: 10px; } .calc-out b { font-size: 1.35rem; } }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 24px; }
.panel.tint { background: var(--evergreen-tint); border-color: transparent; }
.panel.brick { background: var(--hearth-tint); border-color: transparent; }
.panel + .panel { margin-top: 16px; }

.rule-list { list-style: none; padding: 0; margin: 0; }
.rule-list li { padding: 12px 0 12px 30px; border-bottom: 1px solid var(--line); position: relative; }
.rule-list li::before { content: ""; position: absolute; left: 4px; top: 21px; width: 12px; height: 12px; border-radius: 3px; background: var(--willow); }
.rule-list.brick li::before { background: var(--hearth); }

/* forms */
.field { margin-bottom: 18px; }
label, .label { display: block; font-weight: 600; margin-bottom: 6px; }
select, input[type=number], input[type=date], input[type=text] {
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-s);
  background: var(--paper); color: var(--ink); font: 1rem "Figtree", sans-serif; }
select:focus, input:focus { border-color: var(--evergreen); }
.hint { font-size: .88rem; color: var(--ink-soft); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-weight: 500; cursor: pointer; background: var(--paper); margin: 0; }
.chips input { accent-color: var(--evergreen); }
.chips label:has(input:checked) { border-color: var(--evergreen); background: var(--evergreen-tint); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-bottom: 10px; }
.check input { margin-top: 5px; accent-color: var(--evergreen); width: 18px; height: 18px; flex: none; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }
.msg { min-height: 1.4em; font-size: .95rem; margin-top: 10px; }
.msg.err { color: var(--hearth); }

/* calculator */
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.calc-out div { padding: 14px; border-radius: var(--radius-s); background: var(--evergreen-tint); }
.calc-out .save { grid-column: 1 / -1; background: var(--evergreen); color: var(--on-evergreen); }
.calc-out b { display: block; font-family: "Bricolage Grotesque", sans-serif; font-size: 1.7rem; line-height: 1.1; }
table.breakdown { width: 100%; border-collapse: collapse; font-size: .92rem; }
.breakdown th, .breakdown td { text-align: right; padding: 7px 4px; border-bottom: 1px solid var(--line); }
.breakdown th:first-child, .breakdown td:first-child { text-align: left; }
.breakdown th { color: var(--ink-soft); font-weight: 500; }
.warn { display: none; background: var(--hearth-tint); color: var(--hearth); padding: 10px 12px; border-radius: var(--radius-s); font-size: .92rem; margin-top: 10px; }

details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* private page */
.family-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ink-soft); font-size: .95rem; margin: 8px 0 0; padding: 0; list-style: none; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.fam { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fam.keen { border-color: var(--daylight); box-shadow: inset 0 0 0 1px var(--daylight); }
.fit { font-weight: 700; color: var(--willow); font-size: .9rem; }
.keen-note { font-size: .88rem; font-weight: 600; color: var(--on-daylight); background: var(--daylight); border-radius: var(--radius-s); padding: 3px 8px; align-self: flex-start; }
.fam .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: auto; }
.match { background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--evergreen); border-radius: var(--radius-l); padding: 20px; margin-bottom: 16px; }
.track { display: flex; gap: 6px; margin: 12px 0 16px; padding: 0; list-style: none; flex-wrap: wrap; }
.track li { font-size: .85rem; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-soft); }
.track li.done { background: var(--evergreen-tint); color: var(--evergreen); font-weight: 600; }
.track li.now { background: var(--evergreen); color: var(--on-evergreen); font-weight: 700; }
.meet-card { background: var(--evergreen-tint); border-radius: var(--radius-l); padding: 18px; }
.meet-card .when { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.4rem; font-weight: 700; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius-l); padding: 24px; color: var(--ink-soft); }
.secret { word-break: break-all; background: var(--paper); border: 1.5px dashed var(--evergreen); border-radius: var(--radius-s); padding: 12px; font-size: .92rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
dialog { border: 0; border-radius: var(--radius-l); padding: 24px; max-width: 460px; width: calc(100% - 32px); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: rgba(14, 30, 30, .55); }

.site-foot { padding: 40px 0 56px; color: var(--ink-soft); font-size: .9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-foot a { color: var(--ink-soft); }

/* launch-day panel and guides */
.tally-kicker { margin: 0 0 6px; font-weight: 700; color: var(--evergreen); }
.tally-big { margin: 0 0 10px; font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 2rem; line-height: 1.05; letter-spacing: -0.02em; }
.band + .band:not(.paper) { border-top: 1px solid var(--line); }
.guide-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.guide-link { display: flex; flex-direction: column; gap: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 22px; text-decoration: none; color: var(--ink); }
.guide-link b { font-family: "Bricolage Grotesque", sans-serif; font-size: 1.25rem; color: var(--evergreen); }
.guide-link span { color: var(--ink-soft); font-size: .97rem; }
.guide-link:hover b { text-decoration: underline; }

/* guide articles */
.article { max-width: 720px; }
.article h1 { max-width: none; font-size: clamp(2.1rem, 5vw, 3.2rem); }
.article h2 { margin-top: 1.8em; font-size: clamp(1.4rem, 3vw, 1.8rem); }
.article h3 { margin-top: 1.4em; }
.article p, .article li { font-size: 1.05rem; line-height: 1.7; }
.article ul, .article ol { padding-left: 1.3em; }
.article li { margin-bottom: .4em; }
.article table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .97rem; }
.article th, .article td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--ink-soft); font-weight: 600; }
.article td.num, .article th.num { text-align: right; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
.byline { color: var(--ink-soft); font-size: .95rem; margin-bottom: 2em; }
.callout { background: var(--evergreen-tint); border-radius: var(--radius-l); padding: 20px 22px; margin: 1.6em 0; }
.callout p:last-child { margin-bottom: 0; }
.cta-band { background: var(--evergreen); color: var(--on-evergreen); border-radius: var(--radius-l); padding: 26px; margin: 2.4em 0 1em; }
.cta-band h2 { margin: 0 0 8px; color: var(--on-evergreen); }
.cta-band p { color: var(--on-evergreen); }
.cta-band .btn { background: var(--paper); color: var(--evergreen); border-color: var(--paper); }
.sources { font-size: .9rem; color: var(--ink-soft); }
.sources li { font-size: .9rem; }
.crumbs { font-size: .92rem; margin: 0 0 14px; }
.crumbs a { color: var(--ink-soft); }
.early { background: var(--paper); border: 2px solid var(--daylight); border-radius: var(--radius-l); padding: 24px; }
.early h3 { font-size: 1.4rem; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* phone header: logo and one button on a single row; section links live in the footer */
@media (max-width: 640px) {
  .site-head .wrap { flex-wrap: nowrap; }
  .site-head .nav a:not(.btn) { display: none; }
  .site-head .wordmark { font-size: 1.45rem; }
  .site-head .place-tag { font-size: .8rem; padding: 4px 9px; }
  .site-head .brand svg { width: 28px; height: 26px; }
  .site-head .btn.small-btn { padding: 8px 14px; font-size: .9rem; white-space: nowrap; }
}
/* the smallest phones (320–374px): tighten the header so nothing scrolls sideways */
@media (max-width: 374px) {
  .site-head .wrap { gap: 8px; }
  .site-head .brand { gap: 6px; }
  .site-head .wordmark { font-size: 1.22rem; }
  .site-head .place-tag { font-size: .72rem; padding: 3px 7px; }
  .site-head .brand svg { width: 24px; height: 22px; }
  .site-head .btn.small-btn { padding: 7px 11px; font-size: .84rem; }
}
/* tables in guides fit a phone without sideways scrolling */
@media (max-width: 640px) {
  .article table { font-size: .88rem; }
  .article th, .article td { padding: 9px 5px; }
  .article .col-note { display: none; }
}
.closing { text-align: left; }
.closing .row { margin-top: 18px; }

/* the hidden attribute always wins over component display rules */
[hidden] { display: none !important; }

/* printable agreement template */
.form-sheet { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px; margin-top: 8px; }
.form-sheet h2 { font-size: 1.15rem; margin: 1.6em 0 .6em; }
.form-sheet h2:first-of-type { margin-top: .6em; }
.sheet-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 1.5rem; margin: 0; }
.fill { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 6px; margin: 0 0 12px; font-size: 1rem; }
.blank { flex: 1 1 200px; min-width: 120px; border-bottom: 1.5px solid var(--ink-soft); height: 1.4em; }
.blank.short { flex: 1 1 80px; min-width: 80px; max-width: 170px; }
.sheet-foot { margin: 28px 0 0; font-size: .85rem; color: var(--ink-soft); }
@media print {
  @page { margin: 16mm; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-head, .site-foot, .crumbs, .no-print, .cta-band { display: none !important; }
  main.band { padding: 0 !important; }
  .article h1 { font-size: 20pt; margin-bottom: 6pt; }
  .article:has(.form-sheet) h1 { display: none; }
  .sheet-title { font-size: 18pt; margin-bottom: 4pt; }
  .form-sheet { border: 0; padding: 0; }
  .form-sheet h2 { break-after: avoid; font-size: 12pt; }
  .fill { break-inside: avoid; font-size: 11pt; margin-bottom: 9pt; }
  .blank { border-bottom-color: #000; }
}
