/* ==========================================================================
   BARK LIKE A DOG™
   Dog Training + Behavior

   VISUAL SYSTEM:
   OBEDIENCE SCHOOL × FIELD DAY
   ========================================================================== */


/* ==========================================================================
   ROOT
   ========================================================================== */

:root {
    --paper: #eee6d5;
    --paper-light: #f8f3e8;
    --paper-dark: #d7cdb8;

    --ink: #171914;
    --ink-soft: #343830;

    --field: #234135;
    --field-dark: #142b23;
    --field-light: #49685a;

    --lime: #c7eb48;
    --orange: #e36b38;
    --chalk: #f5f0e4;
    --red: #a94a3d;

    --line: rgba(23, 25, 20, 0.24);
    --line-light: rgba(245, 240, 228, 0.22);

    --display: "DM Serif Display", Georgia, serif;
    --body: "Archivo", Arial, sans-serif;
    --mono: "IBM Plex Mono", Consolas, monospace;

    --content: 1240px;
    --wide: 1400px;

    --side: clamp(22px, 5vw, 74px);
    --space: clamp(82px, 8vw, 140px);

    --shadow:
        0 24px 60px rgba(23, 25, 20, 0.16);
}


/* ==========================================================================
   RESET
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    overflow-x: clip;

    background: var(--paper);
    color: var(--ink);

    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
}

body.nav-open {
    overflow: hidden;
}

img {
    display: block;
    width: 100%;
}

a {
    color: inherit;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

h1,
h2,
h3,
p,
blockquote,
figure,
dl,
dd {
    margin-top: 0;
}

::selection {
    background: var(--lime);
    color: var(--ink);
}


/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 9999;

    padding: 10px 14px;

    background: var(--lime);
    border: 1px solid var(--ink);

    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;

    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 4px;
}


/* ==========================================================================
   SHARED
   ========================================================================== */

.school-code {
    display: inline-block;

    font-family: var(--mono);
    font-size: 0.67rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.school-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    min-height: 76px;

    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 40px;

    padding-inline:
        max(
            var(--side),
            calc((100vw - var(--wide)) / 2)
        );

    background: rgba(238, 230, 213, 0.96);
    border-bottom: 1px solid var(--ink);

    backdrop-filter: blur(12px);
}

.school-brand {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
}

.school-brand__mark {
    width: 44px;
    height: 44px;

    display: grid;
    place-items: center;

    background: var(--field);
    color: var(--lime);

    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 700;

    border-radius: 50%;

    transform: rotate(-5deg);
}

.school-brand__name {
    display: grid;
}

.school-brand__name strong {
    font-size: 0.8rem;
    line-height: 1.2;
}

.school-brand__name small {
    margin-top: 2px;

    font-family: var(--mono);
    font-size: 0.58rem;
}

.school-nav {
    justify-self: end;

    display: flex;
    align-items: center;
    gap: clamp(14px, 1.5vw, 28px);
}

.school-nav a {
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
}

.school-nav a:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.school-nav__enroll {
    padding: 10px 15px;

    background: var(--lime);
    border: 1px solid var(--ink);
}

.school-nav a.school-nav__enroll:hover {
    background: var(--ink);
    color: var(--chalk);
    text-decoration: none;
}

.menu-toggle {
    display: none;
}


/* ==========================================================================
   HERO — FIRST DAY OF SCHOOL
   ========================================================================== */

.school-hero {
    position: relative;

    min-height: min(850px, calc(100vh - 76px));

    overflow: hidden;

    background: var(--field-dark);
    color: var(--chalk);

    border-bottom: 1px solid var(--ink);
}

.school-hero__image {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 45%;
}

.school-hero__shade {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(13, 27, 22, 0.94) 0%,
            rgba(13, 27, 22, 0.78) 32%,
            rgba(13, 27, 22, 0.32) 62%,
            rgba(13, 27, 22, 0.15) 100%
        ),
        linear-gradient(
            0deg,
            rgba(13, 27, 22, 0.5),
            transparent 40%
        );
}

