/* Tobbin teaser site (tobbin.app). Self-hosted DM Sans; no third-party fonts or scripts. */
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/DMSans-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/DMSans-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/DMSans-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/assets/fonts/DMSans-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f4f0e5;
  --ink: #1b1b18;
  --muted: #696a5f;
  --line: #d5d2c4;
  --accent: #ff4c24;
  --accent-ink: #c2350f;   /* accent used as text on paper: 4.6:1 */
  --field: #fffdf8;
  --field-ink: #1b1b18;
  --block: #1b1b18;        /* signup block */
  --block-ink: #f4f0e5;
  --block-soft: #f4f0e5c2;
  --error: #ffb4a1;
  --font: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #171714;
    --ink: #f4f0e5;
    --muted: #b4b2a6;
    --line: #3a3a33;
    --accent-ink: #ff7a5c;
    --field: #f4f0e5;
    --block: #24241f;
    --block-ink: #f4f0e5;
    --block-soft: #f4f0e5c2;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: .95; }

.wrap { width: min(1080px, 100% - 48px); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; padding: 10px 14px; background: var(--ink); color: var(--paper); border-radius: 6px; z-index: 10; }
.skip-link:focus { top: 16px; }

/* Header and footer */
.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 28px; }
.wordmark { font-weight: 800; font-size: 30px; letter-spacing: -.06em; text-decoration: none; line-height: 1; }
.dot { color: var(--accent); }
.site-header nav a { font-size: 16px; font-weight: 500; text-decoration: none; }
.site-header nav a:hover { text-decoration: underline; }

.site-footer { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-block: 28px 40px; margin-top: 80px; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; gap: 22px; }
.site-footer a:hover { color: var(--ink); }

/* Teaser hero */
.eyebrow { font-size: 15px; font-weight: 500; color: var(--accent-ink); margin-bottom: 18px; }
.hero { padding-block: 72px 56px; }
.hero h1 { font-size: clamp(64px, 12vw, 148px); }
.hero h1 .soft { color: var(--muted); }
.hero-lede { margin-top: 30px; font-size: 22px; max-width: 34ch; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding: 0; margin: 64px 0 0; list-style: none; border-top: 1px solid var(--line); padding-top: 28px; }
.points b { display: block; font-size: 20px; letter-spacing: -.02em; margin-bottom: 6px; }
.points span { color: var(--muted); font-size: 16px; }

/* Signup block */
.news { position: relative; overflow: hidden; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; margin-top: 40px; padding: 54px 60px; border-radius: 22px; background: var(--block); color: var(--block-ink); }
.news::after { content: ''; position: absolute; right: 56px; top: -34px; width: 104px; height: 104px; border-radius: 50%; background: var(--accent); pointer-events: none; }
.news .eyebrow { color: var(--accent); }
.news h2 { font-size: 48px; }
.news-copy > p:last-child { margin-top: 14px; color: var(--block-soft); max-width: 26em; }
.news-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.news-row { display: flex; gap: 10px; }
.news-row input { flex: 1; min-width: 0; font: inherit; font-size: 17px; padding: 14px 16px; border: 2px solid transparent; border-radius: 6px; background: var(--field); color: var(--field-ink); }
.news-row input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.news-row input[aria-invalid="true"] { border-color: var(--error); }
/* Ink on the brand orange: 5.19:1 (white on it is only 3.33:1). */
.button { font: inherit; font-weight: 700; font-size: 17px; padding: 14px 22px; border: 0; border-radius: 6px; background: var(--accent); color: #1b1b18; cursor: pointer; white-space: nowrap; box-shadow: 0 3px 0 #0000004d; }
.button:hover { filter: brightness(1.07); }
.button:focus-visible { outline-color: var(--block-ink); }
.button:disabled { opacity: .6; cursor: not-allowed; box-shadow: none; }
.news-row input:read-only { opacity: .75; }
.news-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.news-note { margin-top: 14px; font-size: 14px; color: var(--block-soft); }
.news-note a { color: var(--block-ink); }
.news-status p { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--error); }
.news-status p:empty { margin: 0; }
.news-status[data-tone="pending"] p { color: var(--block-soft); }
.news-reload { font: inherit; color: var(--block-ink); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.news-noscript { margin-top: 12px; font-size: 15px; font-weight: 500; color: var(--error); }
.news-done:focus { outline: none; }
.news-done-title { font-weight: 800; font-size: 40px; line-height: 1; letter-spacing: -.05em; margin-bottom: 12px; }
.news-done p:last-child { color: var(--block-soft); max-width: 28em; }
.news-done b { color: var(--block-ink); }
.news altcha-widget { --altcha-color-base: #fffdf8; --altcha-color-text: #1b1b18; --altcha-border-radius: 6px; font-size: 14px; }

/* Privacy page */
.doc { max-width: 680px; padding-block: 48px 0; }
.doc h1 { font-size: clamp(48px, 9vw, 84px); margin-bottom: 18px; }
.doc .updated { color: var(--muted); font-size: 15px; margin-bottom: 36px; }
.doc .summary { font-size: 21px; margin-bottom: 12px; }
.doc h2 { font-size: 28px; letter-spacing: -.03em; line-height: 1.1; margin: 44px 0 12px; }
.doc p + p, .doc p + ul, .doc ul + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; margin: 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--accent-ink); }

@media (max-width: 860px) {
  .news { grid-template-columns: 1fr; gap: 26px; padding: 40px 26px 34px; }
  .news h2 { font-size: 40px; }
  .news::after { right: 24px; width: 72px; height: 72px; top: -26px; }
  .points { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .wrap { width: calc(100% - 36px); }
  .hero { padding-block: 40px 32px; }
  .hero-lede { font-size: 19px; }
  .news-row { flex-direction: column; }
  .site-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
