/* ==========================================================================
   THE LEGAL ALPHA — The front page
   --------------------------------------------------------------------------
   Broadsheet direction: the dark floor carries the banner full-bleed, the
   sheet below it is white stock divided by hairlines, the display serif sets
   every headline and brass is kept for the things a reader can act on.
   Colours and faces come from the shared tokens in app.css.

   One sheet for every design the homepage builder can place: the lead
   banner, the most-read strip, the news desk with the Judgment of the Day,
   the category grids, and the three desks.
   ========================================================================== */

.home-container {
    padding-top: 2.25rem;
    padding-bottom: 3.75rem;
}

/* --------------------------------------------------------------------------
   The furniture every section shares
   -------------------------------------------------------------------------- */
.home-sec {
    padding-block: 2.25rem 2.75rem;
}

/* Sections after the first are divided by a hairline, the way a paper
   divides its furniture. */
.home-sec--ruled {
    border-top: 1px solid var(--rule-strong);
}

.home-sec__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.home-sec__head--tight {
    margin-bottom: 0.9rem;
}

.home-sec__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.35rem, 2.2vw, 1.6rem);
    font-weight: 500;
    letter-spacing: -0.014em;
    color: var(--ink);
    margin: 0;
}

.home-sec__title--sm {
    font-size: clamp(1.15rem, 1.8vw, 1.3rem);
}

.home-sec__title a {
    color: inherit;
    text-decoration: none;
}

.home-sec__title a:hover {
    color: var(--brass);
}

.home-sec__more,
.home-desk__all {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
    white-space: nowrap;
}

.home-sec__more svg,
.home-desk__all svg {
    transition: transform 0.22s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.home-sec__more:hover,
.home-desk__all:hover {
    color: var(--brass);
}

.home-sec__more:hover svg,
.home-desk__all:hover svg {
    transform: translateX(3px);
}

.home-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--brass);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-meta {
    font-size: 0.75rem;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 0;
}

/* The desks' own hue marks a story's desk, so the label never reads as
   another brass action. */
.home-tag {
    color: var(--terracotta);
    text-decoration: none;
}

.home-tag:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.home-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1.2;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    background: var(--paper);
    border: 1px solid var(--rule-strong);
    color: var(--ink-soft);
}

/* Headlines share one hover behaviour across the page. */
.home-title-link {
    color: inherit;
    text-decoration: none;
}

.home-title-link:hover,
.home-title-link:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.home-empty {
    grid-column: 1 / -1;
    border: 1px dashed var(--rule-strong);
    border-radius: var(--radius);
    background: var(--paper-deep);
    padding: 2.5rem 1.5rem;
    text-align: center;
    color: var(--ink-faint);
    font-size: 0.9375rem;
}

.home-empty p {
    margin: 0;
}

/* --------------------------------------------------------------------------
   The lead — a light, editorial slider: copy left, photograph right
   -------------------------------------------------------------------------- */
.home-lead {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-block: clamp(1.25rem, 2.5vw, 2rem) clamp(1rem, 2vw, 1.5rem);
    background:
        radial-gradient(80% 90% at 100% 0%, var(--brass-wash) 0%, rgba(246, 239, 221, 0) 60%),
        #fcfbf8;
}

/* Every slide sits in the same grid cell, so the stage is as tall as the
   tallest slide and nothing jumps when the story changes. */
.home-lead__stage {
    display: grid;
}

.home-lead__slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(1.25rem, 3vw, 3rem);
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease, visibility 0s linear 0.6s;
}

.home-lead__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.home-lead__slide--solo {
    grid-template-columns: minmax(0, 1fr);
}

.home-lead__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
}

.home-lead__tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.85rem;
}

.home-lead__pill {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.95rem;
    border-radius: 999px;
    background: #e9d6a8;
    color: #2a2110;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.home-lead__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 0.875rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
}

.home-lead__meta::before {
    content: "";
    width: 1px;
    height: 1rem;
    background: var(--brass-bright);
}

.home-lead__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.65rem, 2.9vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    text-wrap: balance;
}

.home-lead__title--brand {
    font-size: clamp(2.5rem, 6vw, 4.35rem);
}

.home-lead__title a {
    color: inherit;
    text-decoration: none;
}

