:root {
    --ink: #122b51;
    --ink-soft: #40516c;
    --blue: #234f91;
    --blue-deep: #173c72;
    --red: #c6403d;
    --red-dark: #a82e2c;
    --cream: #fbf6ea;
    --cream-deep: #f1e5ce;
    --paper: #fffdf8;
    --white: #fff;
    --line: #e3d8c2;
    --sage: #778c74;
    --shadow: 0 20px 50px rgb(35 46 67 / 11%);
    --shadow-soft: 0 10px 28px rgb(35 46 67 / 9%);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 13px;
    --content: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 12%, rgb(198 64 61 / 5%) 0 8%, transparent 18%),
        radial-gradient(circle at 92% 32%, rgb(35 79 145 / 6%) 0 7%, transparent 18%),
        var(--cream);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.modal-open {
    overflow: hidden;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
}

button,
input {
    font: inherit;
}

button,
.button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid #efb942;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--white);
    background: var(--ink);
    transform: translateY(-180%);
    transition: transform 160ms ease;
}

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

.shell {
    width: min(calc(100% - 40px), var(--content));
    margin-inline: auto;
}

.site-header {
    position: relative;
    z-index: 20;
    border-bottom: 1px solid rgb(227 216 194 / 75%);
    background: rgb(255 253 248 / 93%);
    backdrop-filter: blur(16px);
}

