:root {
    --wpc-primary: #ffb7a0;
    --wpc-secondary: #ffd4a3;
    --wpc-accent: #ff8c42;
    --wpc-bg: #fff9f5;
    --wpc-ink: #2a1c16;
    --wpc-muted: #5c463c;
    --wpc-line: #2a1c16;
    --wpc-plate: #fffdfb;
    --wpc-header-h: 88px;
    --wpc-page-w: 1120px;
    --wpc-space: 1.25rem;
}

@media (max-width: 768px) {
    :root { --wpc-header-h: 72px; }
}

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

html, body {
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

html { scroll-padding-top: var(--wpc-header-h); }

body {
    padding-top: var(--wpc-header-h);
    background: var(--wpc-bg);
    color: var(--wpc-ink);
    font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; }

[hidden] { display: none !important; }

h1, h2, h3 {
    font-family: Fraunces, Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 0.6rem;
}

h1 { font-size: clamp(2.3rem, 5vw, 4rem); }

h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }

p { margin: 0 0 0.9rem; }

a { color: #9a3412; }

a:hover { color: var(--wpc-ink); }

.wpc-o-wrap {
    max-width: var(--wpc-page-w);
    margin: 0 auto;
    padding: 0 20px;
}

.wpc-o-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: var(--wpc-header-h);
    background: #fff9f5;
    border-bottom: 3px solid var(--wpc-ink);
}

.wpc-o-header a,
.wpc-o-header a:visited { color: var(--wpc-ink); }

.wpc-o-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: var(--wpc-header-h);
}

.wpc-c-logo { color: var(--wpc-ink); line-height: 0; flex: 0 0 auto; }

.wpc-c-logo img {
    width: 180px;
    height: auto;
    display: block;
}

.wpc-c-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-left: auto;
}

.wpc-c-nav a {
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.wpc-c-nav a[aria-current="page"] { border-bottom-color: var(--wpc-ink); }

.wpc-c-burger {
    display: block;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    padding: 10px;
    border: 2px solid var(--wpc-ink);
    background: var(--wpc-accent);
    cursor: pointer;
}

.wpc-c-burger span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--wpc-ink);
}

.wpc-c-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(42, 28, 22, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s, visibility .25s;
}

.wpc-c-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    z-index: 210;
    width: min(85vw, 400px);
    height: 100vh;
    height: 100dvh;
    padding: 72px 0 24px;
    background: #fff9f5;
    border-left: 3px solid var(--wpc-ink);
    overflow-y: auto;
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s ease, visibility .3s;
}

.wpc-c-drawer a {
    display: block;
    padding: 14px 24px;
    color: var(--wpc-ink);
    font-weight: 600;
    text-decoration: none;
    min-width: 0;
}

.wpc-c-drawer-x {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 44px;
    height: 44px;
    border: 2px solid var(--wpc-ink);
    background: var(--wpc-plate);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
}

body.wpc-is-nav { overflow: hidden; }

body.wpc-is-nav .wpc-c-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.wpc-is-nav .wpc-c-drawer {
    visibility: visible;
    transform: translateX(0);
}

@media (min-width: 769px) {
    .wpc-c-logo { order: 1; }
    .wpc-c-cta { order: 2; }
    .wpc-c-nav { order: 3; }
    .wpc-c-burger { order: 4; }
}

@media (max-width: 768px) {
    .wpc-c-logo img { width: 120px; }
    .wpc-c-nav, .wpc-o-bar .wpc-c-cta { display: none; }
    .wpc-c-burger { margin-left: auto; }
}

.wpc-c-btn,
a.wpc-c-btn,
a.wpc-c-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    background: var(--wpc-accent);
    color: var(--wpc-ink);
    border: 2px solid var(--wpc-ink);
    border-radius: 2px;
    font-family: inherit;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.wpc-o-header a.wpc-c-btn,
.wpc-o-header a.wpc-c-btn:visited,
.wpc-c-hero a.wpc-c-btn,
.wpc-c-hero a.wpc-c-btn:visited,
.wpc-c-band a.wpc-c-btn,
.wpc-c-band a.wpc-c-btn:visited,
.wpc-c-rank-item a.wpc-c-btn,
.wpc-c-rank-item a.wpc-c-btn:visited {
    background: var(--wpc-accent);
    color: var(--wpc-ink);
}

