/**
 * Page structures (masthead, front page, ledger, article spread, colophon)
 * Layout language: newspaper broadsheet. Rules over shadows, columns over cards,
 * horizontal index rows instead of a uniform tile grid.
 */

/* =================================================================
   1. MASTHEAD
   ================================================================= */
.ik-masthead {
    /* Scrolls with the page: no sticky positioning, the masthead is part of
       the document flow like a printed front page. */
    position: relative;
    z-index: 60;
    background: var(--ik-paper);
    border-bottom: 1px solid var(--ik-rule);
}

.ik-masthead__top {
    display: flex;
    align-items: center;
    gap: var(--ik-gap-sm);
    min-height: var(--ik-masthead-h);
    width: var(--ik-shell);
    margin-inline: auto;
}

/* nameplate: stacked wordmark + edition line */
.ik-nameplate {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 48px;
    color: var(--ik-ink);
    text-decoration: none;
    margin-right: auto;
}

.ik-nameplate:hover {
    color: var(--ik-ink);
}

.ik-nameplate__mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex: none;
    background: var(--ik-vermilion);
    color: var(--ik-paper);
    font-family: var(--ik-font-display);
    font-size: 1.32rem;
    font-weight: 800;
    line-height: 1;
    /* printed plate offset */
    box-shadow: 3px 3px 0 var(--ik-ink);
    transform: rotate(-2deg);
}

.ik-nameplate__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.ik-nameplate__word {
    font-family: var(--ik-font-display);
    font-size: clamp(1.15rem, 2.2vw, 1.5rem);
    font-weight: 800;
    font-variation-settings: "SOFT" 0, "WONK" 1;
    letter-spacing: -0.03em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ik-nameplate__edition {
    font-family: var(--ik-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
    line-height: 1.5;
    white-space: nowrap;
}

/* primary nav: underlined column links */
.ik-nav {
    display: none;
    align-items: center;
    gap: 0.15rem;
}

.ik-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.7rem;
    color: var(--ik-ink-soft);
    font-family: var(--ik-font-mono);
    font-size: var(--ik-step--2);
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.16s var(--ik-ease);
}

.ik-nav__link::after {
    content: "";
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.28rem;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s var(--ik-ease);
}

.ik-nav__link:hover::after,
.ik-nav__link[aria-current="page"]::after {
    transform: scaleX(1);
}

.ik-nav__link[aria-current="page"] {
    color: var(--ik-vermilion-deep);
}

.ik-nav__num {
    font-size: 0.56rem;
    color: var(--ik-ink-faint);
}

/* masthead utilities: search + drawer toggle */
.ik-masthead__tools {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.ik-icon-btn {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ik-ink);
    border: 1px solid var(--ik-rule);
    background: var(--ik-paper-card);
    transition: background 0.16s var(--ik-ease), border-color 0.16s var(--ik-ease);
}

.ik-icon-btn:hover {
    background: var(--ik-gold-wash);
    border-color: var(--ik-ink);
}

.ik-icon-btn svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: square;
}

/* drawer (mobile nav) */
.ik-drawer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s var(--ik-ease);
    border-top: 0 solid var(--ik-rule);
    background: var(--ik-paper-deep);
}

.ik-drawer.is-open {
    grid-template-rows: 1fr;
    border-top-width: 1px;
}

.ik-drawer__inner {
    overflow: hidden;
}

.ik-drawer__list {
    width: var(--ik-shell);
    margin-inline: auto;
    padding: var(--ik-gap-sm) 0;
    display: grid;
    gap: 1px;
    background: var(--ik-rule);
}

.ik-drawer__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0.4rem;
    background: var(--ik-paper-deep);
    color: var(--ik-ink);
    font-family: var(--ik-font-display);
    font-size: 1.12rem;
    font-weight: 600;
    text-decoration: none;
}

.ik-drawer__link span {
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

/* edition strip below the nameplate */
.ik-edition-strip {
    border-top: 3px double var(--ik-ink);
    border-bottom: 1px solid var(--ik-ink);
    background: var(--ik-ink);
    color: var(--ik-paper);
}

.ik-edition-strip__inner {
    width: var(--ik-shell);
    margin-inline: auto;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 0.42rem 0;
    font-family: var(--ik-font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
}

.ik-edition-strip__item {
    color: var(--ik-paper);
    opacity: 0.86;
}

.ik-edition-strip__sep {
    color: var(--ik-gold);
}

/* =================================================================
   2. SEARCH PANEL (shared, inline under masthead)
   ================================================================= */
.ik-searchbar {
    width: var(--ik-shell);
    margin-inline: auto;
    padding: 0 0 var(--ik-gap-sm);
    display: none;
}

.ik-searchbar.is-open {
    display: block;
}

.ik-searchbar__form {
    display: flex;
    align-items: stretch;
    border: 2px solid var(--ik-ink);
    background: var(--ik-paper-card);
    box-shadow: var(--ik-shadow-cut-sm);
}

.ik-searchbar__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--ik-ink);
    font-family: var(--ik-font-mono);
    font-size: 0.9rem;
}

.ik-searchbar__input:focus {
    outline: none;
}

.ik-searchbar__input::placeholder {
    color: var(--ik-ink-faint);
    letter-spacing: 0.04em;
}

.ik-searchbar__clear {
    width: 44px;
    flex: none;
    color: var(--ik-ink-mute);
    font-size: 1.2rem;
    line-height: 1;
}

.ik-searchbar__clear:hover {
    color: var(--ik-vermilion-deep);
}

