:root {
    --ink: #111813;
    --ink-2: #1d281f;
    --muted: #667267;
    --cream: #f1e5c6;
    --paper: #fff8e8;
    --field: #8da64f;
    --field-dark: #344f32;
    --clay: #b75131;
    --rust: #7d2f24;
    --gold: #d5a63f;
    --smoke: #d8d0bb;
    --line: rgba(17, 24, 19, .16);
    --line-dark: rgba(255, 248, 232, .18);
    --shadow: 0 28px 90px rgba(17, 24, 19, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Instrument Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: #161d17;
    line-height: 1.5;
}
a { color: inherit; }
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 12px clamp(16px, 4vw, 56px);
    background: rgba(17, 24, 19, .86);
    border-bottom: 1px solid rgba(241, 229, 198, .12);
    color: var(--paper);
    backdrop-filter: blur(18px);
}
.brand, nav { display: flex; align-items: center; gap: 14px; }
.brand { text-decoration: none; font-weight: 900; font-size: 1.02rem; }
.brand-mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold), var(--clay));
    color: #161d17;
    box-shadow: 0 0 0 1px rgba(255,255,255,.14), 0 10px 30px rgba(181, 81, 49, .3);
}
nav a { text-decoration: none; color: rgba(255, 248, 232, .72); font-weight: 800; font-size: .9rem; }
.nav-cta { color: var(--gold); }
.hero {
    position: relative;
    min-height: 92vh;
    display: grid;
    align-items: end;
    overflow: hidden;
    padding: 118px clamp(16px, 5vw, 72px) 46px;
    color: var(--paper);
    background:
        radial-gradient(circle at 75% 18%, rgba(213,166,63,.42), transparent 23%),
        linear-gradient(180deg, #202b25 0%, #2f382c 38%, #6f5a35 70%, #211a13 100%);
}
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8,12,9,.78) 0%, rgba(8,12,9,.42) 42%, rgba(8,12,9,.05) 100%);
    pointer-events: none;
}
.hero-art { position: absolute; inset: 0; overflow: hidden; }
.grain {
    position: absolute;
    inset: 0;
    opacity: .18;
    background-image: radial-gradient(rgba(255,248,232,.34) 1px, transparent 1px);
    background-size: 9px 9px;
    mix-blend-mode: overlay;
}
.sun {
    position: absolute;
    top: 14%;
    right: 14%;
    width: min(26vw, 130px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, #ffecad 0%, #d9a03c 55%, #9b3f29 76%);
    box-shadow: 0 0 120px rgba(213, 166, 63, .72);
}
.ridge, .field, .settlement { position: absolute; left: 0; right: 0; bottom: 0; }
.ridge-back { height: 46%; background: linear-gradient(150deg, transparent 0 31%, rgba(54, 79, 61, .72) 32% 55%, transparent 56%), linear-gradient(205deg, transparent 0 40%, rgba(75, 93, 62, .68) 41% 68%, transparent 69%); }
.ridge-front { height: 35%; background: linear-gradient(170deg, transparent 0 23%, rgba(31, 54, 35, .92) 24% 52%, transparent 53%), linear-gradient(215deg, transparent 0 35%, rgba(76, 91, 43, .86) 36% 66%, transparent 67%); }
.field-one { height: 24%; background: repeating-linear-gradient(100deg, rgba(38,75,43,.95) 0 22px, rgba(116,142,66,.95) 22px 52px); clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%); }
.field-two { height: 16%; background: repeating-linear-gradient(78deg, rgba(91,58,34,.96) 0 18px, rgba(196,142,49,.95) 18px 44px); clip-path: polygon(0 0, 100% 28%, 100% 100%, 0 100%); }
.settlement::before, .settlement::after {
    content: "";
    position: absolute;
    bottom: 20vh;
    background: #2d1d18;
    box-shadow: 54px 18px 0 #3a241b, 116px -5px 0 #211712, 178px 22px 0 #40291e;
}
.settlement::before { left: 12%; width: 34px; height: 30px; }
.settlement::after { left: 13%; bottom: calc(20vh + 25px); width: 0; height: 0; border-left: 28px solid transparent; border-right: 28px solid transparent; border-bottom: 26px solid #7a3f2c; background: transparent; box-shadow: 54px 18px 0 #8b5037, 116px -5px 0 #713d2e, 178px 22px 0 #8a5138; }
.hero-copy { position: relative; z-index: 2; max-width: 920px; }
.eyebrow { margin: 0 0 12px; text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; font-weight: 900; color: var(--clay); }
.hero .eyebrow { color: var(--gold); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 860px; margin-bottom: 18px; font-size: clamp(3.25rem, 13vw, 8rem); line-height: .86; letter-spacing: 0; }
h2 { font-size: clamp(2.05rem, 7vw, 4.3rem); line-height: .98; margin-bottom: 18px; }
.lede { max-width: 760px; color: rgba(255, 248, 232, .84); font-size: clamp(1.06rem, 4vw, 1.38rem); }
.hero-actions, .currency-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 900; cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--gold); color: #161d17; border-color: var(--gold); box-shadow: 0 18px 44px rgba(213, 166, 63, .22); }
.button.secondary { background: rgba(255,248,232,.08); color: var(--paper); border-color: rgba(255,248,232,.24); }
.currency-panel .button.secondary { color: var(--ink); border-color: rgba(17,24,19,.2); background: rgba(255,248,232,.64); }
.signal-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.signal-row span { padding: 8px 11px; border-radius: 999px; background: rgba(255,248,232,.1); border: 1px solid rgba(255,248,232,.18); font-weight: 900; font-size: .84rem; color: rgba(255,248,232,.82); }
.section { padding: 72px clamp(16px, 5vw, 72px); }
.split { display: grid; grid-template-columns: 1fr; gap: 26px; background: var(--paper); }
.body-copy { color: var(--muted); font-size: 1.05rem; }
.body-copy p:last-child { margin-bottom: 0; }
.era-band { display: grid; grid-template-columns: 1fr; background: #101711; color: var(--paper); }
.era-band article { min-height: 190px; padding: 24px clamp(16px, 5vw, 32px); border-bottom: 1px solid var(--line-dark); background: linear-gradient(135deg, rgba(255,248,232,.045), transparent 56%); }
.era-band span { color: var(--gold); font-weight: 900; font-size: .78rem; }
.era-band strong { display: block; margin: 26px 0 10px; font-size: 1.26rem; }
.era-band p { color: rgba(255,248,232,.68); }
.roadmap-section { background: #ede0c1; }
.section-heading { max-width: 780px; margin-bottom: 30px; }
.section-heading p { color: var(--muted); }
.roadmap-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.roadmap-card { background: rgba(255,248,232,.84); border: 1px solid rgba(17,24,19,.14); border-radius: 6px; padding: 22px; box-shadow: 0 16px 40px rgba(17,24,19,.1); }
.check { width: 24px; height: 24px; border: 2px solid var(--rust); border-radius: 4px; margin-bottom: 22px; background: linear-gradient(135deg, rgba(181,81,49,.22), transparent); }
.roadmap-card span { color: var(--rust); font-weight: 900; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.roadmap-card h3 { margin: 8px 0 10px; font-size: 1.24rem; }
.roadmap-card p { color: var(--muted); }
.currency-panel { display: grid; gap: 24px; background: linear-gradient(135deg, #d1aa53, #f0dfb6 48%, #8ea158); }
.currency-panel > div:first-child { max-width: 820px; }
.currency-panel p { color: #2f3322; }
.join-section { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; background: #171f19; color: var(--paper); }
.join-copy p { color: rgba(255,248,232,.72); }
.join-copy .count { font-weight: 900; color: var(--gold); }
.signup-form, .admin-form { display: grid; gap: 14px; padding: 18px; background: rgba(255,248,232,.96); border: 1px solid rgba(255,248,232,.22); border-radius: 6px; box-shadow: var(--shadow); color: var(--ink); }
label { display: grid; gap: 7px; font-weight: 900; color: var(--ink); }
input, select, textarea { width: 100%; border: 1px solid rgba(17,24,19,.18); border-radius: 6px; padding: 13px 13px; font: inherit; color: var(--ink); background: #fffdf7; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(213,166,63,.45); border-color: rgba(125,47,36,.45); }
textarea { min-height: 104px; resize: vertical; }
.notice { border-radius: 6px; padding: 12px 14px; font-weight: 900; }
.notice.success { background: #e1f2d7; color: #284d2c; }
.notice.error { background: #f7ded7; color: #74321f; }
.site-footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px clamp(16px, 5vw, 72px); background: #0d130f; color: var(--paper); }
.site-footer a { color: var(--paper); }
.admin-body { background: #f5efe1; color: var(--ink); }
.admin-shell, .admin-table-shell { max-width: 1160px; margin: 64px auto; padding: 0 18px; }
.admin-shell { max-width: 480px; }
.admin-topbar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 20px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
table { width: 100%; border-collapse: collapse; min-width: 900px; }
th, td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

@media (min-width: 680px) {
    .site-header { padding-top: 14px; padding-bottom: 14px; }
    .hero { min-height: 88vh; padding-top: 130px; padding-bottom: 56px; }
    .section { padding-top: 86px; padding-bottom: 86px; }
    .era-band { grid-template-columns: repeat(2, 1fr); }
    .roadmap-grid { grid-template-columns: repeat(2, 1fr); }
    .signup-form { padding: 24px; }
}

@media (min-width: 980px) {
    .split { grid-template-columns: minmax(0, .85fr) minmax(360px, 1fr); gap: clamp(34px, 6vw, 90px); }
    .era-band { grid-template-columns: repeat(5, 1fr); }
    .era-band article { min-height: 238px; border-bottom: 0; border-right: 1px solid var(--line-dark); }
    .roadmap-grid { grid-template-columns: repeat(3, 1fr); }
    .currency-panel { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
    .join-section { grid-template-columns: minmax(0, .95fr) minmax(360px, 520px); gap: 40px; }
}

@media (max-width: 620px) {
    .site-header { position: static; display: grid; }
    nav { flex-wrap: wrap; gap: 9px 12px; }
    nav a { font-size: .86rem; }
    .hero { min-height: 780px; padding-top: 48px; }
    .sun { top: 10%; right: -4%; width: 140px; }
    .settlement::before, .settlement::after { transform: scale(.76); transform-origin: left bottom; }
    h1 { font-size: clamp(3.2rem, 17vw, 4.85rem); }
    .hero-actions .button, .signup-form .button { width: 100%; }
    .site-footer, .admin-topbar { flex-direction: column; }
}
