/* calico site styles, shared by every page. The :root colour blocks below are generated from
   Design/Brand/tokens.json by Tools/build-site.py (the marked region); everything else is
   hand-written. Matte, calm, mobile first. Ginger is a fill only; text-sized accent is the deep
   ginger ("seal"). The home and features pages add home.css on top of this. */
:root {
  color-scheme: light;
  --page: #FBF0D4;
  --raised: #F8EACB;
  --sunken: #EFDAAA;
  --rule: #D8CFB9;
  --ink: #26221E;
  --ink-secondary: #6C665C;
  --seal: #8F4715;
  --ginger: #C1662B;
  --button: #26221E;
  --on-button: #FBF0D4;
  --box-field: #F6E4BC;
  --on-box-field: #26221E;
  --on-box-field-faint: #6C665C;
  --box-ask: #26221E;
  --on-box-ask: #FBF0D4;
  --box-control: #F6E4BC;
  --on-box-control: #26221E;
  --tint: #F8E6CF;
  --moment: #F6E4BC;
  --highlight: #E8C49E;
  --patch-stone: #E4DDD1;
  --patch-soot: #26221E;
  --on-patch-soot: #FBF0D4;
  --on-door: #26221E;
  --on-ball: #FFFFFF;
  --ink-faint: #6E685F;
  --m01: #6F8799;
  --m02: #7E97A3;
  --m03: #86A99A;
  --m04: #6FA56F;
  --m05: #9DB85C;
  --m06: #D9B23E;
  --m07: #E5A534;
  --m08: #E08F31;
  --m09: #D07A2E;
  --m10: #B8612B;
  --m11: #94532F;
  --m12: #5F7385;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #26221E;
  --raised: #302B26;
  --sunken: #3E3731;
  --rule: #48433E;
  --ink: #F3E8CE;
  --ink-secondary: #BDB29E;
  --seal: #E08A3C;
  --ginger: #C1662B;
  --button: #F3E8CE;
  --on-button: #26221E;
  --box-field: #26221E;
  --on-box-field: #F3E8CE;
  --on-box-field-faint: #BDB29E;
  --box-ask: #F6E4BC;
  --on-box-ask: #26221E;
  --box-control: #26221E;
  --on-box-control: #F3E8CE;
  --tint: #3A2B20;
  --moment: #302B26;
  --highlight: #6C4124;
  --patch-stone: #36322D;
  --patch-soot: #161310;
  --on-patch-soot: #F1E6CC;
  --on-door: #26221E;
  --on-ball: #FFFFFF;
  --ink-faint: #9D9484;
  --m01: #8FA6B8;
  --m02: #9BB2BD;
  --m03: #A0C2B2;
  --m04: #8CC08A;
  --m05: #B5CE78;
  --m06: #E8C55C;
  --m07: #F0B754;
  --m08: #EDA451;
  --m09: #E59250;
  --m10: #E0874A;
  --m11: #C9784D;
  --m12: #7F95A8;
}

:root { --glass-edge: rgba(255, 255, 255, 0.85); --lift: rgba(38, 34, 30, 0.16); }
:root[data-theme="dark"] { --glass-edge: rgba(255, 255, 255, 0.08); --lift: rgba(0, 0, 0, 0.45); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; overflow-x: clip; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* the year's twelve colours along the top edge of every page (the home page fills it as you read) */
body::before { content: ""; position: fixed; z-index: 40; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--m11) 0 8.33%, var(--m12) 0 16.66%, var(--m01) 0 25%, var(--m02) 0 33.33%, var(--m03) 0 41.66%, var(--m04) 0 50%,
    var(--m05) 0 58.33%, var(--m06) 0 66.66%, var(--m07) 0 75%, var(--m08) 0 83.33%, var(--m09) 0 91.66%, var(--m10) 0 100%); }
a { color: var(--seal); text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }
a:hover { text-decoration-thickness: 0.12em; }
:focus-visible { outline: 3px solid var(--seal); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--button); color: var(--on-button);
  padding: 0.6rem 1rem; z-index: 50; border-radius: 0 0 10px 0; }
.skip:focus { left: 0; }

.wrap { width: 100%; max-width: 42.5rem; margin: 0 auto; padding: 0 16px; }
.wrap.wide { max-width: 64rem; }