.home-lead__title a:hover,
.home-lead__title a:focus-visible {
    text-decoration: none;
    color: var(--brass-deep);
}

.home-lead__accent {
    color: var(--brass);
}

.home-lead__stand {
    font-size: clamp(1rem, 1.35vw, 1.1875rem);
    line-height: 1.6;
    color: var(--ink-soft);
    margin: 0;
    max-width: 50ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-lead__actions {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.home-lead__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    background: var(--brass);
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 10px 22px -10px rgba(109, 79, 24, 0.7);
    transition: background 0.2s, transform 0.2s;
}

.home-lead__cta:hover,
.home-lead__cta:focus-visible {
    background: var(--brass-deep);
    color: #fff;
    transform: translateY(-1px);
}

.home-lead__link {
    color: var(--ink);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--brass-bright);
    padding-bottom: 2px;
}

.home-lead__link:hover,
.home-lead__link:focus-visible {
    color: var(--brass-deep);
}

.home-lead__visual {
    position: relative;
    padding-bottom: 1.5rem;
}

.home-lead__photo {
    display: block;
    aspect-ratio: 16 / 9;
    border-radius: 22px;
    overflow: hidden;
    background: var(--paper-deep);
    box-shadow: 0 30px 60px -28px rgba(24, 25, 27, 0.55);
}

.home-lead__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* The context card overlaps the photograph's lower-left corner. */
.home-lead__ctx {
    position: absolute;
    left: clamp(0rem, 2vw, 1.5rem);
    bottom: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.7rem 1.25rem 0.7rem 0.7rem;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 40px -16px rgba(24, 25, 27, 0.35);
}

.home-lead__visual--plain .home-lead__ctx {
    position: static;
}

.home-lead__ctx-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 10px;
    background: var(--brass-wash);
    color: var(--brass);
}

.home-lead__ctx-body {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.home-lead__ctx-body strong {
    font-family: var(--font-display), Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
}

.home-lead__ctx-chips {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    white-space: pre-wrap;
}

.home-lead__arrow {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    box-shadow: 0 8px 20px -10px rgba(24, 25, 27, 0.35);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.home-lead__arrow:hover,
.home-lead__arrow:focus-visible {
    background: var(--brass);
    border-color: var(--brass);
    color: #fff;
}

/* Beside the stage on wide screens, so they never sit over the copy. */
.home-lead__arrow--prev,
.home-lead__arrow--next {
    position: absolute;
    top: 50%;
    margin-top: -1.375rem;
}

.home-lead__arrow--prev { left: 0.75rem; }
.home-lead__arrow--next { right: 0.75rem; }

/* On narrower screens there is no margin to hold them: they join the dots row. */
@media (max-width: 1399px) {
    .home-lead__nav {
        display: flex;
        gap: 0.5rem;
        float: left;
    }

    .home-lead__arrow--prev,
    .home-lead__arrow--next {
        position: static;
        margin-top: 0;
        width: 2.25rem;
        height: 2.25rem;
    }

    .home-lead__dots {
        align-items: center;
        min-height: 2.25rem;
    }
}

.home-lead__dots {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 0;
}

.home-lead__dot {
    width: 2.5rem;
    height: 0.25rem;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--rule-strong);
    cursor: pointer;
    transition: background 0.2s;
}

.home-lead__dot.is-active {
    background: var(--brass);
}

.home-lead__dot:focus-visible {
    outline: 2px solid var(--brass);
    outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   Most read
   -------------------------------------------------------------------------- */
.home-most {
    border-top: 2px solid var(--ink);
    padding-block: 1rem 2.5rem;
}

.home-most__head {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-faint);
    margin: 0 0 0.5rem;
}

.home-most__list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: most;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 clamp(1rem, 2.4vw, 2rem);
}

.home-most__item {
    counter-increment: most;
    display: grid;
    grid-template-columns: 1.85rem minmax(0, 1fr);
    gap: 0.5rem 0.7rem;
    align-items: baseline;
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--rule);
}

.home-most__item::before {
    content: counter(most, decimal-leading-zero);
    font-family: var(--font-display), Georgia, serif;
    font-size: 1.0625rem;
    color: var(--brass);
    font-variant-numeric: tabular-nums;
}

