:root {
    color-scheme: light;
    --ink: #191817;
    --muted: #706b64;
    --paper: #f6f3ee;
    --gold: #b08a45;
    --line: rgba(25, 24, 23, 0.14);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: Georgia, 'Times New Roman', serif;
}

.welcome {
    min-height: 100vh;
    display: grid;
    place-content: center;
    gap: 1.25rem;
    padding: 2rem;
    text-align: center;
    background: radial-gradient(circle at 50% 30%, #fffdf9 0, var(--paper) 48%, #ebe4d9 100%);
}

.eyebrow {
    margin: 0;
    color: var(--gold);
    font: 700 0.75rem/1.2 Arial, sans-serif;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 12vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
}

h1 span { color: var(--gold); }

.intro {
    max-width: 34rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
}

.actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.button {
    display: inline-block;
    padding: 0.85rem 1.25rem;
    border: 1px solid var(--ink);
    color: var(--ink);
    font: 700 0.75rem/1 Arial, sans-serif;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.button-primary { color: #fff; background: var(--ink); }
.button-secondary { background: transparent; }
.button:hover { border-color: var(--gold); }

.note {
    margin: 1.5rem auto 0;
    color: var(--muted);
    font: 0.85rem/1.5 Arial, sans-serif;
}

.page-shell {
    width: min(100% - 2rem, 34rem);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    margin: 0 auto;
    padding: 3rem 0;
}

.page-with-header { justify-content: flex-start; padding-top: 0; }
.page-shell h1 { font-size: clamp(2.5rem, 12vw, 5rem); }

.back-link {
    align-self: flex-start;
    color: var(--muted);
    font: 0.75rem/1 Arial, sans-serif;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.back-link:hover, .form-footer a { color: var(--gold); }
.top-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem; }
.site-header { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; margin-bottom: 2rem; padding: 1rem 0; border-bottom: 1px solid var(--line); background: rgba(246, 243, 238, 0.96); }
.brand-mark { color: var(--ink); font-size: 1.1rem; text-decoration: none; }
.brand-mark span { color: var(--gold); }
.site-menu { position: relative; z-index: 2; }
.site-menu summary { display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer; list-style: none; color: var(--ink); font: 700 0.7rem/1 Arial, sans-serif; letter-spacing: 0.1em; text-transform: uppercase; }
.site-menu summary::-webkit-details-marker { display: none; }
.menu-icon { display: grid; gap: 3px; width: 1.1rem; }
.menu-icon i { display: block; height: 2px; background: var(--gold); transition: transform 160ms ease, opacity 160ms ease; }
.site-menu[open] .menu-icon i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.site-menu[open] .menu-icon i:nth-child(2) { opacity: 0; }
.site-menu[open] .menu-icon i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.site-menu nav { position: absolute; right: 0; display: grid; min-width: 13rem; gap: 0.25rem; margin-top: 0.75rem; padding: 0.55rem; border: 1px solid rgba(176, 138, 69, 0.35); background: rgba(255, 253, 249, 0.98); box-shadow: 0 1rem 2rem rgba(25, 24, 23, 0.14); }
.site-menu nav a { padding: 0.7rem 0.75rem; color: var(--ink); font: 700 0.72rem/1.2 Arial, sans-serif; text-decoration: none; }
.site-menu nav a:hover, .site-menu nav a:focus-visible { color: var(--gold); background: rgba(176, 138, 69, 0.12); outline: none; }
.nav-button, .inline-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.25rem 0;
    border-bottom: 2px solid var(--gold);
    color: var(--ink);
    background: transparent;
    font: 700 0.68rem/1 Arial, sans-serif;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.nav-button:hover, .inline-button:hover { color: var(--gold); background: rgba(176, 138, 69, 0.14); }
.inline-button { padding: 0.2rem 0.1rem; }

.form-card {
    display: grid;
    gap: 0.65rem;
    margin-top: 0.75rem;
    padding: 1.25rem;
    border: 1px solid var(--line);
    background: rgba(255, 253, 249, 0.6);
}

.form-card label {
    margin-top: 0.35rem;
    font: 700 0.75rem/1.2 Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.form-card input {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.75rem;
    border: 1px solid var(--line);
    color: var(--ink);
    background: #fffdf9;
    font: 1rem/1.2 Arial, sans-serif;
}

.form-card input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.check-label { display: flex; align-items: center; gap: 0.5rem; color: var(--muted); font: 0.85rem/1.3 Arial, sans-serif !important; letter-spacing: 0 !important; text-transform: none !important; }
.check-label input { width: 1rem; min-height: 1rem; accent-color: var(--gold); }
.form-footer { margin: 0; color: var(--muted); font: 0.9rem/1.5 Arial, sans-serif; }
.form-footer a { font-weight: 700; }

.notice {
    padding: 0.9rem 1rem;
    border-left: 3px solid var(--gold);
    background: rgba(255, 253, 249, 0.7);
    font: 0.9rem/1.5 Arial, sans-serif;
}

.notice-error { border-left-color: #9f4b3f; }
.notice-warning { border-left-color: var(--gold); }
.approval-code { display: inline-block; margin-left: 0.25rem; color: var(--gold); letter-spacing: 0.12em; }
.dashboard-links { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.gallery-shell { width: min(100% - 2rem, 60rem); justify-content: flex-start; }
.upload-form { max-width: 34rem; }
.upload-form input[type="file"] { padding: 0.65rem; }
.form-hint { color: var(--muted); font: 0.75rem/1.4 Arial, sans-serif; }
.upload-form button:disabled { cursor: not-allowed; opacity: 0.45; }
.form-card textarea { width: 100%; resize: vertical; padding: 0.75rem; border: 1px solid var(--line); color: var(--ink); background: #fffdf9; font: 1rem/1.5 Arial, sans-serif; }
.guestbook-list { display: grid; gap: 1rem; margin-top: 1.5rem; }
.guestbook-entry { padding: 1rem; border-left: 2px solid var(--gold); background: rgba(255, 253, 249, 0.65); }
.guestbook-entry p { margin: 0; white-space: pre-wrap; line-height: 1.6; }
.guestbook-entry footer { margin-top: 0.75rem; color: var(--muted); font: 0.72rem/1.3 Arial, sans-serif; }
.like-form { display: flex; justify-content: center; margin-top: 0.65rem; }
.like-button { display: inline-flex; align-items: center; gap: 0.35rem; border: 0; padding: 0.35rem 0.55rem; color: var(--muted); background: transparent; font: 0.8rem/1 Arial, sans-serif; cursor: pointer; }
.like-button span { font-size: 1.75rem; line-height: 0.9; }
.like-button:hover, .like-button.is-liked { color: #a34242; }
.like-button:hover span, .like-button.is-liked span { color: #a34242; }
.message-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; margin-top: 0.75rem; }
.message-admin-row small { color: var(--muted); font: 0.72rem/1.3 Arial, sans-serif; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.photo-card { margin: 0; overflow: hidden; border: 1px solid var(--line); background: #fffdf9; }
.photo-card img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.likeable-photo { cursor: pointer; }
.photo-card figcaption { padding: 0.65rem 0.75rem; overflow-wrap: anywhere; color: var(--muted); font: 0.72rem/1.3 Arial, sans-serif; }
.photo-card .like-form { padding: 0 0.75rem 0.65rem; }
.photo-admin-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.65rem 0.75rem; }
.photo-admin-row small { overflow-wrap: anywhere; color: var(--muted); font: 0.72rem/1.3 Arial, sans-serif; }
.admin-shell { width: min(100% - 2rem, 48rem); justify-content: flex-start; }
.admin-section { margin-top: 1rem; }
.admin-section h2 { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 0.75rem; font: 700 1rem/1.2 Arial, sans-serif; letter-spacing: 0.05em; text-transform: uppercase; }
.admin-section h2 span { color: var(--gold); font-size: 0.85rem; }
.user-list { display: grid; gap: 0.65rem; }
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem; border: 1px solid var(--line); background: rgba(255, 253, 249, 0.65); }
.user-row strong, .user-row small { display: block; overflow-wrap: anywhere; }
.user-row strong { font: 0.95rem/1.4 Arial, sans-serif; }
.user-row small { margin-top: 0.25rem; color: var(--muted); font: 0.75rem/1.3 Arial, sans-serif; }
.row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; }
.row-actions .button, .user-row > .button, .user-row form .button { padding: 0.65rem 0.8rem; font-size: 0.68rem; }
.empty-state { color: var(--muted); font: 0.9rem/1.5 Arial, sans-serif; }
.member-home { width: min(100% - 2rem, 76rem); min-height: 100vh; margin: 0 auto; padding: 0; }
.member-hero { margin-top: 0.5rem; }
.carousel { position: relative; overflow: hidden; height: clamp(22rem, 52vh, 34rem); max-height: 34rem; background: #262321; }
.carousel-track { position: relative; width: 100%; height: 100%; }
.carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 500ms ease; }
.carousel-slide.is-active { opacity: 1; z-index: 1; }
.carousel-slide::after { position: absolute; inset: 0; content: ''; background: linear-gradient(90deg, rgba(25, 24, 23, 0.72), rgba(25, 24, 23, 0.12) 70%); }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.carousel-slide.is-active img { animation: ken-burns 7s ease-out both; }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.08); } }
.carousel-caption { position: absolute; z-index: 2; top: 50%; left: clamp(1.5rem, 6vw, 5rem); max-width: 34rem; transform: translateY(-50%); color: #fff; }
.carousel-caption h1, .carousel-caption h2 { margin: 0.65rem 0 0.9rem; font-size: clamp(2.5rem, 7vw, 6.5rem); font-weight: 400; line-height: 0.98; }
.carousel-caption h2 { font-size: clamp(2rem, 5vw, 4.5rem); }
.carousel-caption p:not(.eyebrow) { max-width: 28rem; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.5; }
.carousel-caption .eyebrow { color: #e5c47c; }
.carousel-caption-secondary { top: auto; right: 1.5rem; bottom: 2.5rem; left: 1.5rem; max-width: none; text-align: center; transform: none; }
.carousel-caption-secondary h2 { margin-bottom: 1rem; color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55); }
.carousel-caption-secondary .button { margin: 0 auto; }
.carousel-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.button-light, .button-gold { border-color: #fff; color: var(--ink); background: #fff; }
.button-gold { border-color: var(--gold); color: #fff; background: var(--gold); }
.carousel-control { position: absolute; z-index: 3; top: 50%; width: 2.7rem; height: 2.7rem; border: 1px solid rgba(255,255,255,0.6); color: #fff; background: rgba(25,24,23,0.28); font: 2rem/1 Georgia, serif; transform: translateY(-50%); cursor: pointer; }
.carousel-prev { left: 1rem; }.carousel-next { right: 1rem; }
.carousel-dots { position: absolute; z-index: 3; right: 1.5rem; bottom: 1.25rem; display: flex; gap: 0.45rem; }
.carousel-dots button { width: 2rem; height: 0.2rem; border: 0; background: rgba(255,255,255,0.5); cursor: pointer; }.carousel-dots button.is-active { background: var(--gold); }
.welcome-copy { max-width: 42rem; padding: clamp(3rem, 7vw, 6rem) 0; }.welcome-copy h2 { margin: 0.5rem 0 1rem; font-size: clamp(2rem, 5vw, 4rem); font-weight: 400; }.welcome-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.home-previews { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.home-preview { min-width: 0; padding: 1.25rem; border-top: 2px solid var(--gold); background: rgba(255, 253, 249, 0.62); }
.preview-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.preview-heading h2 { margin: 0.35rem 0 0; font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 400; }
.home-message-list { display: grid; gap: 0.75rem; }
.home-message-list blockquote { margin: 0; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.home-message-list blockquote:last-child { border-bottom: 0; }
.home-message-list p { margin: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }
.home-message-list footer { margin-top: 0.45rem; color: var(--muted); font: 0.72rem/1.2 Arial, sans-serif; }
.home-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.65rem; }
.home-photo-grid a { display: block; overflow: hidden; aspect-ratio: 1; background: #e8dfd2; }
.home-photo-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
.home-photo-grid a:hover img { transform: scale(1.04); }
.share-section { max-width: 42rem; padding-bottom: 4rem; }.share-section h2 { font-size: 1.5rem; font-weight: 400; }
.member-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.5rem; padding: 1.25rem 0; border-top: 1px solid var(--line); color: var(--muted); font: 0.75rem/1.4 Arial, sans-serif; }
.member-footer a { padding-bottom: 0.25rem; border-bottom: 2px solid var(--gold); color: var(--ink); text-decoration: none; }
.member-footer a:hover { color: var(--gold); background: rgba(176, 138, 69, 0.12); }
.member-footer span { margin-left: auto; }

@media (max-width: 480px) {
    .welcome { padding: 1.5rem; }
    .actions { align-items: stretch; flex-direction: column; }
    .button { width: 100%; }
    .page-shell { width: min(100% - 1.5rem, 34rem); padding: 2rem 0; }
    .page-shell.page-with-header { padding-top: 0; }
    .user-row { align-items: stretch; flex-direction: column; }
    .row-actions { justify-content: stretch; }
        .landing { display: flex; flex-direction: column; align-items: stretch; gap: 2rem; padding: 1.5rem; }
        .landing-copy { padding-top: 1rem; }
        .landing-copy h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
        .landing-photo { order: -1; width: 100%; height: 54vh; min-height: 20rem; }
        .landing-links { gap: 1rem; }
        .landing-links > span { width: 100%; margin-left: 0; }
    .row-actions form, .row-actions .button, .user-row > form, .user-row > form .button { width: 100%; }
    .member-home { width: min(100% - 1.5rem, 76rem); padding-top: 0; }
    .carousel { height: min(62vh, 28rem); min-height: 24rem; }
    .carousel-slide::after { background: linear-gradient(0deg, rgba(25,24,23,0.78), rgba(25,24,23,0.08) 75%); }
    .carousel-caption { top: auto; bottom: 3.5rem; left: 1.25rem; right: 1.25rem; transform: none; }
    .carousel-caption-secondary { bottom: 3rem; left: 1rem; right: 1rem; }
    .carousel-caption h1 { font-size: clamp(2.6rem, 13vw, 4.5rem); }
    .carousel-control { top: auto; bottom: 0.8rem; width: 2.2rem; height: 2.2rem; transform: none; }
    .carousel-prev { left: 1rem; }.carousel-next { right: 1rem; }
    .carousel-dots { right: 50%; bottom: 1.8rem; transform: translateX(50%); }
    .member-footer span { width: 100%; margin-left: 0; }
    .home-previews { grid-template-columns: 1fr; gap: 1rem; }
}
