/* ==========================================================================
   AI Observer v3 skin: the SuperBusy Club look, adapted for a news site.
   Loads after styles.css, home2.css and wp.css and re-skins them.
   - Warm paper background, near-black ink, violet / lime / coral accents.
   - Archivo (variable width) for headlines and text, Instrument Serif for
     the soft half of a headline and for standfirsts, Kaushan Script for the
     wordmark and stickers. All three are SIL OFL (see fonts/licenses).
   - Rounded image cards with soft shadows, white pill labels, tilted colour
     cards, a desk marquee, hand-drawn squiggles, spring-eased hovers.
   - Long reads stay calm: 19px text, 68ch measure, 16:1 contrast.
   All motion is decorative and switched off by prefers-reduced-motion.
   ========================================================================== */

/* 1. Fonts ------------------------------------------------------------------ */
@font-face { font-family: "Archivo"; src: url("../fonts/Archivo-normal-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; 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: "Archivo"; src: url("../fonts/Archivo-normal-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-normal-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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: "Instrument Serif"; src: url("../fonts/InstrumentSerif-normal-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; 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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/InstrumentSerif-italic-latin.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Kaushan Script"; src: url("../fonts/KaushanScript-normal-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: "Kaushan Script"; src: url("../fonts/KaushanScript-normal-latin-ext.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F; }

/* 2. Tokens (old names mapped to the new palette so every older rule follows) */
:root {
  --bg: #F2EFE8; --paper: #FFFFFF; --cream: #FFF8EC;
  --ink: #121212; --ink-2: #2a2a2a; --muted: #5c5853;
  --violet: #6A3DF5; --violet-ink: #5B2EE0; --lime: #C8F05A; --coral: #FF6B4A;
  --navy: #121212; --navy-700: #1d1d1d; --navy-600: #333;
  --accent: #6A3DF5; --accent-ink: #fff; --link: #5B2EE0; --link-hover: #3f1bb5;
  --on-dark: #F2EFE8; --on-dark-muted: #b9b5ad; --line: rgba(18,18,18,.14); --soft: #E9E4D9; --white: #fff;
  --signal: var(--lime); --panel: #1d1d1d; --rule-dark: rgba(242,239,232,.16);
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-script: "Kaushan Script", "Segoe Script", "Brush Script MT", cursive;
  --radius: 14px; --radius-l: 1.25rem; --radius-s: .4rem;
  --shadow: 0 1px 0 rgba(0,0,0,.03), 0 18px 40px -18px rgba(18,18,18,.28);
  --ease-spring: cubic-bezier(.34,1.56,.64,1); --ease-out: cubic-bezier(.16,1,.3,1);
  --container: 1240px; --gutter: clamp(16px, 3vw, 40px);
  --t-xl: clamp(3rem, 1rem + 7vw, 7.5rem);
  --t-l: clamp(2.4rem, 1rem + 4.2vw, 4.75rem);
  --t-m: clamp(1.8rem, 1.2rem + 2vw, 2.75rem);
}

/* 3. Base --------------------------------------------------------------------- */
body.sb { background: var(--bg); color: var(--ink); font-family: var(--font-body); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.sb h1, body.sb h2, body.sb h3, body.sb h4 { font-family: var(--font-head); font-weight: 800; font-stretch: 75%; letter-spacing: -.005em; line-height: 1; }
body.sb ::selection { background: var(--lime); color: var(--ink); }
body.sb :focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
body.sb .site-footer :focus-visible, body.sb .section--dark :focus-visible, body.sb .rail-card--violet :focus-visible, body.sb .spot-card--violet :focus-visible { outline-color: var(--lime); }
body.sb a:hover { text-decoration-color: var(--violet); }
.skip-link { background: var(--lime) !important; color: var(--ink) !important; border-radius: var(--radius-s) !important; }

/* 4. Shared bits: pills, stickers, squiggle, buttons, section titles ----------- */
.pill { display: inline-flex; align-items: center; gap: .45em; min-height: 26px; padding: .3rem .75rem; border-radius: 50em; background: var(--paper); color: var(--ink); font-family: var(--font-head); font-size: .72rem; font-weight: 700; font-stretch: 85%; letter-spacing: .04em; text-transform: uppercase; line-height: 1; text-decoration: none !important; white-space: nowrap; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.pill::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: var(--violet); flex: none; }
.pill--format { background: var(--lime); }
.pill--format::before { background: var(--ink); }
.pill--type { background: var(--violet); color: #fff; }
.pill--type::before { background: var(--lime); }
.pill--agents-and-automation::before { background: #3c9a1f; }
.pill--chips-and-hardware::before { background: var(--coral); }
.pill--business-and-startups::before { background: #e0a400; }
.pill--policy-and-regulation::before { background: var(--ink); }
.pill--health-and-science::before { background: #0f9d8a; }
.pill--robotics::before { background: #ff3d7f; }
.pill--design-and-product::before { background: #1f7ae0; }
a.pill { transition: transform .5s var(--ease-spring), background-color .2s; }
a.pill:hover { transform: translateY(-1px) rotate(-2deg); background: var(--lime); }

.sticker { position: absolute; z-index: 2; display: inline-block; padding: .35em .9em .45em; border-radius: .9em; font-family: var(--font-script); font-size: clamp(1.05rem, .9rem + .6vw, 1.5rem); line-height: 1; transform: rotate(-7deg); box-shadow: 0 10px 24px -10px rgba(18,18,18,.45); pointer-events: none; white-space: nowrap; }
.sticker--coral { background: var(--coral); color: var(--ink); }
.sticker--lime { background: var(--lime); color: var(--ink); }
.sticker--violet { background: var(--violet); color: #fff; }
.sticker--ink { background: var(--ink); color: var(--lime); }

.squiggle { position: absolute; left: -4%; right: -4%; bottom: -.32em; width: 108%; height: .42em; overflow: visible; color: var(--violet); pointer-events: none; }
.squiggle path { fill: none; stroke: currentColor; stroke-width: 5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 420; stroke-dashoffset: 0; }
html.sb-js .squiggle path { stroke-dashoffset: 420; transition: stroke-dashoffset 1.1s var(--ease-out) .2s; }
html.sb-js .is-in .squiggle path, html.sb-js .squiggle.is-in path { stroke-dashoffset: 0; }

.sec-title { font-size: var(--t-m); line-height: .9; text-transform: uppercase; font-stretch: 62%; font-weight: 800; margin: 0; }
.sec-title--xl { font-size: var(--t-l); }
.sec-title__serif { position: relative; display: inline-block; font-family: var(--font-serif); font-weight: 400; font-stretch: 100%; text-transform: uppercase; letter-spacing: -.02em; }
.eyebrow { font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + .8vw, 1.75rem); line-height: 1.1; margin: 0 0 .4rem; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: clamp(20px, 3vw, 36px); }
.sec-head--center { flex-direction: column; align-items: center; text-align: center; }
.mini-head { display: flex; align-items: center; gap: .5rem; font-size: .8rem !important; font-weight: 800; font-stretch: 85% !important; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 0 rgba(255,107,74,.6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 .5rem rgba(255,107,74,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,74,0); } }

.link-arrow { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-serif); font-size: 1.3rem; color: var(--ink); text-decoration: none !important; white-space: nowrap; }
.link-arrow__icon { display: grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: .25rem; background: var(--violet); color: #fff; font-family: var(--font-head); font-size: .85rem; transition: transform .6s var(--ease-spring); }
.link-arrow:hover .link-arrow__icon { transform: translateX(25%); }

.btn-pill { display: inline-flex; align-items: center; gap: .7rem; min-height: 48px; padding: .45rem .45rem .45rem 1.3rem; border-radius: 50em; background: var(--ink); color: #fff; font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: .85rem; letter-spacing: .02em; text-decoration: none !important; transition: scale .15s; }
.btn-pill:active { scale: .96; }
.btn-pill__icon { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--lime); color: var(--ink); transition: transform .75s var(--ease-spring); }
.btn-pill:hover .btn-pill__icon { transform: rotate(-45deg) scale(1.1); }

.btn-dot { position: relative; display: inline-flex; align-items: center; gap: .55rem; min-height: 40px; padding: 0 1rem; border-radius: var(--radius-s); background: var(--paper); color: var(--ink) !important; font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: .78rem; letter-spacing: .02em; text-decoration: none !important; transition: transform .6s var(--ease-spring); }
.btn-dot:hover { transform: scale(1.05, 1.1); }
.btn-dot__dot { width: .45rem; height: .45rem; border-radius: 50%; background: var(--violet); transition: transform .5s var(--ease-spring); }
.btn-dot:hover .btn-dot__dot { transform: scale(1.6); }

/* Old buttons */
body.sb .btn { border-radius: var(--radius-s); font-stretch: 80%; text-transform: uppercase; letter-spacing: .02em; font-size: .85rem; }
body.sb .btn--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
body.sb .btn--accent:hover { background: var(--violet); border-color: var(--violet); }
body.sb .btn--outline { border-color: currentColor; }
body.sb .btn--outline:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
body.sb .section--dark .btn--accent, body.sb .site-footer .btn--accent, body.sb .signup-card .btn--accent, body.sb .rail-card--violet .btn--accent { background: var(--lime); color: var(--ink); border-color: var(--lime); }
body.sb .field input[type="email"], body.sb .field input[type="search"], body.sb .field input[type="text"] { border: 2px solid var(--ink); border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
body.sb .field label { font-weight: 700; }

/* 5. Header -------------------------------------------------------------------- */
body.sb .site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); color: var(--ink); -webkit-backdrop-filter: saturate(1.2) blur(10px); backdrop-filter: saturate(1.2) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
body.sb .site-header.is-stuck { border-bottom-color: var(--line); }
body.sb .site-header__bar { position: relative; min-height: 72px; gap: 16px; }
body.sb .logo { display: inline-flex; align-items: baseline; gap: .3rem; color: var(--violet); text-decoration: none; }
.logo__script { font-family: var(--font-script); font-size: 1.95rem; line-height: 1; display: inline-block; transform: rotate(-5deg); white-space: nowrap; letter-spacing: -.01em; }
.logo__tag { font-family: var(--font-head); font-weight: 800; font-stretch: 75%; text-transform: uppercase; font-size: .7rem; letter-spacing: .14em; }
body.sb .logo:hover .logo__script { transform: rotate(-8deg) scale(1.03); transition: transform .6s var(--ease-spring); }
@media (min-width: 901px) {
  body.sb .primary-nav { position: absolute; left: 50%; transform: translateX(-50%); }
  body.sb .primary-nav ul { gap: 2px; background: var(--paper); padding: 4px 6px; border-radius: var(--radius-s); box-shadow: 0 1px 0 rgba(0,0,0,.04); }
}
body.sb .primary-nav a { display: block; padding: .55rem .75rem; border-radius: .3rem; color: var(--ink); font-weight: 700; font-stretch: 80%; text-transform: uppercase; font-size: .78rem; letter-spacing: .02em; background-image: none !important; }
body.sb .primary-nav a:hover { background: var(--lime); text-decoration: none; }
body.sb .primary-nav a[aria-current="page"], body.sb .primary-nav a[aria-current="true"] { box-shadow: none; background: var(--ink); color: #fff; border-radius: .3rem; }
body.sb .icon-btn { width: 40px; height: 40px; border-radius: var(--radius-s); background: var(--paper); color: var(--ink); }
body.sb .icon-btn:hover { background: var(--lime); }
body.sb .icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
body.sb .search-panel { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 16px 0; }
body.sb .search-panel label { color: var(--ink); }
body.sb .topics-bar { border-top: 0; }
body.sb .topics-bar ul { gap: 8px; padding: 2px 0 14px; scrollbar-width: none; }
body.sb .topics-bar ul::-webkit-scrollbar { display: none; }
body.sb .topics-bar a { display: inline-flex; align-items: center; min-height: 32px; padding: 0 .85rem; border-radius: 50em; background: transparent; border: 1.5px solid var(--line); color: var(--ink); font-size: .8rem; font-weight: 600; white-space: nowrap; background-image: none !important; transition: background-color .2s, border-color .2s, transform .5s var(--ease-spring); }
body.sb .topics-bar a:hover { background: var(--paper); border-color: var(--ink); text-decoration: none; transform: translateY(-1px); }
body.sb .topics-bar a[aria-current="page"], body.sb .topics-bar a[aria-current="true"] { background: var(--violet); border-color: var(--violet); color: #fff; box-shadow: none; }
@media (max-width: 900px) {
  body.sb .site-header__bar { min-height: 60px; }
  body.sb .logo__script { font-size: 1.6rem; }
  body.sb.js .primary-nav, .js body.sb .primary-nav { top: 60px; background: var(--paper); border-top: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 0 0 var(--radius-l) var(--radius-l); }
  body.sb .primary-nav a { font-size: 1.4rem; font-stretch: 70%; padding: 12px 4px; }
  body.sb .primary-nav a[aria-current="page"], body.sb .primary-nav a[aria-current="true"] { background: none; color: var(--violet); }
  body.sb .header-actions .btn-dot { padding: 0 .75rem; }
}
@media (max-width: 420px) { body.sb .header-actions .btn-dot { display: none; } }

/* 6. Home: top stories ------------------------------------------------------------ */
.front-top { padding: clamp(12px, 2vw, 28px) 0 clamp(36px, 5vw, 64px); }
.front-top__head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: clamp(18px, 2.5vw, 28px); }
.front-top__date { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; color: var(--muted); }
.front-top__grid { display: grid; gap: clamp(20px, 2.4vw, 32px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 720px) { .front-top__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .story--lead { grid-column: 1 / -1; } .front-top__latest { grid-column: 1 / -1; } .front-top__second { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: inherit; } }
@media (min-width: 1100px) {
  .front-top__grid { grid-template-columns: minmax(0, 6.2fr) minmax(0, 3fr) minmax(0, 2.8fr); align-items: start; }
  .story--lead { grid-column: 1; } .front-top__second { grid-column: 2; display: grid; grid-template-columns: 1fr; gap: 28px; } .front-top__latest { grid-column: 3; }
}

.story { position: relative; display: flex; flex-direction: column; gap: 14px; }
.story__media { position: relative; overflow: visible; background: transparent; border-radius: var(--radius-l); }
.story__media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-l); background: var(--soft); box-shadow: var(--shadow); transition: transform .7s var(--ease-spring); }
.story:hover .story__media img { transform: rotate(-1.2deg) scale(1.015); }
.story__body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.story__title { margin: 0; font-size: 1.375rem; font-stretch: 75% !important; line-height: 1.02 !important; text-wrap: balance; }
.story__title a { color: inherit; text-decoration: none; }
.story__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-l); }
.story:hover .story__title a { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--violet); }
.story__title a:focus-visible { outline: none; }
.story__title a:focus-visible::after { outline: 3px solid var(--violet); outline-offset: 6px; }
.story__dek { margin: 0; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; color: var(--ink-2); max-width: 44ch; }
.story .meta, .story .meta time { font-size: .8rem; color: var(--muted); font-weight: 500; letter-spacing: .01em; }
.meta__by { font-weight: 700; color: var(--ink); }

.story--lead .story__media img { aspect-ratio: 3 / 2; }
.story--lead .sticker { top: -14px; right: 18px; }
.story--lead .story__title { font-size: clamp(2.1rem, 1rem + 3.2vw, 3.9rem); font-stretch: 62% !important; text-transform: uppercase; line-height: .9 !important; letter-spacing: -.01em; }
.story--lead .story__dek { font-size: clamp(1.3rem, 1rem + .8vw, 1.65rem); }
.story--tile .story__title { font-size: 1.45rem; }
.story--tile .story__media img { aspect-ratio: 3 / 2; }

.front-top__latest { background: var(--paper); border-radius: var(--radius-l); padding: 20px 20px 18px; box-shadow: var(--shadow); }
.headlines { counter-reset: hl; }
.headlines > li { padding: 12px 0; border-top: 1px solid var(--line); }
.headlines > li:first-child { border-top: 0; padding-top: 4px; }
.story--mini { gap: 6px; }
.story--mini .story__body { gap: 6px; }
.story--mini .pill { min-height: 0; padding: 0; background: none; box-shadow: none; font-size: .68rem; color: var(--muted); }
.story--mini .story__title { font-size: 1.08rem; font-stretch: 85% !important; font-weight: 700; line-height: 1.15 !important; }
.story--mini .story__title a::after { border-radius: 6px; }
.front-top__latest .link-arrow { margin-top: 10px; font-size: 1.15rem; }

@media (max-width: 719px) {
  .front-top__second { display: grid; gap: 0; }
  .front-top__second .story--tile { display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
  .front-top__second .story--tile .story__media { grid-column: 2; grid-row: 1; }
  .front-top__second .story--tile .story__body { grid-column: 1; grid-row: 1; gap: 8px; }
  .front-top__second .story--tile .story__media img { aspect-ratio: 1 / 1; border-radius: var(--radius); }
  .front-top__second .story--tile .story__title { font-size: 1.2rem; }
}

/* 7. Ticker --------------------------------------------------------------------------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding: 14px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 48s linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track { animation-play-state: paused; }
.ticker__list { display: flex; flex: none; }
.ticker__list li { display: flex; align-items: center; }
.ticker__list a { font-family: var(--font-head); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 2vw, 2.6rem); line-height: 1; color: var(--ink); text-decoration: none; padding: 4px 0; transition: color .2s; }
.ticker__list a:hover { color: var(--violet); }
.burst { display: inline-grid; place-items: center; margin: 0 clamp(18px, 2.4vw, 34px); color: var(--violet); }
.burst svg { width: 22px; height: 22px; fill: currentColor; animation: spin 9s linear infinite; }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* 8. Fresh river + rail ----------------------------------------------------------------- */
body.sb .section { padding: clamp(48px, 7vw, 96px) 0; }
.front-fresh__grid { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .front-fresh__grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; } .front-fresh__rail { position: sticky; top: 96px; } }
.river-list > li { padding: 22px 0; border-top: 1px solid var(--line); }
.river-list > li:first-child { border-top: 0; padding-top: 0; }
.story--row { display: grid; grid-template-columns: minmax(0, 1fr) clamp(120px, 28vw, 300px); gap: clamp(16px, 2.5vw, 32px); align-items: start; }
.story--row .story__media { grid-column: 2; grid-row: 1; }
.story--row .story__body { grid-column: 1; grid-row: 1; }
.story--row .story__title { font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); }
.story--row .story__dek { font-size: 1.2rem; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.story--row .story__media img { border-radius: var(--radius); }
.story--row:nth-child(odd) .story__media img { }
.river-list > li:nth-child(3n+1) .story--row:hover .story__media img { transform: rotate(1.5deg) scale(1.02); }
@media (max-width: 560px) { .story--row .story__dek { display: none; } .story--row .story__title { font-size: 1.2rem; } }

.rail-card { position: relative; background: var(--paper); border-radius: var(--radius-l); padding: 22px; box-shadow: var(--shadow); }
.rail-card + .rail-card { margin-top: 28px; }
.rail-card--violet { background: var(--violet); color: #fff; padding-top: 30px; }
.rail-card--violet h2 { font-size: 1.9rem; font-stretch: 62% !important; text-transform: uppercase; line-height: .92; margin: 0 0 10px; }
.rail-card--violet p { font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25; margin: 0 0 18px; color: #fff; }
.rail-card--violet .btn-pill { background: var(--ink); }
.rail-card--violet .sticker { top: -16px; right: 16px; }
body.sb .ranked li { padding: 12px 0 12px 44px; border-top: 1px solid var(--line); }
body.sb .ranked li:first-child { border-top: 0; padding-top: 2px; }
body.sb .ranked li:first-child::before { top: 0; }
body.sb .ranked li::before { left: 0; top: 10px; width: 34px; text-align: left; font-family: var(--font-head); font-weight: 800; font-stretch: 62%; font-size: 2.3rem; line-height: .9; color: var(--violet); }
body.sb .ranked a { display: block; font-size: 1.05rem; font-weight: 700; font-stretch: 85%; line-height: 1.2; color: var(--ink); }

/* 9. Desk spotlight cards --------------------------------------------------------------- */
.front-spot { overflow: hidden; }
.spot-cards { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 860px) { .spot-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); align-items: start; padding: 24px 0 12px; } .spot-card:nth-child(1) { transform: rotate(-3deg) translateY(18px); } .spot-card:nth-child(2) { transform: translateY(-8px); } .spot-card:nth-child(3) { transform: rotate(3deg) translateY(10px); } .spot-card:hover { transform: rotate(0) translateY(-6px); } }
.spot-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-l); overflow: visible; box-shadow: 0 30px 60px -30px rgba(18,18,18,.45); transition: transform .8s var(--ease-spring); }
.spot-card__media { border-radius: var(--radius-l) var(--radius-l) 0 0; aspect-ratio: 4 / 3; overflow: hidden; }
.spot-card__media img { width: 100%; height: 100%; object-fit: cover; }
.spot-card .sticker { top: -14px; right: 14px; }
.spot-card__body { padding: 22px 22px 24px; border-radius: 0 0 var(--radius-l) var(--radius-l); flex: 1; }
.spot-card--violet .spot-card__body { background: var(--violet); color: #fff; }
.spot-card--lime .spot-card__body { background: var(--lime); color: var(--ink); }
.spot-card--coral .spot-card__body { background: var(--coral); color: var(--ink); }
.spot-card__title { margin: 0 0 14px; font-size: clamp(1.7rem, 1.2rem + 1.2vw, 2.3rem); font-stretch: 62% !important; text-transform: uppercase; line-height: .9 !important; }
.spot-card__title a { color: inherit; text-decoration: none; }
.spot-card__title a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.spot-card__list li { padding: 11px 0; border-top: 1px solid currentColor; border-top-color: color-mix(in srgb, currentColor 35%, transparent); }
.spot-card__list a { display: block; color: inherit; font-weight: 700; font-stretch: 85%; line-height: 1.2; text-decoration: none; }
.spot-card__list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.spot-card__meta { display: block; margin-top: 4px; font-size: .78rem; opacity: .85; }

/* 10. Lower home sections (tutorials, interview, agencies, desks, awards, newsletter) ---- */
body.sb .section-title h2 { font-size: var(--t-l); font-stretch: 62%; text-transform: uppercase; line-height: .9; }
body.sb .section-title p { font-family: var(--font-serif); font-size: clamp(1.2rem, 1rem + .6vw, 1.6rem); line-height: 1.2; color: var(--ink-2); max-width: 40ch; }
body.sb .section--dark { background: var(--ink); color: var(--on-dark); }
body.sb .section--dark .section-title p { color: var(--on-dark-muted); }
body.sb .section--desks { background: var(--cream); border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; }
body.sb .desk__row { color: var(--ink); border-color: var(--line); }
body.sb .desk__name { font-family: var(--font-head); font-weight: 800; font-stretch: 62%; text-transform: uppercase; font-size: clamp(1.6rem, 1rem + 1.6vw, 2.4rem); line-height: .95; }
body.sb .desk__latest { color: var(--ink-2); }
body.sb .desk__count { color: var(--muted); font-weight: 600; }
body.sb .desk__row::before { background: var(--lime) !important; }
body.sb .desk__preview img { border-radius: var(--radius-l); box-shadow: var(--shadow); }
body.sb .tut img, body.sb .interview__media .media, body.sb .tut .media { border-radius: var(--radius-l); }
body.sb .interview__quote, body.sb .interview__quote p { font-family: var(--font-serif); font-weight: 400; }
body.sb .awards__statement h2 { font-stretch: 62%; text-transform: uppercase; }
body.sb .section--newsletter { background: var(--ink); color: var(--on-dark); border-radius: clamp(24px, 4vw, 48px) clamp(24px, 4vw, 48px) 0 0; padding-bottom: clamp(56px, 8vw, 112px); }
body.sb .nl h2 { font-size: var(--t-l); font-stretch: 62%; text-transform: uppercase; line-height: .9; max-width: 15ch; }
body.sb .nl h2::after { content: "Free \00B7  weekly"; display: block; width: max-content; margin-top: 18px; padding: .3em .8em .4em; border-radius: .8em; background: var(--lime); color: var(--ink); font-family: var(--font-script); font-weight: 400; text-transform: none; font-size: 1.25rem; line-height: 1; transform: rotate(-4deg); }
body.sb .nl__text { font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + .6vw, 1.6rem); line-height: 1.25; color: var(--on-dark); }
body.sb .section--newsletter .field label, body.sb .section--newsletter .form-note { color: var(--on-dark-muted); }
body.sb .section--newsletter .field input { border-color: var(--on-dark); background: transparent; color: #fff; }
body.sb .section--newsletter .btn--accent { background: var(--lime); color: var(--ink); border-color: var(--lime); }
body.sb .nl__issue { background: #1d1d1d; border-radius: var(--radius-l); border-top: 0; padding: 22px; }
body.sb .section--awards { background: transparent; }
body.sb .awards__statement h2 { font-size: var(--t-m); line-height: .92; }
body.sb .nl__issue-label { color: var(--lime); }
body.sb .nl + .site-footer, body.sb main + .site-footer { border-top: 0; }

/* 11. Footer --------------------------------------------------------------------------- */
body.sb .site-footer { background: var(--ink); color: var(--on-dark); border-top: 1px solid var(--rule-dark); }
body.sb .section--newsletter + * { }
body.sb .site-footer h2 { color: var(--on-dark-muted); font-size: .78rem; font-stretch: 85%; letter-spacing: .12em; text-transform: uppercase; }
body.sb .site-footer a { color: var(--on-dark); }
body.sb .site-footer a:hover { color: var(--lime); }
.footer-mark { display: inline-flex; align-items: baseline; gap: .4rem; color: var(--lime) !important; text-decoration: none !important; margin-bottom: 14px; }
.footer-mark .logo__script { font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem); }
body.sb .site-footer .tagline { font-family: var(--font-serif); font-size: 1.35rem; line-height: 1.2; color: var(--on-dark); }
body.sb .site-footer__bottom { border-top-color: var(--rule-dark); color: var(--on-dark-muted); }
.back-top { text-decoration: none; }
body.sb .social a { border-radius: 50%; }
body.sb .social svg { fill: currentColor; }

/* 12. Article ---------------------------------------------------------------------------- */
body.sb .article-hero-band, body.sb .cat-head { background: var(--bg); color: var(--ink); padding-top: 8px; padding-bottom: clamp(24px, 3vw, 40px); }
body.sb .breadcrumb { color: var(--muted); font-size: .85rem; }
body.sb .breadcrumb a { color: var(--ink); text-decoration-color: var(--line); }
body.sb .breadcrumb a:hover { text-decoration-color: var(--violet); }
body.sb .article-hero-band .kicker { margin: 18px 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
body.sb .article-hero-band h1 { font-size: clamp(2.3rem, 1.1rem + 4vw, 4.6rem); font-stretch: 68%; font-weight: 800; line-height: .95; letter-spacing: -.01em; max-width: 20ch; margin: 0; text-wrap: balance; }
.article-hero-band__dek { margin: 18px 0 0; font-family: var(--font-serif); font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); line-height: 1.2; color: var(--ink-2); max-width: 46ch; }
body.sb .article-layout { padding-top: 8px; }
@media (min-width: 1081px) { body.sb .article-layout { gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) 320px; } }
body.sb .hero-figure { margin: 0 0 28px; }
body.sb .hero-figure .media { border-radius: var(--radius-l); box-shadow: var(--shadow); }
body.sb .hero-figure figcaption { display: flex; align-items: center; gap: .5rem; padding-top: 12px; font-size: .82rem; color: var(--muted); }
body.sb .hero-figure figcaption::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--violet); flex: none; }
body.sb .byline { border-bottom: 2px solid var(--ink); padding-bottom: 18px; margin-bottom: 8px; }
body.sb .byline__by { font-size: 1rem; }
body.sb .byline__by a { color: var(--ink); text-decoration-color: var(--violet); text-decoration-thickness: 2px; }
body.sb .share .btn { border-radius: 50em; border-width: 1.5px; min-height: 38px; font-size: .75rem; }
body.sb .article-body { max-width: 720px; }
body.sb .prose { font-size: 1.1875rem; line-height: 1.7; color: var(--ink); max-width: 68ch; }
body.sb .prose > * + * { margin-top: 1.15em; }
body.sb .prose > p:first-child::first-letter { float: left; font-family: var(--font-head); font-weight: 800; font-stretch: 62%; font-size: 3.6em; line-height: .8; margin: .1em .1em 0 0; color: var(--violet); }
body.sb .prose h2 { font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); font-stretch: 68%; text-transform: uppercase; line-height: .95; margin-top: 1.8em; }
body.sb .prose h3 { font-size: 1.45rem; font-stretch: 80%; margin-top: 1.5em; }
body.sb .prose a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
body.sb .prose a:hover { color: var(--ink); background: var(--lime); text-decoration-color: var(--ink); }
body.sb .prose li::marker { color: var(--violet); }
body.sb .prose blockquote { margin-left: 0; margin-right: 0; padding: 6px 0 6px 22px; border-left: 4px solid var(--violet); font-family: var(--font-serif); font-size: 1.55rem; line-height: 1.25; }
body.sb .prose figure img, body.sb .prose .wp-block-image img { border-radius: var(--radius); }
body.sb .prose figcaption, body.sb .prose .wp-element-caption { font-size: .82rem; color: var(--muted); }
body.sb .prose table { border-collapse: collapse; width: 100%; font-size: 1rem; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
body.sb .prose th, body.sb .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
body.sb .prose th { background: var(--ink); color: #fff; font-stretch: 85%; }
body.sb .prose code { background: var(--paper); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
body.sb .toc { background: var(--paper); border: 0; border-radius: var(--radius-l); box-shadow: var(--shadow); }
body.sb .inline-related { border-top: 0; background: var(--cream); border-radius: var(--radius-l); padding: 20px; }
body.sb .inline-related h2 { font-size: .8rem !important; letter-spacing: .1em; text-transform: uppercase; font-stretch: 85%; }
body.sb .media { border-radius: var(--radius); background: var(--soft); }
body.sb .media:not(.story__media) img { width: 100%; height: 100%; object-fit: cover; }
body.sb .card { gap: 10px; }
body.sb .card .media { border-radius: var(--radius-l); box-shadow: var(--shadow); }
body.sb .card__title { font-size: 1.3rem; font-stretch: 75%; line-height: 1.05; }
body.sb .card__title a { color: var(--ink); }
body.sb .card--lg .card__title, body.sb .lead__title { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.2rem); font-stretch: 62%; text-transform: uppercase; line-height: .9; }
body.sb .kicker, body.sb .kicker a { color: var(--ink); font-weight: 700; font-stretch: 85%; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
body.sb .card > .kicker, body.sb .row .kicker { display: inline-flex; width: max-content; align-items: center; gap: .45em; padding: .3rem .7rem; border-radius: 50em; background: var(--paper); }
body.sb .card > .kicker::before, body.sb .row .kicker::before { content: ""; width: .45em; height: .45em; border-radius: 50%; background: var(--violet); }
body.sb .meta { color: var(--muted); font-size: .82rem; }
body.sb .tags a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border: 1.5px solid var(--ink); color: var(--ink); border-radius: 50em; font-size: .8rem; font-weight: 600; }
body.sb .tags a:hover { background: var(--lime); color: var(--ink); box-shadow: none; }
body.sb .authors { border-top: 2px solid var(--ink); }
body.sb .author .media { border-radius: 50%; box-shadow: none; }
body.sb .author h2 { font-size: 1.4rem; font-stretch: 75%; }
body.sb .author a { color: var(--link); }
body.sb .signup-card { background: var(--violet); color: #fff; border-top: 0; border-radius: var(--radius-l); padding: 26px; }
body.sb .signup-card h2, body.sb .signup-card h3 { font-size: 1.9rem; font-stretch: 62%; text-transform: uppercase; line-height: .92; }
body.sb .signup-card > p { color: #fff; font-family: var(--font-serif); font-size: 1.2rem; line-height: 1.25; }
body.sb .signup-card .field label, body.sb .signup-card .form-note, body.sb .signup-card .form-note a { color: #fff; }
body.sb .signup-card .field input { border-color: #fff; }
body.sb .signup-card .btn--accent { background: var(--ink); color: #fff; border-color: var(--ink); }
body.sb .signup-card .btn--accent:hover { background: var(--lime); color: var(--ink); border-color: var(--lime); }
body.sb .rail .section-head, body.sb .section-head { border-top: 2px solid var(--ink); }
body.sb .section-head h2, body.sb .section-head h1 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.2rem); font-stretch: 62%; text-transform: uppercase; }
body.sb .section-head a { color: var(--ink); font-family: var(--font-serif); font-weight: 400; font-size: 1.2rem; }

/* 13. Archives, search, author, pages ----------------------------------------------------- */
body.sb .cat-head h1, body.sb .author-head h1 { font-size: var(--t-xl); font-stretch: 62%; text-transform: uppercase; line-height: .85; letter-spacing: -.01em; margin: 18px 0 14px; max-width: none; }
body.sb .cat-head p { font-family: var(--font-serif); font-size: clamp(1.25rem, 1rem + .7vw, 1.7rem); line-height: 1.2; color: var(--ink-2); }
body.sb .chips { gap: 8px; }
body.sb .chips a, body.sb .chips--light a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 1rem; border-radius: 50em; background: var(--paper); border: 0; color: var(--ink); font-size: .82rem; font-weight: 700; box-shadow: 0 1px 0 rgba(0,0,0,.05); background-image: none !important; }
body.sb .chips a:hover, body.sb .chips--light a:hover { background: var(--lime); color: var(--ink); box-shadow: none; }
body.sb .chips a[aria-current="page"] { background: var(--ink); color: #fff; box-shadow: none; }
body.sb .rows > li { border-top-color: var(--line); padding: 20px 0; }
body.sb .row__title { font-size: clamp(1.25rem, 1rem + .8vw, 1.7rem); font-stretch: 75%; line-height: 1.05; }
body.sb .row__title a { color: var(--ink); }
body.sb .row__excerpt { font-family: var(--font-serif); font-size: 1.15rem; line-height: 1.25; color: var(--ink-2); }
body.sb .row .media { border-radius: var(--radius); }
body.sb .band--soft { background: var(--cream); }
body.sb .pagination a, body.sb .pagination span.page { border-radius: 50em; }
body.sb .pagination a[aria-current="page"] { background: var(--ink); color: #fff; border-color: var(--ink); }
body.sb .page-article h1, body.sb .not-found h1 { font-stretch: 62%; text-transform: uppercase; }
body.sb .not-found__code { color: var(--violet); font-stretch: 62%; }
body.sb mark, body.sb .row__excerpt mark { background: var(--lime); }

/* 14. Motion and accessibility guards -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ticker__track, .burst svg, .live-dot { animation: none !important; }
  .ticker { overflow-x: auto; }
  .ticker__list[aria-hidden="true"] { display: none; }
  .spot-card, .story__media img, a.pill, .btn-dot, .btn-pill__icon, .link-arrow__icon { transition: none !important; }
  html.sb-js .squiggle path { stroke-dashoffset: 0 !important; transition: none !important; }
  .story:hover .story__media img, .spot-card:hover { transform: none; }
  @media (min-width: 860px) { .spot-card:hover:nth-child(1) { transform: rotate(-3deg) translateY(18px); } .spot-card:hover:nth-child(2) { transform: translateY(-8px); } .spot-card:hover:nth-child(3) { transform: rotate(3deg) translateY(10px); } }
}
@media (forced-colors: active) {
  .pill, .sticker, .rail-card, .spot-card__body { border: 1px solid CanvasText; }
  .squiggle, .burst { display: none; }
}
@media print {
  body.sb .site-header, .ticker, .front-fresh__rail, body.sb .site-footer, .sticker { display: none !important; }
  body.sb { background: #fff; }
}

/* 18 Nov 2026: Martin asked for 4px image corners everywhere. */
body.sb img, body.sb .media, body.sb .story__media, body.sb .story__media img,
body.sb .front-top__second .story--tile .story__media img, body.sb .story--row .story__media img,
body.sb .spot-card__media, body.sb .desk__preview img, body.sb .tut img, body.sb .tut .media,
body.sb .interview__media .media, body.sb .hero-figure .media, body.sb .hero-figure img,
body.sb .prose figure img, body.sb .prose .wp-block-image img, body.sb .card .media, body.sb .row .media,
body.sb .story__title a::after, body.sb .story--mini .story__title a::after { border-radius: 4px !important; }
body.sb .spot-card__media { border-radius: 4px 4px 0 0 !important; }
body.sb .author .media, body.sb .author img, body.sb .social a img, body.sb .avatar { border-radius: 50% !important; }

/* 18 Nov 2026: chips and pills use the same corner as the header nav (--radius-s). */
body.sb .topics-bar a, body.sb .chips a, body.sb .chips--light a, body.sb .tags a, .pill,
body.sb .card > .kicker, body.sb .row .kicker, body.sb .pagination a, body.sb .pagination span.page,
body.sb .share .btn, .btn-pill { border-radius: var(--radius-s) !important; }
