:root {
  color-scheme: light;
  --night: #0b0d21;
  --ink: #252a5b;
  --muted: #525777;
  --lavender: #f5eeff;
  --paper: #fffdf9;
  --yellow: #ffd93d;
  --line: #ded8e9;
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-underline-offset: 0.22em;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible {
  outline: 3px solid #7053c1;
  outline-offset: 5px;
  border-radius: 3px;
}
p {
  line-height: 1.7;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  padding: 16px;
  z-index: 10;
  background: var(--yellow);
  color: var(--night);
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  background: var(--night);
  color: #fff;
  border-bottom: 1px solid #353749;
}
.header-inner {
  max-width: 1160px;
  margin: auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.6px;
  text-decoration: none;
}
.brand-moon {
  color: var(--yellow);
  font-size: 34px;
  line-height: 1;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}
nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
nav a[aria-current] {
  color: var(--yellow);
  text-decoration: underline;
}
.app-link {
  border: 1px solid #787990;
  border-radius: 999px;
  padding: 0 18px;
  gap: 12px;
}
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 85% 80%, #303961, var(--night) 65%);
  color: #fff;
}
.hero-inner {
  max-width: 1160px;
  margin: auto;
  padding: 86px 28px 94px;
  position: relative;
  z-index: 1;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.7;
}
.hero .eyebrow {
  color: #ffeaa7;
  margin: 0 0 24px;
}
h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  letter-spacing: -0.045em;
  line-height: 1.1;
  margin: 0 0 24px;
  max-width: 730px;
  text-wrap: balance;
}
.hero-description {
  max-width: 570px;
  font-size: 18px;
  color: #e2e1ee;
  margin-bottom: 30px;
}
.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 24px;
  font-weight: 650;
  font-size: 15px;
}
.moon {
  position: absolute;
  top: 85px;
  right: max(8%, calc((100% - 1060px) / 2));
  width: 142px;
  height: 142px;
  background: #ffeaa7;
  border-radius: 50%;
  box-shadow: 0 0 100px #ffeaa72b;
  opacity: 0.85;
}
.archive {
  max-width: 1160px;
  padding: 54px 28px 64px;
  margin: auto;
  scroll-margin-top: 20px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
}
h2 {
  font-size: 25px;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 0;
}
.section-heading a {
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.story-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px;
  background: white;
}
.story-card.featured {
  background: var(--lavender);
}
.story-card:only-child {
  max-width: 760px;
  grid-column: 1 / -1;
}
.story-card .eyebrow {
  color: var(--muted);
  margin: 0 0 20px;
  font-size: 11px;
}
.story-card h3 {
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.story-card h3 a {
  text-decoration: none;
}
.story-card h3 a:hover {
  text-decoration: underline;
}
.story-card p {
  color: var(--muted);
}
.card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 26px 0 0;
}
.read-arrow {
  margin-left: auto;
  font-size: 26px;
  color: var(--ink);
}
.newsletter-callout {
  max-width: 1104px;
  margin: 0 auto 64px;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  border-radius: 22px;
  background: var(--lavender);
  border: 1px solid var(--line);
}
.newsletter-callout .eyebrow {
  color: #61508a;
  margin: 0 0 14px;
}
.newsletter-callout h2 {
  font-size: 30px;
}
.newsletter-callout p {
  color: var(--muted);
  margin-bottom: 0;
}
.signup {
  align-self: center;
}
.button {
  background: var(--yellow);
  color: #1d2145;
  border: 1px solid #d0ae2b;
  border-radius: 12px;
  padding: 14px 20px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 750;
  text-decoration: none;
  line-height: 1.5;
}
.fine-print {
  font-size: 12px;
}
.signup-status {
  font-size: 17px;
  font-weight: 700;
}
.site-footer {
  padding: 38px 28px;
  border-top: 1px solid var(--line);
  max-width: 1160px;
  margin: auto;
}
.site-footer p {
  font-size: 14px;
  color: var(--muted);
  margin: 12px 0;
}
.site-footer nav {
  gap: 24px;
}
.article {
  max-width: 800px;
  padding: 42px 28px 70px;
  margin: auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}
.article-header {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}
.article-header .eyebrow {
  margin: 32px 0 18px;
  color: #61508a;
}
.article h1 {
  font-size: clamp(34px, 5vw, 52px);
}
.article-description {
  font-size: 20px;
  color: var(--muted);
}
.article-meta {
  font-size: 13px;
  color: var(--muted);
}
.article-meta span {
  padding: 0 6px;
}
.prose {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.prose h2,
.prose h3 {
  font-family: ui-rounded, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  margin: 1.6em 0 0.6em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li {
  margin: 0.5em 0;
}
.prose blockquote {
  border-left: 3px solid #7053c1;
  padding-left: 20px;
  margin: 28px 0;
  color: var(--muted);
}
.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}
.prose pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 16px;
  background: var(--lavender);
  font-size: 15px;
}
.prose table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}
.prose th,
.prose td {
  border: 1px solid var(--line);
  padding: 8px;
}
.article > .back-link {
  margin-top: 32px;
}
.empty-state {
  padding: 32px;
  border: 1px dashed var(--line);
  border-radius: 16px;
}
@media (max-width: 900px) {
  .moon {
    right: -50px;
    top: 20px;
    width: 110px;
    height: 110px;
    opacity: 0.15;
  }
  .newsletter-callout {
    margin-left: 28px;
    margin-right: 28px;
    gap: 28px;
  }
}
@media (max-width: 600px) {
  .header-inner {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .header-inner nav {
    width: 100%;
    gap: 24px;
  }
  .app-link {
    margin-left: auto;
    padding: 0;
    border: 0;
  }
  .hero-inner {
    padding: 54px 20px 60px;
  }
  .hero-description {
    font-size: 17px;
  }
  .archive {
    padding: 36px 20px 40px;
  }
  .section-heading {
    gap: 4px;
    margin-bottom: 20px;
  }
  h2 {
    font-size: 23px;
  }
  .story-grid {
    grid-template-columns: 1fr;
  }
  .story-card {
    padding: 24px;
  }
  .story-card h3 {
    font-size: 25px;
  }
  .newsletter-callout {
    margin: 0 20px 40px;
    padding: 26px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .newsletter-callout h2 {
    font-size: 27px;
  }
  .article {
    padding: 24px 20px 42px;
  }
  .article-description {
    font-size: 18px;
  }
  .prose {
    font-size: 19px;
  }
  .site-footer {
    padding: 32px 20px;
  }
}
@media print {
  .site-header,
  .site-footer,
  .newsletter-callout,
  .back-link {
    display: none;
  }
  .article {
    padding: 0;
    max-width: none;
  }
}