.ik-searchbar__submit {
    flex: none;
    padding: 0 1rem;
    border-left: 2px solid var(--ik-ink);
    /* AA-safe fill for the small mono label */
    background: var(--ik-vermilion-fill);
    color: var(--ik-paper);
    font-family: var(--ik-font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ik-searchbar__submit:hover {
    background: var(--ik-vermilion-deep);
}

.ik-search-results {
    margin-top: 0.55rem;
    border: 1px solid var(--ik-rule-strong);
    background: var(--ik-paper-card);
    max-height: 60vh;
    overflow-y: auto;
}

.ik-search-results:empty {
    display: none;
}

.ik-search-hit {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-bottom: 1px solid var(--ik-rule-hair);
    color: var(--ik-ink);
    text-decoration: none;
}

.ik-search-hit:last-child {
    border-bottom: 0;
}

.ik-search-hit:hover {
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

.ik-search-hit img {
    width: 42px;
    height: 42px;
    object-fit: cover;
    border: 1px solid var(--ik-rule);
    background: var(--ik-paper-deep);
}

.ik-search-hit__name {
    display: block;
    font-family: var(--ik-font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.ik-search-hit__cat {
    display: block;
    font-family: var(--ik-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

.ik-search-empty {
    padding: 1rem 0.8rem;
    font-family: var(--ik-font-mono);
    font-size: 0.78rem;
    color: var(--ik-ink-mute);
}

/* =================================================================
   3. FRONT PAGE (home)
   ================================================================= */
.ik-front {
    padding-top: var(--ik-gap-lg);
}

/* 3.1 dateline / intro band */
.ik-dateline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    padding-bottom: var(--ik-gap-sm);
    border-bottom: 1px solid var(--ik-ink);
    /* the mono webfont wraps this to a different line count than the fallback;
       reserving the final height keeps the grid below perfectly still */
    min-height: 114px;
    font-family: var(--ik-font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

@media (min-width: 700px) {
    .ik-dateline {
        min-height: 0;
    }
}

.ik-dateline__dot {
    width: 6px;
    height: 6px;
    background: var(--ik-vermilion);
    flex: none;
}

.ik-dateline strong {
    color: var(--ik-ink);
}

/* 3.2 lead spread: story column + right rail */
.ik-front-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ik-gap-lg);
    padding: var(--ik-gap-md) 0 var(--ik-gap-lg);
}

.ik-lead {
    min-width: 0;
}

.ik-lead__figure {
    position: relative;
    margin-bottom: var(--ik-gap-md);
    border: 2px solid var(--ik-ink);
    background: var(--ik-paper-deep) var(--ik-art-hero) center / cover no-repeat;
    aspect-ratio: 16 / 9;
    box-shadow: var(--ik-shadow-cut);
}

/* printed caption tab sitting on the plate */
.ik-lead__tab {
    position: absolute;
    left: -2px;
    bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.34rem 0.7rem;
    background: var(--ik-ink);
    color: var(--ik-paper);
    font-family: var(--ik-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ik-lead__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem 0.8rem;
    margin-bottom: 0.7rem;
    /* the rating lands here after load; reserve its row */
    min-height: 1.9em;
}

.ik-lead__icon {
    position: absolute;
    right: 14px;
    top: 14px;
    width: clamp(64px, 12%, 96px);
    height: auto;
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid var(--ik-paper);
    box-shadow: 5px 5px 0 rgba(27, 23, 21, 0.55);
    background: var(--ik-paper-deep);
}

.ik-lead__byline {
    /* written after load; the line box is reserved so the deck stays put */
    min-height: 1.6em;
    margin-bottom: 0.4rem;
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

.ik-lead__title {
    margin-bottom: 0.85rem;
}

/* Two lines are reserved for the largest display setting so the injected
   headline does not resize the lead block after load. */
/* The front-page lead is the loudest line on the site. */
.ik-lead__title {
    font-size: clamp(2.15rem, 1.35rem + 3.6vw, 4rem);
    min-height: 1.96em;
}

.ik-lead__title a {
    color: var(--ik-ink);
    text-decoration: none;
}

.ik-lead__title a:hover {
    color: var(--ik-vermilion-deep);
}

.ik-lead__deck {
    max-width: 62ch;
    /* Written after load: a clamped 3-line block keeps the rail and the ledger
       below it perfectly still, with no unused space. */
    height: calc(3 * 1.5em);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--ik-gap-md);
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-1);
    font-weight: 400;
    line-height: 1.5;
    color: var(--ik-ink-soft);
}

@media (min-width: 900px) {
    .ik-lead__deck {
        height: calc(2 * 1.5em);
        -webkit-line-clamp: 2;
    }
}

.ik-lead__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem 1.2rem;
    /* button + "read the field file" link: two rows on phones, one on desktop */
    min-height: 96px;
}

@media (min-width: 620px) {
    .ik-lead__actions {
        min-height: 46px;
    }
}

/* The rating is injected; on phones it always owns the second row, so the
   block height is identical before and after hydration. */
#ik-lead-rating {
    display: flex;
    align-items: center;
    flex-basis: 100%;
    min-height: 22px;
}

@media (min-width: 620px) {
    .ik-lead__actions {
        flex-wrap: nowrap;
    }

    #ik-lead-rating {
        flex-basis: auto;
    }
}

/* right rail on the front page */
.ik-front-rail {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: var(--ik-gap-md);
    /* The most-read rows and the "how it works" list are written after load.
       Reserve the rail so the lead column and grid below never reflow. */
    min-height: 640px;
}

@media (min-width: 900px) {
    .ik-front-rail {
        min-height: 560px;
    }
}

.ik-rail-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 3px solid var(--ik-ink);
}

.ik-rail-head__title {
    font-family: var(--ik-font-display);
    font-size: 1.16rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ik-rail-head__meta {
    font-family: var(--ik-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
    white-space: nowrap;
}

/* "most read" numbered rows */
.ik-mostread {
    display: grid;
    /* exactly five rows are rendered; hold the block open before they arrive */
    min-height: calc(5 * 74px);
}

.ik-mostread__row {
    display: grid;
    grid-template-columns: auto 58px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--ik-rule);
    color: var(--ik-ink);
    text-decoration: none;
    transition: background 0.16s var(--ik-ease);
}

.ik-mostread__row:first-child {
    padding-top: 0.2rem;
}

.ik-mostread__row:hover {
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

.ik-mostread__rank {
    font-family: var(--ik-font-display);
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1;
    color: var(--ik-ink-faint);
    font-variant-numeric: tabular-nums;
    min-width: 1.5em;
}

.ik-mostread__row:hover .ik-mostread__rank {
    color: var(--ik-vermilion);
}

.ik-mostread__thumb {
    width: 58px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--ik-rule-strong);
    background: var(--ik-paper-deep);
}

.ik-mostread__meta {
    min-width: 0;
}

.ik-mostread__name {
    display: block;
    font-family: var(--ik-font-display);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.ik-mostread__sub {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.18rem;
    font-family: var(--ik-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

/* 3.3 THIRTEEN SECTION PLATES — every section always on the page.
   Each section has a fixed block height so the page never reflows, and each
   layout (A–M) is a different composition rather than one repeated grid. */
.ik-sections {
    padding: var(--ik-gap-lg) 0 0;
    border-top: 3px double var(--ik-ink);
    margin-top: var(--ik-gap-lg);
}

.ik-sections__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-bottom: 0.7rem;
}

.ik-sections__title {
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-3);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ik-sections__aside {
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

.ik-sections__list {
    display: grid;
    gap: 0;
}

/* ---- shared section shell -------------------------------------- */
.ik-sec {
    --ik-sec-h: 468px;
    position: relative;
    padding: var(--ik-gap-md) 0;
    border-top: 1px solid var(--ik-ink);
    /* fixed height: content inside scrolls or clips, never stretches the page */
    height: var(--ik-sec-h);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

/* section heading rail */
.ik-sec__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem 1rem;
    padding-bottom: 0.55rem;
    margin-bottom: var(--ik-gap-sm);
    border-bottom: 1px solid var(--ik-rule);
    flex: none;
}

.ik-sec__num {
    font-family: var(--ik-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.16em;
    color: var(--ik-vermilion-deep);
}

.ik-sec__name {
    font-family: var(--ik-font-display);
    font-size: clamp(1.25rem, 1rem + 0.8vw, 1.65rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ik-sec__meta {
    margin-left: auto;
    font-family: var(--ik-font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
    white-space: nowrap;
}

/* the card stage fills the remaining fixed height */
.ik-sec__stage {
    flex: 1 1 auto;
    min-height: 0;
}

/* search cue: the section holding the best match gets an ink bar */
.ik-sec.is-matched {
    background: linear-gradient(to bottom, var(--ik-gold-wash), transparent 42%);
}

.ik-sec.is-matched .ik-sec__bar {
    border-bottom-color: var(--ik-ink);
}

.ik-sec.is-matched .ik-sec__num {
    color: var(--ik-ink);
}

/* ---- shared card parts ----------------------------------------- */
.ik-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    color: var(--ik-ink);
    text-decoration: none;
    background: var(--ik-paper-card);
    border: 1px solid var(--ik-rule-strong);
    transition: background 0.15s var(--ik-ease), border-color 0.15s var(--ik-ease),
        transform 0.15s var(--ik-ease);
}

.ik-card:hover,
.ik-card:focus-visible {
    color: var(--ik-ink);
    background: var(--ik-gold-wash);
    border-color: var(--ik-ink);
}

.ik-card__thumb {
    width: 100%;
    object-fit: cover;
    background: var(--ik-paper-deep);
    border-bottom: 1px solid var(--ik-rule);
    flex: none;
}

.ik-card__name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--ik-font-display);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    overflow-wrap: anywhere;
}

.ik-card__sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 0.3rem;
    font-family: var(--ik-font-mono);
    font-size: 0.54rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

.ik-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0.55rem 0.6rem 0.6rem;
}

/* =================================================================
   A · Ball — hero tile + two stacked columns (5 + 6)
   ================================================================= */
.ik-sec--a .ik-sec__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
}

.ik-sec--a .ik-card--hero {
    grid-row: span 2;
}

.ik-sec--a .ik-card--hero .ik-card__thumb {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-bottom: 0;
}

.ik-sec--a .ik-card--hero .ik-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, var(--ik-paper-card) 72%, transparent);
    border-top: 1px solid var(--ik-rule);
}

.ik-sec--a .ik-card--hero:hover .ik-card__body,
.ik-sec--a .ik-card--hero:focus-visible .ik-card__body {
    background: linear-gradient(to top, var(--ik-gold-wash) 72%, transparent);
}

.ik-sec--a .ik-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 0;
}

.ik-sec--a .ik-stack .ik-card__thumb {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-bottom: 0;
}

.ik-sec--a .ik-stack .ik-card__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.3rem 0.35rem;
    background: var(--ik-paper-card);
    border-top: 1px solid var(--ik-rule);
}

.ik-sec--a .ik-stack .ik-card:hover .ik-card__body {
    background: var(--ik-gold-wash);
}

.ik-sec--a .ik-stack .ik-card__name {
    /* 0.78rem keeps tile captions readable (was 0.72rem → 11.5px) */
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
    line-height: 1.15;
}

.ik-sec--a .ik-stack .ik-card__sub {
    display: none;
}

/* =================================================================
   B · Puzzle — one wide ribbon + a 4-up contact strip (4 + 4)
   ================================================================= */
.ik-sec--b .ik-sec__stage {
    display: grid;
    grid-template-rows: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 0.6rem;
}

.ik-sec--b .ik-ribbon {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    min-height: 0;
}

.ik-sec--b .ik-ribbon .ik-card {
    flex-direction: row;
    align-items: stretch;
}

.ik-sec--b .ik-ribbon .ik-card__thumb {
    width: 40%;
    height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--ik-rule);
}

