:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --bg-raised: #fffdf8;
  --ink: #1c1915;
  --muted: #6b645c;
  --line: #e4dcd0;
  --amber: #ffb84d;
  --amber-deep: #e8892d;
  --link: #9a4e0b;
  --shadow: 0 1px 2px rgba(40, 30, 10, 0.05), 0 16px 40px rgba(40, 30, 10, 0.06);
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", sans-serif;
  --radius: 16px;
  --header: 4.25rem;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #100e0c;
  --bg-raised: #1b1814;
  --ink: #f6f1e8;
  --muted: #b7aea3;
  --line: #322c26;
  --link: #f0b56a;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1200px 480px at 10% -10%, rgba(255, 184, 77, 0.28), transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.55;
}

body :focus-visible {
  outline: 2px solid var(--amber-deep);
  outline-offset: 3px;
}

::selection {
  background: var(--amber);
  color: #1c1915;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero h1 {
  margin-top: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

h3 {
  margin: 0;
  font-size: 1.2rem;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--bg);
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.skip:focus {
  top: 1rem;
}

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-bar,
.footer-bar {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
}

.logo-link img {
  height: 2rem;
  width: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon,
.sprite path,
.sprite circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  background: var(--line);
}

.icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1.15rem;
  border-radius: 12px;
  background: var(--amber);
  color: #1c1915;
  font: 600 0.95rem/1 var(--sans);
  text-decoration: none;
}

.btn:hover {
  background: var(--amber-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line);
}

.btn-ghost:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--amber-deep);
}

.btn-ink {
  background: #1c1915;
  color: #fffdf8;
}

.btn-ink:hover {
  background: #3a332c;
}

.btn-small {
  min-height: 2.75rem;
  padding-inline: 0.9rem;
}

.header-sign-in {
  display: none;
}

.text-link {
  color: var(--link);
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.hero {
  display: grid;
  gap: 2.5rem;
  padding-block: 2.5rem 3.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--link);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-ink {
  color: #6a3d08;
}

.dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: var(--amber-deep);
}

.lede {
  max-width: 38rem;
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.beta-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feed-shell {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.15rem 0.4rem;
  overflow: hidden;
}

.feed-shell::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 2.75rem 2.75rem 0;
  border-color: transparent var(--amber) transparent transparent;
  pointer-events: none;
}

.feed-head h2 {
  font-size: 1.35rem;
}

.feed-head p,
.interest-label,
#interest {
  color: var(--muted);
  font-size: 0.92rem;
}

.feed-head p {
  margin-top: 0.35rem;
  max-width: 40rem;
}

.topics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.topics button {
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: 600 0.9rem/1 var(--sans);
  cursor: pointer;
}

.topics button[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--bg);
}

.interest-label {
  margin-top: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

#interest {
  margin: 0.3rem 0 0.85rem;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.4;
}

.card {
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--link);
}

.card .icon-ext {
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.2rem;
  vertical-align: -1px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.45rem;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--line);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge .icon {
  width: 0.75rem;
  height: 0.75rem;
}

.card > :not(.actions) {
  margin-left: 0.85rem;
  margin-right: 0.85rem;
}

.card .badge {
  margin-top: 0.85rem;
}

.authors,
.meta {
  color: var(--muted);
}

.authors {
  margin-top: 0.35rem;
  font-size: 0.82rem;
}

.meta {
  margin-top: 0.15rem;
  font-size: 0.75rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.band {
  padding-block: 3.5rem;
  background: var(--bg-raised);
  border-block: 1px solid var(--line);
}

.steps,
.trust ul {
  display: grid;
  gap: 1.25rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li,
.trust li {
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

.step-num {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--link);
  font-family: var(--serif);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1;
}

.steps p,
.trust p {
  margin-top: 0.45rem;
  color: var(--muted);
}

.trust {
  padding-block: 3.5rem;
}

.beta {
  background: var(--amber);
  color: #1c1915;
}

.beta-inner {
  padding-block: 3.5rem;
  max-width: 44rem;
}

.beta-inner p:not(.eyebrow) {
  margin-top: 0.9rem;
  font-size: 1.125rem;
}

.beta-inner p.fine-print {
  font-size: 0.9rem;
}

.beta .btn {
  margin-top: 1.4rem;
}

.fine-print {
  max-width: 36rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.fine-print a {
  color: var(--link);
  font-weight: 600;
}

.beta .fine-print,
.beta .fine-print a {
  color: #3f2c12;
}

.legal {
  max-width: 42rem;
  padding-block: 2.75rem 4.5rem;
}

.legal h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
}

.legal h2 {
  margin-top: 2.1rem;
  font-size: 1.45rem;
}

.legal p,
.legal li {
  margin-top: 0.7rem;
}

.legal ul {
  margin: 0.35rem 0 0;
  padding-left: 1.2rem;
}

.legal li {
  padding-left: 0.2rem;
}

.legal a {
  color: var(--link);
  font-weight: 600;
}

.legal .updated {
  margin-top: 0.75rem;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-bar {
  min-height: 4.5rem;
  flex-wrap: wrap;
  padding-block: 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-bar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.footer-bar a {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.footer-bar a:hover {
  text-decoration: underline;
}

@media (min-width: 640px) {
  .header-sign-in {
    display: inline;
    margin-inline: 0.35rem 0.5rem;
    text-decoration: none;
  }

  .logo-link img {
    height: 2.25rem;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    align-items: start;
    gap: 3rem;
    padding-top: 4rem;
  }

  .steps,
  .trust ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 380px) {
  .header-cta {
    padding-inline: 0.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
