:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --ink: #24231f;
  --muted: #85827b;
  --line: #dedbd3;
  --accent: #bd644d;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
body:has(.lightbox[open]) { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: var(--paper); background: var(--accent); }

.site-header { height: 82px; display: flex; align-items: center; justify-content: space-between; padding: 0 7.2%; border-bottom: 1px solid rgba(36,35,31,.1); }
.wordmark { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 600; letter-spacing: -.055em; }
.wordmark-mark { display: grid; width: 32px; height: 32px; flex: 0 0 auto; place-items: center; }
.wordmark-mark img { display: block; width: 100%; height: 100%; }
.wordmark-name > span { color: var(--accent); }
.heading-dot { color: var(--accent); }
.main-nav { display: flex; gap: 42px; margin-left: 58px; font-size: 12px; color: #5f5c56; }
.main-nav a, .header-link { transition: color .2s ease; }
.main-nav a:hover, .header-link:hover { color: var(--accent); }
.header-link { font-size: 12px; }
.header-link span { padding-left: 5px; color: var(--accent); }

.hero { position: relative; min-height: 660px; min-height: min(760px, max(620px, calc(100vh - 82px))); min-height: min(760px, max(620px, calc(100svh - 82px))); overflow: hidden; background: #34372f; color: #fff; }
.hero-slides, .hero-overlay { position: absolute; inset: 0; }
.hero-slide { position: absolute; inset: 0; visibility: hidden; opacity: 0; transform: scale(1.045); transition: opacity 1.2s ease, transform 7s cubic-bezier(.2,.7,.2,1), visibility 1.2s; }
.hero-slide.is-active { z-index: 1; visibility: visible; opacity: 1; transform: scale(1); }
.hero-slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-slide-placeholder { background: radial-gradient(ellipse at 68% 42%, #c28a63 0 12%, transparent 36%), radial-gradient(ellipse at 65% 70%, #4f6253 0 18%, transparent 44%), linear-gradient(130deg, #777461, #c0aa8a 46%, #374239); }
.hero-overlay { z-index: 2; background: linear-gradient(90deg, rgba(24,25,23,.82) 0%, rgba(24,25,23,.62) 38%, rgba(24,25,23,.1) 100%), linear-gradient(0deg, rgba(24,25,23,.58), transparent 35%); }
.hero-inner { position: relative; z-index: 3; display: flex; width: min(100%, 1440px); min-height: inherit; flex-direction: column; justify-content: center; margin: 0 auto; padding: 95px 12.5% 105px; }
.hero-copy { position: relative; max-width: 650px; padding-bottom: 48px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 24px; color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 23px; height: 1px; background: var(--accent); }
.hero h1, .auth-card h1, .admin-heading h1 { margin: 0; font-family: var(--serif); font-size: clamp(52px, 6vw, 82px); font-weight: 400; line-height: 1.08; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(56px, 7vw, 92px); }
.hero h1 em { color: #df9b7f; font-weight: 400; }
.hero-copy .eyebrow { color: rgba(255,255,255,.72); }
.hero-description { max-width: 390px; margin: 25px 0 29px; color: rgba(255,255,255,.78); font-size: 13px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 19px; padding-bottom: 7px; border-bottom: 1px solid #c8c3b9; font-size: 11px; transition: gap .25s ease, border-color .25s ease; }
.text-link:hover { gap: 27px; border-color: var(--accent); }
.text-link span { color: var(--accent); font-size: 15px; }
.hero .text-link { border-color: rgba(255,255,255,.42); }
.hero .text-link:hover { border-color: #df9b7f; }
.hero .text-link span { color: #df9b7f; }
.hero-slide-footer { position: absolute; right: 12.5%; bottom: 70px; left: 12.5%; display: flex; align-items: end; justify-content: space-between; gap: 24px; }
.hero-slide-info { display: grid; gap: 6px; min-width: 0; text-shadow: 0 1px 12px #0008; }
.hero-slide-title { font-family: var(--serif); font-size: 19px; }
.hero-slide-caption { color: rgba(255,255,255,.68); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.carousel-controls { display: flex; align-items: center; gap: 16px; }
.carousel-arrow { display: grid; width: 37px; height: 37px; place-items: center; border: 1px solid rgba(255,255,255,.44); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.carousel-arrow:hover { border-color: #fff; background: #fff; color: var(--ink); }
.carousel-dots { display: flex; align-items: center; gap: 6px; }
.carousel-dot { width: 22px; height: 2px; padding: 0; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: width .3s ease, background .3s ease; }
.carousel-dot.is-active { width: 38px; background: #fff; }
.hero-bottom { position: absolute; right: 12.5%; bottom: 25px; left: 12.5%; display: flex; justify-content: space-between; color: rgba(255,255,255,.6); font-size: 8px; letter-spacing: .12em; }
.hero-bottom a:hover { color: white; }
.hero .reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.hero .reveal:not(.is-visible) { transform: translateY(18px); }

.section-wrap { padding: 115px 12.5% 130px; }
.works-section { background: #eeece6; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 51px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2, .about-copy h2 { margin: 0; font-family: var(--serif); font-size: clamp(44px, 5vw, 62px); font-weight: 400; line-height: 1; letter-spacing: -.05em; }
.section-aside { margin: 0 0 5px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.artwork-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 22px; }
.artwork-card { display: block; min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; }
.artwork-image-wrap { position: relative; display: block; overflow: hidden; aspect-ratio: .82; background: #d9d4c9; }
.artwork-image-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .5s ease; }
.artwork-card:hover .artwork-image-wrap img { transform: scale(1.045); filter: saturate(.88); }
.artwork-open { position: absolute; right: 13px; bottom: 13px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--paper); color: var(--ink); opacity: 0; transform: translateY(5px); transition: opacity .25s ease, transform .25s ease; }
.artwork-card:hover .artwork-open, .artwork-card:focus-visible .artwork-open { opacity: 1; transform: translateY(0); }
.artwork-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 15px; }
.artwork-title { font-family: var(--serif); font-size: 18px; }
.artwork-index { color: #a09b91; font-size: 9px; letter-spacing: .12em; }
.artwork-description { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.empty-gallery { display: grid; min-height: 230px; place-content: center; justify-items: center; border: 1px solid #ddd9d0; text-align: center; }
.empty-mark { color: var(--accent); font-size: 24px; }
.empty-gallery p { margin: 13px 0 5px; font-family: var(--serif); font-size: 22px; }
.empty-gallery > span:last-child { color: var(--muted); font-size: 11px; }

.about-section { display: grid; min-height: 430px; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 10%; padding: 100px 20%; }
.about-mark { color: #e6e1d7; font-family: var(--serif); font-size: clamp(150px, 24vw, 280px); line-height: .8; letter-spacing: -.14em; }
.about-mark span { color: var(--accent); }
.about-copy .eyebrow { margin-bottom: 19px; }
.about-copy h2 { max-width: 640px; font-size: clamp(38px, 4vw, 52px); line-height: 1.2; white-space: pre-line; }
.about-copy > .about-text { max-width: 460px; margin: 18px 0 22px; color: #77746e; font-size: 12px; line-height: 1.9; white-space: pre-line; }
.about-copy h2 em { color: var(--accent); font-weight: 400; }
.site-footer { display: flex; min-height: 86px; align-items: center; justify-content: space-between; padding: 0 7.2%; border-top: 1px solid var(--line); }
.footer-wordmark { font-size: 16px; }
.footer-wordmark .wordmark-mark { width: 27px; height: 27px; }
.site-footer > span { color: var(--muted); font-size: 9px; letter-spacing: .08em; }

.lightbox { position: fixed; width: min(96vw, 1080px); max-width: none; max-height: 92vh; max-height: 92dvh; padding: 24px; overflow: auto; border: 0; background: var(--paper); box-shadow: 0 20px 90px #17161255; }
.lightbox::backdrop { background: #1c1b19d9; backdrop-filter: blur(5px); }
.lightbox-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); min-height: 400px; }
.lightbox-image-panel { display: grid; min-width: 0; min-height: 0; place-items: center; background: #e8e5de; }
.lightbox-image { display: block; width: 100%; max-height: 76vh; margin: auto; object-fit: contain; }
.lightbox-info { align-self: center; padding: 34px; }
.lightbox-info .eyebrow { margin-bottom: 15px; }
.lightbox-close { position: absolute; top: -17px; right: -17px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--paper); font-size: 26px; cursor: pointer; }
.lightbox-title { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 38px); font-weight: 400; line-height: 1.15; }
.lightbox-description { margin: 13px 0 23px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.story-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; font-size: 11px; text-align: left; cursor: pointer; }
.story-toggle span { color: var(--accent); font-size: 18px; }
.story-panel { max-height: 38vh; overflow: auto; }
.story-content { margin: 16px 0 0; color: #6f6b64; font-size: 11px; line-height: 1.9; white-space: pre-wrap; }

.auth-page { display: grid; min-height: 100vh; align-content: center; justify-items: center; padding: 30px 20px; }
.auth-wordmark { position: absolute; top: 35px; left: 7.2%; }
.auth-card { width: min(100%, 410px); padding: 45px; border: 1px solid var(--line); background: #f8f6f1; }
.auth-card .eyebrow { margin-bottom: 18px; }
.auth-card h1 { font-size: 39px; }
.auth-intro { margin: 14px 0 28px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.auth-form, .upload-form { display: grid; gap: 10px; }
.auth-form label, .upload-form > label:not(.file-drop) { margin-top: 7px; font-size: 10px; font-weight: 600; }
.auth-form input, .upload-form input[type="text"], .upload-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); outline: none; background: transparent; font-size: 12px; transition: border-color .2s ease; }
.auth-form input:focus, .upload-form input:focus, .upload-form textarea:focus { border-color: var(--accent); }
.button { display: flex; width: 100%; min-height: 47px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 0 16px; border: 0; cursor: pointer; font-size: 11px; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--accent); }
.button span { font-size: 16px; }
.form-alert { margin: 12px 0 0; padding: 10px 12px; background: #f2e3dd; color: #874b3a; font-size: 11px; line-height: 1.5; }
.back-link { display: inline-block; margin-top: 25px; color: var(--muted); font-size: 10px; }

.admin-header { position: sticky; z-index: 2; top: 0; background: #f5f3eeeF; backdrop-filter: blur(12px); }
.admin-label, .panel-kicker { color: var(--muted); font-size: 9px; font-weight: 600; letter-spacing: .14em; }
.admin-header form { margin: 0; }
.logout-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
.admin-page { max-width: 1240px; min-height: calc(100vh - 82px); margin: 0 auto; padding: 70px 7.2% 110px; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.admin-heading .eyebrow { margin-bottom: 13px; }
.admin-heading h1 { font-size: 58px; }
.admin-subtitle { margin: 13px 0 0; color: var(--muted); font-size: 11px; }
.collection-count { font-family: var(--serif); font-size: 30px; }
.collection-count small { color: var(--muted); font-family: var(--sans); font-size: 10px; }
.notice { margin: 20px 0 0; padding: 12px 15px; border-left: 2px solid var(--accent); background: #eeece6; font-size: 11px; }
.admin-section-nav { position: sticky; z-index: 1; top: 82px; display: flex; gap: 25px; padding: 15px 0; border-bottom: 1px solid var(--line); background: #f5f3eeeF; backdrop-filter: blur(12px); }
.admin-section-nav a { color: var(--muted); font-size: 10px; transition: color .2s ease; }
.admin-section-nav a:hover { color: var(--accent); }
.admin-section { padding: 47px 0 61px; border-bottom: 1px solid var(--line); scroll-margin-top: 145px; }
.admin-section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 25px; }
.admin-section-heading .panel-kicker { margin-bottom: 12px; }
.admin-section-heading h2 { margin: 0; font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; }
.admin-section-description { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.upload-panel h3 { margin: 0 0 21px; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.admin-layout { display: grid; grid-template-columns: minmax(270px, .75fr) 1.25fr; gap: 8%; padding-top: 44px; }
.admin-section .admin-layout { padding-top: 0; }
.panel-kicker { margin: 0 0 20px; }
.upload-form { gap: 9px; }
.upload-form > label:not(.file-drop) { margin-top: 9px; }
.upload-form > label > span { color: var(--accent); }
.upload-form label small { margin-left: 4px; color: var(--muted); font-weight: 400; }
.upload-form textarea { resize: vertical; }
.about-settings-form { display: grid; max-width: 680px; gap: 10px; }
.about-settings-form label { margin-top: 9px; font-size: 10px; font-weight: 600; }
.about-settings-form label small { margin-left: 4px; color: var(--muted); font-weight: 400; }
.about-settings-form input, .about-settings-form textarea { width: 100%; padding: 12px 13px; border: 1px solid var(--line); outline: none; background: transparent; font-size: 12px; transition: border-color .2s ease; }
.about-settings-form input:focus, .about-settings-form textarea:focus { border-color: var(--accent); }
.about-settings-form textarea { resize: vertical; }
.about-settings-form .button { max-width: 300px; }
.file-drop { display: grid; min-height: 145px; align-content: center; justify-items: center; gap: 7px; margin-top: 9px; border: 1px dashed #c9c4ba; cursor: pointer; transition: border-color .2s ease, background .2s ease; }
.file-drop:hover, .file-drop.dragging { border-color: var(--accent); background: #efebe4; }
.upload-icon { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); }
.file-drop-title { font-size: 11px; }
.file-name { color: var(--muted); font-size: 9px; }
.file-drop input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.admin-works { min-width: 0; }
.admin-artwork-list { border-top: 1px solid var(--line); }
.admin-artwork { display: grid; grid-template-columns: 66px 1fr 32px; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-artwork > img { width: 66px; height: 72px; object-fit: cover; background: #ddd8ce; }
.admin-artwork-info { min-width: 0; }
.admin-artwork-info h3 { overflow: hidden; margin: 0 0 5px; font-family: var(--serif); font-size: 16px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.admin-artwork-info p { overflow: hidden; margin: 0; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-badge { display: inline-block; margin-top: 7px; color: #78816d; font-size: 8px; letter-spacing: .04em; }
.admin-badge-muted { color: #a09b91; }
.admin-slide-list { border-top: 1px solid var(--line); }
.admin-slide { display: grid; grid-template-columns: minmax(100px, 150px) minmax(0, 1fr) 32px; align-items: center; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.admin-slide > img { display: block; width: 100%; aspect-ratio: 1.7; object-fit: cover; background: #ddd8ce; }
.delete-button { width: 30px; height: 30px; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--muted); font-size: 19px; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.delete-button:hover { border-color: var(--accent); color: var(--accent); }
.admin-empty { display: grid; min-height: 170px; align-content: center; justify-items: center; border: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.admin-empty span { color: var(--accent); font-size: 21px; }
.admin-empty p { margin: 10px 0 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.artwork-card:nth-child(3n + 2) { transition-delay: .1s; }
.artwork-card:nth-child(3n) { transition-delay: .2s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media (max-width: 760px) {
  .site-header { height: 70px; padding: 0 6%; }
  .main-nav { gap: 20px; margin-left: 0; }
  .main-nav a, .header-link { font-size: 10px; }
  .hero { min-height: min(760px, max(620px, calc(100vh - 70px))); min-height: min(760px, max(620px, calc(100svh - 70px))); }
  .hero-inner { padding: 88px 8% 105px; }
  .hero-copy { max-width: 560px; padding-bottom: 66px; }
  .hero h1 { font-size: clamp(54px, 10vw, 76px); }
  .hero-slide-footer { right: 8%; bottom: 69px; left: 8%; }
  .hero-bottom { right: 8%; left: 8%; font-size: 7px; }
  .section-wrap { padding: 80px 8% 90px; }
  .section-heading { align-items: start; gap: 20px; }
  .section-aside { padding-top: 20px; font-size: 10px; }
  .artwork-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 28px 15px; }
  .about-section { min-height: 0; grid-template-columns: .6fr 1.4fr; gap: 8%; padding: 85px 9%; }
  .about-mark { font-size: 150px; }
  .site-footer { min-height: 75px; padding: 0 6%; }
  .site-footer > span { font-size: 8px; }
  .admin-header { top: 0; }
  .admin-page { padding: 55px 7% 80px; }
  .admin-section-nav { top: 70px; gap: 19px; overflow-x: auto; }
  .admin-section-nav a { flex: 0 0 auto; }
  .admin-section { scroll-margin-top: 125px; }
  .admin-layout { grid-template-columns: 1fr; gap: 55px; }
  .admin-section .admin-layout { gap: 35px; }
  .lightbox-layout { grid-template-columns: 1fr; }
  .lightbox-image { max-height: 58vh; }
  .lightbox-info { padding: 25px 10px 8px; }
}
@media (max-width: 480px) {
  .main-nav { gap: 13px; }
  .main-nav a { font-size: 9px; }
  .wordmark { font-size: 17px; }
  .header-link { font-size: 9px; }
  .hero { min-height: 680px; }
  .hero-inner { padding: 78px 8% 120px; }
  .hero-copy { padding-bottom: 55px; }
  .hero-description { font-size: 12px; }
  .hero-slide-footer { right: 8%; bottom: 72px; left: 8%; align-items: start; flex-direction: column; gap: 14px; }
  .hero-slide-title { font-size: 17px; }
  .carousel-controls { gap: 11px; }
  .carousel-arrow { width: 33px; height: 33px; }
  .hero-bottom { right: 8%; left: 8%; gap: 15px; font-size: 6px; }
  .section-heading { display: block; }
  .section-aside { padding-top: 13px; }
  .artwork-grid { grid-template-columns: 1fr; gap: 30px; }
  .artwork-image-wrap { aspect-ratio: .92; }
  .about-section { grid-template-columns: 1fr; gap: 25px; padding: 70px 9%; }
  .about-mark { font-size: 95px; }
  .site-footer > span:nth-child(2) { display: none; }
  .auth-card { padding: 32px 25px; }
  .admin-heading h1 { font-size: 43px; }
  .admin-subtitle { max-width: 260px; line-height: 1.7; }
  .collection-count { font-size: 24px; }
  .admin-label { display: none; }
  .admin-heading { align-items: start; gap: 15px; }
  .admin-section-nav { gap: 15px; }
  .admin-section-nav a { font-size: 9px; }
  .admin-section-heading h2 { font-size: 27px; }
  .admin-slide { grid-template-columns: 86px minmax(0, 1fr) 30px; gap: 10px; }
  .lightbox { padding: 15px; }
  .lightbox-close { top: 5px; right: 5px; z-index: 2; background: #f5f3eef0; }
  .lightbox-image { max-height: 48vh; }
  .lightbox-info { padding: 22px 4px 2px; }
  .story-panel { max-height: 30vh; }
}
