@import url("https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;500;700&family=Source+Sans+3:wght@400;600;700&display=swap");

:root {
    --bg: #f6f1e7;
    --bg-soft: #f0e8d9;
    --ink: #212321;
    --muted: #4f5853;
    --brand: #19785f;
    --brand-soft: #d8ede6;
    --accent: #c96a2a;
    --accent-soft: #f8e1cf;
    --line: #d6cfbf;
    --panel: rgba(255, 255, 255, 0.78);
    --shadow: 0 18px 46px rgba(50, 41, 21, 0.12);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Source Sans 3", "Verdana", sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at 20% 10%, #fff8eb 0%, var(--bg) 45%, #ece2cf 100%);
    min-height: 100vh;
    line-height: 1.5;
}

.bg-layer {
    position: fixed;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(8px);
}

.bg-layer-a {
    width: 44vw;
    height: 44vw;
    top: -16vw;
    right: -14vw;
    background: radial-gradient(circle at 30% 30%, rgba(25, 120, 95, 0.36), rgba(25, 120, 95, 0.02));
}

.bg-layer-b {
    width: 42vw;
    height: 42vw;
    left: -16vw;
    bottom: -20vw;
    background: radial-gradient(circle at 60% 60%, rgba(201, 106, 42, 0.30), rgba(201, 106, 42, 0.02));
}

.shell {
    width: min(1080px, calc(100% - 2.2rem));
    margin-inline: auto;
}

.hero {
    padding: 3.2rem 0 1.5rem;
    animation: rise 700ms ease-out both;
}

.eyebrow {
    margin: 0 0 0.5rem;
    color: var(--brand);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
    line-height: 1.1;
    margin: 0 0 0.65rem;
}

h1 {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
}

h2 {
    font-size: clamp(1.4rem, 2.6vw, 2.1rem);
}

h3 {
    font-size: 1.1rem;
}

.hero-copy {
    max-width: 70ch;
    margin: 0;
    color: var(--muted);
}

.stat-row {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.stat-card {
    background: linear-gradient(155deg, #fff 0%, var(--panel) 70%);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.85rem 0.95rem;
    box-shadow: var(--shadow);
}

.stat-label {
    margin: 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.stat-value {
    margin: 0.1rem 0 0;
    font-weight: 700;
    font-size: 1.45rem;
}

.jump-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(251, 245, 233, 0.88);
    backdrop-filter: blur(8px);
}

.jump-nav a {
    color: var(--ink);
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-weight: 600;
}

.jump-nav a:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.panel {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1.2rem;
    margin-bottom: 1rem;
    animation: rise 700ms ease-out both;
}

.panel:nth-of-type(2) {
    animation-delay: 60ms;
}

.panel:nth-of-type(3) {
    animation-delay: 120ms;
}

.panel:nth-of-type(4) {
    animation-delay: 180ms;
}

.panel:nth-of-type(5) {
    animation-delay: 240ms;
}

.panel:nth-of-type(6) {
    animation-delay: 300ms;
}

ol,
ul {
    margin: 0;
    padding-left: 1.1rem;
}

.section-copy {
    margin: 0 0 0.7rem;
    color: var(--muted);
}

.craft-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.craft-card {
    border: 1px solid var(--line);
    background: linear-gradient(160deg, var(--brand-soft) 0%, #fff 55%);
    border-radius: 14px;
    padding: 0.8rem;
}

pre {
    margin: 0.45rem 0 0.6rem;
    padding: 0.65rem 0.8rem;
    border-radius: 12px;
    background: #1f2824;
    color: #ecf7f1;
    overflow-x: auto;
}

pre code {
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 0.95rem;
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    text-align: left;
    padding: 0.55rem 0.45rem;
}

th {
    font-family: "Chakra Petch", "Trebuchet MS", sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.controls {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 0.55rem;
}

#variant-search {
    flex: 1 1 300px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fffefa;
    padding: 0.6rem 0.8rem;
    font: inherit;
}

#variant-search:focus {
    outline: 2px solid #51a68d;
    border-color: transparent;
}

.pill-group {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.pill {
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fffcf6;
    color: var(--ink);
    padding: 0.35rem 0.75rem;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.pill:hover {
    border-color: var(--brand);
    color: var(--brand);
}

.pill.is-active {
    border-color: var(--brand);
    background: var(--brand-soft);
    color: #124f3f;
}

.results-line {
    margin: 0 0 0.55rem;
    color: var(--muted);
}

.variant-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.variant-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fffdf9;
    padding: 0.65rem 0.75rem;
}

.variant-top {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.35rem;
}

.variant-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 50%;
    flex: 0 0 auto;
    border: 1px solid rgba(0, 0, 0, 0.14);
}

.variant-name {
    margin: 0;
    font-size: 1.03rem;
    font-weight: 700;
}

.variant-meta {
    margin: 0;
    font-size: 0.92rem;
    color: var(--muted);
}

.variant-tag {
    display: inline-flex;
    margin-top: 0.35rem;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    background: var(--accent-soft);
    color: #6a3210;
}

.variant-tag.source-alltheores {
    background: var(--brand-soft);
    color: #144738;
}

.variant-empty {
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 1rem;
    color: var(--muted);
    background: #fffefc;
}

code {
    background: #f3ece0;
    border-radius: 6px;
    padding: 0.06rem 0.3rem;
    font-family: "Consolas", "SFMono-Regular", monospace;
    font-size: 0.93em;
}

.note {
    margin: 0.75rem 0 0;
    color: var(--muted);
}

.foot {
    padding: 0.25rem 0 1.6rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    clip-path: inset(50%);
    overflow: hidden;
    border: 0;
    padding: 0;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 900px) {
    .variant-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 650px) {
    .stat-row {
        grid-template-columns: 1fr;
    }

    .jump-nav {
        border-radius: 16px;
    }

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