.home-most__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: 1rem;
    line-height: 1.34;
    font-weight: 500;
    color: var(--ink);
    margin: 0;
}

.home-most__desk {
    grid-column: 2;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin: 0;
}

/* --------------------------------------------------------------------------
   The news desk beside the Judgment of the Day
   -------------------------------------------------------------------------- */
.home-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2rem, 3.5vw, 3.25rem);
}

.home-news__tabs {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    margin: -0.75rem 0 1.35rem;
}

.home-news__tab {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--ink-soft);
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

.home-news__tab:hover {
    color: var(--ink);
    border-bottom-color: var(--brass);
}

/* The judgment card: the ruling on the brass wash, its picture above the
   case title. */
.home-judgment__card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(1.1rem, 2vw, 1.5rem);
    border: 1px solid color-mix(in srgb, var(--brass) 20%, #fff);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--brass-wash) 42%, #fff);
}

.home-judgment__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--paper-deep);
}

.home-judgment__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    /* On the stacked widths the column is the full sheet, where an uncapped
       16:9 plate would tower over the card: the crop holds it to a band. */
    max-height: 22rem;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-judgment__card:hover .home-judgment__media img {
    transform: scale(1.02);
}

.home-judgment__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.2;
    letter-spacing: -0.016em;
    font-weight: 500;
    margin: 0;
}

.home-judgment__meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-size: 0.8125rem;
    color: var(--ink-soft);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.home-judgment__sep {
    color: var(--rule-strong);
}

.home-judgment__chips {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin: 0;
}

.home-judgment__stand {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-judgment__cta {
    width: 100%;
    margin-top: 0.25rem;
}

/* The rulings behind the set-piece, newest first: a plain list, so the column
   carries the desk's depth without competing with the card above it. */
.home-judgment__list {
    list-style: none;
    margin: 0.25rem 0 0;
    padding: 0;
}

.home-judgment__item {
    padding-block: 0.9rem;
    border-bottom: 1px solid var(--rule);
}

.home-judgment__item-title {
    font-family: var(--font-display), Georgia, serif;
    font-size: 1rem;
    line-height: 1.32;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0 0 0.35rem;
}

.home-judgment__item-meta {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-size: 0.6875rem;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.home-judgment__item-meta > :not(:last-child)::after {
    content: "·";
    margin-left: 0.55rem;
    color: var(--rule-strong);
}

/* --------------------------------------------------------------------------
   The card grid
   -------------------------------------------------------------------------- */
.home-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.6vw, 2.25rem);
}

/* Beside the judgment card the desk has room for two across, not four. */
.home-split__main .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 2vw, 1.75rem);
}

.home-card {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.home-card__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--paper-deep);
}

.home-card__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-card:hover .home-card__media img {
    transform: scale(1.02);
}

.home-card__date {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-faint);
    font-variant-numeric: tabular-nums;
    margin: 0;
}

.home-card__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0;
}

.home-card__stand {
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-card__desk {
    margin: auto 0 0;
    padding-top: 0.35rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   The desks: a ledger, picture cards, and a plain list
   -------------------------------------------------------------------------- */
.home-desks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.5rem, 3.2vw, 2.75rem);
    align-items: start;
}

.home-desk__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.7rem;
    margin-bottom: 0.2rem;
    border-bottom: 1px solid var(--rule-strong);
}

.home-desk__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: 1.1875rem;
    font-weight: 500;
    letter-spacing: -0.012em;
    color: var(--ink);
    margin: 0;
}

.home-desk__title a {
    color: inherit;
    text-decoration: none;
}

.home-desk__title a:hover {
    color: var(--brass);
}

.home-desk__all {
    font-size: 0.75rem;
}

.home-desk__empty {
    border-bottom: 1px solid var(--rule);
    padding-block: 1.1rem;
    color: var(--ink-faint);
    font-size: 0.875rem;
    margin: 0;
}

/* The ledger row — thumbnail beside the headline — is the base shape every
   desk uses; `--card` and `--plain` are the two variants the desks partial
   asks for (and `--ledger` is emitted for the base, needing no rule). */
