@font-face {
    font-family: "Sawton Bauhaus";
    src: url("../fonts/sawtonbauhaus-thin-webfont.woff2") format("woff2");
    font-style: normal;
    font-weight: 100;
    font-display: swap;
}

@font-face {
    font-family: "Sawton Bauhaus";
    src: url("../fonts/sawtonbauhaus-light-webfont.woff2") format("woff2");
    font-style: normal;
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: "Sawton Bauhaus";
    src: url("../fonts/sawtonbauhaus-regular-webfont.woff2") format("woff2");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Sawton Bauhaus";
    src: url("../fonts/sawtonbauhaus-medium-webfont.woff2") format("woff2");
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: "Sawton Bauhaus";
    src: url("../fonts/sawtonbauhaus-bold-webfont.woff2") format("woff2");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

:root {
    --chcl-bg: #fffaf0;
    --chcl-black: #0b0b0b;
    --chcl-green: #d4ff00;
    --chcl-green-dark: #163720;
    --chcl-gradient: linear-gradient(135deg, #163720 0%, #2d6a3b 40%, #d4ff00 100%);
    --chcl-surface: #f8f3e8;
    --chcl-surface-strong: rgba(255, 255, 255, 0.42);
    --chcl-border: rgba(11, 11, 11, 0.14);
    --chcl-border-strong: rgba(11, 11, 11, 0.24);
    --chcl-text-muted: rgba(11, 11, 11, 0.68);
    --chcl-shadow: 0 24px 60px rgba(11, 11, 11, 0.08);
    --container-width: 1200px;
    --space-1: 0.5rem;
    --space-2: 0.75rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 2rem;
    --space-6: 3rem;
    --space-7: 4.5rem;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(198, 255, 0, 0.18), transparent 26%),
        var(--chcl-bg);
    color: var(--chcl-black);
    font-family: "Sawton Bauhaus", sans-serif;
    font-weight: 400;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

p,
h1,
h2,
h3 {
    margin: 0;
}

.site-shell {
    padding-bottom: var(--space-6);
    overflow-x: hidden;
}

.container {
    width: min(calc(100% - 2rem), var(--container-width));
    margin: 0 auto;
}

.site-header-inner,
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    width: 100%;
    border-bottom: 1px solid rgba(11, 11, 11, 0.1);
    backdrop-filter: blur(10px);
    background: rgba(255, 250, 240, 0.92);
    box-shadow: 0 10px 30px rgba(11, 11, 11, 0.04);
}

.site-header-inner {
    min-height: 4.5rem;
    padding: 0.9rem 0;
}

.brand,
.site-nav a,
.eyebrow,
.section-index,
.type-label,
.card-kicker,
.gallery-location,
.button,
.demo-label,
.tag,
.site-footer p {
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.brand {
    font-size: 1.15rem;
    font-weight: 700;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: 0.84rem;
    font-weight: 500;
}

.site-nav a {
    position: relative;
    white-space: nowrap;
    padding-bottom: 0.15rem;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    transform: scaleX(0);
    transform-origin: left;
    background: var(--chcl-black);
    transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
    transform: scaleX(1);
}

.hero-section {
    padding: var(--space-7) 0 var(--space-6);
}

/* Hero */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.76rem;
    margin-bottom: var(--space-5);
}

.hero-layout {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-3);
    align-items: end;
}

.hero-title {
    grid-column: span 8;
    font-size: clamp(4.5rem, 12vw, 10rem);
    font-weight: 700;
    line-height: 0.86;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    text-wrap: balance;
}

.hero-title span {
    display: block;
}

.hero-copy {
    grid-column: 9 / -1;
    max-width: 25ch;
    padding-bottom: 0.55rem;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--chcl-text-muted);
}

.divider {
    width: 100%;
    height: 1px;
    background: var(--chcl-border);
}

.showcase-section {
    padding: var(--space-5) 0 var(--space-6);
    border-top: 1px solid var(--chcl-border);
}

