@font-face { font-family: 'FI Serif'; src: url('fonts/source-serif.woff2') format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'FI Sans'; src: url('fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --paper: #f6f3ec; --surface: #fffdf8; --surface-2: #f1ede4; --ink: #1d2533; --ink-2: #3b4555; --muted: #677082;
  --line: #e3ddd0; --line-strong: #d3cbb9; --accent-ink: #fff; --accent: #1f4f8a; --accent-soft: #e5edf7; --rubric: #b23a2b;
  --serif: 'FI Serif', 'Iowan Old Style', Georgia, serif; --sans: 'FI Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #111620; --surface: #181e29; --surface-2: #1f2633; --ink: #ebe7df; --ink-2: #ccc7bd; --muted: #98a1b1;
    --line: #2a3242; --line-strong: #39435a; --accent-ink: #0d1420; --accent: #86b4ec; --accent-soft: #1c2b40; --rubric: #ec8a7a; color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #111620; --surface: #181e29; --surface-2: #1f2633; --ink: #ebe7df; --ink-2: #ccc7bd; --muted: #98a1b1;
  --line: #2a3242; --line-strong: #39435a; --accent-ink: #0d1420; --accent: #86b4ec; --accent-soft: #1c2b40; --rubric: #ec8a7a; color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header { border-bottom: 1px solid var(--line); }
header .wrap { height: 62px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.08rem; color: var(--ink); text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.hero { padding: 64px 0 36px; }
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--rubric); }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.12; margin: 12px 0 0; max-width: 20ch; letter-spacing: -0.01em; }
.lede { color: var(--ink-2); font-size: 1.12rem; max-width: 58ch; margin: 16px 0 0; }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding-bottom: 28px; }
@media (max-width: 960px) { .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .tools { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }
.tool {
  display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: 18px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 30, 50, 0.05), 0 8px 24px rgba(20, 30, 50, 0.05);
  transition: border-color 0.15s, transform 0.15s;
}
.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool .mark { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.tool .name { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tool h2 { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; margin: 0; }
.tool .kicker { font-size: 0.72rem; font-weight: 650; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.tool p { margin: 0; color: var(--ink-2); }
.tool ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.93rem; line-height: 1.7; }
.tool .go { margin-top: auto; padding-top: 6px; font-weight: 600; color: var(--accent); }
.note { color: var(--muted); font-size: 0.93rem; padding-bottom: 56px; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
footer .wrap { padding: 22px 20px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* Header sign-in link */
header .wrap { justify-content: space-between; gap: 12px; }
.acct-link { display: inline-flex; align-items: center; gap: 8px; font-size: 0.92rem; font-weight: 550; color: var(--ink-2); text-decoration: none; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 60vw; }
.acct-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-link:hover { border-color: var(--accent); color: var(--accent); }

/* Pages (account, privacy) */
.page { max-width: 640px; padding: 48px 0 64px; }
.page h1 { font-size: clamp(1.8rem, 4vw, 2.3rem); max-width: none; }
.page h2 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 6px; }
.page .lede { font-size: 1.04rem; }
.panel { margin-top: 22px; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20, 30, 50, 0.05); }
.panel p { margin: 0 0 12px; color: var(--ink-2); }
.panel p:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 6px; }
input[type=email], input[type=text] { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--paper); color: var(--ink); }
input:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 0.95rem; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.btn:disabled { opacity: 0.6; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover:not(:disabled) { color: var(--accent-ink); filter: brightness(1.08); }
.btn.danger { color: var(--rubric); }
.btn.danger.solid { background: var(--rubric); border-color: var(--rubric); color: #fff; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.85rem; margin: 18px 0; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.msg { padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font-size: 0.95rem; margin-top: 14px; }
.msg.err { background: color-mix(in srgb, var(--rubric) 12%, transparent); }
.list { list-style: none; margin: 0 0 14px; padding: 0; }
.list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.prose h2 { margin-top: 28px; }
.prose p, .prose li { color: var(--ink-2); }
.prose ul { padding-left: 22px; }
[hidden] { display: none !important; }

/* Account: everything you lead or belong to */
.place-list { list-style: none; margin: 4px 0 0; padding: 0; }
.place-list li + li { border-top: 1px solid var(--line); }
.place-list a { display: flex; align-items: center; gap: 12px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.place-list a:hover .place-name { color: var(--accent); }
.place-name { flex: 1; min-width: 0; font-weight: 600; display: flex; flex-direction: column; }
.place-sub { font-weight: 400; font-size: 0.88rem; color: var(--muted); }
.place-list .go { color: var(--muted); }
.badge-wait { font-size: 0.75rem; font-weight: 650; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--rubric) 14%, transparent); color: var(--rubric); white-space: nowrap; }
ul.plain { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); }
