/* sertyub.pro: split screen, sticky index */
:root {
  --paper: #F8F5EE;
  --ink: #1B1D2A;
  --ink-2: #4A4D5E;
  --line: #D9D3C4;
  --white: #FFFFFF;
  --cobalt: #2745B8;
  --saffron: #F2A81D;
  --rose: #D8456B;
  --forest: #1F6B4A;
  --display: "Syne", "Arial Black", system-ui, sans-serif;
  --text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gut: clamp(16px, 3.2vw, 52px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.05; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; border-radius: 2px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.mark { width: 28px; height: 28px; flex: none; display: block; }

.eyebrow {
  font: 600 12px/1.2 var(--text);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow a { text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------- mobile top bar (hidden on desktop split pages) ---------- */
.topbar {
  display: none;
  position: sticky; top: 0; z-index: 20;
  align-items: center; justify-content: space-between;
  padding: 10px 16px;
  background: var(--ink); color: var(--paper);
}
.topbar--always { display: flex; padding-inline: var(--gut); }
.topbar__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 19px/1 var(--display); }
.topbar__brand .mark rect:first-child { fill: #2B2E40; }
.topbar__menu {
  font: 600 14px/1 var(--text); text-decoration: none;
  padding: 9px 14px; border: 1.5px solid currentColor; border-radius: 999px;
}
.topbar__menu:hover { background: var(--paper); color: var(--ink); }

/* ---------- hero image ---------- */
.hero {
  position: relative; margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--ink);
}
.hero img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
}
.hero--panel { aspect-ratio: 3 / 2; width: 100%; }
.hero--side { aspect-ratio: 4 / 3; width: 100%; margin-bottom: 28px; }

/* =========================================================
   HOME: 40 / 60 split
   ========================================================= */
.split { display: grid; grid-template-columns: 40% 60%; align-items: start; }

.panel {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; flex-direction: column; gap: clamp(14px, 2.4vh, 28px);
  padding: clamp(22px, 4vh, 44px) var(--gut);
  border-right: 2px solid var(--ink);
  overflow-y: auto;
}
.panel__brand {
  display: inline-flex; align-items: center; gap: 14px; text-decoration: none;
  font: 800 clamp(34px, 3.6vw, 56px)/0.95 var(--display); letter-spacing: -0.03em;
}
.panel__brand .mark { width: clamp(34px, 3vw, 46px); height: auto; }
.panel__stand { margin-top: 10px; font-size: clamp(15px, 1.15vw, 18px); color: var(--ink-2); max-width: 32ch; }
.panel .hero--panel { width: auto; max-width: 100%; height: min(30vh, calc((40vw - 2 * var(--gut)) * 2 / 3)); align-self: flex-start; flex: none; }

.idx ol { border-top: 2px solid var(--ink); }
.idx__item { border-bottom: 1px solid var(--line); }
.idx__item a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px;
  padding: clamp(8px, 1.5vh, 14px) 0; text-decoration: none;
}
.idx__num {
  font: 800 clamp(24px, 2.3vw, 36px)/1 var(--display);
  padding-bottom: 6px; position: relative;
}
.idx__num::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 5px; width: 0;
  background: var(--c); transition: width .35s ease;
}
.idx__name { font: 600 clamp(16px, 1.3vw, 20px)/1.2 var(--text); }
.idx__count {
  font: 700 13px/1 var(--display); min-width: 26px; height: 26px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1.5px solid var(--ink);
}
.idx__item--cobalt { --c: var(--cobalt); }
.idx__item--saffron { --c: var(--saffron); }
.idx__item--rose { --c: var(--rose); }
.idx__item--forest { --c: var(--forest); }
.idx__item a:hover .idx__name { text-decoration: underline; text-underline-offset: 4px; }
.idx__item.is-on .idx__num::after { width: 100%; }
.idx__item.is-on .idx__count { background: var(--c); border-color: var(--c); color: var(--white); }
.idx__item--saffron.is-on .idx__count { color: var(--ink); }

.panel__links { margin-top: auto; display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); }
.panel__links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.panel__links a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- right column ---------- */
.flow { min-width: 0; }

.opener { padding: clamp(40px, 9vh, 110px) var(--gut) clamp(40px, 7vh, 80px); }
.opener h1 { margin-top: 18px; font-size: clamp(38px, 4.6vw, 76px); font-weight: 800; letter-spacing: -0.03em; max-width: 14ch; }
.opener__lede { margin-top: 22px; font-size: clamp(17px, 1.3vw, 20px); max-width: 52ch; color: var(--ink-2); }
.opener__stats { margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); max-width: 560px; }
.opener__stats div { padding: 14px 16px 0 0; }
.opener__stats div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.opener__stats dt { font-size: 13px; color: var(--ink-2); }
.opener__stats dd { margin: 4px 0 0; font: 800 clamp(34px, 3.4vw, 52px)/1 var(--display); }

