/* Editorial Calendar Desk — "Esikülg": the site as the front page of a broadsheet.
   Newsprint, ink, the editor's red pencil and a yellow highlighter; Newsreader + Libre Franklin. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/newsreader-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/newsreader-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/newsreader-latin-500-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("/assets/fonts/newsreader-latin-ext-500-italic.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Libre Franklin"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/libre-franklin-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --paper: #f7f1ee;
  --card: #ffffff;
  --sunk: #efe5e0;
  --ink: #231a17;
  --soft: #5c4f4a;
  --line: #e3d6cf;
  --red: #b4232a;
  --red-dark: #8c1a20;
  --marker: #f2c94c;
  --marker-tint: #fbf0c8;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.1; margin: 0; overflow-wrap: anywhere; hyphens: auto; }
p { margin: 0; }
mark { background: linear-gradient(transparent 55%, var(--marker) 55%); color: inherit; padding: 0 2px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Masthead ---------- */
.masthead { padding-top: 10px; }
.strip { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding: 6px 0 10px; border-bottom: 1px solid var(--ink); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.strip-label { color: var(--soft); font-weight: 600; }
.nav { list-style: none; display: flex; gap: 4px 20px; flex-wrap: wrap; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; display: inline-block; padding: 6px 0; min-height: 32px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--red); box-shadow: inset 0 -3px 0 var(--red); }
.title-link { display: flex; align-items: center; justify-content: center; gap: 18px; text-decoration: none; color: var(--ink); padding: 22px 0 16px; }
.title-link img { width: 56px; height: 56px; flex: none; }
.title-name { font-family: var(--serif); font-weight: 700; font-size: clamp(34px, 6.4vw, 76px); line-height: 1; letter-spacing: -0.01em; overflow-wrap: anywhere; hyphens: auto; text-align: center; }
.title-small { padding: 16px 0 12px; }
.title-small .title-name { font-size: clamp(28px, 4.4vw, 46px); }
.title-small img { width: 40px; height: 40px; }
.rule-double { border-top: 5px solid var(--ink); border-bottom: 1.5px solid var(--ink); height: 9px; }
.edition { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 8px 0 10px; border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.edition span:first-child { color: var(--red-dark); }

/* ---------- Front page ---------- */
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 14px; }
.front { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 48px; padding-top: 44px; padding-bottom: 56px; }
.front-text { padding-right: 48px; border-right: 1px solid var(--ink); }
.front h1 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -0.015em; }
.front h1::after { content: ""; display: block; width: 120px; height: 7px; border-radius: 4px; background: var(--red); margin-top: 22px; }
.lead { font-size: 20px; line-height: 1.55; margin-top: 24px; max-width: 40em; }
.dropcap::first-letter { font-family: var(--serif); font-weight: 700; float: left; font-size: 4.1em; line-height: 0.82; padding: 6px 10px 0 0; color: var(--red-dark); }
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; font-weight: 600; font-size: 15px; }
.facts li { padding: 3px 12px; border: 1.5px solid var(--ink); border-radius: 3px; background: var(--card); }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.cta-note { color: var(--soft); font-size: 15px; max-width: 26em; }
.cta-center { justify-content: center; text-align: center; }
.play { display: inline-flex; flex-direction: column; justify-content: center; min-height: 58px; padding: 8px 22px; border-radius: 6px; background: var(--ink); color: #fff; text-decoration: none; line-height: 1.15; border: 2px solid var(--ink); }
.play:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }
.play-small { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.play-big { font-family: var(--serif); font-weight: 700; font-size: 22px; }
.play-soon { background: transparent; color: var(--ink); border-style: dashed; cursor: default; }
.play-soon:hover { background: transparent; color: var(--ink); border-color: var(--ink); }

.photo { margin: 0; }
.photo img { width: 100%; max-width: 360px; border: 4px solid var(--ink); background: var(--card); }
.photo figcaption { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--soft); font-size: 16px; margin-top: 10px; max-width: 360px; padding-top: 8px; border-top: 1px solid var(--line); }
.photo-lead { justify-self: center; }