.header-main {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 86px;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.brand-mark {
    width: 44px;
    height: 44px;
    flex: none;
}

.brand-text span {
    display: block;
}

.brand-text span:last-child {
    margin-top: 2px;
    color: var(--red);
}

.primary-nav {
    justify-self: center;
}

.primary-nav ul,
.header-actions,
.category-list,
.footer-links {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav ul {
    gap: clamp(14px, 2vw, 30px);
}

.mobile-auth {
    display: none;
}

.primary-nav a,
.text-link {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.primary-nav a::after,
.text-link::after {
    position: absolute;
    right: 0;
    bottom: -5px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--red);
    content: "";
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 180ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after,
.text-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-actions {
    justify-content: flex-end;
    gap: 10px;
}

.icon-button,
.menu-toggle,
.dialog-close {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    cursor: pointer;
}

.icon-button:hover,
.menu-toggle:hover,
.dialog-close:hover {
    background: var(--cream-deep);
}

.menu-toggle {
    display: none;
}

.button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 21px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: var(--white);
    background: var(--red);
    box-shadow: 0 9px 22px rgb(198 64 61 / 25%);
}

.button-primary:hover {
    background: var(--red-dark);
}

.button-secondary {
    border-color: #cfd8e5;
    color: var(--ink);
    background: var(--white);
}

.button-blue {
    color: var(--white);
    background: var(--blue);
    box-shadow: 0 9px 22px rgb(35 79 145 / 20%);
}

.button-blue:hover {
    background: var(--blue-deep);
}

.button-wide {
    width: 100%;
}

.category-bar {
    border-top: 1px solid rgb(227 216 194 / 65%);
    background: var(--paper);
}

.category-list {
    gap: 8px;
    padding-block: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-list::-webkit-scrollbar {
    display: none;
}

.category-list a {
    display: block;
    padding: 7px 13px;
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.category-list a:hover {
    color: var(--blue-deep);
    background: #eaf0f8;
}

.hero {
    padding: 52px 0 70px;
}

.hero-card {
    position: relative;
    display: grid;
    min-height: 550px;
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgb(227 216 194 / 90%);
    border-radius: 38px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero-copy {
    position: relative;
    z-index: 2;
    padding: clamp(42px, 6vw, 76px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 18px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 30px;
    height: 2px;
    background: currentColor;
    content: "";
}

h1,
h2,
h3 {
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    text-wrap: balance;
}

h1 {
    max-width: 680px;
    margin: 0;
    font-size: clamp(48px, 6.1vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hero h1 span {
    display: block;
    color: var(--red);
}

.hero-lead {
    max-width: 490px;
    margin: 25px 0 29px;
    color: var(--ink-soft);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-art {
    align-self: stretch;
    min-height: 430px;
    background: #eadfc9;
}

.hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-note {
    position: absolute;
    right: 34px;
    bottom: 30px;
    z-index: 3;
    display: flex;
    max-width: 255px;
    align-items: center;
    gap: 11px;
    padding: 13px 16px;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 16px;
    color: var(--ink);
    background: rgb(255 253 248 / 91%);
    box-shadow: var(--shadow-soft);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.hero-note svg {
    flex: none;
    color: var(--red);
}

.section {
    padding: 68px 0;
}

.section-paper {
    border-block: 1px solid rgb(227 216 194 / 70%);
    background: rgb(255 253 248 / 72%);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.section-heading h2,
.page-hero h1 {
    margin: 0;
    font-size: clamp(35px, 4.2vw, 54px);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.section-heading p {
    max-width: 540px;
    margin: 10px 0 0;
    color: var(--ink-soft);
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.editorial-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.editorial-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cream-deep);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.editorial-card:hover .card-image img {
    transform: scale(1.025);
}

.card-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--ink);
    background: rgb(255 253 248 / 92%);
    box-shadow: 0 5px 14px rgb(18 43 81 / 10%);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-copy {
    padding: 22px 23px 24px;
}

.card-copy h3 {
    margin: 0 0 9px;
    font-size: 24px;
    line-height: 1.2;
}

.card-copy p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.lesson-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 24px;
}

.feature-panel,
.lesson-list {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.feature-panel {
    display: grid;
    min-height: 430px;
    grid-template-columns: 1fr 0.9fr;
    overflow: hidden;
}

.feature-copy {
    align-self: center;
    padding: clamp(30px, 4vw, 48px);
}

.feature-copy h3 {
    margin: 7px 0 13px;
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.08;
}

.feature-copy p {
    margin: 0 0 24px;
    color: var(--ink-soft);
}

.feature-art {
    height: 100%;
    min-height: 320px;
}

.feature-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lesson-list {
    display: grid;
    align-content: center;
    gap: 0;
    padding: 18px 28px;
}

.lesson-item {
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
    padding: 22px 4px;
    border-bottom: 1px solid var(--line);
}

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

.lesson-number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 700;
}

.lesson-item:nth-child(2) .lesson-number {
    background: var(--red);
}

.lesson-item:nth-child(3) .lesson-number {
    background: var(--sage);
}

.lesson-item h3 {
    margin: 0 0 4px;
    font-size: 19px;
}

.lesson-item p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.inspiration-strip {
    position: relative;
    display: grid;
    grid-template-columns: 0.78fr 1.22fr;
    align-items: center;
    overflow: hidden;
    border-radius: 36px;
    color: var(--white);
    background: var(--blue-deep);
    box-shadow: var(--shadow);
}

.inspiration-strip::after {
    position: absolute;
    top: -90px;
    right: 36%;
    width: 220px;
    height: 220px;
    border: 2px dashed rgb(255 255 255 / 16%);
    border-radius: 50%;
    content: "";
}

.inspiration-copy {
    position: relative;
    z-index: 2;
    padding: clamp(40px, 5vw, 64px);
}

.inspiration-copy .eyebrow,
.inspiration-copy h2,
.inspiration-copy p {
    color: var(--white);
}

.inspiration-copy h2 {
    margin: 0 0 17px;
    font-size: clamp(37px, 4.5vw, 58px);
    line-height: 1.04;
}

.inspiration-copy p {
    max-width: 430px;
    margin: 0 0 25px;
    opacity: 0.8;
}

.inspiration-art {
    min-height: 390px;
    align-self: stretch;
}

.inspiration-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-main {
    min-height: 65vh;
}

.page-hero {
    padding: 70px 0 42px;
    text-align: center;
}

.page-hero .eyebrow {
    justify-content: center;
}

.page-hero p {
    max-width: 700px;
    margin: 19px auto 0;
    color: var(--ink-soft);
    font-size: 18px;
}

.content-panel {
    max-width: 920px;
    margin: 0 auto 80px;
    padding: clamp(28px, 5vw, 58px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-soft);
}

.content-panel h2 {
    margin: 34px 0 9px;
    font-size: 29px;
}

.content-panel h2:first-child {
    margin-top: 0;
}

.content-panel p,
.content-panel li {
    color: var(--ink-soft);
}

.content-panel a {
    color: var(--blue);
    font-weight: 700;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px;
    margin-top: 32px;
}

.about-card {
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--cream);
}

.about-card svg {
    width: 34px;
    height: 34px;
    margin-bottom: 16px;
    color: var(--red);
}

.about-card h3 {
    margin: 0 0 7px;
    font-size: 20px;
}

.about-card p {
    margin: 0;
    font-size: 14px;
}

.faq-list {
    display: grid;
    gap: 13px;
}

.faq-list details {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--paper);
}

.faq-list summary {
    position: relative;
    padding: 20px 52px 20px 22px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 19px;
    font-weight: 700;
    list-style: none;
    cursor: pointer;
}

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

.faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 22px;
    color: var(--red);
    content: "+";
    font-family: system-ui, sans-serif;
    font-size: 27px;
    line-height: 1;
    transform: translateY(-50%);
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: 0;
    padding: 0 22px 22px;
}

.login-layout {
    display: grid;
    min-height: 650px;
    grid-template-columns: 0.92fr 1.08fr;
    overflow: hidden;
    margin: 52px auto 80px;
    border: 1px solid var(--line);
    border-radius: 36px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.login-panel {
    align-self: center;
    padding: clamp(34px, 6vw, 72px);
}

.login-panel h1 {
    margin-bottom: 15px;
    font-size: clamp(42px, 5vw, 62px);
}

.login-panel > p {
    margin: 0 0 27px;
    color: var(--ink-soft);
}

.login-art {
    min-height: 450px;
    background: var(--cream-deep);
}

.login-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.field {
    display: grid;
    gap: 8px;
    margin-bottom: 18px;
}

.field label {
    color: var(--ink);
    font-size: 13px;
    font-weight: 850;
}

.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #c9cfd7;
    border-radius: 12px;
    color: var(--ink);
    background: var(--white);
    transition: border 160ms ease, box-shadow 160ms ease;
}

.field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgb(35 79 145 / 12%);
    outline: 0;
}

.form-status {
    min-height: 24px;
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 14px;
}

.form-status[data-state="error"] {
    color: #9e2422;
}

.form-status[data-state="working"] {
    color: var(--blue-deep);
}

.privacy-note {
    padding: 17px 19px;
    border-left: 4px solid var(--blue);
    border-radius: 0 12px 12px 0;
    background: #eef3f9;
}

.not-found {
    display: grid;
    min-height: 67vh;
    place-items: center;
    padding: 65px 20px;
    text-align: center;
}

.not-found-card {
    max-width: 690px;
}

.error-code {
    margin: 0;
    color: var(--red);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(100px, 20vw, 190px);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: -0.09em;
}

.not-found h1 {
    margin: 30px 0 12px;
    font-size: clamp(36px, 5vw, 54px);
}

.not-found p:not(.error-code) {
    max-width: 570px;
    margin: 0 auto 26px;
    color: var(--ink-soft);
    font-size: 18px;
}

.site-footer {
    padding: 48px 0 26px;
    color: rgb(255 255 255 / 76%);
    background: #102847;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 40px;
    align-items: start;
    padding-bottom: 35px;
}

.site-footer .brand {
    color: var(--white);
}

.footer-copy {
    max-width: 460px;
    margin: 16px 0 0;
    font-size: 14px;
}

.footer-links {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 15px 26px;
}

.footer-links a {
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--white);
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid rgb(255 255 255 / 14%);
    font-size: 12px;
}

dialog {
    width: min(520px, calc(100% - 28px));
    max-height: calc(100vh - 28px);
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 28px;
    color: var(--ink);
    background: var(--paper);
    box-shadow: 0 35px 90px rgb(12 26 51 / 30%);
}

dialog::backdrop {
    background: rgb(10 24 46 / 58%);
    backdrop-filter: blur(4px);
}

.dialog-inner {
    position: relative;
    padding: clamp(30px, 6vw, 48px);
}

.dialog-close {
    position: absolute;
    top: 15px;
    right: 15px;
}

.dialog-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 20px;
    place-items: center;
    border-radius: 50%;
    color: var(--red);
    background: #f8e5df;
}

.dialog-inner h2 {
    margin: 0 0 10px;
    font-size: 34px;
}

.dialog-intro {
    margin: 0 0 25px;
    color: var(--ink-soft);
}

.dialog-privacy {
    margin: 17px 0 0;
    color: var(--ink-soft);
    font-size: 12px;
}

@media (max-width: 1040px) {
    .header-main {
        grid-template-columns: auto 1fr;
    }

    .primary-nav {
        position: fixed;
        top: 86px;
        right: 20px;
        left: auto;
        width: min(420px, calc(100vw - 40px));
        max-height: calc(100vh - 106px);
        overflow-y: auto;
        display: none;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: 17px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .primary-nav[data-open="true"] {
        display: block;
    }

    .primary-nav ul {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .primary-nav a {
        display: block;
        padding: 11px 10px;
    }

    .mobile-auth {
        display: list-item;
    }

    .header-actions {
        justify-self: end;
    }

    .menu-toggle {
        display: inline-grid;
    }

    .hero-card {
        min-height: 500px;
        grid-template-columns: 1fr 1fr;
    }

    .hero-copy {
        padding: 44px;
    }

    .cards {
        gap: 17px;
    }

    .lesson-grid,
    .login-layout {
        grid-template-columns: 1fr;
    }

    .login-art {
        max-height: 400px;
        order: -1;
    }
}

@media (max-width: 780px) {
    .shell {
        width: min(calc(100% - 28px), var(--content));
    }

    .header-main {
        min-height: 74px;
        gap: 10px;
    }

    .primary-nav {
        top: 74px;
        right: 14px;
        left: auto;
        width: calc(100vw - 28px);
    }

    .header-actions .button-secondary,
    .header-actions .button-primary {
        display: none;
    }

    .brand {
        font-size: 19px;
    }

    .brand-mark {
        width: 39px;
        height: 39px;
    }

    .hero {
        padding: 24px 0 48px;
    }

    .hero-card {
        grid-template-columns: 1fr;
        border-radius: 27px;
    }

    .hero-copy {
        padding: 37px 28px 32px;
    }

    h1 {
        font-size: clamp(47px, 15vw, 68px);
    }

    .hero-art {
        min-height: 350px;
    }

    .hero-note {
        right: 19px;
        bottom: 18px;
        left: 19px;
        max-width: none;
    }

    .section {
        padding: 52px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .cards,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .cards {
        max-width: 560px;
        margin-inline: auto;
    }

    .feature-panel,
    .inspiration-strip {
        grid-template-columns: 1fr;
    }

    .feature-art {
        min-height: 300px;
        order: -1;
    }

    .inspiration-art {
        min-height: 310px;
        order: -1;
    }

    .page-hero {
        padding-top: 52px;
    }

    .content-panel {
        margin-bottom: 55px;
        border-radius: 23px;
    }

    .login-layout {
        min-height: 0;
        margin: 25px auto 55px;
        border-radius: 25px;
    }

    .login-art {
        min-height: 290px;
    }

    .footer-main,
    .footer-bottom {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 440px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .lesson-list {
        padding-inline: 19px;
    }

    .dialog-inner {
        padding: 36px 23px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Visual refinement matched to the approved knitting reference. */
:root {
    --content: 1460px;
    --shadow: 0 22px 58px rgb(66 43 24 / 14%);
    --shadow-soft: 0 10px 26px rgb(66 43 24 / 10%);
}

body {
    background:
        radial-gradient(circle at 4% 8%, rgb(198 64 61 / 5%) 0 7%, transparent 20%),
        radial-gradient(circle at 96% 25%, rgb(35 79 145 / 6%) 0 6%, transparent 19%),
        linear-gradient(180deg, #fffdf8 0, var(--cream) 44%, #f8f0e1 100%);
}

.site-header {
    border-bottom-color: rgb(209 192 165 / 72%);
    background: rgb(255 253 248 / 96%);
}

.header-main {
    min-height: 78px;
}

.brand {
    gap: 10px;
    font-family: "URW Chancery L", "Segoe Script", Georgia, serif;
    font-size: 27px;
    font-style: italic;
    line-height: 0.88;
    letter-spacing: -0.02em;
}

.brand-mark {
    width: 48px;
    height: 48px;
}

.brand-text span:last-child {
    margin-top: 5px;
}

.primary-nav ul {
    gap: clamp(18px, 2.2vw, 36px);
}

.primary-nav a,
.text-link {
    font-size: 13px;
    font-weight: 800;
}

.button {
    min-height: 43px;
    padding-inline: 23px;
    letter-spacing: 0.01em;
}

.button-primary {
    background: linear-gradient(180deg, #d54843, #bd2f31);
    box-shadow: 0 9px 20px rgb(188 47 49 / 25%);
}

.button-glass {
    border-color: rgb(18 43 81 / 18%);
    color: var(--ink);
    background: rgb(255 253 248 / 82%);
    box-shadow: 0 8px 20px rgb(18 43 81 / 8%);
    backdrop-filter: blur(8px);
}

.category-bar {
    border-top-color: rgb(209 192 165 / 58%);
    background: #fffdf9;
}

.home-category-list {
    justify-content: space-between;
    gap: 4px;
    padding-block: 7px;
}

.home-category-list li {
    min-width: 0;
    flex: 1 1 0;
}

.home-category-list a {
    display: flex;
    min-height: 61px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 3px;
    padding: 4px 6px;
    border-radius: 14px;
    color: var(--ink);
    font-size: 10px;
    line-height: 1.15;
    text-align: center;
}

.home-category-list a:hover {
    color: var(--blue-deep);
    background: #f3eadb;
    transform: translateY(-1px);
}

.category-icon {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border: 1px solid rgb(35 79 145 / 14%);
    border-radius: 50%;
    color: var(--blue-deep);
    background: var(--white);
}

.category-icon-red {
    color: var(--red);
}

.category-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero {
    padding: 18px 0 64px;
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
    gap: 12px;
}

.hero-card {
    position: relative;
    display: block;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid rgb(207 185 151 / 68%);
    border-radius: 20px;
    background: #e8d5b6;
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero-card::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(90deg, rgb(255 250 239 / 97%) 0%, rgb(255 250 239 / 91%) 31%, rgb(255 250 239 / 52%) 49%, transparent 70%);
    content: "";
    pointer-events: none;
}

.hero-art {
    position: absolute;
    z-index: 0;
    inset: 0;
    min-height: 0;
}

.hero-art img {
    object-position: center center;
}

.hero-copy {
    position: relative;
    z-index: 2;
    display: flex;
    width: 58%;
    min-height: 520px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding: clamp(36px, 4.5vw, 66px);
}

.hero-copy .eyebrow {
    margin-bottom: 13px;
    font-size: 10px;
    letter-spacing: 0.12em;
}

.hero h1 {
    font-family: "URW Chancery L", "Segoe Script", Georgia, serif;
    font-size: clamp(52px, 5.6vw, 82px);
    font-style: italic;
    line-height: 0.83;
    letter-spacing: -0.035em;
    text-shadow: 0 2px 0 rgb(255 255 255 / 55%);
}

.hero h1 span {
    margin-top: 15px;
}

.hero-lead {
    margin: 25px 0 25px;
    color: #1e385d;
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.45;
}

.hero-note {
    display: none;
}

.category-mosaic {
    display: grid;
    min-height: 520px;
    grid-template-columns: repeat(20, 1fr);
    grid-auto-rows: 1fr;
    gap: 10px;
}

.mosaic-tile {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    border: 1px solid rgb(207 185 151 / 55%);
    border-radius: 14px;
    color: var(--white);
    background: #5b4636;
    box-shadow: var(--shadow-soft);
    text-decoration: none;
    isolation: isolate;
}

.mosaic-tile:nth-child(-n + 4) {
    grid-column: span 5;
}

.mosaic-tile::after {
    position: absolute;
    z-index: 1;
    inset: 36% 0 0;
    background: linear-gradient(180deg, transparent, rgb(15 24 39 / 82%));
    content: "";
}

.mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 280ms ease, filter 280ms ease;
}

.mosaic-tile:nth-child(3) img,
.mosaic-tile:nth-child(7) img {
    object-position: 68% center;
}

.mosaic-tile span {
    position: absolute;
    z-index: 2;
    right: 8px;
    bottom: 10px;
    left: 8px;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    text-shadow: 0 2px 8px rgb(0 0 0 / 65%);
}

.mosaic-tile:hover img {
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.045);
}

.section {
    padding: 62px 0;
}

.section-heading {
    margin-bottom: 25px;
}

.section-heading h2,
.page-hero h1 {
    font-size: clamp(34px, 3.7vw, 50px);
}

.cards {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
}

.editorial-card {
    border-radius: 15px;
    box-shadow: 0 8px 20px rgb(66 43 24 / 8%);
}

.card-image {
    aspect-ratio: 1.08 / 1;
}

.card-tag {
    top: 11px;
    left: 11px;
    padding: 5px 8px;
    font-size: 9px;
}

.card-copy {
    padding: 17px 15px 19px;
}

.card-copy h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.card-copy p {
    font-size: 12px;
    line-height: 1.45;
}

.feature-panel,
.lesson-list,
.content-panel,
.login-layout {
    border-color: rgb(207 185 151 / 68%);
    box-shadow: var(--shadow-soft);
}

.feature-panel,
.login-layout {
    border-radius: 22px;
}

.feature-art img,
.login-art img,
.inspiration-art img {
    object-position: center;
}

.inspiration-strip {
    border: 1px solid rgb(207 185 151 / 38%);
    border-radius: 24px;
    background: #123867;
}

.page-hero {
    position: relative;
}

.page-hero::after {
    display: block;
    width: 76px;
    height: 8px;
    margin: 25px auto 0;
    background: repeating-linear-gradient(90deg, var(--red) 0 12px, transparent 12px 17px, var(--blue) 17px 29px, transparent 29px 34px);
    content: "";
}

.login-layout {
    min-height: 610px;
}

.login-art img {
    object-position: 63% center;
}

dialog {
    width: min(480px, calc(100% - 28px));
    border: 1px solid rgb(207 185 151 / 78%);
    border-radius: 22px;
    box-shadow: 0 32px 80px rgb(36 25 17 / 32%);
}

.dialog-inner {
    padding: clamp(33px, 5vw, 44px);
}

.dialog-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    border: 1px solid rgb(198 64 61 / 14%);
    background: #faebe4;
}

.dialog-inner h2 {
    font-size: 32px;
}

.field input {
    border-color: #cfc4b1;
    border-radius: 10px;
    background: #fffefa;
}

@media (max-width: 1200px) {
    .hero-stage {
        grid-template-columns: 1fr;
    }

    .hero-card {
        min-height: 560px;
    }

    .hero-copy {
        min-height: 560px;
    }

    .category-mosaic {
        min-height: 350px;
    }

    .cards {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1040px) {
    .hero-card {
        display: block;
        grid-template-columns: none;
    }

    .hero-copy {
        width: 58%;
        padding: 44px;
    }
}

@media (max-width: 780px) {
    .brand {
        font-size: 22px;
    }

    .home-category-list {
        justify-content: flex-start;
        gap: 3px;
    }

    .home-category-list li {
        min-width: 88px;
        flex: 0 0 88px;
    }

    .home-category-list a {
        min-height: 58px;
        padding-inline: 3px;
        font-size: 9px;
    }

    .category-icon {
        width: 30px;
        height: 30px;
    }

    .category-icon svg {
        width: 21px;
        height: 21px;
    }

    .hero {
        padding-top: 12px;
    }

    .hero-card {
        min-height: 660px;
        border-radius: 18px;
    }

    .hero-card::after {
        background: linear-gradient(180deg, rgb(255 250 239 / 98%) 0%, rgb(255 250 239 / 93%) 39%, rgb(255 250 239 / 36%) 64%, transparent 82%);
    }

    .hero-art img {
        object-position: 70% center;
    }

    .hero-copy {
        width: 100%;
        min-height: 660px;
        justify-content: flex-start;
        padding: 38px 27px;
    }

    .hero h1 {
        font-size: clamp(49px, 15vw, 66px);
    }

    .hero-lead {
        max-width: 320px;
        margin-block: 22px;
    }

    .category-mosaic {
        grid-template-columns: none;
        grid-template-rows: repeat(2, 130px);
        grid-auto-columns: 145px;
        grid-auto-flow: column;
        min-height: 0;
        padding-bottom: 6px;
        overflow-x: auto;
        scroll-snap-type: x proximity;
        scrollbar-width: thin;
    }

    .mosaic-tile,
    .mosaic-tile:nth-child(-n + 4) {
        grid-column: auto;
        scroll-snap-align: start;
    }

    .cards {
        max-width: none;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .card-image {
        aspect-ratio: 4 / 3;
    }

    .card-copy h3 {
        font-size: 17px;
    }
}

@media (max-width: 520px) {
    .cards {
        max-width: 420px;
        grid-template-columns: 1fr;
    }

    .hero-copy .eyebrow {
        font-size: 9px;
    }

    .hero-actions {
        width: 100%;
    }
}