.band {
  --fg: var(--paper); --sub: rgba(248,245,238,.82); --rule: rgba(248,245,238,.38);
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; flex-direction: column;
  padding: clamp(36px, 7vh, 80px) var(--gut);
  background: var(--bg); color: var(--fg);
  scroll-margin-top: 0;
}
.band--cobalt { --bg: var(--cobalt); --s1: var(--saffron); --s2: var(--rose); --s3: var(--paper); }
.band--saffron { --bg: var(--saffron); --fg: var(--ink); --sub: rgba(27,29,42,.82); --rule: rgba(27,29,42,.3); --s1: var(--ink); --s2: var(--cobalt); --s3: var(--paper); }
.band--rose { --bg: var(--rose); --fg: var(--ink); --sub: rgba(27,29,42,.86); --rule: rgba(27,29,42,.3); --s1: var(--saffron); --s2: var(--ink); --s3: var(--paper); }
.band--forest { --bg: var(--forest); --s1: var(--saffron); --s2: var(--paper); --s3: var(--rose); }

/* the split-panel motif, scaled up: one tall slab beside two stacked ones */
.band__shapes {
  position: absolute; right: var(--gut); top: clamp(36px, 7vh, 80px);
  width: clamp(120px, 15vw, 220px); aspect-ratio: 20 / 20;
  display: grid; grid-template-columns: 8fr 10fr; grid-template-rows: 1fr 1fr; gap: 8%;
  pointer-events: none;
}
.band__shapes i { display: block; border-radius: 6px; }
.band__shapes i:nth-child(1) { grid-row: 1 / 3; background: var(--s1); }
.band__shapes i:nth-child(2) { background: var(--s2); }
.band__shapes i:nth-child(3) { background: var(--s3); }
.band--rose .band__shapes i:nth-child(3), .band--saffron .band__shapes i:nth-child(3) { background: transparent; border: 3px solid var(--ink); }

.band__top { display: flex; align-items: baseline; gap: 20px; }
.band__num { font: 800 clamp(96px, 13vw, 210px)/0.8 var(--display); letter-spacing: -0.05em; }
.band__count {
  font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase;
  padding: 8px 12px; border: 1.5px solid var(--fg); border-radius: 999px;
}
.band__title { margin-top: clamp(28px, 5vh, 56px); font-size: clamp(40px, 5vw, 84px); font-weight: 800; letter-spacing: -0.03em; }
.band__desc { margin-top: 18px; max-width: 46ch; font-size: clamp(17px, 1.35vw, 21px); color: var(--sub); }
.band__foot {
  margin-top: auto; padding-top: clamp(32px, 6vh, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: end;
}
.band__list { border-top: 2px solid var(--fg); }
.band__list li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 16px;
  padding: 11px 0; border-bottom: 1px solid var(--rule);
}
.band__hn { font-weight: 600; }
.band__hp { color: var(--sub); font-size: 15px; }
.band__link {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  font: 700 16px/1 var(--display); text-decoration: none;
  padding: 16px 20px; background: var(--fg); color: var(--bg); border-radius: 4px;
}
.band--saffron .band__link, .band--rose .band__link { color: var(--paper); }
.band__link span { transition: transform .2s ease; }
.band__link:hover span { transform: translateX(4px); }

