@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&display=swap');

:root {
  --paper: #f7f3e9;
  --paper-2: #fffdf7;
  --ink: #1d1b19;
  --muted: #69625b;
  --tomato: #df4b36;
  --cobalt: #1f4fa3;
  --chartreuse: #cfdf42;
  --rose: #ef9ea6;
  --thread: #d5ccbb;
  --max: 1240px;
  --reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  line-height: 1.68;
  letter-spacing: 0;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--tomato); }
button, input { font: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 50; padding: .7rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 243, 233, .96);
  border-bottom: 1px solid var(--ink);
}
.nav-shell { max-width: var(--max); margin: 0 auto; min-height: 78px; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-family: "Fraunces", serif; font-size: 28px; font-weight: 700; white-space: nowrap; }
.brand-mark { width: 23px; height: 23px; background: var(--tomato); border: 2px solid var(--ink); transform: rotate(8deg); box-shadow: 5px 5px 0 var(--chartreuse); }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { position: relative; text-decoration: none; font-size: 14px; font-weight: 700; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 3px; background: var(--tomato); transition: right .2s ease; }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { right: 0; }
.menu-toggle { display: none; border: 1px solid var(--ink); background: transparent; padding: 8px 12px; cursor: pointer; }

.masthead { border-bottom: 1px solid var(--ink); overflow: hidden; }
.masthead-inner { max-width: var(--max); margin: 0 auto; padding: 58px 28px 28px; }
.masthead-kicker { margin: 0 0 5px; color: var(--tomato); font-size: 14px; font-weight: 700; text-transform: uppercase; }
.masthead-name { margin: 0; font-family: "Fraunces", serif; font-size: 108px; line-height: .86; letter-spacing: 0; }
.masthead-line { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-top: 28px; padding-top: 17px; border-top: 1px dashed var(--ink); }
.masthead-line p { max-width: 660px; margin: 0; font-size: 19px; }
.issue { min-width: 180px; text-align: right; font-size: 13px; font-weight: 700; text-transform: uppercase; }

