:root {
  --ink: #191916;
  --paper: #f4f1ea;
  --paper-2: #e7e2d8;
  --muted: #6e6a62;
  --line: rgba(25, 25, 22, .16);
  --accent: #b84a2f;
  --safe: #2f7454;
  --white: #fffdfa;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: SUIT, Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
.mono { font: 500 11px/1.35 "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.topbar { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 28px clamp(22px, 5vw, 76px); color: white; font: 500 11px/1 "DM Mono", monospace; letter-spacing: .08em; }
.brand, .topbar a { color: inherit; text-decoration: none; }
.brand { letter-spacing: .13em; }
.topbar nav { display: flex; align-items: center; gap: 25px; }
.topbar nav a { color: rgba(255,255,255,.82); }
.account-link { border: 1px solid rgba(255,255,255,.48); border-radius: 999px; padding: 8px 12px; }
.hero { position: relative; min-height: 100svh; overflow: hidden; background: #1c1c19; color: white; }
.hero-slide { position: absolute; inset: 0; opacity: 0; background: center/cover no-repeat; transform: scale(1.04); transition: opacity 1.5s ease, transform 9s ease; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(0,0,0,.58), rgba(0,0,0,.08) 64%, rgba(0,0,0,.25)), linear-gradient(0deg, rgba(0,0,0,.46), transparent 56%); }
.hero-copy { position: relative; z-index: 2; min-height: calc(100svh - 82px); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(80px,17vh,170px) clamp(22px,10vw,150px) 64px; }
.eyebrow { font: 500 11px/1.35 "DM Mono", monospace; letter-spacing: .11em; text-transform: uppercase; }
h1 { max-width: 780px; margin: 14px 0 0; font: 500 clamp(50px, 8.5vw, 126px)/.9 "Playfair Display", serif; letter-spacing: -.055em; }
.hero-bottom { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.hero-description { max-width: 340px; color: rgba(255,255,255,.84); font-size: 15px; line-height: 1.7; }
.scroll-cue { display: inline-flex; align-items: center; gap: 9px; margin-top: 19px; color: white; text-decoration: none; font: 11px "DM Mono", monospace; letter-spacing: .08em; }
.scroll-cue::before { content: "↓"; font-size: 17px; }
.counter { color: rgba(255,255,255,.88); text-align: right; font: 12px "DM Mono", monospace; letter-spacing: .08em; }
.counter span:first-child { color: rgba(255,255,255,.65); font-size: 10px; text-transform: uppercase; }
main { padding: clamp(72px,11vw,155px) clamp(22px,5vw,76px) 36px; }
.intro { display: grid; grid-template-columns: minmax(180px,1fr) 2fr; gap: 34px; padding-bottom: 72px; }
.intro h2, .archive-end h2 { margin: 0; font: 500 clamp(34px,4vw,58px)/1.04 "Playfair Display", serif; letter-spacing: -.045em; }
.intro p { max-width: 560px; margin: 6px 0 0; font-size: 17px; line-height: 1.8; }
.tabs { position: sticky; z-index: 5; top: 0; display: flex; gap: 8px; overflow: auto; margin: 0 -6px 38px; padding: 15px 6px; border-bottom: 1px solid var(--line); background: rgba(244,241,234,.92); backdrop-filter: blur(12px); }
.tab { flex: 0 0 auto; border: 0; border-radius: 999px; padding: 10px 15px; color: var(--muted); background: transparent; font: 500 12px "DM Mono", monospace; }
.tab:hover, .tab[aria-selected="true"] { color: var(--paper); background: var(--ink); }
.gallery { columns: 3 280px; column-gap: 14px; }
.photo { position: relative; display: block; width: 100%; break-inside: avoid; overflow: hidden; margin: 0 0 14px; border: 0; padding: 0; background: var(--paper-2); text-align: left; cursor: zoom-in; }
.photo img { display: block; width: 100%; min-height: 210px; object-fit: cover; filter: saturate(.9); transition: transform .6s cubic-bezier(.2,.7,.2,1), filter .4s; }
.photo:hover img, .photo:focus-visible img { filter: saturate(1.08); transform: scale(1.035); }
.photo-meta { position: absolute; inset: auto 0 0; padding: 48px 15px 13px; color: white; background: linear-gradient(transparent, rgba(0,0,0,.7)); opacity: 0; transition: opacity .25s; }
.photo:hover .photo-meta, .photo:focus-visible .photo-meta { opacity: 1; }
.photo-meta strong { display: block; font-size: 13px; font-weight: 500; }
.photo-meta span { font: 10px "DM Mono", monospace; opacity: .82; }
.empty { padding: 80px 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: 15px; }
.archive-end { display: flex; justify-content: space-between; gap: 24px; margin-top: 65px; padding: 80px 0 30px; border-top: 1px solid var(--line); }
.archive-end p { max-width: 320px; margin: 5px 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 24px clamp(22px,5vw,76px); border-top: 1px solid var(--line); color: var(--muted); font: 11px "DM Mono", monospace; }
.lightbox { position: fixed; z-index: 20; inset: 0; width: 100%; max-width: none; height: 100%; border: 0; padding: 24px; color: white; background: rgba(10,10,9,.97); }
.lightbox::backdrop { background: rgba(10,10,9,.97); }
.lightbox figure { width: min(1080px, 100%); height: min(80svh,820px); margin: auto; display: flex; flex-direction: column; align-items: center; }
.lightbox-image { width: 100%; min-height: 0; flex: 1; object-fit: contain; }
.lightbox figcaption { display: flex; justify-content: space-between; width: 100%; padding-top: 14px; font-size: 13px; }
.lightbox figcaption span { color: rgba(255,255,255,.62); font: 11px "DM Mono", monospace; }
.close, .arrow { position: fixed; z-index: 2; border: 0; color: white; background: transparent; }
.close { top: 20px; right: 25px; font: 28px/1 Arial; }
.arrow { top: 50%; padding: 18px; font-size: 37px; transform: translateY(-50%); }
.prev { left: 10px; }.next { right: 10px; }

/* Account */
.account-page { min-height: 100svh; background: #20201d; color: var(--white); }
.account-page .topbar { background: #20201d; }
.account-page .topbar nav a { color: rgba(255,255,255,.72); }
.account-shell { width: min(1280px, calc(100% - 44px)); margin: 0 auto; padding: 44px 0 80px; }
.login-wrap { min-height: calc(100svh - 84px); display: grid; place-items: center; }
.login-card { width: min(440px, 100%); padding: 32px; border: 1px solid rgba(255,255,255,.18); background: #292925; box-shadow: 0 22px 80px rgba(0,0,0,.22); }
.login-card h1 { margin: 18px 0 10px; font-size: clamp(42px, 7vw, 62px); }
.login-card p { margin: 0 0 28px; color: rgba(255,255,255,.68); line-height: 1.7; }
.field { display: grid; gap: 8px; margin-bottom: 17px; }
.field label { color: rgba(255,255,255,.64); font: 11px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; }
.field input, .field select, .photo-editor input, .section-create input { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: 0; padding: 13px 12px; color: white; background: rgba(255,255,255,.06); outline: none; }
.field input:focus, .photo-editor input:focus, .section-create input:focus { border-color: var(--accent); }
.primary { border: 0; padding: 13px 16px; color: var(--white); background: var(--accent); font-weight: 600; }
.secondary, .text-button { border: 1px solid rgba(255,255,255,.24); padding: 10px 12px; color: var(--white); background: transparent; }
.text-button { border: 0; padding: 6px 0; color: rgba(255,255,255,.72); text-align: left; }
.danger { color: #ff9780; }
.notice { min-height: 20px; margin: 14px 0 0; color: #ffaf96; font-size: 13px; line-height: 1.5; }
.notice.success { color: #9ee3bd; }
.admin-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 34px; border-bottom: 1px solid rgba(255,255,255,.15); }
.admin-header h1 { margin: 10px 0 0; font-size: clamp(42px,7vw,74px); }
.admin-header p { margin: 8px 0 0; color: rgba(255,255,255,.62); }
.admin-grid { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 22px; margin-top: 25px; }
.panel { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.035); }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 19px; border-bottom: 1px solid rgba(255,255,255,.15); }
.panel-title h2 { margin: 0; font: 500 22px "Playfair Display", serif; }
.panel-body { padding: 19px; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.stat { padding: 13px; background: rgba(255,255,255,.06); }
.stat strong { display: block; font: 500 26px "Playfair Display", serif; }.stat span { color: rgba(255,255,255,.58); font-size: 11px; }
.section-list { display: grid; gap: 4px; margin: 0 0 18px; }
.section-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.section-row span { font-size: 14px; }.section-row small { color: rgba(255,255,255,.48); font: 10px "DM Mono", monospace; }
.section-actions { display: flex; gap: 9px; }.section-actions button { border: 0; padding: 0; color: rgba(255,255,255,.65); background: transparent; font: 11px "DM Mono", monospace; }
.section-create { display: grid; grid-template-columns: 1fr auto; gap: 8px; }.section-create input { padding: 10px; }
.dropzone { display: grid; place-items: center; min-height: 165px; border: 1px dashed rgba(255,255,255,.35); padding: 20px; text-align: center; transition: .2s ease; }
.dropzone.is-dragging { border-color: var(--accent); background: rgba(184,74,47,.12); }.dropzone strong { font-size: 15px; }.dropzone p { margin: 7px 0 14px; color: rgba(255,255,255,.58); font-size: 13px; line-height: 1.5; }
.upload-controls { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 12px; }.upload-controls select { border: 1px solid rgba(255,255,255,.2); padding: 10px; color: white; background: #292925; }
.photo-admin-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(220px,1fr)); gap: 12px; }
.admin-photo { overflow: hidden; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.045); }
.admin-photo img { display: block; aspect-ratio: 4/3; width: 100%; object-fit: cover; background: #151513; }
.photo-editor { display: grid; gap: 8px; padding: 12px; }.photo-editor input { padding: 9px; font-size: 13px; }.photo-editor select { width: 100%; border: 1px solid rgba(255,255,255,.2); padding: 9px; color: white; background: #292925; font-size: 13px; }
.photo-tools { display: flex; justify-content: space-between; gap: 8px; align-items: center; }.photo-tools .secondary { padding: 8px; font-size: 11px; }.status { display: inline-flex; align-items: center; gap: 6px; color: rgba(255,255,255,.58); font: 10px "DM Mono", monospace; text-transform: uppercase; }.status::before { width: 7px; height: 7px; border-radius: 50%; content: ""; background: #777; }.status.live::before { background: #72ca9a; }
[hidden] { display: none !important; }
@media (max-width: 760px) { .topbar { padding-top: 20px; }.topbar nav { gap: 14px; }.topbar nav a:not(.account-link):last-of-type { display: none; }.hero-copy { padding-top: 98px; }.hero-bottom,.intro,.archive-end { display: block; }.counter { display: none; }.intro p { margin-top: 22px; }.gallery { columns: 2 145px; column-gap: 8px; }.photo { margin-bottom: 8px; }.photo-meta { display: none; }.arrow { display: none; } footer { display: block; line-height: 1.9; }.admin-grid { grid-template-columns: 1fr; }.admin-header { align-items: start; flex-direction: column; }.account-shell { width: min(100% - 30px, 1280px); }.stats { grid-template-columns: repeat(3,1fr); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; }.hero-slide,.photo img { transition: none; } }
