:root {
  --ink: #0b1f24;
  --ink-soft: #16343c;
  --foam: #e8f3f1;
  --mist: #9fc4bd;
  --signal: #1f8a70;
  --paper: rgba(232, 243, 241, 0.92);
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--foam);
  background: var(--ink);
  line-height: 1.6;
  position: relative;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(31, 138, 112, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 90% 10%, rgba(22, 52, 60, 0.9), transparent 50%),
    linear-gradient(165deg, #071418 0%, #0b1f24 40%, #123038 100%);
}

.atmosphere::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.site-header,
.site-main,
.site-footer {
  width: min(720px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 2rem 0 0.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--foam);
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--foam);
}

.site-nav a[aria-current="page"] {
  border-bottom: 1px solid rgba(126, 217, 192, 0.7);
  padding-bottom: 0.1rem;
}

.tagline {
  margin: 0;
  width: 100%;
  color: var(--mist);
  font-size: 0.95rem;
}

.site-main {
  padding: 1.5rem 0 4rem;
}

.site-footer {
  padding: 0 0 2.5rem;
  color: var(--mist);
  font-size: 0.85rem;
}

.site-footer a {
  color: var(--mist);
}

.legal-page h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
  margin: 0 0 1.25rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  margin: 1.75rem 0 0.75rem;
}

.legal-page p {
  margin: 0 0 1.1rem;
  color: rgba(232, 243, 241, 0.92);
  max-width: 40rem;
}

.legal-page a {
  color: #7ed9c0;
}

.legal-page code {
  font-size: 0.92em;
  color: var(--mist);
}

.hero {
  margin-bottom: 2.75rem;
}

.hero-compact {
  margin-bottom: 1.75rem;
}

.section-heading {
  margin: 0 0 0.5rem;
}

.section-heading h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  margin: 0 0 0.25rem;
  color: var(--foam);
}

.section-lede {
  margin: 0 0 0.75rem;
  color: var(--mist);
  font-size: 0.95rem;
}

.section-lede a {
  color: #7ed9c0;
  text-decoration: none;
}

.story-feed-section {
  margin-bottom: 2.75rem;
}

.story-feed {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0.15rem;
  padding: 0.25rem 0.15rem 1rem;
  margin-inline: -0.15rem;
  -webkit-overflow-scrolling: touch;
}

.story-feed:focus-visible {
  outline: 2px solid rgba(126, 217, 192, 0.7);
  outline-offset: 4px;
}

.story-feed-card {
  flex: 0 0 min(18.5rem, 82vw);
  scroll-snap-align: start;
  padding: 1.15rem 1.2rem 1.25rem;
  border: 1px solid rgba(159, 196, 189, 0.28);
  border-radius: 0.85rem;
  background: rgba(11, 31, 36, 0.45);
  min-height: 11rem;
}

.story-feed-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.story-feed-card h3 a {
  color: var(--foam);
  text-decoration: none;
}

.story-feed-card h3 a:hover {
  color: #b8ebe0;
}

.story-feed-card time {
  display: block;
  color: var(--mist);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.history-segment {
  margin-bottom: 2.75rem;
}

.history-row h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}

.history-row h3 a {
  color: var(--foam);
  text-decoration: none;
}

.history-row h3 a:hover {
  color: #b8ebe0;
}

.category-badge {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7ed9c0;
}

.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin: 0 0 2rem;
}

.category-filters a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-bottom: 1px solid transparent;
  padding-bottom: 0.1rem;
}

.category-filters a:hover,
.category-filters a.is-active {
  color: var(--foam);
  border-bottom-color: rgba(126, 217, 192, 0.7);
}

.brand-hero {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 8vw, 4.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  margin: 0 0 1rem;
  color: var(--foam);
}

.lede {
  margin: 0;
  max-width: 36rem;
  font-size: 1.15rem;
  color: var(--mist);
}

.article-row {
  padding: 1.5rem 0;
  border-top: 1px solid rgba(159, 196, 189, 0.25);
}

.article-row h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.article-row a {
  color: var(--foam);
  text-decoration: none;
}

.article-row a:hover {
  color: #b8ebe0;
}

.article-row time,
.article-detail time {
  display: block;
  color: var(--mist);
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.excerpt {
  margin: 0;
  color: rgba(232, 243, 241, 0.82);
}

.empty {
  color: var(--mist);
}

.article-detail .eyebrow {
  margin: 0 0 1rem;
}

.article-detail .eyebrow a {
  color: var(--mist);
  text-decoration: none;
}

.article-detail h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.article-body {
  margin-top: 1.75rem;
  font-size: 1.08rem;
  color: rgba(232, 243, 241, 0.92);
}

.article-body p {
  margin: 0 0 1.1rem;
}

.article-body a {
  color: #7ed9c0;
}

.newsletter {
  margin: 2.75rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(159, 196, 189, 0.25);
}

.newsletter-form {
  display: grid;
  gap: 1rem;
  max-width: 32rem;
}

.newsletter-field {
  display: grid;
  gap: 0.35rem;
}

.newsletter-field span,
.newsletter-form legend {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--foam);
}

.newsletter-form fieldset {
  border: 1px solid rgba(159, 196, 189, 0.28);
  border-radius: 0.75rem;
  margin: 0;
  padding: 0.75rem 1rem 1rem;
  display: grid;
  gap: 0.45rem;
}

.newsletter-form label {
  color: rgba(232, 243, 241, 0.9);
  font-size: 0.95rem;
}

.newsletter-form input[type="email"] {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.45rem;
  border: 1px solid rgba(159, 196, 189, 0.4);
  background: rgba(11, 31, 36, 0.65);
  color: var(--foam);
  font: inherit;
}

.newsletter-form button {
  justify-self: start;
  padding: 0.55rem 1.1rem;
  border: 0;
  border-radius: 0.45rem;
  background: var(--signal);
  color: var(--foam);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.newsletter-form button:hover {
  filter: brightness(1.08);
}

.ad-slot {
  display: block;
  width: 100%;
  margin: 1.75rem 0;
  min-height: 90px;
  overflow: hidden;
}

.ad-slot .adsbygoogle {
  display: block;
}

@media (max-width: 600px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 1.5rem, 720px);
  }
}