/* 12-column section framing */
.section-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-4);
}

.section-intro {
    grid-column: span 3;
    display: grid;
    align-content: start;
    gap: var(--space-2);
}

.section-index {
    font-size: 0.76rem;
    color: var(--chcl-text-muted);
}

.section-title {
    font-size: clamp(1.85rem, 3.5vw, 2.8rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    text-wrap: balance;
}

.section-note {
    max-width: 24ch;
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.55;
    color: var(--chcl-text-muted);
}

.section-body {
    grid-column: 4 / -1;
    display: grid;
    gap: var(--space-4);
}

.swatch-grid,
.card-grid {
    display: grid;
    gap: var(--space-3);
}

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

.swatch,
.type-card,
.showcase-card,
.demo-card {
    border: 1px solid var(--chcl-border);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.swatch:hover,
.type-card:hover,
.showcase-card:hover,
.demo-card:hover {
    transform: translateY(-4px);
    border-color: var(--chcl-border-strong);
    box-shadow: var(--chcl-shadow);
}

.swatch {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--chcl-surface-strong);
}

.swatch-sample {
    min-height: 11rem;
    border: 1px solid rgba(11, 11, 11, 0.08);
}

.sample-bg {
    background: var(--chcl-bg);
}

.sample-black {
    background: var(--chcl-black);
}

.sample-green {
    background: var(--chcl-green);
}

.sample-gradient {
    background: var(--chcl-gradient);
}

.swatch-meta {
    display: flex;
    justify-content: space-between;
    gap: var(--space-3);
    align-items: flex-end;
}

.swatch-meta p {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
}

.swatch-meta span {
    font-size: 0.78rem;
    font-weight: 300;
    color: var(--chcl-text-muted);
}

.type-samples {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-3);
}

.type-card {
    display: grid;
    gap: var(--space-3);
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.3);
}

.type-label {
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--chcl-text-muted);
}

.type-display-xl,
.type-display-lg,
.type-display-md {
    text-transform: uppercase;
    line-height: 0.92;
}

.type-display-xl {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 700;
}

.type-display-lg {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
}

.type-display-md {
    font-size: clamp(1.5rem, 3vw, 2.3rem);
    font-weight: 500;
}

.type-body {
    max-width: 42ch;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.6;
}

.type-meta {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--chcl-text-muted);
}

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

/* Card variants */
.showcase-card {
    min-height: 22rem;
    padding: var(--space-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-kicker {
    font-size: 0.78rem;
    font-weight: 500;
}

.card-title {
    max-width: 10ch;
    font-size: clamp(1.8rem, 3.2vw, 3rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.card-copy {
    max-width: 28ch;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
}

.card-neon {
    background: var(--chcl-gradient);
    color: var(--chcl-black);
}

.card-dark {
    background: var(--chcl-green-dark);
    color: var(--chcl-green);
}

.card-light {
    background: rgba(255, 255, 255, 0.5);
    color: var(--chcl-black);
}

.gallery-list {
    border-top: 1px solid var(--chcl-border);
}

.gallery-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: var(--space-3);
    padding: 1.15rem 0;
    border-bottom: 1px solid var(--chcl-border);
    transition:
        transform 180ms ease,
        color 180ms ease,
        background-color 180ms ease;
}

.gallery-row:hover,
.gallery-row:focus-visible {
    transform: translateX(6px);
    color: var(--chcl-green-dark);
    background-color: rgba(255, 255, 255, 0.16);
}

.gallery-name {
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
    text-wrap: balance;
}

.gallery-location {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--chcl-text-muted);
    align-self: center;
}

.button-row,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 12rem;
    padding: 0.95rem 1.35rem;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--chcl-black);
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        color 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-3px);
    box-shadow: var(--chcl-shadow);
}

.button-primary {
    background: var(--chcl-black);
    color: var(--chcl-bg);
}

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--chcl-green-dark);
    border-color: var(--chcl-green-dark);
}

