/* THE TOWN REMEMBERS — main.css
   A digital art installation.
   Designed for beauty, breath, and remembrance.
*/

/* ─── Google Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Cormorant:ital,wght@0,300;0,400;1,300;1,400&family=Source+Sans+3:wght@300;400;500&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────── */
:root {
    --cream:        #f4efe6;
    --paper:        #fffaf1;
    --ink:          #2f2b26;
    --ink-soft:     #4a453e;
    --muted:        #8f8577;
    --gold:         #c8a96a;
    --gold-pale:    #e8d9b8;
    --rose:         #d9aaa5;
    --blue:         #aebfd0;
    --blue-soft:    #d6e2ed;
    --sage:         #b8c4ad;
    --sage-soft:    #dce5d6;
    --whisper:      rgba(244,239,230,0.06);

    --serif:        'Cormorant Garamond', 'Georgia', serif;
    --serif-alt:    'Cormorant', 'Georgia', serif;
    --sans:         'Source Sans 3', 'Helvetica Neue', sans-serif;

    --transition:   0.6s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Reset & Base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 17px;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--cream);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.7;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ─── Homepage Map Layout ────────────────────────────────────────────────── */
#map-container {
    position: fixed;
    inset: 0;
    z-index: 0;
}

#map {
    width: 100%;
    height: 100%;
}

/* Grain texture overlay — subtle film noise */
#grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* Vignette — darkens the edges to focus attention */
#vignette {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: radial-gradient(ellipse at center,
        transparent 40%,
        rgba(20, 18, 14, 0.55) 100%);
}

/* ─── Homepage Hero Text ─────────────────────────────────────────────────── */
#hero-text {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 48px;
    pointer-events: none;
    text-align: center;
}

#hero-title {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 4vw, 3.2rem);
    font-weight: 300;
    letter-spacing: 0.18em;
    color: var(--cream);
    text-shadow: 0 2px 24px rgba(20,18,14,0.6);
    opacity: 0;
    transform: translateY(-12px);
    animation: fadeDown 2s ease forwards 0.8s;
}

#hero-tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.85rem, 1.8vw, 1.1rem);
    font-weight: 300;
    letter-spacing: 0.08em;
    color: var(--gold-pale);
    margin-top: 10px;
    text-shadow: 0 1px 12px rgba(20,18,14,0.5);
    opacity: 0;
    animation: fadeDown 2s ease forwards 1.6s;
}

#hero-instruction {
    margin-top: 24px;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: fadeDown 2s ease forwards 2.4s;
    pointer-events: none;
}

/* ─── Leaflet Custom Styling ─────────────────────────────────────────────── */
.leaflet-tile-pane {
    filter: sepia(0.35) saturate(0.6) brightness(0.88) contrast(0.92) hue-rotate(8deg);
}

.leaflet-container {
    background: var(--ink);
    font-family: var(--sans);
}

/* Remove default Leaflet controls */
.leaflet-control-attribution { display: none !important; }
.leaflet-control-zoom { display: none !important; }

/* ─── Custom Map Markers ─────────────────────────────────────────────────── */
.memory-marker {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--gold);
    border: 2.5px solid rgba(255, 240, 200, 0.85);
    box-shadow: 0 0 8px rgba(200, 169, 106, 0.7), 0 2px 6px rgba(0,0,0,0.35);
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.memory-marker::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    background: rgba(200, 169, 106, 0.28);
    animation: markerPulse 2.8s ease-in-out infinite;
}

.memory-marker::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 50%;
    background: rgba(200, 169, 106, 0.10);
    animation: markerPulse 2.8s ease-in-out infinite 0.7s;
}

.memory-marker:hover {
    transform: scale(1.5);
    box-shadow: 0 0 16px rgba(200, 169, 106, 0.9), 0 2px 8px rgba(0,0,0,0.4);
}

@keyframes markerPulse {
    0%, 100% { transform: scale(0.85); opacity: 0.7; }
    50%       { transform: scale(1.4); opacity: 0.15; }
}

/* ─── Marker Tooltip ─────────────────────────────────────────────────────── */
.marker-tooltip {
    background: rgba(30, 27, 22, 0.88) !important;
    border: 1px solid rgba(200, 169, 106, 0.25) !important;
    border-radius: 2px !important;
    color: var(--cream) !important;
    font-family: var(--serif) !important;
    font-size: 0.85rem !important;
    font-weight: 400 !important;
    letter-spacing: 0.06em !important;
    padding: 6px 12px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.4) !important;
    backdrop-filter: blur(8px) !important;
    pointer-events: none !important;
}

