:root {
    --primary: #f4d9df;
    --secondary: #d5e4d7;
    --accent: #9fb7cf;
    --text: #302728;
    --display-font: "Great Vibes", cursive;
    --body-font: "Nunito Sans", sans-serif;
    --bg: #fffaf6;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: rgba(255, 255, 255, 0.96);
    --border: rgba(48, 39, 40, 0.14);
    --muted: rgba(48, 39, 40, 0.72);
    --radius: 18px;
    --shadow: 0 20px 45px rgba(100, 74, 78, 0.16);
    --shadow-soft: 0 10px 20px rgba(89, 75, 78, 0.08);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--body-font);
    color: var(--text);
    background:
        radial-gradient(circle at 10% 20%, rgba(244, 217, 223, 0.5), transparent 35%),
        radial-gradient(circle at 90% 0%, rgba(159, 183, 207, 0.22), transparent 30%),
        radial-gradient(circle at 75% 80%, rgba(213, 228, 215, 0.45), transparent 28%),
        var(--bg);
    line-height: 1.65;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    backdrop-filter: blur(12px);
    background: rgba(255, 250, 246, 0.82);
    border-bottom: 1px solid var(--border);
}

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

.brand {
    font-family: var(--display-font);
    font-size: clamp(2rem, 4vw, 2.6rem);
    line-height: 1;
    letter-spacing: 0.01em;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: var(--surface-strong);
    border-radius: 999px;
    padding: 8px 14px;
    font: inherit;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.main-nav a {
    font-weight: 600;
    color: var(--muted);
}

.main-nav a:hover {
    color: var(--text);
}

.hero {
    position: relative;
    min-height: 84vh;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(36, 29, 30, 0.5), rgba(67, 59, 60, 0.2) 45%, rgba(36, 29, 30, 0.46));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: #fff;
    text-align: center;
    max-width: 760px;
    padding: 120px 0 90px;
}

.eyebrow {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

h1,
h2,
h3,
h4 {
    margin: 0 0 0.4em;
    line-height: 1.2;
}

h1,
h2 {
    font-family: var(--display-font);
    font-weight: 400;
}

h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
}

h2 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

h3 {
    font-size: 1.25rem;
}

.hero-subtitle {
    margin: 0;
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    letter-spacing: 0.02em;
}

.hero-details {
    margin: 10px 0;
    font-weight: 600;
}

.hero-note {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1.05rem;
}

.hero-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 11px 20px;
    background: var(--accent);
    color: #14222f;
    font-size: 0.95rem;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-soft {
    background: var(--surface-strong);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-danger {
    background: #d97f7f;
    color: #fff;
}

.section {
    padding: 74px 0;
}

.section-alt {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.68));
    border-top: 1px solid rgba(48, 39, 40, 0.05);
    border-bottom: 1px solid rgba(48, 39, 40, 0.05);
}

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 30px;
}

.grid-two {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 24px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    padding: 24px;
}

.key-facts,
.plain-list {
    margin: 0;
    padding-left: 18px;
}

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

.timeline-card {
    background: linear-gradient(170deg, rgba(255, 255, 255, 0.94), rgba(244, 217, 223, 0.45));
    border-radius: var(--radius);
    border: 1px solid rgba(48, 39, 40, 0.1);
    padding: 20px;
    box-shadow: var(--shadow-soft);
}

.timeline-card .time {
    font-weight: 800;
    color: #24435f;
    display: inline-block;
    margin-bottom: 8px;
}

.token-form {
    display: grid;
    grid-template-columns: 1fr 2fr auto;
    gap: 12px;
    align-items: end;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.photo-grid figure {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-soft);
}

.photo-grid img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.photo-grid figcaption {
    padding: 8px 10px 10px;
    color: var(--muted);
    font-size: 0.84rem;
}

.form-card {
    display: grid;
    gap: 14px;
}

.form-row {
    display: grid;
    gap: 6px;
}

.dropzone {
    border: 2px dashed rgba(48, 39, 40, 0.24);
    border-radius: 14px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.84);
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.dropzone:hover {
    border-color: var(--accent);
}

.dropzone.is-dragover {
    border-color: #24435f;
    background: rgba(159, 183, 207, 0.16);
}

.dropzone-title {
    margin: 0;
    font-weight: 700;
}

