/* GK3Reborn website theme.
   A dark, stone and candlelight palette taken from the game's own title art. */

:root {
    --ink: #0c0a09;
    --ink-2: #151110;
    --ink-3: #1e1917;
    --line: #2c2523;
    --gold: #d6b26e;
    --gold-dim: #a9884d;
    --blood: #8c2f22;
    --text: #ded7cf;
    --muted: #9d938b;
}

:root {
    --bs-body-bg: var(--ink);
    --bs-body-color: var(--text);
    --bs-secondary-color: #9b918a;
    --bs-emphasis-color: #f2ece5;
    --bs-link-color: var(--gold);
    --bs-link-hover-color: #f0d49a;
    --bs-border-color: var(--line);
    --bs-heading-color: #f4efe8;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background-color: var(--ink);
    background-image: linear-gradient(rgba(12, 10, 9, 0.94), rgba(12, 10, 9, 0.97)), url("/img/texture-wood.jpg");
    background-attachment: fixed;
    background-size: 520px;
    color: var(--text);
    font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
}

h1, h2, h3, h4, .display-1, .display-2, .display-3, .display-4, .footer-brand, .brand-text {
    font-family: Georgia, Cambria, "Times New Roman", serif;
    letter-spacing: 0.01em;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin-bottom: 0.35em;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2000;
    background: var(--gold);
    color: #14100e;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
}

/* Navigation */

.site-nav {
    background: rgba(10, 8, 7, 0.82);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding-block: 0.55rem;
}

.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.3rem;
    color: #f4efe8;
}

.brand-mark {
    border-radius: 9px;
    box-shadow: 0 0 0 1px rgba(214, 178, 110, 0.35);
}

.brand-accent {
    color: var(--gold);
}

.site-nav .nav-link {
    color: #cfc6bd;
    font-size: 0.97rem;
    letter-spacing: 0.02em;
    padding-inline: 0.85rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus {
    color: var(--gold);
}

.navbar-toggler {
    border-color: var(--line);
}

/* Buttons */

.btn-gold {
    background: linear-gradient(180deg, #e2c184, #c39d55);
    border: 1px solid #8f7233;
    color: #1a1410;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-gold:hover,
.btn-gold:focus {
    background: linear-gradient(180deg, #f0d49a, #cfa963);
    color: #140f0c;
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover,
.btn-ghost:focus {
    border-color: var(--gold-dim);
    color: var(--gold);
}

/* Hero */

.hero {
    position: relative;
    min-height: min(88vh, 820px);
    display: flex;
    align-items: flex-end;
    padding: 9rem 0 4rem;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-media {
    position: absolute;
    inset: 0;
    background-image: url("/img/hero.jpg");
    background-size: cover;
    background-position: center 30%;
    transform: scale(1.03);
}

.hero-veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 6, 6, 0.92) 0%, rgba(8, 6, 6, 0.62) 45%, rgba(8, 6, 6, 0.35) 100%),
        linear-gradient(0deg, rgba(8, 6, 6, 0.96) 0%, rgba(8, 6, 6, 0.15) 55%);
}

.hero-inner {
    position: relative;
    max-width: 44rem;
}

.hero h1 {
    font-size: clamp(2.6rem, 6.2vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 0.6rem;
    text-shadow: 0 3px 30px rgba(0, 0, 0, 0.8);
}

.hero .lede {
    font-size: clamp(1.05rem, 1.6vw, 1.25rem);
    color: #e6ded4;
    max-width: 38rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.74rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.hero-note {
    font-size: 0.86rem;
    color: #a99f96;
}

/* Sections */

.section {
    padding: 5rem 0;
    border-bottom: 1px solid rgba(44, 37, 35, 0.7);
}

.section-tight {
    padding: 3.5rem 0;
}

.section-stone {
    background-image: linear-gradient(rgba(12, 10, 9, 0.93), rgba(12, 10, 9, 0.95)), url("/img/texture-stone.jpg");
    background-size: cover;
    background-attachment: fixed;
}

.section-head {
    max-width: 46rem;
    margin-bottom: 2.6rem;
}

.section-head p {
    color: #b3aaa2;
    margin-bottom: 0;
}

.page-head {
    padding: 8.5rem 0 2.5rem;
    border-bottom: 1px solid var(--line);
}

.page-head h1 {
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
}

.rule {
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--gold), transparent);
    border: 0;
    opacity: 1;
    margin: 1.2rem 0 1.4rem;
}

/* Cards */

.panel {
    background: linear-gradient(180deg, rgba(30, 25, 23, 0.85), rgba(19, 16, 15, 0.85));
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.6rem 1.5rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.panel:hover {
    border-color: rgba(214, 178, 110, 0.45);
    transform: translateY(-2px);
}

.panel h3 {
    font-size: 1.18rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.panel p:last-child {
    margin-bottom: 0;
}

.panel-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-bottom: 0.7rem;
    display: block;
}

.stat {
    border-left: 2px solid var(--gold-dim);
    padding-left: 1rem;
}

.stat .value {
    font-family: Georgia, Cambria, serif;
    font-size: 1.9rem;
    color: #f4efe8;
    line-height: 1.1;
}

.stat .label {
    font-size: 0.85rem;
    color: #a49a92;
}

/* Lists */

.tick-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.tick-list li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.55rem;
}

.tick-list li::before {
    content: "\2726";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold-dim);
    font-size: 0.85rem;
}

.change-list {
    list-style: none;
    padding-left: 0;
}

.change-list li {
    border-left: 1px solid var(--line);
    padding: 0 0 1.3rem 1.4rem;
    position: relative;
}

.change-list li::before {
    content: "";
    position: absolute;
    left: -5px;
    top: 0.55rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--gold-dim);
    box-shadow: 0 0 0 3px rgba(12, 10, 9, 1);
}

.change-list li:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.change-list strong {
    display: block;
    color: #f4efe8;
    font-family: Georgia, Cambria, serif;
    font-size: 1.06rem;
}

/* Badges */

.tag {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 0.22rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    color: #bdb3aa;
}

.tag-new {
    border-color: rgba(214, 178, 110, 0.5);
    color: var(--gold);
}

.tag-changed {
    border-color: rgba(140, 47, 34, 0.65);
    color: #d98b7c;
}

/* Downloads */

.download-card {
    background: linear-gradient(180deg, rgba(32, 27, 25, 0.9), rgba(18, 15, 14, 0.9));
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.8rem;
    height: 100%;
}

.download-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.2rem;
}