.ik-sec--b .ik-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.6rem;
    min-height: 0;
}

.ik-sec--b .ik-strip .ik-card {
    background: var(--ik-teal);
    border-color: var(--ik-teal);
    color: var(--ik-paper);
}

.ik-sec--b .ik-strip .ik-card:hover {
    background: var(--ik-teal-mid);
    color: var(--ik-paper);
}

.ik-sec--b .ik-strip .ik-card__thumb {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-bottom: 0;
}

.ik-sec--b .ik-strip .ik-card__body {
    flex: none;
    background: var(--ik-teal);
    border-top: 1px solid rgba(244, 237, 224, 0.22);
}

.ik-sec--b .ik-strip .ik-card:hover .ik-card__body {
    background: var(--ik-teal-mid);
}

.ik-sec--b .ik-strip .ik-card__sub {
    color: var(--ik-teal-wash);
}

/* =================================================================
   C · Blast — overlapping fan of tall cards (5)
   ================================================================= */
.ik-sec--c .ik-sec__stage {
    display: flex;
    align-items: stretch;
    justify-content: center;
    /* the rotated cards extend past their box; absorb the tilt in the stage */
    padding: 0.1rem 0 0;
    overflow: hidden;
}

.ik-sec--c .ik-fan {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    min-height: 0;
    /* compensate for the widest rotated card so no corner is clipped */
    padding: 0 1.6rem;
}

.ik-sec--c .ik-fan .ik-card {
    flex: 0 1 17%;
    /* shorter than the stage so the rotated bounding box still fits it */
    height: calc(100% - 26px);
    align-self: center;
    margin-left: -2.4%;
    box-shadow: 0 0 0 1px var(--ik-ink);
    transform: rotate(var(--fan-rot, 0deg));
    transform-origin: bottom center;
    transition: transform 0.18s var(--ik-ease), background 0.15s var(--ik-ease);
}

/* the fan is rotated cards; clip the tilt inside the fixed stage */
.ik-sec--c .ik-fan {
    overflow: visible;
}

.ik-sec--c .ik-fan .ik-card:first-child {
    margin-left: 0;
}

.ik-sec--c .ik-fan .ik-card:hover,
.ik-sec--c .ik-fan .ik-card:focus-visible {
    transform: rotate(0deg) translateY(-4px);
    z-index: 3;
}

.ik-sec--c .ik-fan .ik-card__thumb {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-bottom: 0;
}

.ik-sec--c .ik-fan .ik-card__body {
    flex: none;
    background: var(--ik-paper-card);
    border-top: 1px solid var(--ik-rule);
}

.ik-sec--c .ik-fan .ik-card:hover .ik-card__body {
    background: var(--ik-gold-wash);
}

/* =================================================================
   D · Running — horizontal lanes, text left / thumb right (2 × 4)
   ================================================================= */
.ik-sec--d .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.4rem 1.2rem;
    min-height: 0;
}

.ik-sec--d .ik-lane {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0;
    border-bottom: 1px solid var(--ik-rule);
    color: var(--ik-ink);
    text-decoration: none;
    min-height: 0;
    transition: background 0.15s var(--ik-ease);
}