.school-hero__utility {
    position: absolute;
    top: 24px;
    right:
        max(
            var(--side),
            calc((100vw - var(--wide)) / 2)
        );
    z-index: 2;

    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.school-hero__utility span {
    padding: 7px 10px;

    background: rgba(245, 240, 228, 0.9);
    color: var(--ink);

    border: 1px solid var(--ink);

    font-family: var(--mono);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.school-hero__content {
    position: relative;
    z-index: 2;

    width: min(calc(100% - (var(--side) * 2)), var(--wide));
    min-height: min(850px, calc(100vh - 76px));

    margin-inline: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding-block: 120px 145px;
}

.school-hero__kicker {
    margin-bottom: 28px;

    color: var(--lime);

    font-family: var(--mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.school-hero h1 {
    max-width: 850px;
    margin-bottom: 22px;

    font-family: var(--display);
    font-size: clamp(5.8rem, 10vw, 10.5rem);
    font-weight: 400;
    line-height: 0.72;
    letter-spacing: -0.07em;
}

.school-hero__tagline {
    margin-bottom: 24px;

    color: var(--lime);

    font-family: var(--display);
    font-size: clamp(2rem, 3vw, 3.6rem);
    font-style: italic;
    line-height: 1;
}

.school-hero__intro {
    max-width: 570px;
    margin-bottom: 34px;

    font-size: clamp(1rem, 1.2vw, 1.18rem);
    font-weight: 600;
}

.school-hero__button {
    display: inline-flex;
    align-items: center;

    min-height: 54px;
    padding: 0 22px;

    background: var(--lime);
    color: var(--ink);

    border: 1px solid var(--chalk);

    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;

    box-shadow: 6px 6px 0 var(--chalk);
}

.school-hero__button:hover {
    transform: translate(2px, 2px);
    box-shadow: 4px 4px 0 var(--chalk);
}

.school-hero__term-card {
    position: absolute;
    right:
        max(
            var(--side),
            calc((100vw - var(--wide)) / 2)
        );
    bottom: 34px;
    z-index: 3;

    width: min(330px, calc(100% - 40px));
    padding: 18px 20px;

    background: var(--paper);
    color: var(--ink);

    border: 1px solid var(--ink);

    transform: rotate(1.3deg);

    box-shadow: 8px 8px 0 var(--lime);
}

.school-hero__term-card span,
.school-hero__term-card strong,
.school-hero__term-card small {
    display: block;
}

.school-hero__term-card span {
    font-family: var(--mono);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.school-hero__term-card strong {
    margin: 4px 0;

    font-family: var(--display);
    font-size: 1.65rem;
    font-weight: 400;
}

.school-hero__term-card small {
    font-size: 0.7rem;
}


/* ==========================================================================
   PLACEMENT TEST
   ========================================================================== */

.placement-test {
    background:
        linear-gradient(
            90deg,
            rgba(23, 25, 20, 0.05) 1px,
            transparent 1px
        ),
        var(--paper-light);

    background-size: 42px 42px;

    border-bottom: 1px solid var(--ink);
}

.placement-test__intro {
    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin-inline: auto;
    padding: var(--space) 0 55px;
}

.placement-test__intro h2 {
    margin: 14px 0 16px;

    font-family: var(--display);
    font-size: clamp(4.2rem, 7vw, 8.4rem);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.055em;
}

.placement-test__intro p {
    max-width: 520px;
    margin-bottom: 0;

    color: var(--ink-soft);
}

.placement-options {
    border-top: 1px solid var(--ink);
}

.placement-option {
    width: 100%;
    min-height: 180px;

    display: grid;
    grid-template-columns:
        minmax(
            var(--side),
            calc((100vw - var(--content)) / 2)
        )
        90px
        minmax(0, var(--content))
        minmax(
            var(--side),
            calc((100vw - var(--content)) / 2)
        );

    align-items: center;

    border-bottom: 1px solid var(--ink);

    text-decoration: none;

    transition:
        background 170ms ease,
        color 170ms ease;
}

.placement-option__number {
    grid-column: 2;

    font-family: var(--mono);
    font-size: 0.7rem;
}

.placement-option > div {
    grid-column: 3;

    padding: 28px 0;
}

.placement-option strong {
    display: block;

    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 4.8rem);
    font-weight: 400;
    line-height: 0.92;
}

.placement-option p {
    margin: 10px 0 0;

    font-family: var(--mono);
    font-size: 0.69rem;
}

.placement-option__arrow {
    grid-column: 4;
    justify-self: end;

    padding-right: var(--side);

    font-size: 2.2rem;
}

.placement-option:hover {
    background: var(--lime);
}

.placement-option:nth-child(2):hover {
    background: var(--field);
    color: var(--chalk);
}

.placement-option:nth-child(3):hover {
    background: var(--orange);
}


/* ==========================================================================
   COURSE CATALOG
   ========================================================================== */

.course-catalog {
    padding-block: var(--space);

    background: var(--field-dark);
    color: var(--chalk);

    border-bottom: 1px solid var(--ink);
}

.course-catalog__header,
.course-catalog__footer,
.course-register {
    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin-inline: auto;
}

.course-catalog__header {
    display: grid;
    grid-template-columns: 1fr 0.65fr;
    align-items: end;
    gap: 70px;

    margin-bottom: 65px;
}

.course-catalog__header .school-code {
    color: var(--lime);
}

.course-catalog__header h2 {
    margin: 15px 0 0;

    font-family: var(--display);
    font-size: clamp(4.5rem, 7vw, 8rem);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.055em;
}

.course-catalog__header > p {
    max-width: 430px;
    margin-bottom: 7px;

    color: rgba(245, 240, 228, 0.68);
}

.course-register {
    border-top: 1px solid var(--chalk);
}

.course-row {
    min-height: 160px;

    display: grid;
    grid-template-columns: 125px minmax(270px, 1fr) 1.2fr auto;
    align-items: center;
    gap: 30px;

    border-bottom: 1px solid rgba(245, 240, 228, 0.5);

    transition:
        background 170ms ease,
        color 170ms ease,
        padding 170ms ease;
}

.course-row:hover {
    padding-inline: 18px;

    background: var(--paper);
    color: var(--ink);
}

.course-row__code {
    display: flex;
    align-items: baseline;
    gap: 7px;
}

.course-row__code span {
    color: var(--lime);

    font-family: var(--mono);
    font-size: 0.66rem;
}

.course-row:hover .course-row__code span {
    color: var(--field);
}

.course-row__code strong {
    font-family: var(--display);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1;
}

.course-row__title > span {
    display: block;

    color: var(--lime);

    font-family: var(--mono);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.course-row:hover .course-row__title > span {
    color: var(--field);
}

.course-row__title h3 {
    margin: 5px 0 0;

    font-family: var(--display);
    font-size: clamp(1.8rem, 2.7vw, 3rem);
    font-weight: 400;
    line-height: 1;
}

.course-row__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));

    margin: 0;
}

.course-row__facts div {
    padding-right: 16px;
}

.course-row__facts dt {
    margin-bottom: 4px;

    color: rgba(245, 240, 228, 0.55);

    font-family: var(--mono);
    font-size: 0.52rem;
    text-transform: uppercase;
}

.course-row:hover .course-row__facts dt {
    color: rgba(23, 25, 20, 0.55);
}

.course-row__facts dd {
    font-size: 0.7rem;
    font-weight: 700;
}

.course-row > a {
    font-size: 0.7rem;
    font-weight: 800;
    text-underline-offset: 4px;
}

.course-catalog__footer {
    margin-top: 45px;
    padding: 26px 0;

    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 28px;
    align-items: center;

    border-block: 1px solid var(--line-light);
}

.course-catalog__footer span {
    color: var(--lime);

    font-family: var(--mono);
    font-size: 0.64rem;
    text-transform: uppercase;
}

.course-catalog__footer p {
    margin-bottom: 0;

    font-size: 0.78rem;
}

.course-catalog__footer a {
    color: var(--lime);

    font-size: 0.72rem;
    font-weight: 800;
}


/* ==========================================================================
   TODAY'S LESSON
   ========================================================================== */

.todays-lesson {
    position: relative;

    padding:
        clamp(55px, 6vw, 90px)
        0
        var(--space);

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 39px,
            rgba(23, 25, 20, 0.08) 40px
        ),
        var(--paper);

    border-bottom: 1px solid var(--ink);
}

.todays-lesson__photo {
    position: relative;

    width: min(calc(100% - (var(--side) * 2)), var(--wide));
    height: clamp(480px, 62vw, 760px);

    margin-inline: auto;

    overflow: hidden;
}

.todays-lesson__photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
}

.todays-lesson__stamp {
    position: absolute;
    top: 25px;
    left: 25px;

    padding: 9px 12px;

    background: var(--lime);
    border: 1px solid var(--ink);

    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;

    transform: rotate(-2deg);
}

.lesson-line {
    position: relative;

    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin: -55px auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    background: var(--paper-light);
    border: 1px solid var(--ink);

    box-shadow: var(--shadow);
}

.lesson-line::before {
    content: "";

    position: absolute;
    left: 12%;
    right: 12%;
    top: 59px;

    height: 5px;

    background: var(--field);

    transform: rotate(-0.8deg);
}

.lesson-step {
    position: relative;
    z-index: 2;

    min-height: 200px;
    padding: 26px 23px;

    border-right: 1px solid var(--ink);
}

.lesson-step:last-child {
    border-right: 0;
}

.lesson-step span {
    display: block;
    margin-bottom: 61px;

    font-family: var(--mono);
    font-size: 0.6rem;
}

.lesson-step strong {
    display: block;

    font-family: var(--display);
    font-size: clamp(1.7rem, 2.5vw, 3rem);
    font-weight: 400;
}

.lesson-step small {
    display: block;
    margin-top: 5px;

    font-family: var(--mono);
    font-size: 0.62rem;
}

.lesson-step--again {
    background: var(--lime);
}

.todays-lesson__statement {
    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin: 45px auto 0;

    display: grid;
    grid-template-columns: 180px minmax(0, 700px);
    gap: 45px;
}

