:root {
    color-scheme: light;
    --paper: #efe7d2;
    --surface: #fffaf0;
    --ink: #201d18;
    --muted: #655f55;
    --rule: #cfc1a3;
    --accent: #57743d;
    --accent-dark: #2f4c2c;
    --rust: #9d4f2f;
    --gold: #c1913d;
    --blue: #24495c;
    --blue-soft: #d7e6e5;
    --grass: #6f8d43;
    --dirt: #8a5a35;
    --stone: #7b7a72;
    --timber: #6f4428;
    --error: #8f1d1d;
    --notice: #eef4e7;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        linear-gradient(rgba(239, 231, 210, 0.94), rgba(239, 231, 210, 0.94)),
        linear-gradient(90deg, rgba(36, 73, 92, 0.12) 1px, transparent 1px),
        linear-gradient(rgba(36, 73, 92, 0.08) 1px, transparent 1px);
    background-size: auto, 48px 48px, 48px 48px;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    line-height: 1.6;
}

a {
    color: var(--accent-dark);
    text-decoration-color: rgba(49, 71, 52, 0.35);
    text-underline-offset: 0.18em;
}

a:hover {
    color: var(--rust);
}

code {
    background: #eee7d9;
    border: 1px solid var(--rule);
    border-radius: 4px;
    padding: 0.1rem 0.25rem;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    border-bottom: 1px solid var(--rule);
    background: rgba(255, 250, 240, 0.96);
    box-shadow: 0 10px 30px rgba(32, 29, 24, 0.06);
}

.nav-wrap {
    min-height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 2px solid #1f2a1d;
    background:
        linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, 0.15) 48%, rgba(0, 0, 0, 0.15) 52%, transparent 52%),
        linear-gradient(var(--grass) 0 50%, var(--dirt) 50% 100%);
    color: #fffaf0;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
    font-family: Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    box-shadow: 4px 4px 0 rgba(32, 29, 24, 0.18);
}

.brand strong,
.brand small {
    display: block;
}

.brand small {
    max-width: 420px;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.35;
}

.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
}

.site-nav a {
    border-radius: 4px;
    border: 1px solid transparent;
    padding: 0.55rem 0.7rem;
    color: var(--ink);
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    border-color: #d4c3a5;
    background: #f2e4c8;
}

.hero {
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid #2f4c2c;
    background:
        linear-gradient(180deg, rgba(215, 230, 229, 0.96) 0 46%, rgba(160, 177, 113, 0.94) 46% 64%, rgba(132, 91, 55, 0.94) 64% 100%),
        linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: auto, 64px 64px, 64px 64px;
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 94px;
    content: "";
    background:
        linear-gradient(90deg, rgba(64, 43, 26, 0.32) 0 25%, transparent 25% 50%, rgba(64, 43, 26, 0.24) 50% 75%, transparent 75%),
        linear-gradient(#6f8d43 0 18px, #8a5a35 18px 100%);
    background-size: 96px 100%, auto;
    opacity: 0.75;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 48px;
    align-items: center;
    min-height: 610px;
    padding-block: 54px;
}

.hero-copy {
    max-width: 810px;
}

.eyebrow,
.meta {
    margin: 0 0 0.5rem;
    color: var(--rust);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    line-height: 1.15;
}

h1 {
    max-width: 780px;
    margin: 0;
    font-size: 4.45rem;
    letter-spacing: 0;
}

h2 {
    margin: 0 0 1rem;
    font-size: 1.45rem;
}

h3 {
    margin: 0 0 0.5rem;
    font-size: 1.12rem;
}

.lede {
    max-width: 760px;
    margin: 1.2rem 0 0;
    color: #3f3932;
    font-size: 1.25rem;
}

.hero .lede {
    max-width: 720px;
    color: #202a22;
    font-size: 1.32rem;
}

.hero-notes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 1.35rem 0 0;
    padding: 0;
    list-style: none;
}

.hero-notes li {
    border: 1px solid rgba(47, 76, 44, 0.35);
    background: rgba(255, 250, 240, 0.72);
    color: #2b3a28;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.35rem 0.55rem;
}

.narrow {
    max-width: 760px;
}

.actions,
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 1.5rem;
}

.button,
button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent-dark);
    border-radius: 4px;
    background: var(--accent-dark);
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.7rem 1rem;
    text-decoration: none;
    box-shadow: 3px 3px 0 rgba(32, 29, 24, 0.16);
}

.button:hover,
button:hover {
    background: var(--rust);
    border-color: var(--rust);
    color: #fff;
}

.button.secondary {
    background: transparent;
    color: var(--accent-dark);
    box-shadow: none;
}

.button.secondary:hover {
    background: #ebe4d8;
    color: var(--accent-dark);
}