.home-lead { max-width: var(--max); margin: 0 auto; padding: 28px; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr); gap: 28px; }
.lead-visual { position: relative; min-height: 630px; overflow: hidden; border: 1px solid var(--ink); background: var(--rose); }
.lead-visual img { width: 100%; height: 100%; object-fit: cover; }
.lead-stamp { position: absolute; right: 18px; bottom: 18px; width: 122px; height: 122px; border-radius: 50%; border: 2px solid var(--ink); background: var(--chartreuse); display: grid; place-items: center; text-align: center; font-size: 12px; font-weight: 700; text-transform: uppercase; transform: rotate(-7deg); }
.lead-copy { display: flex; flex-direction: column; justify-content: space-between; border-top: 8px solid var(--cobalt); padding-top: 20px; }
.eyebrow { margin: 0 0 12px; color: var(--cobalt); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.lead-copy h1, .page-hero h1, .article-head h1 { margin: 0; font-family: "Fraunces", serif; font-size: 62px; line-height: .98; letter-spacing: 0; }
.lead-copy .dek { margin: 24px 0; font-size: 20px; }
.text-link { display: inline-flex; align-items: center; width: fit-content; padding-bottom: 5px; border-bottom: 3px solid var(--tomato); text-decoration: none; font-weight: 700; }
.lead-note { margin-top: 30px; padding: 18px 0; border-top: 1px dashed var(--ink); border-bottom: 1px dashed var(--ink); font-size: 14px; }

.band { border-top: 1px solid var(--ink); }
.band-dark { background: var(--ink); color: var(--paper-2); }
.band-blue { background: var(--cobalt); color: white; }
.section { max-width: var(--max); margin: 0 auto; padding: 78px 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; }
.section-head h2 { margin: 0; font-family: "Fraunces", serif; font-size: 46px; line-height: 1; }
.section-head p { max-width: 460px; margin: 0; color: var(--muted); }
.band-dark .section-head p, .band-blue .section-head p { color: #eee8dc; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.story-card { min-width: 0; border: 1px solid currentColor; background: var(--paper-2); color: var(--ink); }
.story-card a { text-decoration: none; }
.story-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 1px solid var(--ink); }
.story-card-body { padding: 20px; }
.story-card .type { color: var(--tomato); font-size: 12px; font-weight: 700; text-transform: uppercase; }
.story-card h3 { margin: 8px 0 10px; font-family: "Fraunces", serif; font-size: 29px; line-height: 1.08; }
.story-card p { margin: 0; color: var(--muted); font-size: 15px; }
.story-card:hover { transform: translateY(-3px); box-shadow: 7px 7px 0 var(--chartreuse); }
.story-card { transition: transform .2s ease, box-shadow .2s ease; }

.studio-strip { display: grid; grid-template-columns: 1.1fr .9fr; min-height: 580px; }
.studio-strip img { width: 100%; height: 100%; object-fit: cover; }
.studio-copy { padding: 70px; display: flex; flex-direction: column; justify-content: center; background: var(--tomato); color: white; }
.studio-copy h2 { margin: 0 0 24px; font-family: "Fraunces", serif; font-size: 54px; line-height: 1; }
.studio-copy p { max-width: 580px; }

.page-hero { max-width: var(--max); margin: 0 auto; padding: 82px 28px 55px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(320px, 1.1fr); gap: 58px; align-items: end; }
.page-hero h1 { font-size: 76px; }
.page-hero .intro { margin: 24px 0 0; max-width: 650px; font-size: 21px; }
.page-hero figure { margin: 0; position: relative; }
.page-hero figure::before { content: ""; position: absolute; left: -16px; top: -16px; width: 70%; height: 58%; background: var(--chartreuse); z-index: -1; }
.page-hero img { width: 100%; max-height: 600px; object-fit: cover; border: 1px solid var(--ink); }

.journal-filter { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.journal-filter button { border: 1px solid var(--ink); background: transparent; padding: 8px 12px; cursor: pointer; }
.journal-filter button[aria-pressed="true"], .journal-filter button:hover { background: var(--ink); color: white; }
.story-card[hidden] { display: none; }

.article-head { max-width: 1040px; margin: 0 auto; padding: 88px 28px 44px; }
.article-head h1 { max-width: 900px; font-size: 76px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 20px 0 0; padding-top: 17px; border-top: 1px dashed var(--ink); color: var(--muted); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.article-hero { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.article-hero img { width: 100%; max-height: 780px; object-fit: cover; border: 1px solid var(--ink); }
.article-layout { max-width: 1120px; margin: 0 auto; padding: 58px 28px 90px; display: grid; grid-template-columns: 180px minmax(0, var(--reading)); gap: 64px; }
.article-aside { font-size: 13px; }
.article-aside-inner { position: sticky; top: 110px; border-top: 5px solid var(--tomato); padding-top: 14px; }
.article-aside a { display: block; margin: 8px 0; }
.prose { min-width: 0; }
.prose > p:first-child { font-size: 23px; line-height: 1.5; }
.prose h2 { margin: 2.5rem 0 .8rem; font-family: "Fraunces", serif; font-size: 38px; line-height: 1.08; }
.prose h3 { margin: 2rem 0 .5rem; font-size: 21px; }
.prose p, .prose li { color: #302d29; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin: .55rem 0; }
.prose blockquote { margin: 2.2rem 0; padding: 24px 30px; border-left: 8px solid var(--chartreuse); background: var(--paper-2); font-family: "Fraunces", serif; font-size: 27px; line-height: 1.35; }
.prose figure { margin: 2.5rem 0; }
.prose figure img { width: 100%; border: 1px solid var(--ink); }
.prose figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
.prose .tip { margin: 2rem 0; padding: 22px; background: var(--cobalt); color: white; }
.prose .tip p { color: white; }
.prose .steps { counter-reset: step; list-style: none; padding: 0; }
.prose .steps li { position: relative; min-height: 50px; padding: 0 0 20px 58px; border-bottom: 1px dashed var(--thread); }
.prose .steps li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; background: var(--chartreuse); border: 1px solid var(--ink); font-weight: 700; }
.back-journal { display: inline-block; margin-top: 28px; font-weight: 700; }

.about-grid { max-width: var(--max); margin: 0 auto; padding: 50px 28px 90px; display: grid; grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 65px; }
.portrait-frame { align-self: start; position: sticky; top: 110px; }
.portrait-frame img { width: 100%; max-height: 620px; object-fit: cover; border: 1px solid var(--ink); }
.favourites { margin-top: 28px; padding: 20px; background: var(--chartreuse); border: 1px solid var(--ink); }
.favourites h2 { margin-top: 0; font-family: "Fraunces", serif; }

.footer { border-top: 1px solid var(--ink); background: var(--paper-2); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 48px 28px 28px; }
.footer-top { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 44px; }
.footer h2 { margin: 0; font-family: "Fraunces", serif; font-size: 37px; }
.footer h3 { margin: 0 0 12px; font-size: 13px; text-transform: uppercase; }
.footer a { display: block; margin: 6px 0; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 42px; padding-top: 18px; border-top: 1px dashed var(--ink); color: var(--muted); font-size: 12px; }

.not-found { min-height: 65vh; max-width: 900px; margin: 0 auto; padding: 120px 28px; }
.not-found .number { color: var(--tomato); font-family: "Fraunces", serif; font-size: 140px; line-height: .8; }
.not-found h1 { font-family: "Fraunces", serif; font-size: 55px; }

@media (max-width: 960px) {
  .masthead-name { font-size: 84px; }
  .home-lead { grid-template-columns: 1fr; }
  .lead-visual { min-height: 540px; }
  .lead-copy { min-height: 430px; }
  .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .studio-strip { grid-template-columns: 1fr; }
  .studio-strip img { max-height: 620px; }
  .page-hero { grid-template-columns: 1fr; }
  .page-hero figure { max-width: 700px; }
  .article-layout { grid-template-columns: 1fr; gap: 26px; }
  .article-aside-inner { position: static; display: flex; flex-wrap: wrap; gap: 0 16px; border-top-width: 3px; }
  .article-aside-inner p { width: 100%; margin: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .portrait-frame { position: static; max-width: 620px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav-shell { min-height: 65px; padding: 0 18px; }
  .brand { font-size: 24px; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 65px; padding: 18px; background: var(--paper); border-bottom: 1px solid var(--ink); }
  .site-nav.is-open { display: grid; gap: 18px; }
  .site-nav a { padding: 8px 0; }
  .masthead-inner { padding: 38px 18px 22px; }
  .masthead-name { font-size: 57px; }
  .masthead-line { align-items: start; flex-direction: column; }
  .issue { min-width: 0; text-align: left; }
  .home-lead { padding: 18px; gap: 22px; }
  .lead-visual { min-height: 430px; }
  .lead-stamp { width: 96px; height: 96px; right: 12px; bottom: 12px; font-size: 10px; }
  .lead-copy { min-height: 0; padding-bottom: 22px; }
  .lead-copy h1 { font-size: 46px; }
  .lead-copy .dek { font-size: 18px; }
  .section { padding: 58px 18px; }
  .section-head { align-items: start; flex-direction: column; }
  .section-head h2 { font-size: 39px; }
  .article-grid { grid-template-columns: 1fr; }
  .studio-copy { padding: 54px 18px; }
  .studio-copy h2 { font-size: 44px; }
  .page-hero { padding: 58px 18px 42px; gap: 36px; }
  .page-hero h1 { font-size: 51px; }
  .page-hero .intro { font-size: 18px; }
  .page-hero figure::before { left: -8px; top: -8px; }
  .article-head { padding: 58px 18px 30px; }
  .article-head h1 { font-size: 48px; overflow-wrap: anywhere; }
  .article-hero { padding: 0; }
  .article-hero img { border-left: 0; border-right: 0; max-height: 520px; }
  .article-layout { padding: 36px 18px 65px; }
  .prose > p:first-child { font-size: 20px; }
  .prose h2 { font-size: 32px; }
  .prose blockquote { margin-left: 0; margin-right: 0; padding: 20px; font-size: 23px; }
  .about-grid { padding: 30px 18px 65px; gap: 38px; }
  .footer-inner { padding: 42px 18px 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; }
  .not-found { padding: 90px 18px; }
  .not-found .number { font-size: 100px; }
  .not-found h1 { font-size: 43px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