.todays-lesson__statement p {
    margin-bottom: 0;

    font-family: var(--display);
    font-size: clamp(2rem, 3vw, 3.5rem);
    line-height: 1.05;
}


/* ==========================================================================
   CLASS BOARD
   ========================================================================== */

.class-board {
    padding-block: var(--space);

    background: var(--paper-light);

    border-bottom: 1px solid var(--ink);
}

.class-board__header,
.class-board__grid,
.class-board__note {
    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin-inline: auto;
}

.class-board__header {
    display: grid;
    grid-template-columns: 1fr 0.6fr;
    align-items: end;
    gap: 65px;

    margin-bottom: 60px;
}

.class-board__header h2 {
    margin: 15px 0 0;

    font-family: var(--display);
    font-size: clamp(4.2rem, 7vw, 8rem);
    font-weight: 400;
    line-height: 0.82;
    letter-spacing: -0.055em;
}

.class-board__header > p {
    margin-bottom: 7px;

    color: var(--ink-soft);
}

.class-board__grid {
    display: grid;
    grid-template-columns: 0.75fr repeat(4, minmax(0, 1fr));

    border: 1px solid var(--ink);

    box-shadow: 10px 10px 0 var(--field);
}

.class-board__corner,
.class-period {
    min-height: 325px;

    border-right: 1px solid var(--ink);
}

.class-period:last-child {
    border-right: 0;
}

.class-board__corner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 20px;

    background: var(--field);
    color: var(--chalk);
}

.class-board__corner span {
    font-family: var(--mono);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.class-board__corner strong {
    font-family: var(--display);
    font-size: 3.2rem;
    font-weight: 400;
    line-height: 0.85;
}

.class-period {
    display: flex;
    flex-direction: column;

    background: var(--paper);
}

.class-period header {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 76px;
    padding: 14px 16px;

    border-bottom: 1px solid var(--ink);
}

.class-period header span {
    font-family: var(--mono);
    font-size: 0.58rem;
}

.class-period header strong {
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 400;
}

.class-period > div {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 24px 17px;
}

.class-period time {
    font-family: var(--mono);
    font-size: 0.61rem;
}

.class-period h3 {
    margin: auto 0 10px;

    font-family: var(--display);
    font-size: clamp(1.55rem, 2vw, 2.35rem);
    font-weight: 400;
    line-height: 0.95;
}

.class-period p {
    margin-bottom: 3px;

    font-size: 0.7rem;
}

.class-period small {
    font-family: var(--mono);
    font-size: 0.56rem;
}

.class-period--featured {
    background: var(--lime);
}

.class-board__note {
    padding: 22px 0 0;

    display: flex;
    gap: 8px;
    flex-wrap: wrap;

    font-family: var(--mono);
    font-size: 0.65rem;
}


/* ==========================================================================
   TEACHER / YEARBOOK
   ========================================================================== */

.teacher-page {
    padding-block: var(--space);

    background:
        radial-gradient(
            circle at 15px 15px,
            rgba(23, 25, 20, 0.06) 1px,
            transparent 1px
        ),
        var(--paper);

    background-size: 30px 30px;

    border-bottom: 1px solid var(--ink);
}

.teacher-page__masthead,
.teacher-yearbook {
    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin-inline: auto;
}

.teacher-page__masthead {
    display: grid;
    grid-template-columns: 180px 1fr auto;
    align-items: end;
    gap: 45px;

    padding-bottom: 35px;

    border-bottom: 1px solid var(--ink);
}

.teacher-page__masthead p {
    margin-bottom: 5px;

    font-family: var(--mono);
    font-size: 0.7rem;
}

.teacher-page__masthead h2 {
    margin-bottom: 0;

    font-family: var(--display);
    font-size: clamp(4rem, 6.5vw, 7.4rem);
    font-weight: 400;
    line-height: 0.84;
    letter-spacing: -0.055em;
}

.teacher-page__year {
    padding: 10px 13px;

    border: 1px solid var(--ink);
    border-radius: 50%;

    font-family: var(--mono);
    font-size: 0.6rem;

    transform: rotate(5deg);
}

.teacher-yearbook {
    margin-top: 60px;

    display: grid;
    grid-template-columns: minmax(360px, 0.92fr) minmax(480px, 1.08fr);
    gap: clamp(55px, 8vw, 120px);
    align-items: start;
}

.teacher-yearbook__portrait {
    position: relative;

    margin: 0;
    padding: 14px 14px 22px;

    background: var(--paper-light);
    border: 1px solid var(--ink);

    box-shadow: 12px 12px 0 var(--field);

    transform: rotate(-1.4deg);
}

.teacher-yearbook__portrait::before {
    content: "";

    position: absolute;
    top: -13px;
    left: 50%;

    width: 90px;
    height: 27px;

    background: rgba(225, 207, 165, 0.8);

    transform: translateX(-50%) rotate(2deg);
}

.teacher-yearbook__portrait img {
    aspect-ratio: 4 / 5;

    object-fit: cover;
}

.teacher-yearbook__portrait figcaption {
    padding-top: 15px;

    font-family: var(--mono);
    font-size: 0.61rem;
}

.teacher-yearbook__notes {
    border-top: 1px solid var(--ink);
}

.teacher-note {
    min-height: 112px;

    display: grid;
    grid-template-columns: 145px 1fr;
    gap: 25px;

    padding: 22px 0;

    border-bottom: 1px solid var(--ink);
}

.teacher-note > span,
.teacher-excuse > span {
    font-family: var(--mono);
    font-size: 0.6rem;
    text-transform: uppercase;
}

.teacher-note strong {
    font-family: var(--display);
    font-size: clamp(1.5rem, 2.2vw, 2.5rem);
    font-weight: 400;
    line-height: 1;
}

.teacher-note--bio p {
    margin-bottom: 0;

    color: var(--ink-soft);
}

.teacher-excuse {
    position: relative;

    margin: 45px 0 0;
    padding: 28px;

    background: var(--lime);
    border: 1px solid var(--ink);

    font-family: var(--display);
    font-size: clamp(1.8rem, 2.8vw, 3.2rem);
    line-height: 1.05;

    transform: rotate(1deg);
}

.teacher-excuse > span {
    display: block;
    margin-bottom: 20px;
}

.teacher-excuse small {
    display: block;
    margin-top: 22px;

    font-family: var(--mono);
    font-size: 0.66rem;
    line-height: 1.5;
}


/* ==========================================================================
   REPORT CARDS
   ========================================================================== */

.report-cards {
    padding-block: var(--space);

    background: var(--field);
    color: var(--chalk);

    border-bottom: 1px solid var(--ink);
}

.report-cards__header,
.report-card-wall {
    width: min(calc(100% - (var(--side) * 2)), var(--wide));
    margin-inline: auto;
}

.report-cards__header {
    display: grid;
    grid-template-columns: 0.4fr 1fr 0.6fr;
    gap: 45px;
    align-items: end;

    margin-bottom: 80px;
}

.report-cards__header .school-code {
    color: var(--lime);
}

.report-cards__header h2 {
    margin-bottom: 0;

    font-family: var(--display);
    font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 400;
    line-height: 0.8;
    letter-spacing: -0.055em;
}

.report-cards__header p {
    margin-bottom: 4px;

    color: rgba(245, 240, 228, 0.68);
}

.report-card-wall {
    display: grid;
    grid-template-columns: 1.12fr 0.82fr 1.05fr;
    gap: clamp(24px, 3vw, 45px);
    align-items: start;
}

.dog-report {
    color: var(--ink);
}

.dog-report--photo {
    background: var(--paper-light);
    border: 1px solid var(--ink);

    box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.28);

    transform: rotate(-1deg);
}