.ik-sec--d .ik-lane:hover,
.ik-sec--d .ik-lane:focus-visible {
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

.ik-sec--d .ik-lane__idx {
    font-family: var(--ik-font-mono);
    font-size: 0.56rem;
    color: var(--ik-vermilion-deep);
}

.ik-sec--d .ik-lane__name {
    display: block;
    font-family: var(--ik-font-display);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ik-sec--d .ik-lane__thumb {
    width: 54px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--ik-rule-strong);
    background: var(--ik-paper-deep);
}

/* =================================================================
   E · Tower Defense — fortification: tall stack + small turrets (3 + 6)
   ================================================================= */
.ik-sec--e .ik-sec__stage {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 0.6rem;
    min-height: 0;
}

.ik-sec--e .ik-fort {
    display: grid;
    gap: 0.5rem;
    min-height: 0;
}

.ik-sec--e .ik-fort .ik-card {
    flex-direction: row;
    min-height: 0;
}

.ik-sec--e .ik-fort .ik-card__thumb {
    width: 44%;
    height: 100%;
    border-bottom: 0;
    border-right: 1px solid var(--ik-rule);
}

.ik-sec--e .ik-turrets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(0, 1fr);
    gap: 0.5rem;
    min-height: 0;
}

.ik-sec--e .ik-turrets .ik-card {
    flex-direction: row;
    align-items: center;
    padding: 0.35rem;
    gap: 0.45rem;
}

.ik-sec--e .ik-turrets .ik-card__thumb {
    width: 38px;
    height: 38px;
    border: 1px solid var(--ik-rule-strong);
    flex: none;
}

.ik-sec--e .ik-turrets .ik-card__body {
    padding: 0;
    justify-content: center;
}

.ik-sec--e .ik-turrets .ik-card__name {
    font-size: 0.72rem;
    -webkit-line-clamp: 2;
}

.ik-sec--e .ik-turrets .ik-card__sub {
    display: none;
}

/* =================================================================
   F · Shooting — crosshair board, square targets (3 × 3)
   ================================================================= */
.ik-sec--f .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    padding: 0.1rem;
    background:
        repeating-linear-gradient(0deg, transparent 0 33px, rgba(27, 23, 21, 0.06) 33px 34px),
        repeating-linear-gradient(90deg, transparent 0 33px, rgba(27, 23, 21, 0.06) 33px 34px);
    border: 1px solid var(--ik-rule);
}

.ik-sec--f .ik-card {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.45rem;
}

.ik-sec--f .ik-card__thumb {
    width: 44px;
    height: 44px;
    flex: none;
    border: 2px solid var(--ik-ink);
}

.ik-sec--f .ik-card__body {
    padding: 0;
    justify-content: center;
}

.ik-sec--f .ik-card__name {
    font-size: 0.75rem;
    -webkit-line-clamp: 2;
}

.ik-sec--f .ik-card__sub {
    display: none;
}

/* =================================================================
   G · Merge — two-column ledger with dotted leaders (2 × 4)
   ================================================================= */
.ik-sec--g .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2rem;
    min-height: 0;
    align-content: start;
}

.ik-sec--g .ik-ledger-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.34rem 0;
    color: var(--ik-ink);
    text-decoration: none;
    min-width: 0;
}

.ik-sec--g .ik-ledger-row:hover,
.ik-sec--g .ik-ledger-row:focus-visible {
    color: var(--ik-vermilion-deep);
    background: var(--ik-gold-wash);
}

.ik-sec--g .ik-ledger-row__name {
    font-family: var(--ik-font-display);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 0 1 auto;
    min-width: 0;
}

.ik-sec--g .ik-ledger-row__dots {
    flex: 1 1 auto;
    min-width: 1rem;
    border-bottom: 1px dotted var(--ik-rule-strong);
    transform: translateY(-0.2em);
}

.ik-sec--g .ik-ledger-row__score {
    flex: none;
    font-family: var(--ik-font-mono);
    font-size: 0.6rem;
    color: var(--ik-ink-mute);
}

/* =================================================================
   H · Parking — angled bays in a lot (4 + 4)
   ================================================================= */
.ik-sec--h .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
    padding: 0.5rem;
    background:
        repeating-linear-gradient(115deg, transparent 0 26px, rgba(27, 23, 21, 0.09) 26px 27px);
    border: 1px solid var(--ik-rule);
}

.ik-sec--h .ik-card {
    transform: skewX(-4deg);
    border-width: 2px;
}

.ik-sec--h .ik-card > * {
    transform: skewX(4deg);
}

.ik-sec--h .ik-card__thumb {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-bottom: 0;
}

.ik-sec--h .ik-card__body {
    flex: none;
    background: var(--ik-paper-card);
    border-top: 1px solid var(--ik-rule);
}

.ik-sec--h .ik-card:hover .ik-card__body {
    background: var(--ik-gold-wash);
}

/* =================================================================
   I · Spot the difference — paired offset panels (2 × 4)
   ================================================================= */
.ik-sec--i .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    /* eight plates → four rows that share the fixed stage height exactly */
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 0.45rem 1rem;
    min-height: 0;
}

.ik-sec--i .ik-diff {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 0;
    color: var(--ik-ink);
    text-decoration: none;
    border: 1px solid var(--ik-rule-strong);
    background: var(--ik-paper-card);
    min-height: 0;
    transition: border-color 0.15s var(--ik-ease), background 0.15s var(--ik-ease);
}

.ik-sec--i .ik-diff:hover,
.ik-sec--i .ik-diff:focus-visible {
    border-color: var(--ik-ink);
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

.ik-sec--i .ik-diff__thumb {
    width: 100%;
    height: 100%;
    max-height: 100%;
    object-fit: cover;
    background: var(--ik-paper-deep);
    border-right: 1px solid var(--ik-rule);
    filter: saturate(0.85);
}

.ik-sec--i .ik-diff:hover .ik-diff__thumb {
    filter: saturate(1.05);
}

.ik-sec--i .ik-diff__body {
    padding: 0.4rem 0.5rem;
    min-width: 0;
}

.ik-sec--i .ik-diff__name {
    font-family: var(--ik-font-display);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =================================================================
   J · Match — tight checkerboard of squares (4 × 2)
   ================================================================= */
.ik-sec--j .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
    min-height: 0;
}

.ik-sec--j .ik-card {
    overflow: hidden;
    border-width: 2px;
}

.ik-sec--j .ik-card:nth-child(odd) {
    background: var(--ik-teal);
    border-color: var(--ik-teal);
    color: var(--ik-paper);
}

.ik-sec--j .ik-card:nth-child(odd):hover {
    background: var(--ik-teal-mid);
    color: var(--ik-paper);
}

.ik-sec--j .ik-card__thumb {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    border-bottom: 0;
}

.ik-sec--j .ik-card__body {
    flex: none;
    background: inherit;
    border-top: 1px solid var(--ik-rule);
}

.ik-sec--j .ik-card__name {
    font-size: 0.78rem;
}

.ik-sec--j .ik-card__sub {
    display: none;
}

/* =================================================================
   K · Music — staff lines with note cards (8)
   ================================================================= */
.ik-sec--k .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 0.45rem;
    align-items: stretch;
    /* room for the stepped notes so the staff never overflows its plate */
    padding: 0.9rem 0 1.1rem;
    background:
        repeating-linear-gradient(0deg, transparent 0 13px, rgba(27, 23, 21, 0.08) 13px 14px);
    min-height: 0;
}