/* header: a floating pill. Glass where the browser can, a solid card where it cannot */
.site-header { position: sticky; top: 12px; z-index: 30; padding: 0 12px; margin-top: 12px; pointer-events: none; }
.site-header .wrap { pointer-events: auto; max-width: 680px; padding: 6px 6px 6px 20px; border-radius: 999px;
  display: flex; align-items: center; justify-content: space-between; gap: 6px 14px;
  background: var(--raised); border: 1px solid var(--rule); box-shadow: 0 10px 30px -12px var(--lift); }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header .wrap { background: color-mix(in srgb, var(--raised) 68%, transparent); border-color: var(--glass-edge);
    -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px); }
}
.wordmark { font-family: "Young Serif", Georgia, "Times New Roman", serif; font-size: 1.45rem; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; line-height: 1.2; min-height: 44px; display: inline-flex; align-items: center; }
.wordmark .dot { color: var(--ginger); }
.site-nav { display: flex; align-items: center; gap: 2px; font-size: 0.95rem; }
.site-nav a { padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 22px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.site-nav a.nav-cta { margin-left: 6px; padding: 0 18px; background: var(--button); color: var(--on-button); font-weight: 600; }
.site-nav a.nav-cta:hover { background: var(--button); text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 679px) { .site-nav a:not(.nav-cta) { display: none; } }

/* type */
h1, h2, h3 { font-family: "Young Serif", Georgia, "Times New Roman", serif; font-weight: 400; line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.1rem, 8vw, 3.1rem); letter-spacing: -0.02em; }
h2 { font-size: 1.6rem; letter-spacing: -0.015em; margin-top: 2.6rem; }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; margin-top: 2rem; }
h4 { font-family: "Figtree", system-ui, sans-serif; font-size: 1.05rem; font-weight: 700; margin: 1.6rem 0 0; }
p, ul, ol, table, blockquote, pre { margin: 1rem 0 0; }
li { margin-top: 0.45rem; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.4rem 0; }
strong { font-weight: 700; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.9em;
  background: var(--raised); padding: 0.1em 0.35em; border-radius: 6px; }
pre { background: var(--raised); padding: 14px 16px; border-radius: 14px; overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin-left: 0; padding: 16px 20px; border-radius: 20px; background: var(--tint); color: var(--ink); }
blockquote > :first-child { margin-top: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-secondary); }
.hl { background: linear-gradient(var(--highlight), var(--highlight)) no-repeat 0 82% / 100% 0.4em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.08em; margin: 0 -0.08em; }

/* the document pages: privacy, terms, support, trust, the comparisons */
.doc-top { padding: clamp(40px, 8vw, 84px) 0 0; }
.kicker { display: inline-block; margin: 0 0 1rem; background: var(--button); color: var(--on-button); font-weight: 700; font-size: 0.82rem; line-height: 1; padding: 7px 12px; border-radius: 999px; }
.doc { padding-bottom: 24px; }
.doc > h1 { font-size: clamp(2.5rem, 9vw, 4.2rem); line-height: 1.04; letter-spacing: -0.025em; text-wrap: balance; }
.doc > h1 + p, .doc > h1 + p + p { color: var(--ink-secondary); font-size: 1.15rem; }
.doc > h1 + p { margin-top: 1.4rem; }
.doc h2 { font-size: clamp(1.6rem, 4.6vw, 2.1rem); margin-top: 3.4rem; padding-top: 1.6rem; border-top: 1px solid var(--rule); text-wrap: balance; }
.doc h3 { font-size: 1.3rem; margin-top: 2.2rem; }
.doc ul { list-style: none; padding-left: 0; }
.doc ul > li { position: relative; padding-left: 22px; }
.doc ul > li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--ginger); }
.doc ol { padding-left: 1.4rem; }
.doc ol > li::marker { font-weight: 700; color: var(--seal); }
.doc hr { margin: 3rem 0; }
.doc table { display: block; overflow-x: auto; border-collapse: separate; border-spacing: 0; font-size: 0.95rem; -webkit-overflow-scrolling: touch;
  background: var(--raised); border-radius: 20px; margin-top: 1.4rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--rule); min-width: 9rem; }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-weight: 700; }