.dog-report--photo > img {
    aspect-ratio: 4 / 3;

    object-fit: cover;

    border-bottom: 1px solid var(--ink);
}

.dog-report__paper {
    padding: 25px;
}

.dog-report header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;

    padding-bottom: 17px;
    margin-bottom: 15px;

    border-bottom: 1px solid var(--ink);
}

.dog-report header span {
    font-family: var(--mono);
    font-size: 0.57rem;
    text-transform: uppercase;
}

.dog-report header strong {
    font-family: var(--display);
    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 400;
}

.dog-report dl {
    margin: 0;
}

.dog-report dl div {
    display: flex;
    justify-content: space-between;
    gap: 20px;

    padding: 10px 0;

    border-bottom: 1px solid var(--line);
}

.dog-report dt {
    font-family: var(--mono);
    font-size: 0.61rem;
}

.dog-report dd {
    font-size: 0.72rem;
    font-weight: 800;
}

.dog-report blockquote {
    margin: 24px 0 12px;

    font-family: var(--display);
    font-size: 1.5rem;
    line-height: 1.15;
}

.dog-report small {
    font-family: var(--mono);
    font-size: 0.55rem;
}

.dog-report--paper {
    position: relative;

    margin-top: 85px;
    padding: 27px;

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 31px,
            rgba(23, 25, 20, 0.08) 32px
        ),
        var(--paper);

    border: 1px solid var(--ink);

    box-shadow: 8px 8px 0 var(--lime);

    transform: rotate(1.7deg);
}

.dog-report--paper::before {
    content: "";

    position: absolute;
    top: -14px;
    left: 50%;

    width: 75px;
    height: 26px;

    background: rgba(225, 207, 165, 0.85);

    transform: translateX(-50%) rotate(-3deg);
}

.dog-report__comment {
    margin-bottom: 24px;

    font-family: var(--display);
    font-size: 1.55rem;
    line-height: 1.15;
}

.dog-report__stamp {
    width: fit-content;
    margin: 34px 0 5px auto;
    padding: 9px 12px;

    color: var(--field);

    border: 3px solid currentColor;

    font-family: var(--mono);
    font-size: 0.72rem;
    font-weight: 800;

    transform: rotate(-7deg);
}

.dog-report--alternate {
    margin-top: 32px;

    transform: rotate(1.2deg);
}


/* ==========================================================================
   FIELD TRIP
   ========================================================================== */

.field-trip {
    position: relative;

    min-height: 780px;

    overflow: hidden;

    background: var(--field-dark);
    color: var(--chalk);

    border-bottom: 1px solid var(--ink);
}

.field-trip > img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;
}

.field-trip__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(14, 30, 24, 0.9),
            rgba(14, 30, 24, 0.57) 48%,
            rgba(14, 30, 24, 0.14)
        );
}

.field-trip__content {
    position: relative;
    z-index: 2;

    width: min(calc(100% - (var(--side) * 2)), var(--wide));
    min-height: 780px;

    margin-inline: auto;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding-block: 120px;
}

.field-trip__content .school-code {
    color: var(--lime);
}

.field-trip h2 {
    max-width: 900px;
    margin: 22px 0 30px;

    font-family: var(--display);
    font-size: clamp(5rem, 8vw, 9rem);
    font-weight: 400;
    line-height: 0.75;
    letter-spacing: -0.06em;
}

.field-trip__content p {
    max-width: 570px;
    margin-bottom: 0;

    font-weight: 600;
}

.field-trip__distractions {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 3;

    width: min(calc(100% - (var(--side) * 2)), var(--wide));

    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    transform: translateX(-50%);
}

.field-trip__distractions span {
    padding: 8px 10px;

    background: var(--paper);
    color: var(--ink);

    border: 1px solid var(--ink);

    font-family: var(--mono);
    font-size: 0.58rem;
    text-transform: uppercase;
}


/* ==========================================================================
   FAQ — PARENT TEACHER CONFERENCE
   ========================================================================== */

.conference {
    padding-block: var(--space);

    background:
        linear-gradient(
            90deg,
            transparent 0,
            transparent 79px,
            rgba(169, 74, 61, 0.22) 80px,
            transparent 81px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 35px,
            rgba(23, 25, 20, 0.08) 36px
        ),
        var(--paper-light);

    border-bottom: 1px solid var(--ink);
}

.conference__header,
.conference-sheet {
    width: min(calc(100% - (var(--side) * 2)), var(--content));
    margin-inline: auto;
}

.conference__header {
    padding-left: clamp(30px, 5vw, 85px);
    margin-bottom: 55px;
}

.conference__header h2 {
    margin: 18px 0 0;

    font-family: var(--display);
    font-size: clamp(4rem, 6.5vw, 7.5rem);
    font-weight: 400;
    line-height: 0.83;
    letter-spacing: -0.055em;
}

.conference-sheet {
    padding-left: clamp(30px, 5vw, 85px);

    border-top: 1px solid var(--ink);
}

.conference details {
    border-bottom: 1px solid var(--ink);
}

.conference summary {
    position: relative;

    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 20px;

    padding: 25px 45px 25px 0;

    font-size: clamp(1.05rem, 1.5vw, 1.35rem);
    font-weight: 700;

    cursor: pointer;
    list-style: none;
}

.conference summary::-webkit-details-marker {
    display: none;
}

.conference summary::after {
    content: "+";

    position: absolute;
    right: 4px;

    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 400;
}

.conference details[open] summary::after {
    content: "−";
}

.conference summary span {
    font-family: var(--mono);
    font-size: 0.6rem;
}

.conference details p {
    max-width: 720px;
    margin: 0 45px 28px 70px;

    color: var(--ink-soft);
}


/* ==========================================================================
   ENROLLMENT
   ========================================================================== */

.enrollment {
    padding-block: var(--space);

    background:
        linear-gradient(
            90deg,
            rgba(245, 240, 228, 0.04) 1px,
            transparent 1px
        ),
        linear-gradient(
            rgba(245, 240, 228, 0.04) 1px,
            transparent 1px
        ),
        var(--field-dark);

    background-size: 45px 45px;

    color: var(--chalk);
}

.enrollment__headline,
.enrollment-form {
    width: min(calc(100% - (var(--side) * 2)), 980px);
    margin-inline: auto;
}

.enrollment__headline {
    text-align: center;
}

.enrollment__headline .school-code {
    color: var(--lime);
}

.enrollment__headline h2 {
    margin: 20px 0 24px;

    font-family: var(--display);
    font-size: clamp(4.8rem, 8vw, 9rem);
    font-weight: 400;
    line-height: 0.76;
    letter-spacing: -0.06em;
}