.button-accent {
    background: var(--chcl-green);
    color: var(--chcl-black);
    border-color: var(--chcl-green);
}

.button-accent:hover,
.button-accent:focus-visible {
    background: #d3ff48;
    border-color: #d3ff48;
}

.layout-stack,
.utility-stack {
    display: grid;
    gap: var(--space-4);
}

.demo-block {
    display: grid;
    gap: var(--space-3);
}

.demo-label {
    font-size: 0.76rem;
    font-weight: 500;
    color: var(--chcl-text-muted);
}

.demo-grid {
    display: grid;
    gap: var(--space-3);
}

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

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

.demo-card {
    display: grid;
    gap: var(--space-2);
    min-height: 10rem;
    padding: var(--space-4);
    background: rgba(255, 255, 255, 0.28);
}

.demo-title {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
}

.demo-copy,
.utility-copy {
    max-width: 28ch;
    font-size: 0.92rem;
    font-weight: 300;
    line-height: 1.5;
    color: var(--chcl-text-muted);
}

.utility-row {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.square-motif {
    width: 0.8rem;
    aspect-ratio: 1;
    background: var(--chcl-black);
    display: inline-block;
    flex: 0 0 auto;
}

.square-motif.large {
    width: 1.2rem;
}

.divider-compact {
    max-width: 10rem;
}

.tag {
    display: inline-flex;
    padding: 0.65rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid var(--chcl-border-strong);
    background: rgba(255, 255, 255, 0.36);
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        background-color 180ms ease;
}

.tag:hover {
    transform: translateY(-2px);
    border-color: var(--chcl-black);
    background: rgba(212, 255, 0, 0.2);
}

.site-footer {
    padding-top: var(--space-5);
    border-top: 1px solid var(--chcl-border);
}

.site-footer p {
    font-size: 0.8rem;
    font-weight: 500;
}

@media (max-width: 900px) {
    .site-header-inner {
        min-height: auto;
        padding: 0.8rem 0;
    }

    .hero-layout,
    .section-grid {
        grid-template-columns: 1fr;
    }

    .hero-title,
    .hero-copy,
    .section-intro,
    .section-body {
        grid-column: auto;
    }

    .hero-copy,
    .section-note {
        max-width: 100%;
    }

    .hero-title {
        font-size: clamp(3.4rem, 14vw, 6rem);
    }

    .section-title {
        font-size: clamp(1.55rem, 6vw, 2.2rem);
    }

    .swatch-grid,
    .type-samples,
    .card-grid,
    .demo-grid-two,
    .demo-grid-three {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(calc(100% - 1.25rem), var(--container-width));
    }

    .site-footer,
    .utility-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-header {
        backdrop-filter: blur(8px);
    }

    .site-header-inner {
        align-items: flex-start;
        gap: var(--space-3);
        padding: 0.75rem 0;
    }

    .brand {
        font-size: 1rem;
    }

    .site-nav {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.5rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .site-nav a {
        padding: 0.4rem 0 0.3rem;
    }

    .hero-section {
        padding-top: var(--space-6);
    }

    .hero-title {
        font-size: clamp(2.7rem, 15vw, 4rem);
        line-height: 0.9;
    }

    .hero-copy,
    .type-body,
    .demo-copy,
    .utility-copy,
    .section-note,
    .card-copy {
        font-size: 0.88rem;
    }

    .section-title {
        font-size: clamp(1.35rem, 7vw, 1.9rem);
    }

    .eyebrow,
    .section-index,
    .type-label,
    .gallery-location,
    .demo-label,
    .tag,
    .site-footer p {
        letter-spacing: 0.1em;
    }

    .swatch-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .swatch-sample,
    .showcase-card {
        min-height: 9rem;
    }

    .showcase-card {
        min-height: 18rem;
    }

    .gallery-name {
        font-size: 1rem;
    }

    .button {
        width: 100%;
        min-width: 0;
    }

    .gallery-row {
        grid-template-columns: 1fr;
    }

    .tag-row {
        gap: 0.65rem;
    }
}
