/* The public site (src/site.ts): coming-soon home page and privacy policy. No framework.
   Display face: Bricolage Grotesque (SIL Open Font License 1.1, from @fontsource-variable/bricolage-grotesque),
   served from here so the page makes no third-party requests. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/site/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --paper: #edf0f3;
  --ink: #17203a;
  --muted: #535c73;
  --line: #c6ccd8;
  --tag: #f7d046;
  --tag-ink: #17203a;
  --string: #8a6f4e;
  --raised: #f7f8fa;
  --bad: #a3201c;
  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --text: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --paper: #10162a; --ink: #e8ecf5; --muted: #a3abc0; --line: #2c3556; --raised: #161d35; --string: #b89a74; --bad: #ff8a80; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--text); }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--tag); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.brand { font: 700 20px/1 var(--display); letter-spacing: -0.03em; margin: 0 0 48px; }
.brand a { text-decoration: none; }

/* --- Home --- */
.home { max-width: 1140px; margin: 0 auto; padding: 32px 24px 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: center; min-height: min(88vh, 760px); padding-bottom: 56px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 760; max-width: 15ch; text-wrap: balance; margin-bottom: 28px; }
.lede { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 34em; }
.lede p { margin: 0 0 28px; }
.button { display: inline-block; padding: 14px 22px; border-radius: 6px; background: var(--ink); color: var(--paper); font-weight: 600; text-decoration: none; }
.button:hover { background: color-mix(in srgb, var(--ink) 86%, var(--tag)); }

/* The price tag: a hang tag on its string, tilted the way it hangs. */
.tag { margin: 0; justify-self: center; width: min(100%, 380px); position: relative; padding-top: 70px; }
.tag::before { content: ""; position: absolute; z-index: 1; top: 0; left: 50%; width: 2px; margin-left: -1px; height: 98px; background: var(--string); }
.tag-card { position: relative; background: var(--tag); color: var(--tag-ink); padding: 54px 30px 26px; transform: rotate(4deg); transform-origin: 50% 28px;
  clip-path: polygon(22% 0, 78% 0, 100% 14%, 100% 100%, 0 100%, 0 14%); box-shadow: 0 1px 0 rgb(0 0 0 / .05); }
.tag-hole { position: absolute; top: 20px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 2px rgb(23 32 58 / .25); }
.tag-sku { font: 800 44px/1 var(--display); letter-spacing: 0.02em; margin: 0 0 18px; font-variant-numeric: tabular-nums; }
.tag dl { margin: 0; }
.tag dl div { padding: 10px 0; border-top: 1.5px dashed rgb(23 32 58 / .35); }
.tag dt { font-size: 13px; font-weight: 700; }
.tag dd { margin: 2px 0 0; font-size: 15px; line-height: 1.4; }
.tag-sites { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; }
.tag-sites span { font-size: 12px; font-weight: 700; padding: 3px 8px; border: 1.5px solid var(--tag-ink); border-radius: 3px; transform: rotate(-2deg); }
.tag-sites span:nth-child(even) { transform: rotate(1.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .tag dl div, .tag-sites { animation: write 480ms cubic-bezier(.2, .7, .3, 1) both; }
  .tag dl div:nth-child(1) { animation-delay: 350ms; }
  .tag dl div:nth-child(2) { animation-delay: 700ms; }
  .tag dl div:nth-child(3) { animation-delay: 1050ms; }
  .tag dl div:nth-child(4) { animation-delay: 1400ms; }
  .tag-sites { animation-delay: 1800ms; }
  .tag-card { animation: swing 2.6s cubic-bezier(.3, .6, .3, 1) both; }
}
@keyframes write { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes swing { 0% { transform: rotate(-3deg); } 45% { transform: rotate(6deg); } 75% { transform: rotate(3deg); } 100% { transform: rotate(4deg); } }

.band { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 56px; padding: 64px 0; border-top: 1px solid var(--line); }
.band h2 { font-size: clamp(28px, 3.4vw, 40px); max-width: 12ch; }
.prose { max-width: 40em; }
.prose p { margin: 0 0 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose ul, .prose ol { margin: 0; padding-left: 1.2em; }
.prose strong { font-weight: 650; }

/* Steps: an ordered sequence, so it's numbered. */
.steps .prose ol { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 0; }
.steps .prose li { counter-increment: step; position: relative; padding: 18px 0 18px 56px; border-bottom: 1px solid var(--line); color: var(--muted); }
.steps .prose li:first-child { padding-top: 0; }
.steps .prose li:first-child::before { top: 0; }
.steps .prose li::before { content: counter(step); position: absolute; left: 0; top: 18px; font: 700 30px/1 var(--display); color: var(--ink); }
.steps .prose li strong { display: block; color: var(--ink); font: 650 19px/1.35 var(--display); margin-bottom: 2px; }

/* Features: a loose grid, each bullet's bold words as its name. */
.features .prose ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; }
.features .prose li { padding-left: 16px; border-left: 4px solid var(--tag); color: var(--muted); }
.features .prose li strong { display: block; color: var(--ink); font: 650 18px/1.35 var(--display); margin-bottom: 4px; }

.signup { align-items: start; }
.signup .prose { grid-column: 2; }
.signup h2 { grid-row: 1 / span 2; }
.signup-form { grid-column: 2; max-width: 36em; }
.signup-form > label { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.signup-row { display: flex; gap: 10px; flex-wrap: wrap; }
.signup-row input { flex: 1 1 240px; min-width: 0; font: inherit; padding: 12px 14px; border: 1.5px solid var(--ink); border-radius: 6px; background: var(--raised); color: var(--ink); }
.signup-row button { font: inherit; font-weight: 650; padding: 12px 22px; border: 0; border-radius: 6px; background: var(--tag); color: var(--tag-ink); cursor: pointer; box-shadow: inset 0 0 0 1.5px var(--tag-ink); }
.signup-row button:hover { background: color-mix(in srgb, var(--tag) 85%, #fff); }
.signup-row button:disabled { opacity: .6; cursor: progress; }
.signup-note { min-height: 1.6em; margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.signup-note.bad { color: var(--bad); }
.signup-form.joined .signup-row, .signup-form.joined > label { display: none; }
.signup-form.joined .signup-note { color: var(--ink); font-weight: 600; }
.signup-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.foot { padding: 28px 0 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.foot p { margin: 0; }

@media (max-width: 820px) {
  .home { padding: 24px 16px 0; }
  .brand { margin-bottom: 32px; }
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
  .tag { width: min(100%, 340px); }
  .band { grid-template-columns: 1fr; padding: 48px 0; gap: 20px; }
  .signup .prose, .signup-form { grid-column: 1; }
  .signup h2 { grid-row: auto; }
}

/* --- Privacy (a plain document) --- */
.doc { max-width: 720px; margin: 0 auto; padding: 32px 24px 80px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); margin-bottom: 28px; }
.doc h2 { font-size: 24px; margin: 40px 0 12px; }
.doc p, .doc li { color: var(--ink); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
@media (max-width: 820px) { .doc { padding: 24px 16px 64px; } }