.enrollment__headline p {
    max-width: 580px;
    margin: 0 auto 60px;

    color: rgba(245, 240, 228, 0.7);
}

.enrollment-form {
    position: relative;

    background:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 38px,
            rgba(23, 25, 20, 0.045) 39px
        ),
        var(--paper-light);

    color: var(--ink);

    border: 1px solid var(--ink);

    box-shadow: 13px 13px 0 var(--lime);

    transform: rotate(-0.3deg);
}

.enrollment-form::before {
    content: "";

    position: absolute;
    top: -15px;
    left: 50%;

    width: 110px;
    height: 30px;

    background: rgba(225, 207, 165, 0.88);

    transform: translateX(-50%) rotate(1deg);
}

.enrollment-form__header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 20px;

    padding: 24px;

    border-bottom: 2px solid var(--ink);
}

.enrollment-form__header strong {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 400;
}

.enrollment-form__header span,
.enrollment-form__header small {
    font-family: var(--mono);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.enrollment-form__header small {
    padding: 3px 7px;

    background: var(--lime);
}

.enrollment-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.enrollment-form label {
    display: block;

    padding: 22px 24px;

    border-bottom: 1px solid var(--ink);
}

.enrollment-form__row label:first-child {
    border-right: 1px solid var(--ink);
}

.enrollment-form label > span {
    display: block;
    margin-bottom: 9px;

    font-family: var(--mono);
    font-size: 0.58rem;
    font-weight: 600;
    text-transform: uppercase;
}

.enrollment-form input,
.enrollment-form select,
.enrollment-form textarea {
    width: 100%;

    padding: 11px 0;

    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    outline: 0;

    background: transparent;
    color: var(--ink);
}

.enrollment-form input:focus,
.enrollment-form select:focus,
.enrollment-form textarea:focus {
    border-bottom-color: var(--field);
    box-shadow: 0 1px 0 var(--field);
}

.enrollment-form textarea {
    resize: vertical;
}

.enrollment-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;

    padding: 24px;
}

.enrollment-form__footer p {
    max-width: 440px;
    margin-bottom: 0;

    font-family: var(--mono);
    font-size: 0.61rem;
}

.enrollment-form__footer button {
    min-height: 50px;
    padding: 0 18px;

    background: var(--field);
    color: var(--chalk);

    border: 1px solid var(--ink);

    font-size: 0.72rem;
    font-weight: 800;
}

.enrollment-form__footer button:hover {
    background: var(--lime);
    color: var(--ink);
}

.form-status {
    min-height: 0;
    margin: 0;

    padding-inline: 24px;

    font-family: var(--mono);
    font-size: 0.66rem;
    font-weight: 600;
}

