:root {
  --canvas: #e8e4d8;
  --ink: #101813;
  --forest: #0b2e1f;
  --moss: #53674e;
  --paper: #f7f3e8;
  --gold: #a68243;
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link {
  position: fixed;
  z-index: 20;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: white;
  background: var(--forest);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }

.home-header {
  position: absolute;
  z-index: 10;
  top: 0;
  right: 0;
  left: 0;
  height: 76px;
  padding: 0 clamp(2rem, 5vw, 5.5rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-top: 5px solid var(--ink);
}
.brand {
  display: block;
  width: max-content;
  text-decoration: none;
}
.brand-logo { display: block; width: auto; height: 54px; mix-blend-mode: multiply; }
.home-header nav { display: flex; gap: clamp(1.5rem, 4vw, 4rem); }
.home-header nav a {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.join-button {
  justify-self: end;
  min-width: 150px;
  padding: .78rem 1.1rem;
  color: var(--paper);
  background: var(--forest);
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.hero {
  position: relative;
  min-height: auto;
  padding-top: 76px;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas);
}
.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 61% 15%, rgba(255,255,255,.58), transparent 32%),
    linear-gradient(120deg, rgba(255,255,255,.22), transparent 44%);
}
.hero-illustration {
  position: relative;
  z-index: 1;
  left: -1%;
  display: block;
  width: 102%;
  max-width: none;
  height: auto;
  pointer-events: none;
  mix-blend-mode: multiply;
  filter: contrast(1.04) drop-shadow(0 24px 24px rgba(43,45,31,.08));
  animation: settle 1.3s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes settle {
  from { opacity: 0; transform: translateY(-24px) scale(1.025); }
  to { opacity: 1; transform: none; }
}

.hero-message {
  position: relative;
  z-index: 5;
  width: min(92vw, 560px);
  margin: clamp(2.5rem, 5vw, 4.5rem) auto clamp(3.5rem, 7vw, 6rem);
  padding: 1.25rem 1.5rem 1.4rem;
  text-align: center;
}
.eyebrow {
  margin: 0 0 1rem;
  color: var(--moss);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 0;
  font: 600 clamp(2rem, 3.2vw, 3.75rem)/.83 var(--serif);
  letter-spacing: -.045em;
}
.hero-copy {
  max-width: 310px;
  margin: 1.15rem auto 0;
  font-size: .8rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .home-header { height: 70px; padding: 0 1.25rem; grid-template-columns: 1fr auto; }
  .home-header nav { display: none; }
  .join-button { min-width: auto; padding: .75rem .9rem; }
  .hero { padding-top: 70px; }
  .hero-illustration { left: -5%; width: 110%; }
  .hero-message { width: min(88vw, 520px); }
  .hero h1 { font-size: 2.55rem; }
}

@media (max-width: 600px) {
  .home-header { border-top-width: 3px; }
  .brand-logo { height: 46px; }
  .join-button { font-size: .58rem; }
  .hero { min-height: auto; }
  .hero-illustration { left: -48%; width: 195%; }
  .hero-message { width: calc(100% - 2rem); margin-top: 3rem; margin-bottom: 4rem; }
  .hero h1 { font-size: 2.35rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-illustration { animation: none; }
}

/* Editorial journal */
.journal-board {
  padding: clamp(3.5rem, 6vw, 6.5rem) clamp(1.5rem, 3vw, 3.5rem) 7rem;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(220px, .52fr);
  gap: clamp(2rem, 3vw, 3.5rem);
  color: #22231f;
  background-color: #f7f4ed;
}
.journal-board-header {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: end;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #cbc7bd;
}
.journal-board-header p { margin: 0; color: #77766f; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.journal-board-header h2 { margin: 0; font: 600 clamp(2.3rem, 4vw, 4.2rem)/.85 var(--serif); letter-spacing: -.045em; }
.journal-board-header a { justify-self: end; font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.story-image-link { display: block; overflow: hidden; background: #d9d4ca; }
.story-image-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.story-image-link:hover img { transform: scale(1.025); }
.lead-story .story-image-link { aspect-ratio: 1.22 / 1; }
.lead-story .story-image-link img { object-position: center; }
.article-label { margin: 1rem 0 .4rem; color: #934a39; font-size: .64rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.lead-story h3, .grid-story h3, .headline-rail h3 { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: -.018em; }
.lead-story h3 { font-size: clamp(2.1rem, 3.5vw, 3.6rem); line-height: .97; }
.lead-story h3 a, .grid-story h3 a, .headline-rail h3 a { text-decoration: none; }
.article-deck { margin: .9rem 0; max-width: 52ch; color: #66665f; font-size: .78rem; line-height: 1.55; }
.article-byline { margin: 1.25rem 0 0; font-size: .62rem; font-weight: 600; }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.3rem 1.6rem; align-content: start; }
.grid-story .story-image-link { aspect-ratio: 1.42 / 1; }
.grid-story h3 { font-size: clamp(1.15rem, 1.5vw, 1.55rem); line-height: 1.06; }
.grid-story .article-deck { margin-top: .55rem; font-size: .69rem; }
.grid-story .article-byline { margin-top: .8rem; color: #5d5e58; font-size: .56rem; }
.headline-rail { align-self: stretch; border-top: 1px solid #cbc7bd; }
.headline-rail article { padding: 1.5rem 0 1.8rem; border-bottom: 1px solid #cbc7bd; }
.headline-rail time { display: block; margin-bottom: .9rem; color: #77766f; font-size: .58rem; }
.headline-rail h3 { font-size: 1.08rem; line-height: 1.08; }

@media (max-width: 1050px) {
  .journal-board { grid-template-columns: 1.05fr .95fr; }
  .headline-rail { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
  .headline-rail article { padding-right: 1.2rem; border-right: 1px solid #cbc7bd; }
  .headline-rail article + article { padding-left: 1.2rem; }
}

@media (max-width: 760px) {
  .journal-board { grid-template-columns: 1fr; padding-bottom: 4rem; }
  .journal-board-header { grid-template-columns: 1fr auto; gap: .7rem; }
  .journal-board-header p { grid-column: 1 / -1; }
  .journal-board-header h2 { font-size: 2.7rem; }
  .lead-story h3 { font-size: 2.5rem; }
  .headline-rail { grid-column: 1; grid-template-columns: 1fr 1fr; }
  .headline-rail article:nth-child(even) { border-right: 0; }
}

@media (max-width: 500px) {
  .story-grid, .headline-rail { grid-template-columns: 1fr; }
  .headline-rail article, .headline-rail article + article { padding-right: 0; padding-left: 0; border-right: 0; }
}

/* Footer */
.home-footer {
  position: relative;
  min-height: max(72svh, 680px);
  overflow: hidden;
  padding: clamp(4rem, 7vw, 7rem) clamp(1.5rem, 5vw, 5.5rem) 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, .72fr);
  gap: clamp(2.5rem, 6vw, 7rem);
  color: #e9eadf;
  background: #08251c;
}
.home-footer > * { position: relative; z-index: 1; }
.footer-kicker {
  margin: 0 0 1.1rem;
  color: #b79c68;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.footer-wordmark { display: block; width: auto; height: 76px; filter: invert(1); }
.footer-intro h2 { margin: 0; font: 500 clamp(3.6rem, 7vw, 7.2rem)/.82 var(--serif); letter-spacing: -.055em; }
.footer-intro > a {
  display: inline-flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 2.3rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid rgba(233,234,223,.52);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-decoration: none;
  text-transform: uppercase;
}
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-self: start; justify-self: end; width: min(100%, 420px); padding-top: .5rem; }
.footer-nav h3 { margin: 0 0 1.25rem; color: #b79c68; font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-nav a { display: block; width: max-content; margin: 0 0 .65rem; color: rgba(233,234,223,.72); font-size: .76rem; text-decoration: none; }
.footer-nav a:hover { color: white; }
.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(233,234,223,.16);
  color: rgba(233,234,223,.45);
  font-size: .6rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.footer-bottom p { margin: 0; }
.footer-bottom p:nth-child(2) { text-align: center; }
.footer-bottom a { justify-self: end; color: inherit; text-decoration: none; }

@media (max-width: 920px) {
  .home-footer { grid-template-columns: 1fr 1fr; }
  .footer-intro { grid-column: 1; }
  .footer-nav { justify-self: stretch; width: 100%; }
}

@media (max-width: 600px) {
  .home-footer { grid-template-columns: 1fr; }
  .footer-intro, .footer-bottom { grid-column: 1; }
  .footer-intro h2 { font-size: 4rem; }
  .footer-nav { grid-template-columns: 1fr 1fr; margin-top: 1rem; }
  .footer-bottom { grid-template-columns: 1fr auto; gap: 1rem; }
  .footer-bottom p:nth-child(2) { display: none; }
}
