/* Real-mentor sites — "commentary booth notebook".
   Paper + ink, one broadcast-tally red. Big Shoulders for signage, Newsreader for reading. */

:root {
  --paper: #f2eee5;
  --paper-2: #e9e3d6;
  --ink: #15140f;
  --ink-2: #3b3932;
  --muted: #6b675c;
  --rule: #d6cfbf;
  --tally: #d62d20;
  --pitch: #1f5c3f;
  --chalk: rgba(21, 20, 15, .07);
  --on-tally: #fff;
  --tally-light: #ff6b5e;
  --tally-glow: rgba(214, 45, 32, .16);
  --deep: var(--ink);
  --on-deep: var(--paper);
  --on-deep-2: #d8d2c4;
  --on-deep-3: #8f897b;
  --deep-rule: #3a372f;
  --win: #1d7f45;
  --draw: #8b867a;
  --loss: #d62d20;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.08 0 0 0 0 0.07 0 0 0 0 0.05 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  --sign: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --read: "Newsreader", "Iowan Old Style", Georgia, serif;
  /* Big headings (names, page titles); themes may swap these independently of --sign labels. */
  --display: var(--sign);
  --display-weight: 900;
  --display-case: uppercase;

  --wrap: 1180px;
  --narrow: 700px;
  --gutter: clamp(20px, 4vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: var(--grain);
  font-family: var(--read);
  font-size: 19px;
  line-height: 1.6;
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--tally); }
:focus-visible { outline: 3px solid var(--tally); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: calc(var(--narrow) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: calc(980px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- signage primitives ---------- */
.kicker {
  font-family: var(--sign);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--tally);
  margin: 0 0 14px;
}
.kicker a { text-decoration: none; }
.hot {
  display: inline-block; vertical-align: .1em; margin-right: 10px; padding: 4px 7px 3px;
  font-family: var(--sign); font-weight: 800; font-size: 12px; line-height: 1; letter-spacing: .12em;
  text-transform: uppercase; color: var(--on-tally); background: var(--tally);
}
.meta .hot { margin-right: 0; }
.kicker--light { color: var(--tally-light); }
.meta {
  font-family: var(--sign);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sign); font-weight: 800; font-size: 17px;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  padding: 14px 22px; border: 2px solid var(--ink);
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: var(--tally); border-color: var(--tally); color: var(--on-tally); transform: translateY(-2px); }
.btn--line { color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.more {
  font-family: var(--sign); font-weight: 800; font-size: 16px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; color: var(--ink);
  border-bottom: 2px solid var(--tally); padding-bottom: 2px;
}
.more span { display: inline-block; transition: transform .18s ease; }
.more:hover span { transform: translateX(4px); }
.more--light { color: var(--on-deep); }

/* ---------- masthead ---------- */
.mast { border-bottom: 2px solid var(--ink); background: var(--paper); position: sticky; top: 0; z-index: 5; }
.mast__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 24px; min-height: 66px;
}
.mast__brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; max-width: 100%; padding: 12px 0; }
.avatar--mark { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.avatar--mark.avatar--mono { font-size: 13px; }
.mast__name {
  font-family: var(--display); font-weight: var(--display-weight); font-size: 26px; letter-spacing: .04em; text-transform: var(--display-case); line-height: 1.15;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mast__nav {
  display: flex; gap: clamp(14px, 3vw, 34px); max-width: 100%;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.mast__nav::-webkit-scrollbar { display: none; }
.mast__nav a {
  font-family: var(--sign); font-weight: 800; font-size: 16px; letter-spacing: .14em;
  text-transform: uppercase; text-decoration: none; padding: 22px 0 19px;
  border-bottom: 3px solid transparent; white-space: nowrap; flex: none;
}
.mast__nav a[aria-current="page"] { border-bottom-color: var(--tally); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero__pitch {
  position: absolute; right: -120px; top: -60px; width: 760px; height: 760px;
  fill: none; stroke: var(--chalk); stroke-width: 2; pointer-events: none;
}
.hero__pitch .dot { fill: var(--chalk); }
.hero__inner {
  position: relative;
  max-width: var(--wrap); margin: 0 auto; padding: clamp(48px, 8vw, 110px) var(--gutter) clamp(48px, 7vw, 96px);
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 80px); align-items: end;
}
.hero__text { container-type: inline-size; }
.hero__name {
  font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case);
  --fit-min: 64; --fit-vw: 11; --fit-max: 158;
  font-size: min(clamp(64px, 11vw, 158px), calc(100cqi / (var(--len) * .5))); line-height: 1.04; letter-spacing: -.005em;
  margin: 0 0 22px;
}
/* Each line keeps its words together; the inline script in base.html sizes the heading to the widest line. */
.fit { white-space: nowrap; }
.fit__line { display: block; width: max-content; }
.hero__role {
  font-family: var(--sign); font-weight: 600; font-size: 20px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 22px; display: flex; align-items: center; gap: 14px;
}
.hero__role::before { content: ""; flex: none; width: 44px; height: 3px; background: var(--tally); }
.hero__tagline {
  font-style: italic; font-size: clamp(22px, 2.3vw, 28px); line-height: 1.35;
  max-width: 30ch; margin: 0 0 34px; color: var(--ink-2);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__portrait { margin: 0; position: relative; justify-self: end; width: min(100%, 380px); }
.hero__portrait .avatar { width: 100%; height: auto; aspect-ratio: 4 / 5; }
.hero__portrait figcaption {
  position: absolute; left: -18px; bottom: 26px;
  background: var(--ink); color: var(--paper);
  font-family: var(--sign); font-weight: 800; font-size: 18px; letter-spacing: .1em; text-transform: uppercase;
  padding: 10px 16px 10px 0; display: flex; align-items: center; gap: 12px;
}
.hero__portrait .tab { background: var(--tally); color: var(--on-tally); padding: 10px 12px; margin: -10px 0; }

/* ---------- avatar ---------- */
.avatar { object-fit: cover; background: var(--pitch); }
.avatar--sm { width: 48px; height: 48px; border-radius: 50%; }
.avatar--md { width: 96px; height: 96px; border-radius: 50%; flex: none; }
.avatar--xl { width: 100%; aspect-ratio: 4 / 5; filter: grayscale(.25) contrast(1.05); box-shadow: 14px 14px 0 var(--ink); }
.avatar--mono {
  display: inline-grid; place-items: center; color: var(--on-deep);
  font-family: var(--sign); font-weight: 900; text-transform: uppercase; line-height: 1;
  background:
    radial-gradient(circle at 50% 50%, transparent 37%, rgba(242,238,229,.22) 37.4%, rgba(242,238,229,.22) 38.2%, transparent 38.6%),
    linear-gradient(90deg, transparent 49.6%, rgba(242,238,229,.22) 49.6%, rgba(242,238,229,.22) 50.4%, transparent 50.4%),
    var(--pitch);
}
.avatar--sm.avatar--mono { font-size: 20px; }
.avatar--md.avatar--mono { font-size: 40px; }
.avatar--xl.avatar--mono { font-size: clamp(110px, 14vw, 180px); }

/* ---------- sections ---------- */
.section-head { display: flex; align-items: center; gap: 18px; margin: 0 0 28px; }
.section-head__title {
  font-family: var(--display); font-weight: var(--display-weight); font-size: 30px; letter-spacing: .04em;
  text-transform: var(--display-case); margin: 0; white-space: nowrap;
}
.section-head__rule { flex: 1; height: 2px; background: var(--ink); }
.section-head__link {
  font-family: var(--sign); font-weight: 800; font-size: 15px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none; white-space: nowrap;
}
@media (max-width: 480px) {
  .section-head { gap: 12px; }
  .section-head__title { font-size: 24px; white-space: normal; line-height: 1.05; min-width: 0; }
  .section-head__link { font-size: 13px; letter-spacing: .08em; }
}

.lead { padding-top: clamp(48px, 7vw, 84px); }
.lead__card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: center; }
.lead__media { display: block; overflow: hidden; background: var(--paper-2); }
.lead__media img { width: 100%; height: auto; max-height: 560px; object-fit: contain; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.lead__card:hover .lead__media img { transform: scale(1.03); }
.lead__title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; font-weight: 700; letter-spacing: -.012em; margin: 14px 0 16px; }
.lead__title--long { font-size: clamp(28px, 3vw, 40px); line-height: 1.12; }
.lead__title--xlong { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.16; }
.lead__title.lead__title--caps { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.16; letter-spacing: .005em; }
.lead__title.lead__title--caps.lead__title--long { font-size: clamp(24px, 2.4vw, 32px); }
.lead__title.lead__title--caps.lead__title--xlong { font-size: clamp(22px, 2.1vw, 28px); }
.lead__title a { text-decoration: none; }
.lead__summary { font-size: 19px; color: var(--ink-2); margin: 0 0 22px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
.lead__card:not(:has(.lead__media)) { grid-template-columns: 1fr; max-width: 820px; }
.lead__more { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; margin-top: 28px; }
.lead__more .pin-card { grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 14px; }
.lead__more .pin-card__media { aspect-ratio: 3 / 2; }

.pin-card { display: grid; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.pin-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--pitch); color: rgba(255, 255, 255, .32); }
.pin-card__media img, .pin-card__media svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.pin-card__media svg { fill: none; stroke: currentColor; stroke-width: 2; }
.pin-card__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; font-weight: 700; font-size: 18px; line-height: 1.3; }
.pin-card:hover .pin-card__title { color: var(--tally); }
.pin-card .meta { display: block; margin-bottom: 6px; }

.pins { padding-top: 32px; }
.pins__navs { display: flex; gap: 8px; }
.pins__nav { width: 36px; height: 36px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; }
.pins__nav:hover { background: var(--ink); color: var(--paper); }
.pins__nav[hidden] { display: none; }
.pins__row { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pins__row::-webkit-scrollbar { display: none; }
.pins .pin-card { flex: 0 0 min(300px, 78%); scroll-snap-align: start; }
@media (min-width: 900px) {
  .pins__row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; }
  .pins__row:has(.pin-card:only-child) { grid-template-columns: minmax(0, 420px); }
  .pins__row:has(.pin-card:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pins .pin-card { flex: none; }
}

.feed { padding-top: clamp(48px, 7vw, 84px); padding-bottom: clamp(56px, 8vw, 96px); }
.feed__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.feed__item {
  display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 22px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--rule);
}
.feed__minute { font-family: var(--sign); font-weight: 900; font-size: 34px; line-height: 1; color: var(--tally); padding-top: 4px; }
.feed__title { font-size: 25px; line-height: 1.2; font-weight: 700; margin: 0 0 8px; letter-spacing: -.005em; }
.feed__title a { text-decoration: none; background: linear-gradient(var(--tally), var(--tally)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.feed__title a:hover { color: inherit; background-size: 100% 2px; }
.feed__summary { margin: 0 0 10px; color: var(--ink-2); font-size: 18px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.feed__thumb { display: block; width: 168px; aspect-ratio: 3 / 2; background: var(--paper-2); }

.fit { position: relative; overflow: hidden; isolation: isolate; }
.fit > .fit__bg, .fit > .fit__img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.fit > .fit__bg { object-fit: cover; filter: blur(14px) saturate(.85); opacity: .75; transform: scale(1.25); }
.fit > .fit__img { object-fit: contain; }

.feed__more { margin: 32px 0 0; text-align: center; }
.feed__more [hidden] { display: none; }
.feed__more button { background: transparent; cursor: pointer; }
.feed__more button:hover { background: var(--ink); }
.feed__more button:disabled { opacity: .55; cursor: progress; }
.empty { font-style: italic; color: var(--muted); font-size: 21px; padding: 24px 0; margin: 0; }

.about-strip { background: var(--deep); color: var(--on-deep); padding: clamp(44px, 6vw, 72px) 0; }
.about-strip__inner { display: flex; gap: 32px; align-items: center; }
.about-strip__text { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.45; font-style: italic; margin: 0 0 18px; max-width: 54ch; }

/* ---------- article ---------- */
.story { padding: clamp(32px, 5vw, 64px) 0 0; }
/* Sized by length so a long title doesn't fill the first screen; Vietnamese stacked marks need the extra leading. */
.story__title { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; font-weight: 700; letter-spacing: -.018em; margin: 0 0 20px; text-wrap: balance; }
.story__title--long { font-size: clamp(29px, 3.5vw, 42px); line-height: 1.16; }
.story__title--xlong { font-size: clamp(26px, 2.9vw, 36px); line-height: 1.2; }
.story__title.story__title--caps { font-size: clamp(27px, 3.4vw, 42px); line-height: 1.22; letter-spacing: .005em; }
.story__title.story__title--caps.story__title--long { font-size: clamp(24px, 2.8vw, 34px); }
.story__title.story__title--caps.story__title--xlong { font-size: clamp(22px, 2.4vw, 30px); }
.story__standfirst { font-size: clamp(19px, 1.9vw, 22px); line-height: 1.5; font-style: italic; color: var(--ink-2); margin: 0 0 26px; }
.byline { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--rule); }
.byline__name { font-family: var(--display); font-weight: var(--display-weight); font-size: 22px; letter-spacing: .04em; text-transform: var(--display-case); text-decoration: none; display: block; line-height: 1.1; margin-bottom: 4px; }
.story__cover { margin: 40px auto 0; }
.story__cover img { width: 100%; height: auto; max-height: min(78vh, 760px); object-fit: contain; background: var(--paper-2); }
.story__cover figcaption { font-size: 15px; color: var(--muted); padding-top: 10px; border-bottom: 1px solid var(--rule); padding-bottom: 10px; }
.story__body { padding-top: 40px; padding-bottom: 24px; }

.prose > * { margin-bottom: 0; }
.prose > :first-child { margin-top: 0; }
.prose > * + * { margin-top: 1.1em; }
.prose > p:first-child::first-letter {
  font-family: var(--sign); font-weight: 900; float: left; font-size: 5.1em; line-height: .78;
  padding: .06em .1em 0 0; color: var(--tally);
}
.prose h2 { font-size: 32px; line-height: 1.15; letter-spacing: -.01em; margin-top: 1.7em; }
.prose h3 { font-size: 25px; line-height: 1.2; margin-top: 1.5em; }
.prose h4 { font-family: var(--sign); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 18px; margin-top: 1.5em; }
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: .6em; }
.prose a { color: var(--ink); text-decoration-color: var(--tally); text-decoration-thickness: 2px; }
.prose blockquote {
  margin: 1.8em 0; padding: 0 0 24px;
  border-bottom: 1px solid var(--ink);
  font-size: 1.3em; line-height: 1.38; font-style: italic; text-align: center;
}
.prose blockquote::before {
  content: "“"; display: block; height: .55em;
  font-family: var(--read); font-style: normal; font-weight: 700; font-size: 3em; line-height: 1; color: var(--tally);
}
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--tally); font-weight: 700; }
.prose img { margin: 1.4em auto; }
.prose figure { display: table; margin: 1.6em auto; }
.prose figure img { margin: 0; }
.prose figure.ql-align-left { margin-left: 0; margin-right: auto; }
.prose p.ql-align-left img,
.prose h2.ql-align-left img,
.prose h3.ql-align-left img { margin-left: 0; margin-right: auto; }
.prose p.ql-align-center,
.prose h2.ql-align-center,
.prose h3.ql-align-center,
.prose blockquote.ql-align-center { text-align: center; }
.prose figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; text-align: center; }
.prose hr { border: 0; height: 2px; background: var(--ink); width: 64px; margin: 2em auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: 17px; display: block; overflow-x: auto; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.prose th { font-family: var(--sign); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: 15px; border-bottom: 2px solid var(--ink); }
.prose code { font-size: .88em; background: var(--paper-2); padding: .1em .3em; }
.prose pre { background: var(--ink); color: var(--paper); padding: 18px; overflow-x: auto; font-size: 15px; }

.author-card {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 28px; margin-bottom: 0; padding-top: 28px; padding-bottom: 8px;
  border-top: 2px solid var(--ink);
}
.author-card .kicker { margin-bottom: 6px; }
.author-card__name { font-family: var(--display); font-weight: var(--display-weight); font-size: 28px; text-transform: var(--display-case); letter-spacing: .03em; margin: 0; line-height: 1.05; }
.author-card__role { color: var(--muted); margin: 4px 0 10px; font-style: italic; }
.author-card__bio { margin: 0; font-size: 18px; color: var(--ink-2); }

/* ---------- archive / about / 404 ---------- */
.page-head { padding-top: clamp(48px, 7vw, 92px); padding-bottom: 30px; border-bottom: 2px solid var(--ink); }
.page-head__title { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); font-size: clamp(54px, 8vw, 104px); line-height: 1.1; margin: 0; }
.page-head__count { font-family: var(--sign); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 14px 0 0; }
.page-head__lede { max-width: 62ch; margin: 12px 0 0; }
.archive { padding-top: 12px; padding-bottom: 96px; }
.archive__month { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.archive__label { font-family: var(--sign); font-weight: 900; font-size: 26px; text-transform: uppercase; letter-spacing: .04em; margin: 0; color: var(--tally); }
.archive__list { list-style: none; margin: 0; padding: 0; }
.archive__list li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; padding: 12px 0; }
.archive__thumb { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--pitch); color: rgba(255, 255, 255, .32); }
.archive__thumb img, .archive__thumb svg { display: block; width: 100%; height: 100%; object-fit: cover; }
.archive__thumb svg { fill: none; stroke: currentColor; stroke-width: 2; }
.archive__title { display: block; margin-bottom: 6px; font-size: 22px; font-weight: 500; text-decoration: none; line-height: 1.3; }
.archive__title:hover { color: var(--tally); }