.marker-tooltip::before { display: none !important; }

/* ─── Memory Count Badge on Markers ─────────────────────────────────────── */
.marker-count {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--sans);
    font-size: 0.6rem;
    color: var(--muted);
    letter-spacing: 0.1em;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ─── Location Page Layout ───────────────────────────────────────────────── */
.location-page {
    background: var(--ink);
    min-height: 100vh;
    position: relative;
}

/* Pre-playback intro screen */
.location-intro, #location-intro {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--ink);
    padding: 40px 24px;
    text-align: center;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.location-intro.hidden, #location-intro.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.location-name-display {
    font-family: var(--serif);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.4s ease forwards 0.4s;
}

.location-description-display {
    font-family: var(--serif);
    font-style: italic;
    font-size: clamp(0.9rem, 2vw, 1.15rem);
    color: var(--muted);
    max-width: 480px;
    margin-bottom: 60px;
    line-height: 1.8;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 0.9s;
}

.memory-count-display {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 1.3s;
}

.begin-btn {
    display: inline-block;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--ink);
    background: var(--gold);
    border: none;
    padding: 14px 48px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: fadeUp 1.4s ease forwards 1.8s;
}

.begin-btn:hover {
    background: var(--gold-pale);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(200,169,106,0.25);
}

.back-link {
    position: absolute;
    top: 28px;
    left: 32px;
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.back-link:hover { color: var(--cream); }
.back-link::before { content: '← '; }

/* ─── Playback Experience ────────────────────────────────────────────────── */
#playback-screen {
    position: fixed;
    inset: 0;
    background: var(--ink);
    z-index: 50;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#playback-screen.active {
    opacity: 1;
    visibility: visible;
}

/* Ghost image layer — fullscreen behind everything */
#ghost-image-layer {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.ghost-image {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    filter: sepia(0.6) contrast(0.55) brightness(0.45) blur(4px);
    transition: opacity 4s ease;
    transform: scale(1.05);
    mix-blend-mode: luminosity;
}

.ghost-image.visible { opacity: 0.28; }

/* Memory stage — absolute positioned cards drift across this */
#memory-stage {
    position: absolute;
    inset: 0;
    bottom: 80px;
    z-index: 5;
    overflow: hidden;
    pointer-events: none;
}

/* Individual memory card — position set by JS */
.memory-card {
    position: absolute;
    pointer-events: none;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ─── Timeline Bar ───────────────────────────────────────────────────────── */
#pulse-container {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 72px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 0 0 28px 0;
    pointer-events: none;
}

#timeline-track {
    position: relative;
    width: 100%;
    height: 1px;
    background: rgba(200,169,106,0.15);
}

#timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 1px;
    width: 0%;
    background: linear-gradient(to right, transparent, rgba(200,169,106,0.5), var(--gold));
    transition: width 12s linear;
}

#timeline-flash {
    position: absolute;
    top: -1px;
    left: 0;
    height: 3px;
    width: 60px;
    background: linear-gradient(to right, transparent, rgba(255,220,120,0.9), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 2px;
}

#timeline-dot {
    position: absolute;
    top: -3px;
    left: 0%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 8px rgba(200,169,106,0.8);
    opacity: 0;
    transition: left 12s linear, opacity 0.4s ease;
    transform: translateX(-50%);
}

#pulse-author {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    color: var(--muted);
    opacity: 0;
    transition: opacity 0.8s ease;
    text-align: left;
    padding: 0 32px;
    margin-top: 10px;
    line-height: 1.4;
    pointer-events: none;
    white-space: nowrap;
}

#pulse-author.visible { opacity: 1; }
#pulse-name { color: var(--cream); font-weight: 400; }
#pulse-year { color: var(--gold); font-size: 0.75rem; margin-left: 10px; letter-spacing: 0.15em; }

/* ─── Playback Controls ──────────────────────────────────────────────────── */
#playback-controls {
    position: fixed;
    top: 24px;
    right: 28px;
    z-index: 60;
    display: flex;
    gap: 14px;
    align-items: center;
    opacity: 0;
    transition: opacity 0.6s ease;
}

#playback-controls.visible { opacity: 1; }

.ctrl-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 6px 0;
    transition: color 0.3s ease;
    line-height: 1;
}

