:root {
  --ink: #121110;
  --orange: #ff4b0a;
  --paper: #f3ecdf;
  --cream: #fffdf7;
  --muted: #746f67;
  --line: #d8d0c4;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.journal-topline {
  height: 8px;
  background: var(--orange);
}
.journal-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 88px;
  padding: 0 4vw;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.journal-logo {
  width: max-content;
  font-weight: 950;
  font-size: 1.7rem;
  text-decoration: none;
  letter-spacing: -0.07em;
}
.journal-logo small {
  display: block;
  font-size: 0.48rem;
  letter-spacing: 0.22em;
}
.journal-header strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.25rem;
}
.journal-nav {
  justify-self: end;
  display: flex;
  gap: 1.2rem;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.journal-hero {
  min-height: 48vh;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  border-bottom: 1px solid var(--line);
}
.journal-hero-copy {
  padding: clamp(3rem, 8vw, 8rem) 4vw;
  background: var(--ink);
  color: white;
}
.kicker {
  margin: 0 0 1.2rem;
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.journal-hero h1 {
  margin: 0;
  max-width: 11ch;
  font-family: var(--serif);
  font-size: clamp(3.4rem, 8vw, 8rem);
  font-weight: 500;
  line-height: 0.86;
  letter-spacing: -0.075em;
}
.journal-hero-note {
  padding: 4vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1.2rem;
}
.journal-hero-note span {
  color: var(--orange);
  font: italic 4rem/1 var(--serif);
}
.journal-hero-note p {
  max-width: 30ch;
  margin: 0;
  line-height: 1.7;
}

.journal-main {
  padding: clamp(3rem, 6vw, 6rem) 4vw 8rem;
}
.journal-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.8rem;
}
.journal-section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.8rem);
  letter-spacing: -0.05em;
}
.journal-section-head span { color: var(--muted); font-size: 0.75rem; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.story-card {
  grid-column: span 4;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.story-card:first-child { grid-column: span 8; }
.story-card:hover {
  position: relative;
  z-index: 1;
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(18, 17, 16, 0.15);
}
.story-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #d8d0c4;
}
.story-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.story-card:hover .story-image img { transform: scale(1.025); }
.story-image.empty {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--ink) 0 47%, var(--orange) 47% 53%, #282522 53%);
  color: white;
  font: italic 5rem/1 var(--serif);
}
.story-copy { padding: 1.5rem; display: flex; flex: 1; flex-direction: column; }
.story-meta { color: var(--orange); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.12em; text-transform: uppercase; }
.story-copy h3 { margin: 0.7rem 0; font: 500 clamp(1.6rem, 3vw, 3rem)/1 var(--serif); letter-spacing: -0.04em; }
.story-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.story-arrow { margin-top: auto; padding-top: 1.4rem; color: var(--orange); font-size: 1.6rem; }
.journal-state {
  min-height: 240px;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--cream);
  border: 1px solid var(--line);
  text-align: center;
  line-height: 1.7;
}

.article-shell { max-width: 1440px; margin: 0 auto; }
.article-back { display: inline-block; margin: 2rem 4vw 0; color: var(--orange); font-size: 0.78rem; font-weight: 900; text-decoration: none; }
.article-header {
  padding: clamp(3rem, 8vw, 8rem) 4vw clamp(2rem, 5vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.35fr);
  gap: 3rem;
  align-items: end;
}
.article-header h1 { margin: 0; font: 500 clamp(3rem, 8vw, 7.5rem)/0.9 var(--serif); letter-spacing: -0.065em; }
.article-intro { border-left: 4px solid var(--orange); padding-left: 1.5rem; }
.article-intro p { color: var(--muted); line-height: 1.7; }
.article-cover { margin: 0 4vw; max-height: 78vh; width: calc(100% - 8vw); object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; padding: clamp(3rem, 7vw, 7rem) 1.3rem 8rem; }
.article-body p, .article-body li { font: 1.15rem/1.9 var(--serif); }
.article-body h2 { margin: 3.2rem 0 1rem; font: 500 2.6rem/1.05 var(--serif); letter-spacing: -0.04em; }
.article-body h3 { margin: 2.4rem 0 1rem; font-size: 1.35rem; }
.article-body blockquote { margin: 3rem -6vw; padding: 1.5rem 5vw; border-left: 6px solid var(--orange); font: italic 1.8rem/1.35 var(--serif); }
.article-body a { color: var(--orange); }
.article-body code { padding: 0.1em 0.3em; background: #e3dbce; font-family: monospace; }
.article-body pre { max-width: 100%; overflow-x: auto; padding: 1rem; background: #e3dbce; }
.article-body pre code { padding: 0; background: transparent; }
.article-body table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.article-body th, .article-body td { padding: 0.65rem; border: 1px solid var(--line); text-align: left; }
.article-body img { max-width: 100%; height: auto; }
.story-inline-image { margin: 2.5rem -8vw; }
.story-inline-image img { width: 100%; }
.journal-footer { padding: 2rem 4vw; display: flex; justify-content: space-between; gap: 1rem; background: var(--ink); color: white; font-size: 0.75rem; }

@media (max-width: 900px) {
  .journal-header { grid-template-columns: 1fr auto; }
  .journal-header > strong { display: none; }
  .journal-hero, .article-header { grid-template-columns: 1fr; }
  .journal-hero-note { min-height: 260px; }
  .story-card, .story-card:first-child { grid-column: span 6; }
  .article-body blockquote, .story-inline-image { margin-left: 0; margin-right: 0; }
}
@media (max-width: 600px) {
  .journal-header { min-height: 74px; }
  .journal-nav a:first-child { display: none; }
  .story-card, .story-card:first-child { grid-column: span 12; min-height: 390px; }
  .journal-hero h1 { font-size: 3.7rem; }
  .article-header h1 { font-size: 3.4rem; }
  .journal-footer { flex-direction: column; }
}