.ik-sec--k .ik-note {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.3rem;
    color: var(--ik-ink);
    text-decoration: none;
    background: var(--ik-paper-card);
    border: 1px solid var(--ik-rule-strong);
    min-height: 0;
    transition: transform 0.16s var(--ik-ease), background 0.15s var(--ik-ease);
}

/* every other card sits a step lower, like notes on a staff */
.ik-sec--k .ik-note:nth-child(even) {
    transform: translateY(9px);
}

.ik-sec--k .ik-note:hover,
.ik-sec--k .ik-note:focus-visible {
    transform: translateY(-4px);
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

.ik-sec--k .ik-note:nth-child(even):hover {
    transform: translateY(10px);
}

.ik-sec--k .ik-note__thumb {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--ik-rule);
    background: var(--ik-paper-deep);
    margin-top: auto;
}

.ik-sec--k .ik-note__name {
    font-family: var(--ik-font-display);
    font-size: 0.66rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    order: -1;
}

/* =================================================================
   L · Connect — node chain, alternating above/below the wire (8)
   ================================================================= */
.ik-sec--l .ik-sec__stage {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 0.6rem 1.6rem;
    min-height: 0;
    padding: 0.3rem 0;
}

/* the connecting wire */
.ik-sec--l .ik-sec__stage::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 2px dashed var(--ik-rule-strong);
    pointer-events: none;
}

.ik-sec--l .ik-node {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.45rem;
    background: var(--ik-paper-card);
    border: 1px solid var(--ik-rule-strong);
    color: var(--ik-ink);
    text-decoration: none;
    min-height: 0;
    transition: border-color 0.15s var(--ik-ease), background 0.15s var(--ik-ease);
}

.ik-sec--l .ik-node:nth-child(even) {
    align-self: end;
}

.ik-sec--l .ik-node:hover,
.ik-sec--l .ik-node:focus-visible {
    border-color: var(--ik-ink);
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

/* node dot on the wire */
.ik-sec--l .ik-node::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 9px;
    height: 9px;
    margin-left: -4.5px;
    background: var(--ik-vermilion);
    border: 1px solid var(--ik-ink);
    border-radius: 50%;
    transform: translateY(-50%);
}

.ik-sec--l .ik-node:nth-child(odd)::before {
    bottom: -0.55rem;
}

.ik-sec--l .ik-node:nth-child(even)::before {
    top: -0.55rem;
}

.ik-sec--l .ik-node__thumb {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border: 1px solid var(--ik-rule-strong);
    flex: none;
}

.ik-sec--l .ik-node__name {
    font-family: var(--ik-font-display);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* =================================================================
   M · Sort — three graded columns (3 + 3 + 3)
   ================================================================= */
.ik-sec--m .ik-sec__stage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
    min-height: 0;
}

.ik-sec--m .ik-graded {
    display: grid;
    grid-template-rows: repeat(var(--ik-graded-rows, 3), minmax(0, 1fr));
    gap: 0.4rem;
    padding: 0.45rem;
    border: 1px solid var(--ik-rule-strong);
    background: var(--ik-paper-deep);
    min-height: 0;
}

.ik-sec--m .ik-card {
    flex-direction: row;
    align-items: center;
    gap: 0.45rem;
    padding: 0.3rem;
    background: var(--ik-paper-card);
}

.ik-sec--m .ik-card__thumb {
    width: 34px;
    height: 34px;
    flex: none;
    border: 1px solid var(--ik-rule-strong);
}

.ik-sec--m .ik-card__body {
    padding: 0;
    justify-content: center;
}

.ik-sec--m .ik-card__name {
    font-size: 0.74rem;
    -webkit-line-clamp: 2;
}

.ik-sec--m .ik-card__sub {
    display: none;
}

/* ---- responsive: fixed block heights still hold, layouts simplify ---- */
@media (max-width: 900px) {
    .ik-sec {
        --ik-sec-h: 560px;
    }

    .ik-sec--a .ik-sec__stage,
    .ik-sec--e .ik-sec__stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    }

    .ik-sec--a .ik-card--hero {
        grid-row: span 1;
    }

    .ik-sec--b .ik-ribbon,
    .ik-sec--b .ik-strip,
    .ik-sec--h .ik-sec__stage,
    .ik-sec--j .ik-sec__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ik-sec--b .ik-sec__stage,
    .ik-sec--j .ik-sec__stage {
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .ik-sec--c .ik-fan .ik-card {
        flex: 0 1 26%;
        margin-left: -5%;
    }

    .ik-sec--k .ik-sec__stage {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        grid-template-rows: repeat(2, minmax(0, 1fr));
    }

    .ik-sec--l .ik-sec__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(4, minmax(0, 1fr));
    }

    .ik-sec--m .ik-sec__stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }

    .ik-sec--m .ik-graded {
        grid-template-rows: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ik-sec--m .ik-card {
        min-height: 44px;
    }
}

@media (max-width: 620px) {
    .ik-sec {
        --ik-sec-h: 640px;
    }

    .ik-sec__stage {
        overflow-y: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .ik-sec--d .ik-sec__stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(8, minmax(0, 1fr));
        overflow: hidden;
    }

    .ik-sec--d .ik-lane {
        grid-template-columns: minmax(0, 1fr) 40px;
    }

    .ik-sec--d .ik-lane__thumb {
        width: 40px;
    }

    .ik-sec--g .ik-sec__stage {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    .ik-sec--i .ik-sec__stage {
        grid-template-columns: minmax(0, 1fr);
        overflow: hidden;
    }

    .ik-sec--i .ik-diff {
        /* two-column comparison still reads at 320px; keep a usable tap row */
        min-height: 62px;
    }

    .ik-sec--i .ik-diff__thumb {
        height: 100%;
        min-height: 62px;
        aspect-ratio: auto;
    }

    .ik-sec--i .ik-diff__body {
        padding: 0.5rem 0.55rem;
    }

    .ik-sec--b .ik-ribbon .ik-card {
        flex-direction: column;
    }

    /* Stacked layout on phones. Both parts need a definite size: a flexible
       image collapsed to 0px next to a caption that could not shrink.
       Fixed aspect ratio for the cover + auto caption keeps both visible. */
    .ik-sec--b .ik-ribbon .ik-card__thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
        flex: none;
        border-right: 0;
        border-bottom: 1px solid var(--ik-rule);
    }

    .ik-sec--b .ik-ribbon .ik-card__body {
        flex: none;
        padding: 0.4rem 0.45rem;
    }

    .ik-sec--b .ik-ribbon .ik-card__name {
        font-size: 0.74rem;
    }

    .ik-sec--b .ik-ribbon .ik-card__sub {
        display: none;
    }

    /* Twelve covers in one column produced 36px rows. Two columns with a
       scrolling stage keeps every cover legible and the outer height fixed. */
    .ik-sec--f .ik-sec__stage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: repeat(6, minmax(72px, auto));
        gap: 0.4rem;
        padding: 0;
        background: none;
        overflow-y: auto;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .ik-sec--f .ik-card {
        min-height: 72px;
    }

    .ik-sec--f .ik-card__thumb {
        width: 40px;
        height: 40px;
    }

    .ik-sec--f .ik-card__name {
        font-size: 0.76rem;
    }

    .ik-sec--m .ik-sec__stage {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: repeat(3, minmax(0, 1fr));
    }
}


