/* One Life — Atelier at Dusk */
:root {
  --stone: #ece7df;
  --stone-2: #e3ddd3;
  --line: #d3ccbf;
  --line-2: #cfc8ba;
  --ink: #1b2233;
  --ink-soft: #4b5163;
  --night: #0b0e17;
  --gold: #e3c897;
  --gold-deep: #7d6238;
  --star: #a88a5c;
  --cream: #ece6da;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--ink); }
a:hover { color: #3a4a6e; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.muted { color: var(--ink-soft); }
.small-caps { font-size: 13px; letter-spacing: 0.14em; }
.eyebrow { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold-deep); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
h2 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 4vw, 46px); line-height: 1.05; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  text-decoration: none; font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase;
  padding: 16px 30px; border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--night); font-weight: 500; }
.btn-gold:hover { background: #f1dcb4; color: var(--night); }
.btn-ghost-light { color: var(--cream); border-color: rgba(236,230,218,0.45); }
.btn-ghost-light:hover { color: #fff; border-color: var(--cream); }
.btn-dark { background: var(--ink); color: var(--stone); }
.btn-dark:hover { background: #2b3550; color: var(--stone); }
.btn-line {
  display: inline-block; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink); padding: 12px 16px; white-space: nowrap;
}
.btn-line:hover { background: var(--ink); color: var(--stone); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #0b0e17 0%, #0b0e17 46%, #1d2030 60%, #4a4654 72%, #8f8590 82%, #c9bfb6 91%, var(--stone) 100%);
}
.hero-stars { position: absolute; top: 0; left: 0; width: 100%; height: 620px; pointer-events: none; }
.site-header {
  position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px; padding-top: 30px; padding-bottom: 30px;
}
.wordmark { font-family: var(--serif); font-size: 20px; letter-spacing: 0.34em; color: var(--cream); text-decoration: none; }
.wordmark:hover { color: #fff; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 13px; letter-spacing: 0.14em; }
.site-header nav a { color: #d9d2c4; text-decoration: none; padding: 6px 0; }
.site-header nav a:hover { color: #fff; }
.site-header nav .nav-inquire { color: var(--gold); border-bottom: 1px solid var(--gold); }
.hero-inner {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 26px; padding-top: 60px; padding-bottom: 260px;
}
.hero-logo { width: min(740px, 100%); height: auto; mix-blend-mode: screen; }
.hero-tagline {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.4; color: #d9d2c4; max-width: 600px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 8px; }

/* ---------- recent ---------- */
.recent { background: var(--stone-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.recent > .wrap { padding-top: 100px; padding-bottom: 100px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px; margin-bottom: 48px; }
.recent-strip {
  display: flex; gap: 32px; overflow-x: auto; padding-bottom: 14px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: #b9b1a3 transparent;
}
.recent-card { flex: 0 0 280px; display: flex; flex-direction: column; gap: 14px; scroll-snap-align: start; }
.recent-art {
  position: relative; display: block; width: 100%; height: 360px; padding: 0; border: 0;
  background: #d9d2c6; cursor: zoom-in; overflow: hidden;
}
.recent-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.recent-art:hover img { transform: scale(1.03); }
.badge {
  position: absolute; top: 12px; right: 12px; background: rgba(11,14,23,0.8); color: var(--cream);
  font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; padding: 7px 12px;
}
.recent-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.recent-title { font-family: var(--serif); font-style: italic; font-size: 17px; }
.empty { margin: 0; font-size: 16px; }

/* ---------- index ---------- */
.index { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 120px; padding-bottom: 120px; }
.index-intro { flex: 1 1 280px; display: flex; flex-direction: column; gap: 18px; }
.index-intro p { margin: 0; font-size: 16px; line-height: 1.75; }
.table-scroll { position: relative; flex: 999 1 620px; min-width: 0; overflow-x: auto; }
.works-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 15px; }
.works-table th {
  text-align: left; font-size: 11px; font-weight: 400; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--ink-soft); padding: 0 16px 16px 0;
}
.works-table td { border-top: 1px solid var(--line-2); padding: 18px 16px 18px 0; vertical-align: middle; }
.works-table td.num { color: var(--ink-soft); font-variant-numeric: tabular-nums; width: 56px; }
.works-table td.act { text-align: right; padding-right: 0; }
.works-table tr.is-sold .title-text, .works-table tr.is-sold td { color: #6b6f7c; }
.title-btn {
  display: flex; align-items: center; gap: 16px; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: left; cursor: zoom-in;
}
.thumb { width: 44px; height: 54px; flex: none; background: #d9d2c6; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.title-text { font-family: var(--serif); font-size: 18px; }
.title-btn:hover .title-text { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* ---------- studio ---------- */
.studio { display: flex; flex-wrap: wrap; gap: 64px; align-items: center; padding-top: 40px; padding-bottom: 140px; }
.studio-photo {
  flex: 1 1 340px; max-width: 440px; aspect-ratio: 4 / 5; background: #ddd6ca;
  display: flex; align-items: center; justify-content: center; color: var(--ink-soft);
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; overflow: hidden;
}
.studio-photo.has-photo { background: none; }
.studio-photo img { width: 100%; height: 100%; object-fit: cover; }
.studio-text { flex: 999 1 420px; display: flex; flex-direction: column; gap: 22px; max-width: 580px; }
.studio-text p { margin: 0; font-size: 16px; line-height: 1.8; }
.studio-text .studio-quote { font-family: var(--serif); font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { background: linear-gradient(180deg, var(--stone) 0%, #c9bfb6 18%, #8f8590 36%, #4a4654 56%, #1d2030 76%, var(--night) 100%); }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; padding-top: 200px; padding-bottom: 48px; }
.footer-mark { display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--serif); font-size: 22px; letter-spacing: 0.4em; color: var(--cream); }
.footer-row {
  width: 100%; border-top: 1px solid rgba(236,230,218,0.16); padding-top: 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; font-size: 13px; color: #a9a396;
}
.footer-row a { color: #e8e2d6; text-decoration: none; }
.footer-row a:hover { color: #fff; text-decoration: underline; }

/* ---------- viewer ---------- */
.viewer {
  border: 0; padding: 0; background: var(--stone); color: var(--ink);
  width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto;
}
.viewer::backdrop { background: rgba(11,14,23,0.82); }
.viewer-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: rgba(236,231,223,0.9);
  color: var(--ink); cursor: pointer; display: flex; align-items: center; justify-content: center; z-index: 1;
}
.viewer-body { display: flex; flex-wrap: wrap; }
.viewer-body img { flex: 999 1 480px; min-width: 0; max-height: 80vh; object-fit: contain; background: var(--stone-2); }
.viewer-info { flex: 1 1 280px; padding: 48px 36px; display: flex; flex-direction: column; gap: 12px; }
.viewer-info h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.1; }
.viewer-info p { margin: 0; line-height: 1.6; }
.viewer-notes:empty { display: none; }
.viewer-price { font-family: var(--serif); font-size: 24px; margin-top: 8px !important; }
.viewer-actions { margin-top: 12px; }

@media (max-width: 640px) {
  .site-header { justify-content: center; }
  .site-header nav { justify-content: center; gap: 6px 20px; }
  .hero-inner { padding-top: 30px; padding-bottom: 200px; }
  .recent > .wrap { padding-top: 70px; padding-bottom: 70px; }
  .recent-card { flex-basis: 240px; }
  .recent-art { height: 300px; }
  .index { padding-top: 80px; padding-bottom: 80px; gap: 32px; }
  .viewer-info { padding: 28px 22px; }

  /* Index becomes stacked rows so the price is always visible on phones */
  .works-table { min-width: 0; }
  .works-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .works-table tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; border-top: 1px solid var(--line-2); padding: 18px 0; }
  .works-table td { border: 0; padding: 0; }
  .works-table td.num { display: none; }
  .works-table td:nth-child(2), .works-table td:nth-child(3) { grid-column: 1 / -1; }
  .works-table td:nth-child(3), .works-table td:nth-child(4) { padding-left: 60px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .recent-art img { transition: none; }
}