.server-panel,
.card,
.form-card,
.stat,
.notice,
.flash {
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--surface);
}

.server-panel {
    padding: 24px;
}

.hero-visual {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.map-card {
    position: relative;
    width: 100%;
    border: 2px solid #3e2b1c;
    background:
        linear-gradient(rgba(255, 250, 240, 0.88), rgba(255, 250, 240, 0.88)),
        linear-gradient(90deg, rgba(157, 79, 47, 0.14) 1px, transparent 1px),
        linear-gradient(rgba(36, 73, 92, 0.12) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    box-shadow: 12px 12px 0 rgba(32, 29, 24, 0.18);
    padding: 24px;
}

.map-card::before,
.map-card::after {
    position: absolute;
    width: 38px;
    height: 38px;
    content: "";
    background: var(--gold);
    box-shadow: inset 0 0 0 5px rgba(62, 43, 28, 0.22);
}

.map-card::before {
    top: -14px;
    left: -14px;
}

.map-card::after {
    right: -14px;
    bottom: -14px;
}

.map-label {
    margin: 0 0 0.45rem;
    color: var(--rust);
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.map-card h2 {
    max-width: 320px;
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.block-scene {
    position: relative;
    height: 230px;
    overflow: hidden;
    border: 2px solid #2f2a22;
    background:
        linear-gradient(180deg, #9dc8ca 0 44%, #8ea45f 44% 58%, #7a5232 58% 100%);
}

.block-scene::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 34px 34px;
}

.sun {
    position: absolute;
    top: 22px;
    right: 34px;
    width: 42px;
    height: 42px;
    background: #e6b846;
    box-shadow: 0 0 0 8px rgba(230, 184, 70, 0.22);
}

.block {
    position: absolute;
    width: 54px;
    height: 54px;
    border: 2px solid rgba(32, 29, 24, 0.5);
    box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.13);
}

.block.grass {
    background:
        linear-gradient(#6f8d43 0 34%, #8a5a35 34% 100%);
}

.block.dirt {
    background: #8a5a35;
}

.block.timber {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0 18%, transparent 18% 38%, rgba(0, 0, 0, 0.12) 38% 44%, transparent 44%),
        #6f4428;
}

.block.stone {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0 25%, transparent 25%),
        #7b7a72;
}

.block.one {
    left: 34px;
    bottom: 44px;
}

.block.two {
    left: 88px;
    bottom: 98px;
}

.block.three {
    left: 142px;
    bottom: 44px;
}

.block.four {
    left: 220px;
    bottom: 70px;
}

.block.five {
    left: 274px;
    bottom: 70px;
}

.track {
    position: absolute;
    right: -28px;
    bottom: 18px;
    width: 220px;
    height: 34px;
    border-top: 6px solid #3e2b1c;
    border-bottom: 6px solid #3e2b1c;
    transform: rotate(-17deg);
}

.track::before {
    position: absolute;
    inset: -8px 0;
    content: "";
    background: repeating-linear-gradient(90deg, transparent 0 18px, #3e2b1c 18px 24px);
}

.server-facts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin: 18px 0 0;
}

.server-facts div {
    border-left: 5px solid var(--accent);
    background: rgba(239, 231, 210, 0.68);
    padding: 0.65rem 0.8rem;
}

.server-panel dl,
.detail-list {
    margin: 0;
}

.server-panel dt,
.server-facts dt,
.detail-list dt {
    margin-top: 1rem;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.server-facts dt {
    margin-top: 0;
}

.server-panel dd,
.server-facts dd,
.detail-list dd {
    margin: 0.15rem 0 0;
}

.method-band,
.archive-band {
    border-bottom: 1px solid var(--rule);
    background: #fffaf0;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border-left: 1px solid var(--rule);
    border-right: 1px solid var(--rule);
}

.method-grid article {
    min-height: 220px;
    background:
        linear-gradient(180deg, rgba(255, 250, 240, 0.95), rgba(242, 228, 200, 0.88)),
        linear-gradient(90deg, rgba(36, 73, 92, 0.08) 1px, transparent 1px);
    background-size: auto, 22px 22px;
    border-right: 1px solid var(--rule);
    padding: 28px;
}

.method-grid article:last-child {
    border-right: 0;
}

.step {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 1rem;
    background: var(--blue);
    color: #fffaf0;
    font-family: Arial, sans-serif;
    font-weight: 700;
}

.method-grid p {
    margin-bottom: 0;
}

.learning-section {
    padding-block: 56px;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    max-width: 720px;
    margin-bottom: 0;
    font-size: 2.25rem;
}

.learning-grid {
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.source-board {
    border: 2px solid #3e2b1c;
    background: #24495c;
    color: #fffaf0;
    box-shadow: 8px 8px 0 rgba(32, 29, 24, 0.16);
    padding: 24px;
}

.source-board h3 {
    margin-bottom: 1rem;
    color: #fffaf0;
}

.source-board ul {
    display: grid;
    gap: 0.85rem;
    margin: 0;
    padding-left: 1.1rem;
}

.learning-copy {
    display: grid;
    align-content: center;
    border-top: 2px solid var(--rule);
    border-bottom: 2px solid var(--rule);
    font-size: 1.16rem;
    padding-block: 24px;
}

.learning-copy p {
    max-width: 720px;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    padding-bottom: 54px;
}

.archive-band {
    border-top: 1px solid var(--rule);
    padding-top: 52px;
}

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

.card {
    position: relative;
    overflow: hidden;
    padding: 18px;
}

.card::before {
    display: block;
    width: 58px;
    height: 6px;
    margin: -18px 0 16px -18px;
    content: "";
    background: var(--rust);
}

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

.card h3 a {
    color: var(--ink);
    text-decoration-thickness: 1px;
}

.card:hover {
    border-color: #a89169;
    box-shadow: 0 10px 24px rgba(32, 29, 24, 0.08);
}

.muted {
    color: var(--muted);
}

.page,
.article {
    padding-block: 48px;
}

.article {
    max-width: 860px;
}

.prose {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.prose p,
.detail-list p {
    margin: 0 0 1.1rem;
}

.form-page {
    max-width: 820px;
}

.form-page.wide {
    max-width: 980px;
}

.form-card {
    display: grid;
    gap: 16px;
    margin-top: 24px;
    padding: 22px;
}

.form-card.compact {
    max-width: 440px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

label span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 700;
}

input,
textarea,
select {
    width: 100%;
    border: 1px solid #bdb2a0;
    border-radius: 4px;
    background: #fffdf8;
    color: var(--ink);
    font: inherit;
    padding: 0.7rem;
}

textarea {
    resize: vertical;
}

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.check input {
    width: auto;
    margin-top: 0.35rem;
}

.error {
    border-left: 4px solid var(--error);
    background: #fff4f1;
    color: var(--error);
    padding: 0.75rem 1rem;
}

.notice,
.flash {
    padding: 0.85rem 1rem;
}

.notice {
    background: var(--notice);
}

.flash {
    margin-top: 18px;
    background: var(--notice);
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.stat {
    padding: 20px;
}

.stat strong,
.stat span {
    display: block;
}

.stat strong {
    font-size: 2rem;
}

.stat span {
    color: var(--muted);
    font-family: Arial, sans-serif;
}

.table-wrap {
    overflow-x: auto;
    margin-top: 24px;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: var(--surface);
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 660px;
}

th,
td {
    border-bottom: 1px solid var(--rule);
    padding: 0.85rem 1rem;
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
}

tr:last-child td {
    border-bottom: 0;
}

.site-footer {
    border-top: 1px solid var(--rule);
    background: #20333b;
    color: #f3ead7;
    padding-block: 24px;
}

.site-footer strong {
    color: #fffaf0;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}

.footer-grid p {
    margin: 0;
}

@media (max-width: 820px) {
    .nav-wrap,
    .footer-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero-grid,
    .method-grid,
    .learning-grid,
    .section-grid,
    .stats,
    .form-row {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        min-height: auto;
        gap: 28px;
        padding-block: 42px 72px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-visual {
        align-self: auto;
    }

    .map-card {
        box-shadow: 6px 6px 0 rgba(32, 29, 24, 0.18);
    }

    .block-scene {
        height: 210px;
    }

    .method-grid {
        border-left: 0;
        border-right: 0;
    }

    .method-grid article {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--rule);
    }

    .section-heading h2 {
        font-size: 1.8rem;
    }

    .learning-copy {
        border-top: 0;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 24px, 1120px);
    }

    .nav-wrap {
        gap: 16px;
        padding-block: 14px;
    }

    .brand {
        align-items: flex-start;
    }

    .brand small {
        max-width: 280px;
    }

    .site-nav a {
        padding: 0.45rem 0.5rem;
    }

    h1 {
        font-size: 2.15rem;
    }

    .hero .lede,
    .lede,
    .learning-copy {
        font-size: 1.06rem;
    }

    .map-card,
    .source-board {
        padding: 18px;
    }

    .block {
        width: 44px;
        height: 44px;
    }

    .block.one {
        left: 22px;
    }

    .block.two {
        left: 66px;
        bottom: 88px;
    }

    .block.three {
        left: 110px;
    }

    .block.four {
        left: 176px;
    }

    .block.five {
        left: 220px;
    }

    .track {
        right: -74px;
    }
}