/* =================================================================
   4. PAGE HEADER (inner pages)
   ================================================================= */
.ik-pagehead {
    padding: var(--ik-gap-lg) 0 var(--ik-gap-md);
    border-bottom: 3px double var(--ik-ink);
}

.ik-pagehead__kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
}

.ik-pagehead__title {
    max-width: 26ch;
    margin-bottom: 0.7rem;
}

/* Page-type headings, in order: the front lead shouts (4rem), the journal
   masthead is second (2.8rem), a game file speaks (2.6rem), an article is a
   section head (2.4rem), and legal documents stay reference-quiet (2.2rem). */
body.ik-journal-page h1 {
    font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
}

body.ik-article-page h1 {
    font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.55rem);
}

body.ik-about-page h1 {
    font-size: clamp(1.8rem, 1.35rem + 1.8vw, 2.55rem);
}

.ik-pagehead__lead {
    max-width: 58ch;
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-1);
    line-height: 1.5;
    color: var(--ik-ink-soft);
}

/* =================================================================
   5. JOURNAL (blog index) — newspaper feature stack
   ================================================================= */
.ik-journal {
    display: grid;
    gap: 0;
    padding: var(--ik-gap-lg) 0;
}

.ik-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ik-gap-md);
    padding: var(--ik-gap-lg) 0;
    border-bottom: 1px solid var(--ik-rule);
}

.ik-feature:first-child {
    padding-top: 0;
}

.ik-feature__plate {
    position: relative;
    border: 2px solid var(--ik-ink);
    background: var(--ik-paper-deep) center / cover no-repeat;
    aspect-ratio: 4 / 3;
    box-shadow: var(--ik-shadow-cut-sm);
}

.ik-feature__plate--action {
    background-image: var(--ik-art-action);
}
.ik-feature__plate--vex {
    background-image: var(--ik-art-vex);
}
.ik-feature__plate--html5 {
    background-image: var(--ik-art-html5);
}

.ik-feature__index {
    position: absolute;
    top: -2px;
    right: -2px;
    padding: 0.2rem 0.5rem;
    background: var(--ik-paper);
    border: 2px solid var(--ik-ink);
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    line-height: 1.4;
}

.ik-feature__body {
    min-width: 0;
}

.ik-feature__title {
    margin: 0.4rem 0 0.6rem;
    font-family: var(--ik-font-display);
    font-size: clamp(1.35rem, 1.05rem + 1vw, 1.9rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
}

.ik-feature__title a {
    color: var(--ik-ink);
    text-decoration: none;
}

.ik-feature__title a:hover {
    color: var(--ik-vermilion-deep);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.ik-feature__excerpt {
    max-width: 54ch;
    color: var(--ik-ink-soft);
}

.ik-feature__foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
    margin-top: var(--ik-gap-sm);
}

/* =================================================================
   6. ARTICLE SPREAD (blog post + legal + about)
   ================================================================= */
.ik-spread {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ik-gap-lg);
    padding: var(--ik-gap-lg) 0;
    align-items: start;
}

.ik-spread__aside {
    min-width: 0;
    order: 2;
}

.ik-spread__main {
    min-width: 0;
}

/* article figure */
.ik-article__figure {
    border: 2px solid var(--ik-ink);
    background: var(--ik-paper-deep) center / cover no-repeat;
    aspect-ratio: 16 / 10;
    margin-bottom: var(--ik-gap-md);
    box-shadow: var(--ik-shadow-cut-sm);
}

.ik-article__figure--about {
    background-image: var(--ik-art-about);
}
.ik-article__figure--action {
    background-image: var(--ik-art-action);
}
.ik-article__figure--vex {
    background-image: var(--ik-art-vex);
}
.ik-article__figure--html5 {
    background-image: var(--ik-art-html5);
}

/* article typography */
.ik-prose {
    max-width: 68ch;
    font-family: var(--ik-font-body);
    font-size: var(--ik-step-0);
    line-height: 1.72;
    color: var(--ik-ink-soft);
}

.ik-prose > * + * {
    margin-top: 1.05em;
}

.ik-prose h1 {
    font-family: var(--ik-font-display);
    font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--ik-ink);
    margin-top: 0;
}

.ik-prose h2 {
    margin-top: 2em;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ik-rule);
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-2);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--ik-ink);
}

.ik-prose h3 {
    margin-top: 1.6em;
    font-family: var(--ik-font-body);
    font-size: var(--ik-step-0);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--ik-ink);
}

.ik-prose p {
    margin: 0;
}

.ik-prose ul,
.ik-prose ol {
    padding-left: 1.35rem;
    display: grid;
    gap: 0.4rem;
}

.ik-prose ul {
    list-style: square;
}

.ik-prose ol {
    list-style: decimal;
}

.ik-prose li::marker {
    color: var(--ik-vermilion);
}

.ik-prose a {
    color: var(--ik-vermilion-deep);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.ik-prose a:hover {
    color: var(--ik-ink);
    background: var(--ik-gold-wash);
}

.ik-prose strong {
    color: var(--ik-ink);
    font-weight: 700;
}

.ik-prose blockquote {
    margin: 1.6em 0;
    padding: 0.2rem 0 0.2rem 1.1rem;
    border-left: 4px solid var(--ik-vermilion);
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-1);
    font-style: italic;
    line-height: 1.45;
    color: var(--ik-ink);
}

.ik-prose hr {
    border: 0;
    border-top: 1px solid var(--ik-rule);
    margin: 2em 0;
}

/* drop cap on the opening paragraph */
.ik-prose--lede > p:first-of-type::first-letter {
    float: left;
    margin: 0.1em 0.14em 0 0;
    padding: 0.06em 0.12em 0.02em;
    font-family: var(--ik-font-display);
    font-size: 3.5em;
    font-weight: 800;
    line-height: 0.82;
    color: var(--ik-paper);
    background: var(--ik-vermilion);
}

/* legal pages: table-of-contents style */
.ik-legal {
    max-width: 76ch;
    counter-reset: legal;
}

/* Legal pages are reference documents: a smaller, calmer headline than an
   editorial spread so the two page types never read the same. */
.ik-legal-page .ik-pagehead__title {
    font-size: clamp(1.7rem, 1.25rem + 1.6vw, 2.4rem);
}

.ik-legal-page .ik-pagehead__lead {
    font-size: var(--ik-step-0);
    color: var(--ik-ink-mute);
}

.ik-legal h2 {
    counter-increment: legal;
}