.home-row {
    display: grid;
    grid-template-columns: 5.25rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
    padding-block: 1rem;
    border-bottom: 1px solid var(--rule);
}

/* Picture cards: a wider plate than the ledger's thumb, so the middle desk
   reads as the picture column without towering over its neighbours. */
.home-row--card {
    grid-template-columns: 7.5rem minmax(0, 1fr);
    gap: 0.9rem;
}

.home-row--card .home-row__media img {
    aspect-ratio: 4 / 3;
}

/* The rail, and any story without a picture, lists its entry plain. */
.home-row--plain {
    grid-template-columns: minmax(0, 1fr);
}

.home-row__media {
    display: block;
    overflow: hidden;
    border-radius: var(--radius-sm);
    background: var(--paper-deep);
}

.home-row__media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 11;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-row:hover .home-row__media img {
    transform: scale(1.03);
}

.home-row__body {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 0;
}

.home-row__title {
    font-family: var(--font-display), Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.32;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--ink);
    margin: 0;
}

.home-row__org {
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--ink-soft);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-row .home-meta {
    font-size: 0.6875rem;
}

.home-row .home-meta > :not(:last-child)::after {
    content: "·";
    margin-left: 0.6rem;
    color: var(--rule-strong);
}

.home-row__tags {
    margin: 0;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

/* Two columns from the desktop breakpoint up: the desk keeps the wide side,
   the judgments column takes the narrow one. Both start at the rule. */
@media (min-width: 1024px) {
    .home-split {
        grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
        align-items: start;
    }
}

@media (max-width: 1023px) {
    .home-lead__slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-lead__visual {
        order: -1;
    }

    /* Four across only fits a desktop column; two-up carries the grid on
       everything narrower without squeezing the cards. */
    .home-cards,
    .home-split__main .home-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-most__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-desks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .home-sec {
        padding-block: 1.75rem 2.25rem;
    }
}

@media (max-width: 560px) {
    .home-cards,
    .home-split__main .home-cards,
    .home-desks,
    .home-most__list {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-lead__title {
        font-size: 1.85rem;
    }

    .home-lead__ctx {
        left: 0.75rem;
        padding: 0.75rem 1rem 0.75rem 0.75rem;
    }

    .home-lead__ctx-icon {
        width: 2.75rem;
        height: 2.75rem;
    }

    .home-lead__dots {
        justify-content: center;
    }

    .home-news__tabs {
        gap: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-lead__slide,
    .home-lead__cta {
        transition: none;
    }

    .home-card__media img,
    .home-judgment__media img,
    .home-row__media img {
        transition: none;
    }

    .home-card:hover .home-card__media img,
    .home-judgment__card:hover .home-judgment__media img,
    .home-row:hover .home-row__media img {
        transform: none;
    }

    .home-sec__more svg,
    .home-desk__all svg {
        transition: none;
    }

    .home-sec__more:hover svg,
    .home-desk__all:hover svg {
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Student strip — the band under the lead that points law students to the hub
   -------------------------------------------------------------------------- */
.home-students {
    background: #fcfbf8;
    border-top: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    padding-block: clamp(1.5rem, 3vw, 2.25rem);
}

.home-students__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
}

.home-students__copy {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 48rem;
}

.home-students__eyebrow {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--brass);
}

.home-students__title {
    margin: 0;
    font-family: var(--font-display), Georgia, serif;
    font-size: clamp(1.4rem, 2.4vw, 2rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    color: var(--ink);
    text-wrap: balance;
}

.home-students__lede {
    margin: 0;
    font-size: 0.9375rem;
    line-height: 1.55;
    color: var(--ink-soft);
}

.home-students__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.4rem;
    border-radius: var(--radius-sm);
    background: var(--brass);
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.home-students__cta:hover,
.home-students__cta:focus-visible {
    background: var(--brass-deep);
    color: #fff;
}

.home-students__perks {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 1.5rem;
}

.home-students__perk {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.home-students__icon {
    flex: none;
    display: inline-flex;
    color: var(--brass);
}

.home-students__text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: var(--ink-soft);
}

.home-students__text strong {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--ink);
}

@media (max-width: 1023px) {
    .home-students__perks {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .home-students__perks {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-students__cta {
        width: 100%;
        justify-content: center;
    }
}