.ctrl-btn:hover { color: var(--cream); }

.ctrl-divider {
    width: 1px;
    height: 14px;
    background: rgba(143,133,119,0.3);
}

#back-to-map-btn {
    font-family: var(--sans);
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 6px 0;
}

#back-to-map-btn:hover { color: var(--cream); }

/* ─── Location Name Overlay during Playback ──────────────────────────────── */
#playback-location-name {
    position: fixed;
    top: 28px;
    left: 32px;
    z-index: 60;
    font-family: var(--serif);
    font-size: 0.88rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--muted);
    opacity: 0;
    transition: opacity 1s ease;
}

#playback-location-name.visible { opacity: 1; }

/* ─── Whisper Mode Overlay ───────────────────────────────────────────────── */
#whisper-overlay {
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(20, 18, 14, 0);
    pointer-events: none;
    transition: background 3s ease;
}
#whisper-overlay.active { background: rgba(20, 18, 14, 0.45); }

/* ─── Submit Page ────────────────────────────────────────────────────────── */
.content-page {
    min-height: 100vh;
    background: var(--ink);
    padding: 0;
}

.content-header {
    padding: 80px 24px 48px;
    text-align: center;
    border-bottom: 1px solid rgba(143,133,119,0.12);
}

.content-header h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 16px;
}

.content-header p {
    font-family: var(--serif);
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
}

.content-body {
    max-width: 680px;
    margin: 0 auto;
    padding: 60px 24px 100px;
}

/* ─── Form Styles ────────────────────────────────────────────────────────── */
.form-group {
    margin-bottom: 36px;
}

.form-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.7rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: rgba(255,250,241,0.04);
    border: 1px solid rgba(143,133,119,0.2);
    border-radius: 0;
    color: var(--cream);
    font-family: var(--serif);
    font-size: 1rem;
    font-weight: 300;
    padding: 12px 16px;
    transition: border-color 0.3s ease, background 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: rgba(200,169,106,0.5);
    background: rgba(255,250,241,0.07);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.8;
}

.form-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%238f8577'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.form-select option {
    background: #2f2b26;
    color: var(--cream);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 7px;
    font-family: var(--sans);
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.form-checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--gold);
    cursor: pointer;
    flex-shrink: 0;
}

.form-checkbox-group span {
    font-family: var(--serif);
    font-size: 0.92rem;
    color: var(--muted);
}

.form-submit {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    color: var(--ink);
    background: var(--gold);
    border: none;
    padding: 14px 52px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.form-submit:hover {
    background: var(--gold-pale);
    transform: translateY(-2px);
}

/* Honeypot */
.hp-field { display: none !important; }

/* ─── Site Navigation ────────────────────────────────────────────────────── */
.site-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 80;
    display: flex;
    justify-content: center;
    gap: 36px;
    padding: 18px 24px 22px;
    background: linear-gradient(to top, rgba(20,18,14,0.85) 0%, transparent 100%);
    pointer-events: none;
}

.site-nav a {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(244, 239, 230, 0.82);
    text-decoration: none;
    pointer-events: all;
    transition: color 0.3s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,0.9), 0 0 12px rgba(0,0,0,0.6);
}

.site-nav a:hover { color: var(--cream); }

/* ─── About Page ─────────────────────────────────────────────────────────── */
.about-plaque {
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.about-plaque h2 {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.1em;
    margin-bottom: 28px;
    line-height: 1.2;
}

.about-plaque p {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 300;
    line-height: 1.95;
    color: rgba(244,239,230,0.72);
    margin-bottom: 24px;
}

.about-plaque .rule {
    width: 40px;
    height: 1px;
    background: var(--gold);
    opacity: 0.4;
    margin: 48px 0;
}

.about-plaque .creator-name {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--cream);
    letter-spacing: 0.06em;
    margin-bottom: 12px;
}

.about-plaque .contact-link {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.3s ease;
}

.about-plaque .contact-link:hover { color: var(--gold-pale); }

.about-plaque .other-projects a {
    display: block;
    font-family: var(--serif);
    font-size: 0.92rem;
    color: var(--muted);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.about-plaque .other-projects a:hover { color: var(--cream); }

/* ─── Thank You Page ─────────────────────────────────────────────────────── */
.thankyou-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
}

.thankyou-wrap h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.thankyou-wrap p {
    font-family: var(--serif);
    font-style: italic;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 400px;
    margin-bottom: 48px;
    line-height: 1.8;
}