.ik-legal h2::before {
    content: counter(legal, decimal-leading-zero);
    display: inline-block;
    margin-right: 0.6rem;
    font-family: var(--ik-font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.1em;
    color: var(--ik-vermilion-deep);
    vertical-align: middle;
}

/* =================================================================
   7. DETAIL — press spread with sticky specimen card
   ================================================================= */
.ik-story {
    padding: var(--ik-gap-lg) 0 0;
}

/* breadcrumb line */
.ik-crumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    padding-bottom: var(--ik-gap-sm);
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

.ik-crumb a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 0.15rem;
    color: var(--ik-ink-mute);
    text-decoration: none;
}

.ik-crumb a:hover {
    color: var(--ik-vermilion-deep);
    text-decoration: underline;
}

.ik-crumb__sep {
    color: var(--ik-ink-faint);
}

.ik-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ik-gap-lg);
    padding-bottom: var(--ik-gap-lg);
    align-items: start;
}

/* main editorial column */
.ik-detail-main {
    min-width: 0;
}

.ik-detail-head {
    padding-bottom: var(--ik-gap-md);
    border-bottom: 3px double var(--ik-ink);
}

.ik-detail-head__kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.8rem;
    margin-bottom: 0.6rem;
}

.ik-detail-title {
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-4);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    margin-bottom: 0.7rem;
}

.ik-detail-deck {
    max-width: 60ch;
    /* Written after load: a clamped block of exact height keeps the play gate
       from moving, without leaving unused space. */
    height: calc(3 * 1.45em);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-1);
    line-height: 1.45;
    color: var(--ik-ink-soft);
}

@media (min-width: 900px) {
    .ik-detail-deck {
        height: calc(2 * 1.45em);
        -webkit-line-clamp: 2;
    }
}

/* byline strip */
.ik-byline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.1rem;
    /* the rating lands here after load; reserve the two-row case on phones */
    min-height: 49px;
    margin-top: var(--ik-gap-sm);
    padding-top: 0.65rem;
    border-top: 1px solid var(--ik-rule);
    font-family: var(--ik-font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

.ik-byline strong {
    color: var(--ik-ink);
}

/* numbered guide sections */
.ik-guide {
    display: grid;
    gap: 0;
    margin-top: var(--ik-gap-md);
    /* the guide is filled from the catalog after load; keep the following
       sections from jumping by reserving a minimum block */
    min-height: 34rem;
}

.ik-guide__section {
    padding: var(--ik-gap-md) 0;
    border-bottom: 1px solid var(--ik-rule);
}

.ik-guide__section:last-child {
    border-bottom: 0;
}

.ik-guide__label {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    margin-bottom: 0.6rem;
}

.ik-guide__num {
    font-family: var(--ik-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    color: var(--ik-vermilion-deep);
}

.ik-guide__title {
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-2);
    /* matches every other section heading on the site (was 700) */
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ik-guide__text {
    max-width: 68ch;
    color: var(--ik-ink-soft);
    line-height: 1.72;
}

/* FAQ accordion rows */
.ik-faq-list {
    display: grid;
    border-top: 1px solid var(--ik-rule);
}

.ik-faq-item {
    border-bottom: 1px solid var(--ik-rule);
}

.ik-faq-item__q {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 0.75rem 0;
    text-align: left;
    font-family: var(--ik-font-body);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ik-ink);
}

.ik-faq-item__q:hover {
    color: var(--ik-vermilion-deep);
}

.ik-faq-item__sign {
    flex: none;
    font-family: var(--ik-font-mono);
    font-size: 1rem;
    color: var(--ik-vermilion);
    transition: transform 0.2s var(--ik-ease);
}

.ik-faq-item__q[aria-expanded="true"] .ik-faq-item__sign {
    transform: rotate(45deg);
}

.ik-faq-item__a {
    padding: 0 0 0.85rem;
    max-width: 64ch;
    color: var(--ik-ink-soft);
    font-size: 0.93rem;
    line-height: 1.68;
}

.ik-faq-item__a[hidden] {
    display: none;
}

/* right specimen card (sticky on wide screens) */
.ik-specimen {
    min-width: 0;
    border: 2px solid var(--ik-ink);
    background: var(--ik-paper-card);
    box-shadow: var(--ik-shadow-cut);
}

.ik-specimen__plate {
    position: relative;
    border-bottom: 2px solid var(--ik-ink);
    background: var(--ik-teal) center / cover no-repeat;
    aspect-ratio: 4 / 3;
    display: grid;
    place-items: center;
    overflow: hidden;
}

/* icon sits printed on the plate, with a clipping frame */
.ik-specimen__icon {
    width: clamp(84px, 26%, 116px);
    aspect-ratio: 1;
    object-fit: cover;
    border: 3px solid var(--ik-paper);
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
    background: var(--ik-paper-deep);
}

.ik-specimen__plate-tag {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0.22rem 0.55rem;
    background: var(--ik-gold);
    color: var(--ik-ink);
    font-family: var(--ik-font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.ik-specimen__body {
    padding: var(--ik-gap-sm);
}

.ik-specimen__specs {
    display: grid;
    gap: 0;
    margin-bottom: var(--ik-gap-sm);
    border-top: 1px solid var(--ik-rule);
}

.ik-specimen__spec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.42rem 0;
    border-bottom: 1px solid var(--ik-rule-hair);
    font-family: var(--ik-font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.04em;
}

.ik-specimen__spec dt {
    color: var(--ik-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.6rem;
}

.ik-specimen__spec dd {
    color: var(--ik-ink);
    font-weight: 500;
    text-align: right;
    overflow-wrap: anywhere;
}

.ik-specimen__actions {
    display: grid;
    gap: 0.5rem;
}

.ik-specimen__note {
    margin-top: 0.6rem;
    font-family: var(--ik-font-mono);
    font-size: 0.58rem;
    line-height: 1.5;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ik-ink-faint);
    text-align: center;
}

/* related strip in the main column: compact index rows */
.ik-related {
    margin-top: var(--ik-gap-lg);
    padding-top: var(--ik-gap-md);
    border-top: 3px double var(--ik-ink);
}

.ik-related__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.ik-related__title {
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-2);
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ik-related__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.ik-related__row {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--ik-rule);
    color: var(--ik-ink);
    text-decoration: none;
}

.ik-related__row:hover {
    background: var(--ik-gold-wash);
    color: var(--ik-ink);
}

.ik-related__thumb {
    width: 40px;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid var(--ik-rule-strong);
}

.ik-related__name {
    font-family: var(--ik-font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.ik-related__cat {
    display: block;
    font-family: var(--ik-font-mono);
    font-size: 0.56rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

/* mobile launch bar for detail (replaces Meadow's floating FAB) */
.ik-launchbar {
    position: sticky;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0 calc(0.6rem + env(safe-area-inset-bottom, 0px));
    background: var(--ik-paper);
    border-top: 2px solid var(--ik-ink);
}

.ik-launchbar__name {
    font-family: var(--ik-font-display);
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ik-launchbar__sub {
    font-family: var(--ik-font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
}

/* =================================================================
   8. PLAY PAGE (full-bleed embed)
   ================================================================= */
.ik-playpage {
    display: flex;
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: var(--ik-ink);
}

.ik-playpage__bar {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.85rem;
    background: var(--ik-paper);
    border-bottom: 2px solid var(--ik-ink);
    flex: none;
}

.ik-playpage__back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0 0.7rem;
    border: 1px solid var(--ik-ink);
    color: var(--ik-ink);
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
}

.ik-playpage__back:hover {
    background: var(--ik-ink);
    color: var(--ik-paper);
}

.ik-playpage__title {
    flex: 1 1 auto;
    min-width: 0;
    font-family: var(--ik-font-display);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ik-playpage__stage {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    place-items: stretch;
    background: #0f0d0c;
}

.ik-playpage__stage iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ik-playpage__loading {
    align-self: center;
    justify-self: center;
    font-family: var(--ik-font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ik-paper);
    padding: 2rem;
}

/* =================================================================
   9. COLOPHON / FOOTER
   ================================================================= */
.ik-colophon {
    margin-top: var(--ik-gap-xl);
    background: var(--ik-teal);
    color: var(--ik-paper);
}

/* halftone-ish top border */
.ik-colophon__edge {
    height: 8px;
    background-image: radial-gradient(var(--ik-gold) 1.2px, transparent 1.3px);
    background-size: 9px 9px;
    opacity: 0.5;
}

.ik-colophon__inner {
    width: var(--ik-shell);
    margin-inline: auto;
    padding: var(--ik-gap-lg) 0 var(--ik-gap-md);
}

.ik-colophon__masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--ik-gap-md);
    padding-bottom: var(--ik-gap-md);
    border-bottom: 1px solid rgba(244, 237, 224, 0.28);
}

.ik-colophon__wordmark {
    font-family: var(--ik-font-display);
    font-size: clamp(2.1rem, 8vw, 4.4rem);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--ik-paper);
    overflow-wrap: anywhere;
}

.ik-colophon__tagline {
    max-width: 34ch;
    margin-top: 0.75rem;
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-1);
    line-height: 1.45;
    color: var(--ik-teal-wash);
}

.ik-colophon__cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--ik-gap-md);
    margin-top: var(--ik-gap-md);
}

.ik-colophon__col-title {
    margin-bottom: 0.55rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid rgba(244, 237, 224, 0.28);
    font-family: var(--ik-font-mono);
    font-size: 0.6rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ik-gold);
}

