@font-face {
  font-family: "Jockey One";
  src: url("/fonts/JockeyOne-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: block;
}

:root {
  color-scheme: dark;
  --bg: #07090d;
  --ink: #eee9dd;
  --muted: #9fa5ad;
  --line: rgba(238, 233, 221, .17);
  --acid: #bef103;
  --cyan: #06edff;
}

* { box-sizing: border-box; }
html { background: var(--bg); color: var(--ink); font-family: "Geist", sans-serif; scroll-behavior: smooth; }
body { margin: 0; background: radial-gradient(circle at 72% 3%, #0b2226 0, transparent 34rem), var(--bg); }
a { color: inherit; }

.site-header {
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.wordmark, .brand {
  font-family: "Jockey One", sans-serif;
  font-weight: 400;
  font-synthesis: none;
}
.brand { font-size: 46px; line-height: 1; letter-spacing: -.035em; text-decoration: none; }
.site-header nav { display: flex; gap: clamp(18px, 3vw, 44px); }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: 13px; }
.site-header nav a:hover, .site-header nav a.active { color: var(--ink); }
.contact-link { justify-self: end; text-decoration: none; font-size: 13px; }
.contact-link:hover { color: var(--acid); }

.journal-hero {
  min-height: 580px;
  padding: clamp(90px, 14vw, 180px) clamp(20px, 7vw, 110px) 55px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.eyebrow { color: var(--cyan); margin: 0 0 30px; font-size: 11px; text-transform: uppercase; letter-spacing: .17em; }
.eyebrow span { width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; display: inline-block; background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.journal-hero h1 { max-width: 1200px; margin: 0; font: 400 clamp(64px, 11vw, 165px)/.75 "Cormorant Garamond", serif; letter-spacing: -.065em; }
.journal-hero h1 em { color: var(--acid); font-style: normal; }
.hero-bottom { margin-top: 75px; display: grid; grid-template-columns: minmax(280px, 570px) 1fr; gap: 40px; align-items: end; }
.hero-bottom p { margin: 0; color: #b4bcb9; font-size: clamp(17px, 2vw, 23px); line-height: 1.55; }
.issue { justify-self: end; color: var(--muted); font-size: 10px; letter-spacing: .2em; }

.journal-section { padding: 0 clamp(20px, 5vw, 76px) clamp(80px, 12vw, 160px); }
.section-bar { height: 100px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.section-bar p, .section-bar span { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .15em; }
.section-bar span { color: var(--muted); }
.post-grid { display: grid; grid-template-columns: repeat(12, 1fr); }
.post-card { grid-column: span 6; position: relative; padding: clamp(28px, 4vw, 58px); min-height: 560px; border-bottom: 1px solid var(--line); text-decoration: none; overflow: hidden; }
.post-card:nth-child(odd) { border-right: 1px solid var(--line); }
.post-card:hover { background: #101413; }
.post-card:hover .post-arrow { transform: translate(5px, -5px); color: var(--acid); }
.post-image { height: 270px; margin: calc(clamp(28px, 4vw, 58px) * -1) calc(clamp(28px, 4vw, 58px) * -1) 34px; overflow: hidden; background: #141918; }
.post-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.78); transition: transform .45s ease, filter .45s ease; }
.post-card:hover .post-image img { transform: scale(1.02); filter: saturate(1); }
.post-index { color: var(--cyan); font-size: 10px; letter-spacing: .14em; }
.post-card h2 { max-width: 640px; margin: 18px 0; font: 400 clamp(38px, 5vw, 70px)/.88 "Cormorant Garamond", serif; letter-spacing: -.05em; }
.post-card > p { max-width: 600px; margin: 0; color: var(--muted); line-height: 1.6; }
.post-footer { position: absolute; left: clamp(28px, 4vw, 58px); right: clamp(28px, 4vw, 58px); bottom: 34px; display: flex; justify-content: space-between; align-items: end; gap: 15px; }
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.post-tags span { border: 1px solid var(--line); padding: 6px 8px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.post-arrow { font-size: 27px; transition: transform .2s ease; }
.loading-card, .empty-card { grid-column: 1 / -1; min-height: 330px; display: grid; place-items: center; color: var(--muted); border-bottom: 1px solid var(--line); text-align: center; }
.empty-card div { max-width: 520px; padding: 30px; }
.empty-card h2 { color: var(--ink); font: 400 clamp(38px, 6vw, 70px)/.9 "Cormorant Garamond", serif; letter-spacing: -.05em; margin: 0 0 16px; }
.empty-card p { line-height: 1.6; }

.story-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 65px 0 140px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 12px; text-transform: uppercase; letter-spacing: .11em; }
.back-link:hover { color: var(--acid); }
.story-loading { min-height: 55vh; display: grid; place-items: center; color: var(--muted); }
.story-header { padding: clamp(80px, 12vw, 150px) 0 70px; }
.story-header h1 { max-width: 1050px; margin: 0; font: 400 clamp(60px, 10vw, 135px)/.78 "Cormorant Garamond", serif; letter-spacing: -.065em; }
.story-excerpt { max-width: 760px; margin: 40px 0; color: #b8c1be; font-size: clamp(20px, 2.5vw, 30px); line-height: 1.5; }
.story-meta { border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; gap: 25px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .14em; }
.story-meta > div { display: flex; flex-wrap: wrap; gap: 15px; }
.story-cover { margin: 0 0 90px; }
.story-cover img { width: 100%; max-height: 720px; object-fit: cover; }
.story-body { max-width: 760px; margin: 0 auto; color: #d4dad7; font-size: clamp(18px, 2vw, 21px); line-height: 1.8; }
.story-body p { margin: 0 0 1.55em; white-space: pre-line; }
.story-body h2 { color: var(--ink); margin: 2.3em 0 .8em; font-size: clamp(29px, 4vw, 45px); line-height: 1.05; letter-spacing: -.04em; font-weight: 500; }
.story-body h1 { color: var(--ink); margin: 1.7em 0 .7em; font-size: clamp(36px, 5vw, 58px); line-height: 1; letter-spacing: -.045em; font-weight: 500; }
.story-body h3 { color: var(--ink); margin: 2em 0 .75em; font-size: 27px; font-weight: 500; }
.story-body a { color: var(--acid); text-underline-offset: 4px; }
.story-body blockquote { margin: 2.2em 0; padding: 8px 0 8px 25px; border-left: 2px solid var(--acid); color: #b8c1be; font: 400 clamp(22px, 3vw, 31px)/1.45 "Geist", sans-serif; }
.story-body li { margin-bottom: .55em; }
.story-body hr { margin: 3em 0; border: 0; border-top: 1px solid var(--line); }
.story-body pre { overflow-x: auto; margin: 2em 0; padding: 22px; border: 1px solid var(--line); background: #050707; }
.story-body code { color: var(--acid); font-family: ui-monospace, monospace; font-size: .88em; }
.story-body figure { margin: 2.5em 0; }
.story-body figure img { width: 100%; }
.story-body figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.story-video { display: block; width: min(100%, 900px); aspect-ratio: 16 / 9; margin: 0 auto 90px; border: 0; }
.story-links { max-width: 760px; margin: -45px auto 70px; display: flex; flex-wrap: wrap; gap: 10px; }
.story-links:empty { display: none; }
.story-links a { padding: 10px 13px; border: 1px solid var(--line); color: var(--muted); text-decoration: none; font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.story-links a:hover { color: var(--bg); border-color: var(--acid); background: var(--acid); }
.story-end { max-width: 760px; margin: 100px auto 0; padding-top: 25px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.story-end a { color: var(--ink); text-decoration: none; }
.story-error { min-height: 55vh; display: grid; place-items: center; text-align: center; }
.story-error h1 { font-size: clamp(40px, 7vw, 80px); letter-spacing: -.06em; margin: 0 0 15px; }
.story-error p { color: var(--muted); }

body > footer { min-height: 150px; padding: 35px clamp(20px, 5vw, 76px); border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
body > footer p, body > footer span { color: var(--muted); font-size: 11px; }
body > footer span { justify-self: end; }

@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr 1fr; }
  .site-header nav { display: none; }
  .hero-bottom { grid-template-columns: 1fr; }
  .issue { justify-self: start; }
  .post-card { grid-column: 1 / -1; border-right: 0 !important; min-height: 530px; }
  .story-meta { flex-direction: column; }
  body > footer { grid-template-columns: 1fr; gap: 12px; }
  body > footer span { justify-self: start; }
}