/* ---------- Contents ---------- */
.section-title { font-size: clamp(28px, 3.4vw, 40px); padding-bottom: 12px; border-bottom: 5px solid var(--ink); }
.contents { padding-bottom: 40px; }
.toc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); border-bottom: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: flex; gap: 16px; align-items: baseline; padding: 16px 12px 16px 0; text-decoration: none; color: var(--ink); min-height: 48px; }
.toc a:hover .toc-title { color: var(--red); text-decoration: underline; }
.toc-page { font-family: var(--serif); font-weight: 700; font-size: 40px; line-height: 1; color: var(--red); min-width: 30px; }
.toc-text { display: flex; flex-direction: column; min-width: 0; }
.toc-rubric { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); }
.toc-title { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.2; overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Stories ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 32px 56px; align-items: start; padding-top: 44px; padding-bottom: 44px; background: linear-gradient(var(--ink), var(--ink)) center top / calc(100% - 48px) 1px no-repeat; }
.story + .story { background-image: linear-gradient(var(--line), var(--line)); }
.story-flip { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.story-flip .story-text { order: 2; }
.story-rubric { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 12px; }
.story-page { display: inline-grid; place-items: center; width: 34px; height: 34px; background: var(--marker); color: var(--ink); font-family: var(--serif); font-size: 19px; border-radius: 4px; letter-spacing: 0; }
.story h2 { font-size: clamp(30px, 3.6vw, 46px); margin-bottom: 18px; }
.story-text p { font-size: 18px; max-width: 34em; }
.story-text p:first-of-type::first-line { font-weight: 600; }
.points { list-style: none; margin: 22px 0 0; padding: 0; max-width: 34em; }
.points li { padding: 10px 0 10px 30px; border-top: 1px solid var(--line); position: relative; }
.points li::before { content: ""; position: absolute; left: 4px; top: 19px; width: 14px; height: 3px; border-radius: 2px; background: var(--red); }

/* ---------- Steps, box, closing ---------- */
.steps-block { padding-top: 40px; padding-bottom: 48px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { padding: 24px 24px 8px; border-left: 1px solid var(--ink); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.step-n { font-family: var(--serif); font-weight: 700; font-size: 54px; line-height: 1; color: var(--red); }
.steps h3 { font-size: 24px; margin: 8px 0 8px; }
.steps p { color: var(--soft); }
.steps-list { grid-template-columns: 1fr; margin-top: 8px; }
.steps-list li { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 56px 1fr; column-gap: 12px; }
.steps-list .step-n { grid-row: span 2; font-size: 44px; }
.steps-list h3 { margin: 0; }

.boxed { padding-bottom: 48px; }
.box { border: 2px solid var(--ink); background: var(--card); padding: 28px 32px; box-shadow: 8px 8px 0 var(--marker-tint); }
.box h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.box p { max-width: 46em; }
.box p + p { margin-top: 12px; }

.closing { text-align: center; padding-top: 32px; padding-bottom: 64px; background: linear-gradient(var(--ink), var(--ink)) center top / calc(100% - 48px) 1px no-repeat; }
.closing h2 { font-size: clamp(30px, 4vw, 52px); margin: 18px 0 14px; }
.closing > p { color: var(--soft); max-width: 36em; margin: 0 auto; }

/* ---------- Text pages ---------- */
.page { padding: 40px 0 64px; }
.page h1 { font-size: clamp(30px, 7vw, 60px); }
.page h1::after { content: ""; display: block; width: 96px; height: 6px; border-radius: 3px; background: var(--red); margin-top: 18px; }
.page h2 { font-size: 26px; margin: 38px 0 12px; padding-top: 14px; border-top: 1px solid var(--ink); }
.page p + p { margin-top: 12px; }
.legal p { max-width: 42em; }
.small { font-size: 14px; color: var(--soft); margin-top: 24px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-weight: 700; font-size: 20px; padding: 14px 32px 14px 0; position: relative; list-style: none; min-height: 48px; overflow-wrap: anywhere; hyphens: auto; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 26px; color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--soft); max-width: 42em; }

/* ---------- Footer ---------- */
.foot { padding: 0 0 32px; }
.foot-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px 32px; padding-top: 20px; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand img { border-radius: 8px; flex: none; }
.foot-name { font-family: var(--serif); font-weight: 700; font-size: 20px; }
.foot-small { font-size: 14px; color: var(--soft); }
.foot-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; font-size: 15px; }
.foot-links a { display: inline-block; padding: 6px 0; overflow-wrap: anywhere; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .front { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-top: 30px; }
  .front-text { padding-right: 0; border-right: 0; }
  .story, .story-flip { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .story-flip .story-text { order: 0; }
  .story .photo { justify-self: center; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps li, .steps li:first-child { border-left: 0; padding: 18px 0; border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .story, .closing { background-size: calc(100% - 32px) 1px; }
  .strip { font-size: 12px; }
  .strip-label { display: none; }
  .title-link { gap: 12px; padding: 18px 0 12px; }
  .title-link img { width: 40px; height: 40px; }
  .lead { font-size: 18px; }
  .dropcap::first-letter { font-size: 3.4em; }
  .box { padding: 22px 18px; box-shadow: 5px 5px 0 var(--marker-tint); }
  .edition { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
html { scroll-behavior: smooth; }