.ik-colophon__links {
    display: grid;
    gap: 0;
}

.ik-colophon__links a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--ik-paper);
    font-size: 0.9rem;
    text-decoration: none;
    line-height: 1.45;
}

.ik-colophon__links a:hover {
    color: var(--ik-gold);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ik-colophon__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    margin-top: var(--ik-gap-md);
    padding-top: var(--ik-gap-sm);
    border-top: 1px solid rgba(244, 237, 224, 0.28);
    font-family: var(--ik-font-mono);
    font-size: 0.6rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ik-teal-wash);
}

.ik-colophon__bottom a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    color: var(--ik-teal-wash);
    text-decoration: none;
}

.ik-colophon__bottom a:hover {
    color: var(--ik-gold);
}

/* =================================================================
   10. RESPONSIVE
   ================================================================= */
@media (min-width: 620px) {

    .ik-related__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: var(--ik-gap-md);
    }

    .ik-feature {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        align-items: center;
    }

    .ik-feature:nth-child(even) .ik-feature__plate {
        order: 2;
    }

    .ik-colophon__cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ik-nav {
        display: flex;
    }

    .ik-masthead__drawer-toggle {
        display: none;
    }

    .ik-front-grid {
        grid-template-columns: minmax(0, 1.62fr) minmax(0, 0.92fr);
        gap: var(--ik-gap-lg);
    }

    .ik-front-rail {
        border-left: 1px solid var(--ik-rule);
        padding-left: var(--ik-gap-md);
    }

    .ik-spread {
        grid-template-columns: minmax(0, 1fr) 268px;
        gap: var(--ik-gap-xl);
    }

    .ik-spread__aside {
        order: 0;
        position: sticky;
        /* masthead no longer floats, so the sidebar only needs a small inset */
        top: 1.5rem;
    }

    .ik-detail-grid {
        grid-template-columns: minmax(0, 1fr) 320px;
        gap: var(--ik-gap-xl);
    }

    .ik-specimen {
        position: sticky;
        top: 1.5rem;
    }

    .ik-launchbar {
        display: none;
    }

    .ik-colophon__masthead {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: end;
    }
}

@media (min-width: 1160px) {
    .ik-detail-grid {
        grid-template-columns: minmax(0, 1fr) 348px;
    }
}

/* =================================================================
   11. PAGE-TYPE HEADING SCALE (declared last so it wins over base rules)
   ================================================================= */
body.ik-detail .ik-detail-title {
    font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem);
}

/* =================================================================
   12. CANONICAL SECTION HEADER
   One band pattern for every content division (footnotes, policy notes,
   journal follow-ups). Previously these used an unstyled orphan class, so
   two sections rendered with browser-default headings and broke the
   typographic rhythm of the page.
   ================================================================= */
.ik-ledger__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1.5rem;
    padding-bottom: 0.7rem;
    border-bottom: 3px double var(--ik-ink);
    margin-bottom: var(--ik-gap-sm);
}

.ik-ledger__title {
    font-family: var(--ik-font-display);
    font-size: var(--ik-step-3);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.ik-ledger__aside {
    font-family: var(--ik-font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--ik-ink-mute);
    white-space: nowrap;
}

/* On the front page the footnotes band sits directly on the noteband, so it
   drops its lower rule and the doubled spacing. */
.ik-ledger__head--flush {
    border-bottom: 0;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Related strip on a game file: keep the aside legible next to a heavy title. */
.ik-related__head .ik-ledger__aside {
    font-size: 0.6rem;
}

/* =================================================================
   13. UTILITY CLASSES REPLACING REPEATED INLINE STYLES
   These patterns appeared as inline styles on 8–9 pages each. Naming them
   keeps the footer, small print and card asides under design-system control
   instead of drifting per page.
   ================================================================= */
.ik-colophon__meta {
    color: var(--ik-teal-wash);
    font-size: 0.82rem;
}

.ik-colophon__note {
    max-width: 38ch;
    color: var(--ik-teal-wash);
}

.ik-fineprint--inverse {
    color: var(--ik-teal-wash);
}

.ik-card__aside {
    max-width: 38ch;
    margin-bottom: 0.7rem;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--ik-ink-mute);
}

.ik-inline-note {
    color: var(--ik-ink-mute);
}

.ik-section-gap {
    margin-top: var(--ik-gap-md);
}

.ik-band-flush {
    border-top: 0;
    margin-top: 0;
}

/* Byline row that follows an h1 inside an article header. */
.ik-byline--bare {
    border-top: 0;
    margin-top: 0.75rem;
    padding-top: 0;
}

/* Page-head used purely as an article title block (no bottom rule). */
.ik-pagehead--flush {
    border-bottom: 0;
    padding-top: 0;
    padding-bottom: var(--ik-gap-sm);
}
