/* GaltMD landing page. Shares its palette and type with slop.galtmd.com. */
:root {
  --bg: #f7f4ee;
  --surface: #fffdf9;
  --surface-2: #f1ece3;
  --ink: #1f1c18;
  --ink-2: #3d3832;
  --muted: #6f685f;
  --line: #e2dccf;
  --line-strong: #c9c1b0;
  --accent: #7a2e1f;
  --accent-ink: #ffffff;
  --gold: #a37b2c;
  --shadow: 0 1px 2px rgba(31, 28, 24, .04), 0 8px 24px rgba(31, 28, 24, .05);
  --serif: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Archivo", "Inter", system-ui, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161411; --surface: #1e1b17; --surface-2: #262219; --ink: #ede7db; --ink-2: #d2cbbd; --muted: #a39b8d;
    --line: #332e26; --line-strong: #4a4337; --accent: #d9735c; --accent-ink: #161411; --gold: #d4a94a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); text-decoration: none; }
.brand .mark { width: 44px; height: 44px; flex-shrink: 0; --mark-gold: var(--gold); }
.brand .name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -.025em; line-height: 1.1; }
.brand .by { font-family: var(--serif); font-style: italic; font-size: 14px; color: var(--muted); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a { padding: 7px 11px; font-size: 14px; color: var(--muted); text-decoration: none; border-radius: 6px; }
nav a:hover { color: var(--ink); background: var(--surface-2); }

main { padding: 44px 0 72px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 52px); line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 16px; text-wrap: balance; }
h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 10px; }
.lede { font-family: var(--serif); font-size: 21px; line-height: 1.5; color: var(--ink-2); margin: 0 0 24px; max-width: 62ch; }
.prose { font-family: var(--serif); font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 68ch; margin: 0 0 14px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-block; font: inherit; font-weight: 500; padding: 10px 18px; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; background: var(--surface); }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); background: var(--accent); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 44px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.card .prose { font-size: 17px; flex: 1; }
.card .meta { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.card .cta { margin-top: 12px; }

section.newsletter { margin-top: 44px; }
.embed { margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.embed iframe { display: block; width: 100%; height: 320px; border: 0; }

footer { color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); margin-top: 64px; padding-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer .by { font-family: var(--serif); font-style: italic; }

@media (max-width: 720px) {
  main { padding: 28px 0 56px; }
  .lede { font-size: 18px; }
  .card { padding: 20px 18px; }
}

/* Lantern and wordmark: the same emblem at masthead and hero scale. */
.hero-brand { display: flex; align-items: center; gap: clamp(18px, 3vw, 30px); margin: 0 0 36px; }
.hero-mark { width: clamp(76px, 12vw, 112px); height: auto; flex-shrink: 0; --mark-gold: var(--gold); }
.hero-name { font-family: var(--display); font-size: clamp(42px, 8vw, 72px); font-weight: 700; letter-spacing: -.035em; line-height: 1.08; }
.hero-by { font-family: var(--serif); font-style: italic; font-size: clamp(17px, 2.5vw, 23px); color: var(--muted); margin-top: 5px; }