.thankyou-wrap a {
    font-family: var(--sans);
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.3s ease;
}

.thankyou-wrap a:hover { color: var(--gold-pale); }

/* ─── Admin Styles ───────────────────────────────────────────────────────── */
.admin-body {
    background: #1a1815;
    color: var(--cream);
    font-family: var(--sans);
    min-height: 100vh;
}

.admin-nav {
    background: rgba(20,18,14,0.95);
    border-bottom: 1px solid rgba(143,133,119,0.15);
    padding: 14px 28px;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.admin-nav .admin-brand {
    font-family: var(--serif);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    text-decoration: none;
    flex-shrink: 0;
    margin-right: 16px;
}

.admin-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.admin-nav a:hover { color: var(--cream); }

.admin-nav .admin-logout {
    margin-left: auto;
    color: #c97070;
}

.admin-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.admin-page-title {
    font-family: var(--serif);
    font-size: 1.8rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    color: var(--cream);
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(143,133,119,0.15);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.admin-table th {
    text-align: left;
    font-family: var(--sans);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    padding: 10px 12px;
    border-bottom: 1px solid rgba(143,133,119,0.15);
    font-weight: 400;
}

.admin-table td {
    padding: 12px 12px;
    border-bottom: 1px solid rgba(143,133,119,0.08);
    vertical-align: top;
    color: rgba(244,239,230,0.8);
    font-size: 0.82rem;
}

.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.badge {
    display: inline-block;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
}

.badge-pending  { background: rgba(200,169,106,0.2); color: var(--gold); }
.badge-approved { background: rgba(184,196,173,0.2); color: var(--sage); }
.badge-rejected { background: rgba(201,112,112,0.15); color: #c97070; }

.admin-action-btn {
    display: inline-block;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 10px;
    border: 1px solid;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    background: none;
    font-family: var(--sans);
    margin-right: 4px;
}

.btn-approve { border-color: var(--sage); color: var(--sage); }
.btn-approve:hover { background: var(--sage); color: var(--ink); }
.btn-reject  { border-color: #c97070; color: #c97070; }
.btn-reject:hover  { background: #c97070; color: var(--ink); }
.btn-delete  { border-color: rgba(201,112,112,0.5); color: rgba(201,112,112,0.7); }
.btn-delete:hover  { background: rgba(201,112,112,0.8); color: var(--ink); }
.btn-edit    { border-color: var(--muted); color: var(--muted); }
.btn-edit:hover    { background: var(--muted); color: var(--ink); }

.admin-form .form-group { margin-bottom: 24px; }
.admin-form .form-label { color: var(--muted); }
.admin-form .form-input,
.admin-form .form-select,
.admin-form .form-textarea {
    background: rgba(255,255,255,0.05);
    font-size: 0.88rem;
}

.admin-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(143,133,119,0.12);
    padding: 24px 28px;
    margin-bottom: 28px;
}

.admin-stat {
    text-align: center;
}

.admin-stat .stat-number {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--gold);
    display: block;
}

.admin-stat .stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.msg-success { color: var(--sage); font-size: 0.85rem; margin-bottom: 20px; padding: 10px 14px; border: 1px solid rgba(184,196,173,0.3); background: rgba(184,196,173,0.08); }
.msg-error   { color: #c97070; font-size: 0.85rem; margin-bottom: 20px; padding: 10px 14px; border: 1px solid rgba(201,112,112,0.3); background: rgba(201,112,112,0.08); }

/* ─── Admin Login Page ───────────────────────────────────────────────────── */
.admin-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.admin-login-box {
    width: 100%;
    max-width: 360px;
}

.admin-login-box h1 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--cream);
    text-align: center;
    margin-bottom: 8px;
}

.admin-login-box .sub {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 40px;
}

/* ─── Utility / Animation ────────────────────────────────────────────────── */
@keyframes fadeDown {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ─── Scrollbar ──────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: rgba(143,133,119,0.4); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
    #hero-title  { font-size: 1.6rem; letter-spacing: 0.12em; }
    .content-body { padding: 40px 18px 80px; }
    .about-plaque { padding: 60px 18px 80px; }
    .site-nav { gap: 20px; }
    .admin-wrap { padding: 24px 14px 60px; }
    .admin-table { font-size: 0.78rem; }
    .admin-grid { grid-template-columns: repeat(2, 1fr); }
}