:root {
    --paper: #f4eee2;
    --ink: #171513;
    --soft: #6a6258;
    --orange: #ef6a2e;
    --violet: #6146d8;
    --pink: #e54885;
    --mint: #b7f2db;
    --border: #221e1a;
    --shadow: 10px 12px 0 #221e1a;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 12% 7%, rgba(239, 106, 46, 0.2), transparent 25rem),
        radial-gradient(circle at 92% 24%, rgba(97, 70, 216, 0.17), transparent 28rem),
        var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.68;
}

a {
    color: inherit;
}

.site-header {
    border-bottom: 2px solid var(--border);
    background: rgba(244, 238, 226, 0.94);
}

.header-inner,
.page-shell,
.footer-inner {
    width: min(1180px, calc(100% - 34px));
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    text-decoration: none;
    text-transform: uppercase;
}

.brand-stamp {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--orange);
    transform: rotate(-7deg);
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list a {
    display: block;
    padding: 9px 13px;
    border: 2px solid transparent;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
    border-color: var(--border);
    background: #ffffff;
    box-shadow: 3px 3px 0 var(--border);
}

.page-shell {
    padding: 52px 0 86px;
}

.hero {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 42px;
    align-items: center;
    min-height: 650px;
}

.kicker {
    display: inline-block;
    margin: 0 0 18px;
    padding: 7px 11px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: var(--mint);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin-top: 0;
    line-height: 1.03;
}

h1 {
    margin-bottom: 24px;
    font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
    font-size: clamp(4rem, 10vw, 9rem);
    font-weight: 900;
    letter-spacing: -0.045em;
    text-transform: uppercase;
}

h2 {
    margin-bottom: 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.3rem, 5vw, 4.7rem);
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 12px;
    font-size: 1.45rem;
}

.lead {
    max-width: 760px;
    color: #403b35;
    font-size: 1.14rem;
}

.hero-visual,
.feature-visual {
    overflow: hidden;
    border: 2px solid var(--border);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-visual {
    transform: rotate(1.3deg);
}

.hero-visual img,
.feature-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.ribbon {
    display: inline-flex;
    margin-top: 25px;
    padding: 11px 15px;
    border: 2px solid var(--border);
    background: var(--violet);
    color: #ffffff;
    box-shadow: 4px 4px 0 var(--border);
    font-weight: 900;
    transform: rotate(-1deg);
}

.section-heading {
    max-width: 870px;
    margin: 70px 0 30px;
}

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

.panel {
    grid-column: span 6;
    padding: clamp(24px, 4vw, 42px);
    border: 2px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    box-shadow: 6px 7px 0 var(--border);
}

.panel:nth-child(2n) {
    background: #f9dfe9;
}

.panel.wide {
    grid-column: span 12;
    background: #ffffff;
}

.panel.orange {
    background: #ffd6c2;
}

.panel.violet {
    background: #ded7ff;
}

.panel p:last-child {
    margin-bottom: 0;
}

.number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    margin-bottom: 17px;
    place-items: center;
    border: 2px solid var(--border);
    border-radius: 50%;
    background: var(--orange);
    color: #ffffff;
    font-weight: 900;
}

.editorial-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

.copy-sheet {
    padding: clamp(26px, 5vw, 55px);
    border: 2px solid var(--border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.copy-sheet p:first-of-type::first-letter {
    float: left;
    margin: 8px 10px 0 0;
    color: var(--pink);
    font-family: Georgia, serif;
    font-size: 5rem;
    line-height: 0.68;
}

.metric-lab {
    padding: clamp(25px, 5vw, 48px);
    border: 2px solid var(--border);
    border-radius: 18px;
    background: #171513;
    color: #ffffff;
    box-shadow: var(--shadow);
}

.metric-lab label {
    display: block;
    margin: 18px 0 7px;
    font-weight: 800;
}

.metric-lab input,
.metric-lab select {
    width: 100%;
    padding: 13px;
    border: 2px solid #ffffff;
    border-radius: 8px;
    background: #2a2622;
    color: #ffffff;
    font: inherit;
}

.metric-result {
    margin-top: 26px;
    padding: 22px;
    border: 2px solid #ffffff;
    border-radius: 12px;
    background: var(--violet);
}

.metric-result strong {
    display: block;
    font-size: 2.4rem;
}

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

.directory-card {
    padding: 25px;
    border: 2px solid var(--border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 5px 6px 0 var(--border);
}

.directory-card:nth-child(3n + 2) {
    background: #dff7ed;
    transform: translateY(14px);
}

.directory-card:nth-child(3n) {
    background: #f9dfe9;
}

.tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 5px 9px;
    border: 2px solid var(--border);
    border-radius: 999px;
    background: #ffffff;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.site-footer {
    border-top: 2px solid var(--border);
    background: #171513;
    color: #ffffff;
}

.footer-inner {
    padding: 34px 0 42px;
}

.footer-inner ul {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 15px 0 0;
    padding: 0;
    list-style: none;
}

@media (max-width: 850px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
        padding: 18px 0;
    }

    .hero,
    .editorial-split {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-visual {
        transform: none;
    }

    .panel {
        grid-column: span 12;
    }

    .directory-grid {
        grid-template-columns: 1fr;
    }

    .directory-card:nth-child(3n + 2) {
        transform: none;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: 4rem;
    }
}
