/* Buried Reimagined — project page styles */
:root {
    --bg: #17120e;
    --bg-soft: #201914;
    --bg-card: #241c15;
    --line: #3a2f24;
    --text: #e8e0d4;
    --text-dim: #b3a695;
    --accent: #e8a33d;
    --accent-soft: #f4c26a;
    --chip-bg: #33291e;
    --chip-fg: #f4c26a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); text-decoration: underline; }

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- top bar ---------- */
.topbar {
    background: rgba(12, 9, 7, 0.92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(4px);
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}
.brand { color: #fff; font-weight: 600; letter-spacing: 0.5px; }
.brand:hover { color: var(--accent); text-decoration: none; }
.topbar nav a {
    color: var(--text-dim);
    margin-left: 22px;
    font-size: 14px;
}
.topbar nav a:hover { color: var(--accent); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
    position: relative;
    min-height: 62vh;
    display: flex;
    align-items: flex-end;
    background: url("img/town.jpg") center 30% / cover no-repeat;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(23,18,14,0.25) 0%, rgba(23,18,14,0.55) 55%, rgba(23,18,14,0.97) 100%);
}
.hero .container { position: relative; padding-bottom: 48px; padding-top: 120px; }
.hero h1 {
    font-family: Georgia, "Times New Roman", "SimSun", serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    margin: 0 0 10px;
    color: #fff;
    letter-spacing: 1px;
}
.hero .tagline {
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: var(--text);
    max-width: 720px;
    margin: 0 0 18px;
    text-shadow: 0 1px 8px rgba(0,0,0,0.8);
}
.chip {
    display: inline-block;
    background: var(--chip-bg);
    color: var(--chip-fg);
    border: 1px solid #5a4626;
    border-radius: 999px;
    padding: 3px 14px;
    font-size: 13px;
    margin-right: 8px;
}

/* ---------- sections ---------- */
section { padding: 56px 0; }
section:nth-of-type(even) { background: var(--bg-soft); }

.section-title {
    font-family: Georgia, "Times New Roman", "SimSun", serif;
    font-size: 1.6rem;
    color: var(--accent);
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--line);
    letter-spacing: 0.5px;
}

.lead { font-size: 1.05rem; color: var(--text); max-width: 800px; }
.dim { color: var(--text-dim); }

/* pipeline */
.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 24px; }
.pipe-step {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
}
.pipe-step h3 { margin: 0 0 8px; font-size: 1.02rem; color: var(--accent-soft); }
.pipe-step .step-no {
    display: inline-block;
    font-family: Georgia, serif;
    font-size: 0.8rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 50%;
    width: 24px; height: 24px;
    line-height: 22px;
    text-align: center;
    margin-bottom: 6px;
}
.pipe-step p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* stat tiles */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin: 26px 0 6px;
}
.stat {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
}
.stat .num {
    font-family: Georgia, serif;
    font-size: 1.7rem;
    color: var(--accent);
    display: block;
    line-height: 1.2;
}
.stat .label { font-size: 0.82rem; color: var(--text-dim); }

/* feature grid */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.card {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 18px 20px;
    transition: border-color 0.2s;
}
.card:hover { border-color: #6b5638; }
.card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--text); }
.card p { margin: 0; font-size: 0.92rem; color: var(--text-dim); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; }
.gallery figure { margin: 0; }
.gallery img {
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--line);
    display: block;
}
.gallery figcaption { font-size: 0.85rem; color: var(--text-dim); padding-top: 8px; }

/* guide tabs */
.tabs { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; }
.tab {
    background: var(--bg-card);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text-dim);
    padding: 10px 22px;
    font-size: 0.98rem;
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.tab:hover { border-color: #6b5638; color: var(--text); }
.tab.active { background: var(--chip-bg); border-color: var(--accent); color: var(--chip-fg); }
.tab-panel { margin-top: 8px; }
.tab-panel.ts-hidden { display: none; }

/* easter egg guide */
.guide-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 20px 0 30px; }
.guide-cards .card { text-align: left; }
.guide-cards .card h3 { color: var(--accent-soft); }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; max-width: 860px; }
.steps > li {
    counter-increment: step;
    position: relative;
    padding: 14px 0 14px 58px;
    border-bottom: 1px solid var(--line);
}
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0; top: 12px;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--chip-bg);
    border: 1px solid #5a4626;
    color: var(--chip-fg);
    font-family: Georgia, serif;
    font-size: 1.05rem;
    text-align: center;
    line-height: 37px;
}
.steps h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--text); }
.steps p { margin: 0; font-size: 0.94rem; color: var(--text-dim); }
.steps .side { font-size: 0.94rem; color: var(--text-dim); margin: 4px 0 0; }

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    padding: 1px 7px;
    margin-right: 6px;
    vertical-align: 1px;
}
.tag-r { background: #4a2215; color: #ffb59a; border: 1px solid #7a4a33; }
.tag-m { background: #16303f; color: #9ad2ff; border: 1px solid #33536b; }

/* status list */
.status-list { list-style: none; padding: 0; margin: 20px 0 0; max-width: 820px; }
.status-list li {
    padding: 10px 0 10px 30px;
    border-bottom: 1px solid var(--line);
    position: relative;
    color: var(--text-dim);
}
.status-list li::before {
    content: "";
    position: absolute;
    left: 4px; top: 17px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #6b5638;
}
.status-list li.done { color: var(--text); }
.status-list li.done::before { background: #7fb069; }
.status-list li.wip::before { background: var(--accent); }
.status-list li strong { color: var(--text); }

/* steam button */
.btn-row { margin-top: 22px; }
.btn-steam {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #1c130a;
    font-weight: 600;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 1rem;
    transition: background 0.15s, transform 0.15s;
}
.btn-steam:hover {
    background: var(--accent-soft);
    color: #1c130a;
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-steam svg { width: 20px; height: 20px; fill: currentColor; }

.cta { text-align: center; }
.cta .section-title { border-bottom: none; padding-bottom: 0; }
.cta p { max-width: 620px; margin: 0 auto 8px; }

/* footer */
footer {
    border-top: 1px solid var(--line);
    padding: 28px 0 40px;
    color: var(--text-dim);
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 640px) {
    .topbar nav a { margin-left: 14px; }
    section { padding: 40px 0; }
}
