:root {
    --field:   #12242e;
    --surface: #1d3a4b;
    --raised:  #24475c;
    --bone:    #f5efe1;
    --muted:   #9db3c0;
    --frog:    #86ad68;
    --ember:   #e08a33;
    --rule:    rgba(245, 239, 225, 0.16);
    --shadow:  #0a1920;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--field);
    color: var(--bone);
    font-family: "Familjen Grotesk", system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.wrap { max-width: 780px; margin: 0 auto; padding: 64px 24px 80px; }

/* ---------- header ---------- */

.masthead {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 64px;
}

.masthead img { width: 168px; height: auto; flex: none; }

.lede {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 800;
    font-size: clamp(1.7rem, 4.4vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: -0.022em;
}

.lede-sub {
    margin-top: 12px;
    font-family: "Chivo Mono", monospace;
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

.visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- section labels ---------- */

.eyebrow {
    font-family: "Chivo Mono", monospace;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.block-label { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.block-label .eyebrow { color: var(--muted); }
.block-label::after { content: ""; flex: 1; height: 2px; background: var(--rule); }

/* ---------- the signature: one outline, three panels ---------- */

.series {
    border: 2px solid var(--frog);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 7px 7px 0 var(--shadow);
    overflow: hidden;
    margin-bottom: 56px;
}

.series-head {
    padding: 20px 26px;
    background: rgba(134, 173, 104, 0.18);
    border-bottom: 2px solid var(--frog);
}

.series-head .eyebrow { color: var(--frog); }

.series-head p {
    margin-top: 5px;
    font-size: 0.95rem;
    color: var(--muted);
}

.panel {
    display: block;
    padding: 24px 26px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--rule);
    transition: background 0.18s ease;
}

.panel:first-of-type { border-top: none; }
.panel:hover, .panel:focus-visible { background: var(--raised); }

/* ---------- separate die-cut cards ---------- */

.cards { display: grid; gap: 18px; }

.card {
    display: block;
    padding: 22px 24px;
    text-decoration: none;
    color: inherit;
    background: var(--surface);
    border: 2px solid var(--rule);
    border-radius: 16px;
    box-shadow: 5px 5px 0 var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover, .card:focus-visible {
    transform: translate(3px, 3px);
    box-shadow: 2px 2px 0 var(--shadow);
    border-color: var(--ember);
}

/* ---------- shared card innards ---------- */

.panel h3, .card h3 {
    font-family: "Bricolage Grotesque", system-ui, sans-serif;
    font-weight: 700;
    font-size: 1.22rem;
    letter-spacing: -0.014em;
    margin-bottom: 6px;
}

.panel p.desc, .card p.desc {
    color: var(--muted);
    font-size: 0.96rem;
    max-width: 58ch;
}

.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }

.tag {
    font-family: "Chivo Mono", monospace;
    font-size: 0.67rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 9px;
    border-radius: 4px;
}

.tag-type  { background: var(--bone); color: #16303d; }
.tag-topic { border: 1.5px solid var(--rule); color: var(--muted); }

.panel:focus-visible, .card:focus-visible {
    outline: 3px solid var(--ember);
    outline-offset: 3px;
}

footer {
    margin-top: 64px;
    padding-top: 22px;
    border-top: 2px solid var(--rule);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 0.88rem;
}

footer a { color: var(--ember); font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; }

@media (max-width: 620px) {
    .masthead { flex-direction: column; align-items: flex-start; gap: 22px; }
    .masthead img { width: 132px; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition-duration: 0.01ms !important; }
    .card:hover, .card:focus-visible { transform: none; }
}