.doc th:first-child, .doc td:first-child { min-width: 8rem; font-weight: 600; }
.compare-list { list-style: none; padding: 0; display: grid; gap: 12px; margin-top: 2rem; }
.doc ul.compare-list > li { padding: 0; margin: 0; }
.doc ul.compare-list > li::before { display: none; }
.compare-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; background: var(--raised); border-radius: 24px; padding: 16px 22px;
  color: var(--ink); text-decoration: none; font-family: "Young Serif", Georgia, serif; font-size: 1.25rem; line-height: 1.2; }
.compare-list a::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--seal); border-top: 2px solid var(--seal); transform: rotate(45deg); margin-right: 4px; }
.compare-list a:hover { background: var(--moment); }

/* buttons, and the one ginger door */
.btn { display: inline-flex; align-items: center; min-height: 50px; background: var(--button); color: var(--on-button); text-decoration: none; font-weight: 600;
  padding: 0 24px; border-radius: 25px; margin-top: 1.4rem; }
.btn:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.btn.quiet { background: var(--sunken); color: var(--ink); }
.door { display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 40px; border-radius: 30px;
  background: var(--ginger); color: var(--on-door); font-size: 1.1875rem; font-weight: 700; text-decoration: none; }
.door:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.door:active { transform: scale(0.97); }
.soon-note { color: var(--ink-secondary); font-size: 0.95rem; margin-top: 0.9rem; }
.closer { text-align: center; padding: clamp(72px, 12vw, 132px) 0 clamp(40px, 8vw, 80px); }
.closer h2 { font-size: clamp(2.1rem, 7vw, 3.4rem); letter-spacing: -0.025em; margin: 0; padding: 0; border: 0; text-wrap: balance; }
.closer .door { margin-top: 2rem; }

/* footer */
.site-footer { border-top: 1px solid var(--rule); margin-top: 3rem; padding: 34px 0 56px; color: var(--ink-secondary); font-size: 0.95rem; }
.site-footer .wrap { max-width: 64rem; display: grid; gap: 14px; }
.site-footer .foot-line { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer nav a, .theme-toggle { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-secondary); }
.site-footer a:hover, .theme-toggle:hover { color: var(--ink); }
.theme-toggle { font: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 0.18em; text-decoration-thickness: 0.06em; }

@media (min-width: 720px) {
  body { font-size: 1.125rem; }
  .wrap { padding: 0 24px; }
  .compare-list { grid-template-columns: 1fr 1fr; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
  .site-footer nav { justify-content: flex-end; }
}
@media (prefers-reduced-motion: no-preference) {
  a, .btn, .compare-list a { transition: background-color 0.15s ease, color 0.15s ease; }
  .doc > h1, .doc-top .kicker { animation: doc-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .doc > h1 + p { animation: doc-rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both; }
  @keyframes doc-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
  .door, .btn, .nav-cta { transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.15s ease; }
  .door:hover { transform: translateY(-2px); }
}
@media print {
  .site-header, .skip, .btn, .closer, body::before { display: none; }
  body { background: #fff; color: #000; }
}

/* ---- the mailing list ---------------------------------------------------------------------- */
.signup { max-width: 34rem; margin: 2rem auto 0; text-align: center; }
.signup-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.signup input[type="email"] { flex: 1 1 15rem; min-width: 0; min-height: 60px; padding: 0 24px; border: 0; border-radius: 30px; background: var(--raised); color: var(--ink);
  font: inherit; font-size: 1.05rem; box-shadow: inset 0 0 0 1.5px var(--rule); }
.signup input[type="email"]::placeholder { color: var(--ink-secondary); opacity: 1; }
.signup input[type="email"]:focus-visible { outline: 3px solid var(--seal); outline-offset: 2px; }
.signup .door { margin-top: 0; border: 0; font: inherit; font-weight: 700; cursor: pointer; flex: 0 0 auto; }
.signup .door:disabled { opacity: 0.7; cursor: default; }
.signup .soon-note { margin-top: 1rem; }
.signup .signup-bad { color: var(--seal); font-weight: 600; }
.signup-done .soon-note { font-family: "Young Serif", Georgia, serif; font-size: 1.35rem; line-height: 1.3; color: var(--ink); margin-top: 0; }
.signup .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.closer .signup .door, .final .signup .door { margin-top: 0; }
.signup-row[hidden] { display: none; }