.dropzone-files {
    margin-top: 8px;
    font-size: 0.84rem;
    color: var(--muted);
    word-break: break-word;
}

.upload-progress-list {
    display: grid;
    gap: 8px;
}

.upload-progress-item {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.86);
}

.upload-progress-item.is-success {
    border-color: rgba(90, 171, 112, 0.55);
    background: rgba(188, 230, 197, 0.32);
}

.upload-progress-item.is-error {
    border-color: rgba(203, 98, 98, 0.55);
    background: rgba(242, 181, 181, 0.25);
}

.upload-progress-label {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    word-break: break-word;
}

.upload-progress-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(48, 39, 40, 0.12);
    overflow: hidden;
}

.upload-progress-bar span {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--accent);
    transition: width 0.18s ease;
}

.upload-progress-status {
    margin-top: 6px;
    font-size: 0.8rem;
    color: var(--muted);
}

label {
    font-size: 0.92rem;
    font-weight: 700;
}

input,
select,
textarea,
button {
    font: inherit;
}

input,
select,
textarea {
    border: 1px solid rgba(48, 39, 40, 0.22);
    border-radius: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text);
}

textarea {
    resize: vertical;
}

.radio-group {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.alert {
    border-radius: 12px;
    padding: 10px 13px;
    margin: 10px 0;
    border: 1px solid transparent;
    font-weight: 600;
}

.alert-success {
    background: rgba(188, 230, 197, 0.48);
    border-color: rgba(90, 171, 112, 0.45);
}

.alert-error {
    background: rgba(242, 181, 181, 0.4);
    border-color: rgba(203, 98, 98, 0.45);
}

.alert-warn {
    background: rgba(255, 225, 173, 0.47);
    border-color: rgba(206, 152, 52, 0.44);
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 22px 0 28px;
    color: var(--muted);
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.compact-header {
    position: sticky;
}

.gate-card {
    max-width: 580px;
    margin: 36px auto;
}

.narrow-form {
    max-width: 380px;
}

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

.simple-table th,
.simple-table td {
    text-align: left;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    font-size: 0.92rem;
}

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

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
}

.login-card {
    max-width: 460px;
    margin: 0 auto;
}

.small-note {
    margin-top: 10px;
    color: var(--muted);
    font-size: 0.86rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.stat-card p {
    margin: 0;
    color: var(--muted);
}

.stat-card strong {
    font-size: clamp(1.4rem, 4vw, 2rem);
}

.admin-tabs {
    padding: 16px;
}

.tab-nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.tab-btn {
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 8px 14px;
    cursor: pointer;
    font-weight: 700;
}

.tab-btn.is-active {
    background: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.is-active {
    display: block;
}

.admin-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
    align-items: end;
}

.admin-form-grid button {
    justify-self: start;
}

.long-grid {
    grid-template-columns: repeat(2, minmax(200px, 1fr));
}

.long-grid label {
    display: grid;
    gap: 6px;
}

.inline-grid-form {
    display: grid;
    grid-template-columns: repeat(7, minmax(105px, 1fr));
    gap: 6px;
    align-items: center;
    min-width: 760px;
}

.inline-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.compact-table td,
.compact-table th {
    min-width: 140px;
}

.compact-table code {
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.78rem;
}

.photo-admin-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.photo-admin-item h3 {
    margin-top: 10px;
    margin-bottom: 4px;
}

.photo-admin-item p {
    margin: 0 0 4px;
    color: var(--muted);
    font-size: 0.88rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: 76px;
        right: 4vw;
        left: 4vw;
        padding: 12px;
        border-radius: 14px;
        border: 1px solid var(--border);
        background: var(--surface-strong);
        box-shadow: var(--shadow-soft);
        display: none;
        flex-direction: column;
        align-items: flex-start;
    }

    .main-nav.is-open {
        display: flex;
    }

    .token-form {
        grid-template-columns: 1fr;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-form-grid {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 640px) {
    .section {
        padding: 58px 0;
    }

    .hero {
        min-height: 72vh;
    }

    .hero-content {
        padding-top: 96px;
    }

    .photo-grid,
    .photo-admin-grid,
    .timeline-grid,
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .container {
        flex-direction: column;
        align-items: flex-start;
    }

    .admin-form-grid {
        grid-template-columns: 1fr;
    }
}