.closer { padding: clamp(48px, 9vh, 100px) var(--gut); }
.closer h2 { font-size: clamp(30px, 3vw, 46px); }
.closer__cols { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.closer__cols div { border-top: 2px solid var(--ink); padding-top: 14px; }
.closer__cols h3 { font-size: 20px; }
.closer__cols p { margin-top: 8px; color: var(--ink-2); font-size: 16px; }

/* =========================================================
   CATEGORY: narrow sticky colour column + card column
   ========================================================= */
.cat--cobalt { --c: var(--cobalt); --cfg: var(--paper); }
.cat--saffron { --c: var(--saffron); --cfg: var(--ink); }
.cat--rose { --c: var(--rose); --cfg: var(--ink); }
.cat--forest { --c: var(--forest); --cfg: var(--paper); }

.csplit { display: grid; grid-template-columns: minmax(280px, 32%) minmax(0, 1fr); align-items: start; }
.side { position: sticky; top: 0; height: 100vh; height: 100svh; background: var(--c); color: var(--cfg); overflow-y: auto; }
.side__inner { min-height: 100%; display: flex; flex-direction: column; padding: clamp(24px, 4.5vh, 48px) clamp(20px, 2.6vw, 44px); }
.side .hero { border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); }
.side__back {
  align-self: flex-start; font-size: 14px; font-weight: 600; text-decoration: none;
  padding-bottom: 3px; border-bottom: 1.5px solid currentColor;
}
.side__back:hover { opacity: .8; }
.side__num { margin-top: clamp(28px, 6vh, 60px); font: 800 clamp(64px, 7vw, 120px)/0.8 var(--display); letter-spacing: -0.05em; }
.side h1 { margin-top: 18px; font-size: clamp(34px, 3.2vw, 54px); font-weight: 800; letter-spacing: -0.02em; }
.side__count { margin-top: 12px; font: 700 13px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.side__intro { margin-top: 18px; font-size: 16px; max-width: 34ch; opacity: .92; }
.side__nav { margin-top: auto; padding-top: 32px; }
.side__nav ol { border-top: 1.5px solid currentColor; }
.side__nav a { display: flex; gap: 12px; padding: 8px 0; text-decoration: none; font-size: 15px; border-bottom: 1px solid color-mix(in srgb, currentColor 30%, transparent); }
.side__nav a span { font: 800 15px/1.5 var(--display); min-width: 24px; }
.side__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.side__nav .is-here a { font-weight: 600; }
.side__nav .is-here a span { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 5px; }

.cards { padding: clamp(28px, 6vh, 72px) var(--gut) clamp(40px, 8vh, 96px); display: grid; gap: 28px; justify-items: start; }
.card {
  width: 100%; max-width: 720px;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: clamp(22px, 3vw, 40px);
  position: relative;
}
.card::before { content: ""; position: absolute; left: -1px; top: clamp(24px, 3vw, 42px); width: 4px; height: 44px; background: var(--c); border-radius: 0 3px 3px 0; }
.card__head { display: grid; gap: 6px; }
.card__idx { font: 800 14px/1 var(--display); letter-spacing: .08em; color: var(--ink-2); }
.card h2 { font-size: clamp(26px, 2.3vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin-top: 4px; }
.card__place { font-weight: 600; color: var(--ink-2); }
.card__body { margin-top: 20px; display: grid; gap: 14px; max-width: 62ch; }
.tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: 13px; font-weight: 500; padding: 5px 11px; border: 1.25px solid var(--ink); border-radius: 999px; line-height: 1.3; }
.cards__end { max-width: 720px; color: var(--ink-2); font-size: 15px; padding-top: 8px; }

/* =========================================================
   TEXT PAGES: one centred column
   ========================================================= */
.prose { max-width: 700px; margin: 0 auto; padding: clamp(40px, 9vh, 96px) 16px clamp(56px, 10vh, 110px); }
.prose h1 { margin-top: 14px; font-size: clamp(38px, 5vw, 64px); font-weight: 800; letter-spacing: -0.03em; }
.prose h2 { margin-top: 40px; font-size: 24px; }
.prose p, .prose ul { margin-top: 14px; }
.prose ul { list-style: none; display: grid; gap: 8px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 10px; background: var(--saffron); border-radius: 2px; }
.prose .lede { margin-top: 22px; font-size: 20px; line-height: 1.5; }
.prose .small { margin-top: 36px; font-size: 14px; color: var(--ink-2); }
.prose a { text-decoration-color: var(--cobalt); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* =========================================================
   FOOTER
   ========================================================= */
.foot { background: var(--ink); color: var(--paper); padding: clamp(44px, 8vh, 80px) var(--gut) 28px; }
.foot__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(248,245,238,.2); }
.foot__name { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 800 28px/1 var(--display); }
.foot__name .mark rect:first-child { fill: #2B2E40; }
.foot__brand p { margin-top: 14px; max-width: 42ch; color: rgba(248,245,238,.75); font-size: 15px; }
.foot__col h2 { font: 700 12px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--saffron); }
.foot__col ul { margin-top: 14px; display: grid; gap: 8px; }
.foot__col a { text-decoration: none; font-size: 15px; }
.foot__col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot__close { padding-top: 22px; font-size: 13px; color: rgba(248,245,238,.6); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1100px) {
  .band__foot { grid-template-columns: 1fr; }
  .band__link { justify-self: start; }
  .closer__cols { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  body { font-size: 16px; }
  .topbar { display: flex; }

  .split, .csplit { grid-template-columns: 1fr; }
  .panel {
    position: static; height: auto; border-right: 0; border-bottom: 2px solid var(--ink);
    padding: 24px 16px 28px; overflow: visible;
  }
  .panel__brand { display: none; }
  .panel__stand { margin-top: 0; }
  .panel .hero--panel { width: 100%; height: auto; }
  .idx { scroll-margin-top: 60px; }
  .panel__links { margin-top: 4px; }

  .opener, .band, .closer { padding-inline: 16px; }
  .band { min-height: 0; padding-block: 44px 40px; }
  .band__shapes { width: 92px; top: 44px; right: 16px; }
  .band__title { margin-top: 24px; }
  .band__foot { padding-top: 32px; }
  .band__link { width: 100%; justify-content: space-between; }

  .side { position: static; height: auto; overflow: visible; }
  .side__inner { padding: 28px 16px 30px; }
  .side__num { margin-top: 22px; }
  .side__nav { display: none; }
  .cards { padding: 24px 16px 48px; gap: 18px; }

  .foot { padding-inline: 16px; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .opener__stats div + div { padding-left: 10px; }
  .band__num { font-size: 88px; }
}