.solutions { padding-top: 12px; padding-bottom: 96px; }
.solutions > * { max-width: var(--narrow); }
.solutions__note { color: var(--muted); font-style: italic; margin: 18px 0 6px; font-size: 16px; }
.solution {
  display: grid; grid-template-columns: minmax(0, 1fr) 104px; column-gap: 32px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--rule); scroll-margin-top: 90px;
}
.solution:target { background: linear-gradient(90deg, var(--chalk), transparent); }
.solution__date { font-family: var(--sign); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--tally); margin: 0 0 8px; font-size: 14px; }
.solution__intro p { margin: 0 0 10px; font-size: 18px; line-height: 1.6; overflow-wrap: anywhere; }
.solution__title { font-size: clamp(21px, 2.2vw, 24px); font-weight: 700; line-height: 1.25; letter-spacing: -.005em; margin: 0 0 8px; text-wrap: pretty; }
.solution__title a { color: inherit; text-decoration: none; background: linear-gradient(var(--tally), var(--tally)) 0 100% / 0 2px no-repeat; transition: background-size .25s ease; }
.solution__title a:hover { background-size: 100% 2px; }
.solution__summary { margin: 0 0 10px; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.solution .meta { margin: 0; font-size: 13px; }
.solution__thumb { display: block; width: 100%; aspect-ratio: 1; margin-top: 4px; border-radius: 18%; overflow: hidden; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule); }
.solution__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.8); transition: filter .25s ease, transform .35s ease; }
.solution--post:hover .solution__thumb img { filter: none; transform: scale(1.04); }
.solution__cta { margin: 16px 0 0; }
.solution .solution__cta .btn { font-size: 14px; padding: 11px 18px; }
@media (max-width: 640px) {
  .solution { grid-template-columns: minmax(0, 1fr) 64px; column-gap: 16px; padding: 20px 0; }
  .solution__title { font-size: 19px; margin-bottom: 6px; }
  .solution__summary { font-size: 15.5px; }
  .solution__intro p { font-size: 17px; }
  .solution .meta { column-gap: 10px; row-gap: 2px; font-size: 12px; }
  .solution__sep { display: none; }
}
.story__standfirst p { margin: 0; }
.story__standfirst p + p { margin-top: .6em; }
.solution-body p { white-space: pre-line; overflow-wrap: anywhere; }
.solution-end { margin: 8px auto 0; padding-top: 24px; padding-bottom: 72px; border-top: 2px solid var(--ink); }
.solution-end p { font-size: 18px; line-height: 1.55; margin: 0 0 10px; overflow-wrap: anywhere; }
.solution-end__lead { font-weight: 700; }
.solution-end__head { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.solution-end__head .solution-end__lead { margin: 0; }
.solution-end__mark { flex: none; width: 56px; height: 56px; border-radius: 18%; box-shadow: 0 0 0 1px var(--rule); }
.solution-end__how { color: var(--ink-2); }
.solution-end .solution__cta { margin-top: 20px; }

.about { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 8vw, 110px); align-items: start; }
.about__portrait { position: sticky; top: 100px; }
.about__text { container-type: inline-size; }
.about__name { font-family: var(--display); font-weight: var(--display-weight); text-transform: var(--display-case); --fit-min: 56; --fit-vw: 8; --fit-max: 112; font-size: min(clamp(56px, 8vw, 112px), calc(100cqi / (var(--len) * .5))); line-height: 1.04; margin: 0 0 18px; }
.about .prose { font-size: 20px; }
.about .prose > p:first-child::first-letter { float: none; font-size: inherit; padding: 0; color: inherit; font-family: inherit; font-weight: inherit; line-height: inherit; }
.about__links, .foot__links { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.about__links a, .foot__links a { font-family: var(--sign); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; font-size: 15px; }

.lost { text-align: center; padding-top: 110px; padding-bottom: 130px; }
.lost__code { font-family: var(--sign); font-weight: 900; font-size: clamp(90px, 18vw, 200px); line-height: .9; color: var(--tally); margin: 0 0 14px; }
.lost p { margin: 16px 0 30px; color: var(--ink-2); }

/* ---------- footer ---------- */
.foot { background: var(--deep); color: var(--on-deep); border-top: 6px solid var(--tally); }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 46px var(--gutter) 40px; }
.foot__sig { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.foot__name { font-family: var(--display); font-weight: var(--display-weight); font-size: 38px; text-transform: var(--display-case); letter-spacing: .03em; line-height: 1; }
.foot__role { font-style: italic; color: var(--on-deep-2); }
.foot__note { color: var(--on-deep-2); max-width: 60ch; margin: 18px 0 0; font-size: 17px; }
.foot__links a { color: var(--on-deep); }
.about__links a, .foot__links a { display: inline-flex; align-items: center; gap: 8px; }
.sicon { flex: none; }
.about__links a:hover .sicon, .foot__links a:hover .sicon { color: var(--tally); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 30px 0 0; padding-top: 18px; border-top: 1px solid var(--deep-rule); }
.foot__nav a { color: var(--on-deep-2); font-family: var(--sign); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; text-decoration: none; }
.foot__nav a:hover { color: var(--on-deep); }
.foot__nav .foot__studio { margin-left: auto; color: var(--on-deep); }
.foot__copy { font-family: var(--sign); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: 14px; color: var(--on-deep-3); margin: 30px 0 0; }

/* ---------- motion ---------- */
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__portrait { justify-self: start; width: min(78%, 320px); order: -1; margin-left: 18px; }
  .lead__card { grid-template-columns: 1fr; }
  .lead__more .pin-card { grid-template-columns: 104px minmax(0, 1fr); }
  .pins .section-head__title { font-size: 22px; }
  .about { grid-template-columns: 1fr; }
  .about__portrait { position: static; max-width: 300px; }
  .archive__month { grid-template-columns: 1fr; gap: 10px; }
  .archive__list li { grid-template-columns: 104px minmax(0, 1fr); gap: 14px; }
  .archive__title { font-size: 19px; }
  .story__standfirst { font-size: 18px; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  .mast__inner { flex-direction: column; align-items: stretch; gap: 0; padding-top: 2px; }
  .mast__brand { padding: 12px 0 2px; }
  .mast__nav { justify-content: space-between; gap: 8px; }
  .mast__nav a { padding: 12px 0 10px; font-size: 15px; letter-spacing: .06em; }
  .mast__name { font-size: 22px; }
  .hero__role { gap: 10px; letter-spacing: .06em; }
  .hero__role::before { width: 24px; }
  .feed__item { grid-template-columns: 42px minmax(0, 1fr); }
  .feed__minute { font-size: 24px; }
  .feed__title { font-size: 21px; line-height: 1.24; }
  .feed__summary { font-size: 16px; }
  .feed__thumb { display: none; }
  .about-strip__inner { flex-direction: column; align-items: flex-start; }
  .author-card { flex-direction: column; }
}
@media (max-width: 480px) {
  /* The brand already links home; five items don't fit a phone row. */
  .mast__nav a:first-child { display: none; }
}
@media (max-width: 340px) {
  .mast__nav a { font-size: 13px; letter-spacing: .03em; }
}

/* ---------- sections + paging ---------- */
.sections { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.feed .sections { margin: -8px 0 26px; }
.sections a {
  font-family: var(--sign); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; padding: 7px 12px; border: 1.5px solid var(--ink); color: var(--ink);
  display: inline-flex; gap: 8px; align-items: baseline; transition: background .15s ease, color .15s ease;
}
.sections a b { font-weight: 600; color: var(--muted); }
.sections a:hover, .sections a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.sections a:hover b, .sections a[aria-current="page"] b { color: var(--paper); }
.meta a { color: var(--tally); text-decoration: none; }
.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 34px 0 0; }
.pager__step { font-family: var(--sign); font-weight: 800; font-size: 17px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.pager__step:last-child { justify-self: end; }
.pager__pages { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.pager__pages a, .pager__pages span {
  display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px;
  font-family: var(--sign); font-weight: 800; font-size: 18px; text-decoration: none; border: 1.5px solid var(--rule);
}
.pager__pages a:hover { border-color: var(--ink); }
.pager__pages span[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
@media (max-width: 640px) {
  .pager { grid-template-columns: 1fr 1fr; }
  .pager__pages { grid-column: 1 / -1; grid-row: 1; justify-content: center; flex-wrap: wrap; }
}

/* ---------- football data (/du-lieu/): standings, results, fixtures ---------- */
.data-hub, .data-page { padding-top: 36px; padding-bottom: 96px; }
.data-league { padding: 12px 0 44px; }
.data-league__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.data-page__split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 56px; }
.data-label, .fixtures__date {
  font-family: var(--sign); font-weight: 800; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--tally); margin: 0 0 6px;
}
.fixtures .data-label:not(:first-child) { margin-top: 26px; }
.data-source { color: var(--muted); font-style: italic; font-size: 16px; margin: 40px 0 0; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.standings { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.standings caption {
  text-align: left; font-family: var(--sign); font-weight: 800; font-size: 15px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); padding: 0 0 8px;
}
.standings th, .standings td { padding: 9px 8px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; }
.standings thead th {
  font-family: var(--sign); font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--ink);
}
.standings abbr { text-decoration: none; }
.standings .num { text-align: right; width: 1%; }
.standings td.num { font-family: var(--sign); font-weight: 600; font-size: 19px; }
.standings .rank { color: var(--muted); }
.standings .pts { font-weight: 900; color: var(--ink); }
.standings tbody th { font-weight: 500; }
.standings .team { width: auto; }
.standings tbody .team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.standings tbody .team span { overflow: hidden; text-overflow: ellipsis; }
.standings tbody tr:hover { background: var(--chalk); }
.standings__toggle { margin-top: 16px; padding: 0 0 2px; background: none; border-width: 0 0 2px; cursor: pointer; }
.form { width: 1%; }
/* Win / draw / loss stay green / grey / red on every theme, whatever its accent colours are. */
.form__dot {
  display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 3px;
  font-family: var(--sign); font-weight: 800; font-size: 13px; color: #fff; background: var(--draw);
}
.form__dot--W { background: var(--win); }
.form__dot--L { background: var(--loss); }
.form-legend { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.form-legend .form__dot { width: 18px; height: 18px; margin: 0 2px 0 10px; font-size: 11px; vertical-align: 1px; }
.form-legend .form__dot:first-child { margin-left: 0; }

.crest { width: 22px; height: 22px; object-fit: contain; flex: none; display: inline-block; vertical-align: middle; }
.crest--blank { border: 1.5px solid var(--rule); border-radius: 50%; }

.fixtures__day { margin: 0 0 22px; }
.fixtures__date { color: var(--ink-2); padding-bottom: 6px; border-bottom: 2px solid var(--ink); }
.fixtures__list { list-style: none; margin: 0; padding: 0; }
.fixture {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 64px minmax(0, 1fr); gap: 4px 10px;
  align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 17px; line-height: 1.3;
}
.fixture__time { font-family: var(--sign); font-weight: 700; font-size: 17px; color: var(--muted); }
.fixture__team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fixture__team--home { justify-content: flex-end; text-align: right; }
.fixture__score { font-family: var(--sign); font-weight: 900; font-size: 22px; text-align: center; letter-spacing: .04em; }
.fixture__score i { font-style: normal; color: var(--muted); font-weight: 600; padding: 0 3px; font-size: 16px; }
.fixture__score small { font-size: 13px; color: var(--tally); letter-spacing: .08em; text-transform: uppercase; }
.fixture__round { grid-column: 2 / -1; font-size: 13px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .data-league__grid, .data-page__split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .standings .wide, .form-legend { display: none; }
  .standings th, .standings td { padding: 8px 5px; }
  .standings tbody .team span { max-width: calc(100vw - 280px); }
  .fixture { grid-template-columns: 44px minmax(0, 1fr) 54px minmax(0, 1fr); font-size: 15px; gap: 4px 6px; }
  .fixture .crest { display: none; }
}
@media (max-width: 420px) {
  .standings .wdl { display: none; }
  .standings tbody .team span { max-width: calc(100vw - 215px); }
}