.wpc-c-btn--ink,
a.wpc-c-btn--ink,
a.wpc-c-btn--ink:visited {
    background: var(--wpc-ink);
    color: #fff9f5;
}

.wpc-c-hero {
    background: linear-gradient(165deg, #fff9f5 0%, #ffd4a3 55%, #ffb7a0 100%);
    border-bottom: 3px solid var(--wpc-ink);
    padding: 2.5rem 0 2.2rem;
}

.wpc-c-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 16rem);
    gap: 1.5rem;
    align-items: end;
}

.wpc-c-quote {
    margin: 0.4rem 0 1rem;
    font-family: Fraunces, Georgia, serif;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    line-height: 1.25;
}

.wpc-c-hero-still {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    border: 3px solid var(--wpc-ink);
    justify-self: end;
}

.wpc-c-bento {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
    padding: 1.5rem 0 0.5rem;
}

.wpc-span-6 { grid-column: span 6; }
.wpc-span-4 { grid-column: span 4; }
.wpc-span-2 { grid-column: span 2; }

.wpc-c-tile {
    min-width: 0;
    background: linear-gradient(180deg, #fffdfb 0%, #ffe8d6 100%);
    border: 3px solid var(--wpc-ink);
    padding: 1.1rem 1.1rem 1.3rem;
}

.wpc-c-card {
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
    background: var(--wpc-plate);
    border: 3px solid var(--wpc-ink);
    padding: 1rem;
    min-width: 0;
}

.wpc-c-rank {
    display: grid;
    gap: 14px;
}

.wpc-c-rank-item {
    display: grid;
    grid-template-columns: auto 96px minmax(0, 1fr) auto;
    grid-template-areas:
        "pos icon name still"
        "pos icon dev still"
        "pos icon blurb still"
        "pos icon facts still"
        "pos icon acts still";
    column-gap: 14px;
    row-gap: 4px;
    align-items: start;
}

.wpc-c-rank-item .wpc-c-pos { grid-area: pos; font-weight: 700; letter-spacing: 0.04em; padding-top: 8px; }
.wpc-c-rank-item .wpc-c-icon { grid-area: icon; }
.wpc-c-rank-item .wpc-c-name { grid-area: name; margin: 0; }
.wpc-c-rank-item .wpc-c-dev { grid-area: dev; margin: 0; color: var(--wpc-muted); }
.wpc-c-rank-item .wpc-c-blurb { grid-area: blurb; margin: 0.2rem 0; }
.wpc-c-rank-item .wpc-c-facts { grid-area: facts; margin: 0; overflow-wrap: anywhere; }
.wpc-c-rank-item .wpc-c-still { grid-area: still; }
.wpc-c-rank-item .wpc-c-acts { grid-area: acts; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

.wpc-c-icon {
    width: 96px;
    height: 96px;
    border-radius: 22%;
    object-fit: contain;
    border: 2px solid var(--wpc-ink);
}

.wpc-c-still {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 240px;
    object-fit: contain;
}

.wpc-c-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.wpc-c-chip {
    min-height: 44px;
    padding: 8px 12px;
    border: 2px solid var(--wpc-ink);
    background: transparent;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.wpc-c-chip.wpc-is-on { background: var(--wpc-accent); }

.wpc-c-scroll { overflow-x: auto; max-width: 100%; }

.wpc-c-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.wpc-c-table th,
.wpc-c-table td {
    border: 2px solid var(--wpc-ink);
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
}

.wpc-c-table th { background: var(--wpc-secondary); }

.wpc-c-time { list-style: none; margin: 0; padding: 0; }

.wpc-c-time li {
    border-left: 4px solid var(--wpc-accent);
    padding: 0 0 1rem 12px;
    min-width: 0;
}

.wpc-c-time time { display: block; font-weight: 700; }

.wpc-c-band {
    margin: 1.2rem 0 0;
    padding: 2rem 0;
    background: linear-gradient(90deg, #ff8c42 0%, #ffb7a0 100%);
    border-top: 3px solid var(--wpc-ink);
    border-bottom: 3px solid var(--wpc-ink);
}

.wpc-c-page {
    padding: 1.6rem 0 2.4rem;
    background: linear-gradient(180deg, #fff9f5, #ffe8d6);
}

.wpc-c-measure { max-width: 760px; }

.wpc-c-crumbs { font-size: 0.92rem; margin: 0 0 0.8rem; }

.wpc-c-crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; margin: 0; padding: 0; }

.wpc-c-lead {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.wpc-c-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.wpc-c-steps { counter-reset: wpcstep; list-style: none; padding: 0; margin: 0; }

.wpc-c-steps li {
    counter-increment: wpcstep;
    border-top: 3px solid var(--wpc-ink);
    padding: 0.8rem 0 0.8rem 3rem;
    position: relative;
    min-width: 0;
}

.wpc-c-steps li::before {
    content: counter(wpcstep);
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    background: var(--wpc-accent);
    border: 2px solid var(--wpc-ink);
    font-weight: 700;
}

.wpc-c-form { display: grid; gap: 12px; }

.wpc-c-form label { font-weight: 600; display: grid; gap: 6px; }

.wpc-c-form input,
.wpc-c-form textarea {
    width: 100%;
    min-height: 44px;
    padding: 10px;
    border: 2px solid var(--wpc-ink);
    background: #fff;
    font: inherit;
    color: var(--wpc-ink);
}

.wpc-c-form textarea { min-height: 140px; }

.wpc-c-note {
    border: 3px solid var(--wpc-ink);
    padding: 0.8rem 1rem;
    background: var(--wpc-secondary);
}

.wpc-o-foot {
    padding: 2rem 0 2.4rem;
    text-align: center;
    border-top: 3px solid var(--wpc-ink);
    background: #fff9f5;
}

.wpc-o-foot .wpc-c-logo { display: inline-block; margin-bottom: 0.6rem; }

.wpc-c-footlinks {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin: 0.8rem 0;
}

.wpc-c-footlinks a { color: var(--wpc-ink); font-weight: 600; }

.wpc-c-legal { color: var(--wpc-muted); font-size: 0.95rem; max-width: 46rem; margin: 0.4rem auto; }

.wpc-c-cookie { display: none; }

.wpc-c-cookie:not([hidden]) {
    display: flex;
    position: fixed;
    z-index: 110;
    gap: 12px;
    align-items: center;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 8px 8px 8px 16px;
    background: #fffdfb;
    border: 2px solid var(--wpc-ink);
    border-radius: 999px;
}

.wpc-c-cookie p { margin: 0; font-size: 0.92rem; white-space: nowrap; }

.wpc-c-cookie a { color: var(--wpc-ink); }

.wpc-c-cookie .wpc-c-ok {
    box-shadow: none;
    border-radius: 999px;
    min-height: 44px;
    border: 2px solid var(--wpc-ink);
    background: var(--wpc-ink);
    color: #fff9f5;
    font: inherit;
    font-weight: 600;
    padding: 0 16px;
    cursor: pointer;
}

body.wpc-cookie-open { padding-bottom: 88px; }

.wpc-is-in h2::after {
    content: "";
    display: block;
    height: 3px;
    width: 3rem;
    margin-top: 0.35rem;
    background: var(--wpc-ink);
    animation: wpc-k-line .6s ease both;
}

@keyframes wpc-k-line {
    from { width: 0; }
    to { width: 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    .wpc-is-in h2::after { animation: none; }
    .wpc-c-drawer, .wpc-c-overlay { transition: none; }
}

@media (max-width: 900px) {
    .wpc-c-hero-grid,
    .wpc-c-lead { grid-template-columns: 1fr; }
    .wpc-c-hero-still { justify-self: start; }
}

@media (max-width: 768px) {
    .wpc-c-bento { grid-template-columns: 1fr; }
    .wpc-span-6, .wpc-span-4, .wpc-span-2 { grid-column: auto; }
    .wpc-c-rank-item {
        grid-template-columns: auto 72px minmax(0, 1fr);
        grid-template-areas:
            "pos icon name"
            "pos icon dev"
            "blurb blurb blurb"
            "facts facts facts"
            "still still still"
            "acts acts acts";
    }
    .wpc-c-icon { width: 72px; height: 72px; }
    .wpc-c-rank-item .wpc-c-still {
        display: block;
        margin: 12px auto 0;
        max-width: min(200px, 100%);
    }
    .wpc-c-cookie:not([hidden]) {
        left: 12px;
        right: 12px;
        transform: none;
        width: auto;
        max-width: none;
    }
    .wpc-c-hero .wpc-c-btn,
    .wpc-c-band .wpc-c-btn { width: 100%; }
}

@media (max-width: 480px) {
    .wpc-c-grid { grid-template-columns: 1fr; }
}