.form-status:not(:empty) {
    padding-block: 17px;

    border-top: 1px solid var(--ink);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.school-footer {
    display: grid;
    grid-template-columns: 1.2fr 0.75fr 0.75fr;

    gap: 55px;

    padding:
        clamp(55px, 7vw, 95px)
        max(
            var(--side),
            calc((100vw - var(--wide)) / 2)
        )
        35px;

    background: var(--ink);
    color: var(--chalk);

    border-top: 1px solid var(--line-light);
}

.school-footer__identity strong,
.school-footer__identity span,
.school-footer__identity em {
    display: block;
}

.school-footer__identity strong {
    font-family: var(--display);
    font-size: clamp(2.8rem, 4.5vw, 5.3rem);
    font-weight: 400;
    line-height: 0.85;
    letter-spacing: -0.05em;
}

.school-footer__identity span {
    margin-top: 14px;

    font-family: var(--mono);
    font-size: 0.65rem;
}

.school-footer__identity em {
    margin-top: 7px;

    color: var(--lime);

    font-family: var(--display);
    font-size: 1.5rem;
}

.school-footer__nav,
.school-footer__contact {
    display: grid;
    align-content: start;
    gap: 7px;
}

.school-footer__nav a,
.school-footer__contact a {
    width: fit-content;

    font-size: 0.72rem;
    text-decoration: none;
}

.school-footer__nav a:hover,
.school-footer__contact a:hover {
    color: var(--lime);
}

.school-footer__contact > span {
    margin-bottom: 8px;

    color: var(--lime);

    font-family: var(--mono);
    font-size: 0.58rem;
    text-transform: uppercase;
}

.school-footer__contact p {
    margin: 5px 0 0;

    color: rgba(245, 240, 228, 0.55);

    font-size: 0.7rem;
}

.school-footer__fineprint {
    grid-column: 1 / -1;

    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 35px;

    margin-top: 35px;
    padding-top: 24px;

    border-top: 1px solid var(--line-light);

    color: rgba(245, 240, 228, 0.48);

    font-family: var(--mono);
    font-size: 0.56rem;
}

.school-footer__fineprint p {
    max-width: 500px;
    margin-bottom: 0;
}

.school-footer__fineprint strong {
    color: var(--lime);
}


/* ==========================================================================
   COMPACT DESKTOP
   ========================================================================== */

@media (max-width: 1180px) {

    .school-nav {
        gap: 12px;
    }

    .school-nav a {
        font-size: 0.66rem;
    }

    .school-hero h1 {
        font-size: clamp(5.4rem, 10vw, 8rem);
    }

    .placement-option {
        grid-template-columns: var(--side) 70px 1fr var(--side);
    }

    .course-row {
        grid-template-columns: 105px minmax(230px, 1fr) 1.2fr auto;
        gap: 20px;
    }

    .course-row__facts {
        gap: 8px;
    }

    .class-board__grid {
        grid-template-columns: 0.6fr repeat(4, minmax(0, 1fr));
    }

    .teacher-yearbook {
        gap: 60px;
    }

    .report-card-wall {
        gap: 24px;
    }
}


/* ==========================================================================
   TABLET / MOBILE
   ========================================================================== */

@media (max-width: 820px) {

    html {
        scroll-padding-top: 70px;
    }

    .school-header {
        min-height: 70px;

        grid-template-columns: 1fr auto;
    }

    .school-brand__mark {
        width: 40px;
        height: 40px;
    }

    .menu-toggle {
        position: relative;
        z-index: 1003;

        display: block;

        width: 46px;
        height: 42px;
        padding: 0;

        background: transparent;
        border: 1px solid var(--ink);
    }

    .menu-toggle span {
        display: block;

        width: 20px;
        height: 2px;

        margin: 5px auto;

        background: var(--ink);

        transition: transform 180ms ease;
    }

    .nav-open .menu-toggle span:first-child {
        transform: translateY(3.5px) rotate(45deg);
    }

    .nav-open .menu-toggle span:last-child {
        transform: translateY(-3.5px) rotate(-45deg);
    }

    .school-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;

        z-index: 1002;

        display: grid;
        gap: 0;

        padding:
            8px
            var(--side)
            24px;

        background: var(--paper);

        border-bottom: 1px solid var(--ink);

        transform: translateY(-130%);
        visibility: hidden;

        transition:
            transform 200ms ease,
            visibility 200ms ease;
    }

    .nav-open .school-nav {
        transform: translateY(0);
        visibility: visible;
    }

    .school-nav a {
        padding: 14px 0;

        border-bottom: 1px solid var(--line);

        font-size: 0.78rem;
    }

    .school-nav__enroll {
        margin-top: 10px;

        padding: 13px !important;

        text-align: center;
    }


    /* HERO */

    .school-hero,
    .school-hero__content {
        min-height: 760px;
    }

    .school-hero__shade {
        background:
            linear-gradient(
                90deg,
                rgba(13, 27, 22, 0.88),
                rgba(13, 27, 22, 0.43)
            ),
            linear-gradient(
                0deg,
                rgba(13, 27, 22, 0.55),
                transparent
            );
    }

    .school-hero__utility {
        left: var(--side);
        right: var(--side);

        justify-content: flex-start;
    }

    .school-hero__utility span:nth-child(3) {
        display: none;
    }

    .school-hero__content {
        padding-top: 155px;
        padding-bottom: 180px;
    }

    .school-hero h1 {
        font-size: clamp(5rem, 18vw, 8rem);
    }

    .school-hero__term-card {
        left: var(--side);
        right: auto;
    }


    /* PLACEMENT */

    .placement-option {
        min-height: 175px;

        grid-template-columns: var(--side) 45px 1fr 52px;
    }

    .placement-option__arrow {
        padding-right: 14px;
    }


    /* COURSE CATALOG */

    .course-catalog__header {
        display: block;
    }

    .course-catalog__header > p {
        margin-top: 30px;
    }

    .course-row {
        grid-template-columns: 80px 1fr auto;

        min-height: 190px;

        padding-block: 25px;
    }

    .course-row:hover {
        padding-inline: 0;
    }

    .course-row__facts {
        grid-column: 2 / -1;

        margin-top: -15px;
    }

    .course-row > a {
        grid-column: 3;
        grid-row: 1;
    }

    .course-catalog__footer {
        grid-template-columns: 1fr;
        gap: 10px;
    }


    /* LESSON */

    .todays-lesson__photo {
        height: 62vh;
        min-height: 480px;
    }

    .lesson-line {
        grid-template-columns: repeat(4, 72vw);

        overflow-x: auto;
        scroll-snap-type: x mandatory;

        scrollbar-width: none;
    }

    .lesson-line::-webkit-scrollbar {
        display: none;
    }

    .lesson-line::before {
        left: 8%;
        width: 280vw;
        right: auto;
    }

    .lesson-step {
        scroll-snap-align: start;
    }

    .todays-lesson__statement {
        grid-template-columns: 1fr;
        gap: 20px;
    }


    /* CLASS BOARD */

    .class-board__header {
        display: block;
    }

    .class-board__header > p {
        margin-top: 30px;
    }

    .class-board__grid {
        grid-template-columns: repeat(4, 74vw);

        overflow-x: auto;
        scroll-snap-type: x mandatory;

        scrollbar-width: none;

        box-shadow: 8px 8px 0 var(--field);
    }

    .class-board__grid::-webkit-scrollbar {
        display: none;
    }

    .class-board__corner {
        display: none;
    }

    .class-period {
        scroll-snap-align: start;
    }


    /* TEACHER */

    .teacher-page__masthead {
        grid-template-columns: 1fr auto;
    }

    .teacher-page__masthead > .school-code {
        grid-column: 1 / -1;
    }

    .teacher-yearbook {
        grid-template-columns: 1fr;
    }

    .teacher-yearbook__portrait {
        width: min(100%, 580px);
    }


    /* REPORT CARDS */

    .report-cards__header {
        display: block;
    }

    .report-cards__header h2 {
        margin: 20px 0 28px;
    }

    .report-cards__header p {
        max-width: 560px;
    }

    .report-card-wall {
        grid-template-columns: 1fr;
    }

    .dog-report {
        width: min(100%, 620px);
    }

    .dog-report--paper,
    .dog-report--alternate {
        margin-top: 15px;
    }

    .dog-report--paper {
        margin-left: auto;
    }


    /* FIELD TRIP */

    .field-trip,
    .field-trip__content {
        min-height: 700px;
    }

    .field-trip h2 {
        font-size: clamp(4.7rem, 15vw, 7rem);
    }


    /* FAQ */

    .conference__header,
    .conference-sheet {
        padding-left: 30px;
    }


    /* FOOTER */

    .school-footer {
        grid-template-columns: 1fr 1fr;
    }

    .school-footer__identity {
        grid-column: 1 / -1;
    }

    .school-footer__fineprint {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* ==========================================================================
   SMALL MOBILE
   ========================================================================== */

@media (max-width: 560px) {

    :root {
        --side: 20px;
        --space: 82px;
    }

    .school-brand__name small {
        display: none;
    }

    .school-hero,
    .school-hero__content {
        min-height: 700px;
    }

    .school-hero__utility span:nth-child(2) {
        display: none;
    }

    .school-hero h1 {
        font-size: clamp(4.7rem, 20vw, 6.7rem);
        line-height: 0.76;
    }

    .school-hero__tagline {
        font-size: 2.1rem;
    }

    .school-hero__term-card {
        width: calc(100% - 40px);
    }

    .placement-test__intro h2,
    .course-catalog__header h2,
    .class-board__header h2,
    .teacher-page__masthead h2,
    .report-cards__header h2,
    .conference__header h2 {
        font-size: clamp(3.7rem, 16vw, 5.4rem);
    }

    .placement-option {
        grid-template-columns: 20px 34px 1fr 36px;
    }

    .placement-option strong {
        font-size: 2.25rem;
    }

    .course-row {
        grid-template-columns: 65px 1fr;
    }

    .course-row > a {
        grid-column: 2;
        grid-row: auto;
    }

    .course-row__facts {
        grid-column: 2;
        grid-template-columns: 1fr;
        gap: 8px;

        margin-top: 0;
    }

    .course-row__facts div {
        display: flex;
        justify-content: space-between;

        padding-bottom: 6px;

        border-bottom: 1px solid var(--line-light);
    }

    .course-catalog__footer {
        margin-top: 30px;
    }

    .todays-lesson__photo {
        min-height: 420px;
    }

    .lesson-line {
        grid-template-columns: repeat(4, 82vw);
    }

    .class-board__grid {
        grid-template-columns: repeat(4, 82vw);
    }

    .teacher-page__masthead {
        display: block;
    }

    .teacher-page__year {
        display: inline-block;
        margin-top: 22px;
    }

    .teacher-note {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dog-report__paper {
        padding: 20px;
    }

    .field-trip,
    .field-trip__content {
        min-height: 650px;
    }

    .field-trip h2 {
        font-size: clamp(4rem, 17vw, 5.8rem);
    }

    .conference {
        background:
            repeating-linear-gradient(
                0deg,
                transparent,
                transparent 35px,
                rgba(23, 25, 20, 0.08) 36px
            ),
            var(--paper-light);
    }

    .conference__header,
    .conference-sheet {
        padding-left: 0;
    }

    .conference summary {
        grid-template-columns: 34px 1fr;
        gap: 10px;

        padding-right: 32px;
    }

    .conference details p {
        margin-left: 44px;
        margin-right: 10px;
    }

    .enrollment__headline h2 {
        font-size: clamp(4.2rem, 18vw, 6.2rem);
    }

    .enrollment-form {
        box-shadow: 7px 7px 0 var(--lime);
    }

    .enrollment-form__header {
        grid-template-columns: 1fr auto;
    }

    .enrollment-form__header span {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .enrollment-form__row {
        grid-template-columns: 1fr;
    }

    .enrollment-form__row label:first-child {
        border-right: 0;
    }

    .enrollment-form__footer {
        display: block;
    }

    .enrollment-form__footer button {
        width: 100%;
        margin-top: 18px;
    }

    .school-footer {
        grid-template-columns: 1fr;
    }

    .school-footer__identity,
    .school-footer__fineprint {
        grid-column: auto;
    }
}


/* ==========================================================================
   ULTRAWIDE CONTAINMENT
   ========================================================================== */

@media (min-width: 1600px) {

    .school-hero h1 {
        font-size: 9.6rem;
    }

    .school-hero__content {
        min-height: 820px;
    }

    .field-trip__content {
        min-height: 760px;
    }

    .field-trip h2 {
        font-size: 8.5rem;
    }

    .report-card-wall {
        max-width: 1380px;
    }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   TF MOBILE COURSE + LESSON COMPOSITION FIX START
   ========================================================================== */

@media (max-width: 560px) {

    /* ----------------------------------------------------------
       COURSE CATALOG
       Stop forcing course number, label and title into one row.
       ---------------------------------------------------------- */

    .course-row {
        display: grid;
        grid-template-columns: 72px minmax(0, 1fr);
        gap: 0 18px;

        min-height: 0;
        padding: 28px 0 32px;

        align-items: start;
    }

    .course-row:hover {
        padding-inline: 0;
    }

    .course-row__code {
        grid-column: 1;
        grid-row: 1;

        display: block;
        padding-top: 2px;
    }

    .course-row__code span,
    .course-row__code strong {
        display: block;
    }

    .course-row__code span {
        margin-bottom: 2px;

        font-size: 0.56rem;
        line-height: 1;
    }

    .course-row__code strong {
        font-size: 3.25rem;
        line-height: 0.85;
    }

    .course-row__title {
        grid-column: 2;
        grid-row: 1;

        min-width: 0;
        padding-top: 2px;
    }

    .course-row__title > span {
        margin-bottom: 7px;

        font-size: 0.54rem;
        line-height: 1;
    }

    .course-row__title h3 {
        margin: 0;

        font-size: clamp(1.85rem, 9vw, 2.5rem);
        line-height: 0.94;
        letter-spacing: -0.035em;
    }

    .course-row__facts {
        grid-column: 1 / -1;
        grid-row: auto;

        display: block;

        margin-top: 24px;

        border-top: 1px solid var(--line-light);
    }

    .course-row__facts div {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 20px;

        padding: 10px 0;

        border-bottom: 1px solid var(--line-light);
    }

    .course-row__facts dt {
        margin: 0;
    }

    .course-row__facts dd {
        text-align: right;
    }

    .course-row > a {
        grid-column: 1 / -1;
        grid-row: auto;

        justify-self: start;

        margin-top: 20px;
        padding-bottom: 2px;
    }


    /* ----------------------------------------------------------
       TODAY'S LESSON
       Mobile becomes a vertical training sequence instead of
       showing sliced-off cards.
       ---------------------------------------------------------- */

    .lesson-line {
        width: calc(100% - 40px);
        margin: -32px auto 0;

        display: block;

        overflow: visible;

        border: 1px solid var(--ink);

        scroll-snap-type: none;
    }

    .lesson-line::before {
        left: 37px;
        right: auto;
        top: 34px;
        bottom: 34px;

        width: 4px;
        height: auto;

        transform: none;

        background: var(--field);
    }

    .lesson-step {
        position: relative;

        min-height: 128px;

        padding:
            26px
            22px
            26px
            70px;

        border-right: 0;
        border-bottom: 1px solid var(--ink);

        scroll-snap-align: none;
    }

    .lesson-step:last-child {
        border-bottom: 0;
    }

    .lesson-step span {
        position: absolute;
        left: 18px;
        top: 29px;

        width: 38px;
        margin: 0;

        text-align: center;

        font-size: 0.57rem;
    }

    .lesson-step strong {
        font-size: clamp(2rem, 10vw, 2.65rem);
        line-height: 0.95;
    }

    .lesson-step small {
        margin-top: 7px;

        font-size: 0.61rem;
        line-height: 1.4;
    }

    .lesson-step--again {
        background: var(--lime);
    }

    .todays-lesson__statement {
        margin-top: 38px;
    }

    .todays-lesson__statement p {
        font-size: clamp(2rem, 9.5vw, 2.7rem);
        line-height: 1.02;
    }


    /* ----------------------------------------------------------
       CLASS BOARD
       Better phone hierarchy.
       ---------------------------------------------------------- */

    .class-board__header h2 {
        max-width: 430px;

        font-size: clamp(3.45rem, 15vw, 4.8rem);
        line-height: 0.86;
    }

    .class-board__header > p {
        margin-top: 24px;
    }

    .class-board__grid {
        grid-template-columns: 84vw;
        gap: 12px;

        overflow-x: auto;

        border: 0;
        box-shadow: none;

        scroll-padding-inline: 0;
    }

    .class-period {
        min-height: 300px;

        border: 1px solid var(--ink);

        scroll-snap-align: start;
    }

    .class-period:last-child {
        border-right: 1px solid var(--ink);
    }
}

/* ==========================================================================
   TF MOBILE COURSE + LESSON COMPOSITION FIX END
   ========================================================================== */

/* ==========================================================================
   TF MOBILE WIDTH + CANVAS CORRECTION START
   ========================================================================== */

@media (max-width: 560px) {

    /*
       Reduce the generic mobile gutter.
       Text still gets breathing room inside its own sections,
       but major compositions use much more of the phone width.
    */

    :root {
        --side: 14px;
    }


    /* ----------------------------------------------------------
       PLACEMENT
       ---------------------------------------------------------- */

    .placement-test__intro {
        width: calc(100% - 28px);
    }

    .placement-option {
        grid-template-columns: 14px 34px minmax(0, 1fr) 34px;
    }


    /* ----------------------------------------------------------
       COURSE CATALOG
       ---------------------------------------------------------- */

    .course-catalog__header,
    .course-register,
    .course-catalog__footer {
        width: calc(100% - 28px);
    }

    .course-row {
        gap: 0 14px;
    }


    /* ----------------------------------------------------------
       TODAY'S LESSON
       Let the photograph break out nearly full bleed.
       ---------------------------------------------------------- */

    .todays-lesson__photo {
        width: 100%;
    }

    .todays-lesson__stamp {
        left: 14px;
    }

    .lesson-line {
        width: calc(100% - 24px);
    }

    .todays-lesson__statement {
        width: calc(100% - 28px);
    }


    /* ----------------------------------------------------------
       CLASS BOARD
       ---------------------------------------------------------- */

    .class-board__header,
    .class-board__grid,
    .class-board__note {
        width: calc(100% - 28px);
    }

    .class-board__grid {
        grid-template-columns: 88vw;
    }


    /* ----------------------------------------------------------
       TEACHER / YEARBOOK
       ---------------------------------------------------------- */

    .teacher-page__masthead,
    .teacher-yearbook {
        width: calc(100% - 28px);
    }

    .teacher-yearbook__portrait {
        width: 100%;
    }


    /* ----------------------------------------------------------
       REPORT CARDS
       ---------------------------------------------------------- */

    .report-cards__header,
    .report-card-wall {
        width: calc(100% - 28px);
    }

    .dog-report {
        width: 100%;
    }


    /* ----------------------------------------------------------
       FAQ
       ---------------------------------------------------------- */

    .conference__header,
    .conference-sheet {
        width: calc(100% - 28px);
    }


    /* ----------------------------------------------------------
       ENROLLMENT
       Make the application feel like a full sheet of paper.
       ---------------------------------------------------------- */

    .enrollment__headline,
    .enrollment-form {
        width: calc(100% - 24px);
    }


    /* ----------------------------------------------------------
       FOOTER
       ---------------------------------------------------------- */

    .school-footer {
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ==========================================================================
   TF MOBILE WIDTH + CANVAS CORRECTION END
   ========================================================================== */

/* ==========================================================================
   TF TODAY'S LESSON — FULL COMPOSITION REBUILD START
   ========================================================================== */

.todays-lesson {
    position: relative;

    padding: clamp(54px, 5vw, 82px) 0 clamp(70px, 7vw, 110px);

    background: var(--field-dark);
    color: var(--chalk);

    border-bottom: 1px solid var(--ink);
}


/* PHOTO */

.todays-lesson__photo {
    position: relative;

    width: min(calc(100% - 48px), 1460px);
    height: clamp(500px, 48vw, 690px);

    margin: 0 auto;

    overflow: hidden;

    border: 1px solid rgba(245, 240, 228, 0.45);
    border-bottom: 0;
}

.todays-lesson__photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 47%;
}

.todays-lesson__stamp {
    position: absolute;
    top: 22px;
    left: 22px;

    padding: 9px 12px;

    background: var(--lime);
    color: var(--ink);

    border: 1px solid var(--ink);

    font-family: var(--mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;

    transform: rotate(-1.5deg);
}


/* ATTACHED LESSON BOARD */

.lesson-line {
    position: relative;

    width: min(calc(100% - 48px), 1460px);
    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    overflow: hidden;

    background: var(--paper-light);
    color: var(--ink);

    border: 1px solid var(--ink);

    box-shadow: none;
}


/* kill old diagonal line */

.lesson-line::before {
    display: none;
}


.lesson-step {
    position: relative;

    min-height: 180px;
    padding: 24px 25px 26px;

    border-right: 1px solid var(--ink);
    border-bottom: 0;

    background: var(--paper-light);
}

.lesson-step:last-child {
    border-right: 0;
}

.lesson-step span {
    display: block;
    position: static;

    width: auto;
    margin: 0 0 42px;

    font-family: var(--mono);
    font-size: 0.58rem;
    line-height: 1;
    text-align: left;
}

.lesson-step strong {
    display: block;

    font-family: var(--display);
    font-size: clamp(2rem, 2.6vw, 3.15rem);
    font-weight: 400;
    line-height: 0.94;
}

.lesson-step small {
    display: block;
    margin-top: 8px;

    font-family: var(--mono);
    font-size: 0.61rem;
    line-height: 1.45;
}

.lesson-step--again {
    background: var(--lime);
}


/* STATEMENT */

.todays-lesson__statement {
    width: min(calc(100% - 48px), 1240px);
    margin: clamp(38px, 4vw, 58px) auto 0;

    display: grid;
    grid-template-columns: 180px minmax(0, 760px);
    gap: clamp(30px, 5vw, 70px);
    align-items: start;
}

.todays-lesson__statement .school-code {
    color: var(--lime);
}

.todays-lesson__statement p {
    margin: 0;

    color: var(--chalk);

    font-family: var(--display);
    font-size: clamp(2.1rem, 3vw, 3.6rem);
    line-height: 1.03;
}


/* ==========================================================================
   COMPACT DESKTOP
   ========================================================================== */

@media (821px <= width <= 1180px) {

    .todays-lesson__photo,
    .lesson-line {
        width: calc(100% - 40px);
    }

    .todays-lesson__photo {
        height: clamp(470px, 57vw, 620px);
    }

    .lesson-step {
        min-height: 165px;
        padding-inline: 20px;
    }

    .lesson-step span {
        margin-bottom: 34px;
    }

    .todays-lesson__statement {
        width: calc(100% - 52px);
    }
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 820px) {

    .todays-lesson {
        padding: 18px 0 64px;

        background: var(--field-dark);
    }

    .todays-lesson__photo {
        width: 100%;
        height: clamp(370px, 108vw, 540px);

        border-left: 0;
        border-right: 0;
    }

    .todays-lesson__photo img {
        object-position: 53% center;
    }

    .todays-lesson__stamp {
        top: 18px;
        left: 14px;
    }


    /* 2 × 2 instead of carousel / vertical document */

    .lesson-line {
        width: 100%;
        margin: 0;

        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));

        overflow: hidden;

        border-left: 0;
        border-right: 0;

        scroll-snap-type: none;
    }

    .lesson-step {
        min-height: 155px;

        padding: 20px 18px 22px;

        border-right: 1px solid var(--ink);
        border-bottom: 1px solid var(--ink);
    }

    .lesson-step:nth-child(2n) {
        border-right: 0;
    }

    .lesson-step:nth-child(3),
    .lesson-step:nth-child(4) {
        border-bottom: 0;
    }

    .lesson-step span {
        position: static;

        width: auto;
        margin: 0 0 28px;

        text-align: left;
    }

    .lesson-step strong {
        font-size: clamp(1.85rem, 8.5vw, 2.5rem);
    }

    .lesson-step small {
        font-size: 0.58rem;
    }


    .todays-lesson__statement {
        width: calc(100% - 32px);
        margin: 34px auto 0;

        display: block;
    }

    .todays-lesson__statement .school-code {
        display: block;
        margin-bottom: 18px;
    }

    .todays-lesson__statement p {
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1.02;
    }
}


/* ==========================================================================
   ULTRAWIDE
   ========================================================================== */

@media (min-width: 1600px) {

    .todays-lesson {
        padding-top: 72px;
    }

    .todays-lesson__photo,
    .lesson-line {
        width: min(calc(100% - 96px), 1540px);
    }

    .todays-lesson__photo {
        height: 700px;
    }

    .lesson-step {
        min-height: 190px;
        padding: 27px 30px;
    }

    .todays-lesson__statement {
        max-width: 1280px;
    }
}

/* ==========================================================================
   TF TODAY'S LESSON — FULL COMPOSITION REBUILD END
   ========================================================================== */
