/* Official tokens: again-oclock/src/ui/theme.ts. Fonts are self-hosted app assets. */
@font-face {
  font-family: Quicksand;
  src: url('assets/fonts/Quicksand_400Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Quicksand;
  src: url('assets/fonts/Quicksand_500Medium.ttf') format('truetype');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Quicksand;
  src: url('assets/fonts/Quicksand_600SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Quicksand;
  src: url('assets/fonts/Quicksand_700Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #EEE7DC;
  --surface: #FFFCF7;
  --ink: #3B3833;
  --muted: #6E6A63;
  --accent: #5F7667;
  --accent-pressed: #4E6356;
  --link: #4E6356;
  --page-muted: #3B3833;
  --on-accent: #FFFCF7;
  --line: #DDD5C9;
  --soft: #CDD9D0;
  --brand-beige: #D8CBB8;
  --radius: 22px;
  --shadow: rgba(44, 43, 40, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191714;
    --surface: #24211D;
    --ink: #F4EFE7;
    --muted: #B9B0A4;
    --accent: #8FA694;
    --accent-pressed: #A9BCAA;
    --link: #8FA694;
    --page-muted: #B9B0A4;
    --on-accent: #191714;
    --line: #3C3730;
    --soft: #34483C;
    --brand-beige: #C8B79F;
    --shadow: rgba(0, 0, 0, 0.12);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.7 Quicksand, -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { color: var(--accent-pressed); }
a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.wrap { width: min(calc(100% - 36px), 980px); margin-inline: auto; }
.topbar { border-bottom: 1px solid var(--line); background: var(--surface); }
.topbar-inner {
  display: flex;
  gap: 22px;
  justify-content: space-between;
  align-items: center;
  min-height: 82px;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.45px;
}
.brand:hover { color: var(--ink); }
.brand-symbol {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--accent);
  font-size: 23px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}
.brand-symbol img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-symbol img[hidden] { display: none; }
.brand-symbol .fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.brand-symbol:has(img:not([hidden])) .fallback { display: none; }
nav { display: flex; flex-wrap: wrap; gap: 18px; }
nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; padding-block: 8px; }
nav a[aria-current=page], nav a:hover { color: var(--link); }
nav a[aria-current=page] { text-decoration: underline; }
main { padding: 64px 0 80px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--link);
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 14px;
}
.hero { padding-bottom: 35px; max-width: 800px; }
h1 { font-size: clamp(36px, 6vw, 62px); line-height: 1.15; letter-spacing: -0.04em; margin: 0 0 20px; }
h2 { font-size: 25px; line-height: 1.3; letter-spacing: -0.025em; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 8px; }
h1, h2, h3, strong { font-weight: 700; }
p { margin: 0 0 16px; }
.lead { font-size: 20px; color: var(--page-muted); max-width: 690px; }
.card, .legal section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 8px var(--shadow);
  min-width: 0;
}
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card p:last-child, .section p:last-child { margin-bottom: 0; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  max-width: 100%;
  padding: 12px 20px;
  border-radius: 16px;
  text-decoration: none;
  text-align: center;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  margin: 12px 12px 0 0;
}
.btn:hover, .btn:active { color: var(--on-accent); background: var(--accent-pressed); }
.btn.secondary { background: var(--soft); color: var(--ink); }
.btn.secondary:hover { background: var(--surface); color: var(--ink); }
.section { margin-top: 26px; }
.section h2 { margin-top: 4px; }
.notice { padding: 18px 20px; border-radius: 16px; background: var(--soft); border: 1px solid var(--accent); color: var(--ink); }
.muted, .small, .privacy-date { color: var(--page-muted); }
.small { font-size: 14px; }
.faq details { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; }
.faq details p { padding-top: 13px; color: var(--muted); }
.legal, .privacy-main { max-width: 850px; }
.legal section { margin: 28px 0; }
.legal ul { padding-left: 22px; margin: 8px 0 0; }
.legal li, .privacy-main li { margin: 7px 0; }
.privacy-main h2 { margin-top: 32px; }
.footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--page-muted); font-size: 14px; }
.footer-inner { display: flex; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.footer a { margin-left: 16px; }
.footer nav { gap: 0; }
.footer nav a { font: inherit; color: var(--link); padding: 0; text-decoration: underline; }
.footer nav a:hover { color: var(--accent-pressed); }
.pill { display: inline-block; background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 700; border-radius: 999px; padding: 5px 11px; margin-bottom: 18px; }
@media (max-width: 620px) {
  .topbar-inner { align-items: flex-start; padding: 16px 0; flex-direction: column; gap: 10px; }
  main { padding: 45px 0 60px; }
  .cards { grid-template-columns: 1fr; }
  .card, .legal section { padding: 22px; }
  .footer a { margin-left: 0; margin-right: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