.download-meta {
    font-size: 0.85rem;
    color: #a49a92;
}

.download-card code {
    color: var(--gold-dim);
    word-break: break-all;
}

/* Screenshots */

.shot {
    display: block;
    position: relative;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: var(--ink-2);
}

.shot img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.shot:hover img {
    transform: scale(1.04);
    opacity: 0.92;
}

.shot figcaption {
    padding: 0.6rem 0.8rem;
    font-size: 0.86rem;
    color: #b3aaa2;
    border-top: 1px solid var(--line);
}

.shot-empty {
    border: 1px dashed var(--line);
    border-radius: 10px;
    padding: 3rem 1.5rem;
    text-align: center;
    color: #a49a92;
}

.lightbox .modal-content {
    background: rgba(8, 6, 6, 0.96);
    border: 1px solid var(--line);
}

.lightbox img {
    width: 100%;
    height: auto;
}

/* Before and after */

.compare figure {
    margin-bottom: 0;
}

.compare img {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.compare figcaption {
    font-size: 0.84rem;
    color: #a49a92;
    padding-top: 0.5rem;
}

/* Code and steps */

.code-block {
    background: #0a0807;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem 1.1rem;
    font-family: Consolas, "Cascadia Mono", "SFMono-Regular", monospace;
    font-size: 0.88rem;
    color: #cbbfa6;
    overflow-x: auto;
    white-space: pre;
    line-height: 1.6;
}

.steps {
    counter-reset: step;
    list-style: none;
    padding-left: 0;
}

.steps > li {
    counter-increment: step;
    position: relative;
    padding-left: 3.2rem;
    margin-bottom: 1.6rem;
}

.steps > li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 2.2rem;
    height: 2.2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-family: Georgia, serif;
}

.steps h3 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

/* Notices */

.notice {
    border: 1px solid rgba(214, 178, 110, 0.35);
    border-left-width: 3px;
    background: rgba(214, 178, 110, 0.06);
    border-radius: 8px;
    padding: 1.1rem 1.25rem;
}

.notice-red {
    border-color: rgba(140, 47, 34, 0.5);
    background: rgba(140, 47, 34, 0.08);
}

.notice p:last-child {
    margin-bottom: 0;
}

/* Footer */

.site-footer {
    padding: 3.5rem 0 2.5rem;
    border-top: 1px solid var(--line);
    background: rgba(8, 6, 6, 0.6);
}

.footer-brand {
    font-size: 1.35rem;
    color: #f4efe8;
    margin-bottom: 0.4rem;
}

.footer-heading {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.74rem;
    color: var(--gold);
    margin-bottom: 0.7rem;
}

.footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.footer-links li {
    margin-bottom: 0.35rem;
}

.footer-links a {
    color: #b8afa7;
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-rule {
    border-color: var(--line);
    margin: 2.2rem 0 1.4rem;
    opacity: 1;
}

/* Small screens */

@media (max-width: 991.98px) {
    .hero {
        min-height: 0;
        padding: 7.5rem 0 3rem;
    }

    .site-nav .navbar-collapse {
        padding-top: 0.6rem;
    }

    .section-stone,
    body {
        background-attachment: scroll;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .panel:hover,
    .shot:hover img {
        transform: none;
    }
}

.site-nav-scrolled {
    background: rgba(8, 6, 6, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

code {
    color: var(--gold-dim);
    background: rgba(214, 178, 110, 0.08);
    padding: 0.08em 0.35em;
    border-radius: 4px;
    font-size: 0.9em;
}

.code-block code {
    background: none;
    padding: 0;
}
