/* DeFeed — shared styles
   Layout: dark ink hero band with a live feed demo, then a light cream page
   set on a left-aligned 12-col grid; feature mocks are real UI, not decoration. */
:root {
  --cream: #F7F5EF;
  --ink: #15171C;
  --coral: #FF4B3E;            /* brand coral, fixed in both themes */

  --bg: #F7F5EF;
  --surface: #FFFFFF;
  --surface-2: #EFECE3;
  --fg: #15171C;
  --muted: #5A5D66;
  --line: #E2DED3;
  --accent: #E03A2D;
  --accent-soft: rgba(224, 58, 45, .10);
  --hero-bg: #15171C;
  --hero-fg: #F7F5EF;
  --hero-muted: #A4A7B0;
  --hero-line: #2C2F37;
  --shadow: 0 1px 0 rgba(21, 23, 28, .04), 0 10px 30px -12px rgba(21, 23, 28, .18);

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --f-code: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1rem;
  --step-1: 1.1875rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.3rem + 2vw, 2.5rem);
  --step-4: clamp(2.75rem, 1.6rem + 5.4vw, 5.25rem);

  --wrap: 72rem;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1A1C22; --surface: #22252C; --surface-2: #2A2D35; --fg: #F1EEE6;
    --muted: #A3A6AE; --line: #32353D; --accent: #FF6A5C; --accent-soft: rgba(255, 106, 92, .14);
    --hero-bg: #111317; --hero-line: #262930;
    --shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1A1C22; --surface: #22252C; --surface-2: #2A2D35; --fg: #F1EEE6;
  --muted: #A3A6AE; --line: #32353D; --accent: #FF6A5C; --accent-soft: rgba(255, 106, 92, .14);
  --hero-bg: #111317; --hero-line: #262930;
  --shadow: 0 1px 0 rgba(0,0,0,.2), 0 12px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--hero-bg);
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }
code, kbd { font-family: var(--f-code); font-size: .9em; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.05; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: var(--step-3); font-weight: 800; font-variation-settings: "wdth" 112; }
h3 { font-size: var(--step-1); font-weight: 700; font-variation-settings: "wdth" 105; line-height: 1.2; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * 24px);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; font-variation-settings: "wdth" 115; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; display: block; }
.nav { display: flex; align-items: center; gap: 1.5rem; font-size: var(--step--1); }
.nav a { text-decoration: none; opacity: .8; }
.nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) { .nav .nav-link { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .65rem;
  font: 600 var(--step-0)/1 var(--f-body);
  padding: .95rem 1.25rem; border-radius: 999px; border: 0;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--coral); color: #15171C; }
.btn-primary:hover { background: #ff6357; }
.btn-primary[aria-disabled="true"] { cursor: default; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-ghost:hover { background: rgba(127,127,127,.12); }
.pill {
  font: 600 .72rem/1 var(--f-body); letter-spacing: .02em;
  padding: .35rem .55rem; border-radius: 999px; background: rgba(21,23,28,.85); color: var(--cream);
}

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 6rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; justify-content: space-between; align-items: flex-start; padding-block: 2.5rem 3rem; font-size: var(--step--1); color: var(--muted); }
.site-footer .brand { color: var(--fg); }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--fg); text-decoration: underline; text-underline-offset: 4px; }
.footer-tag { margin-top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
