:root {
  --bg: #f6f5f2;
  --paper: #ffffff;
  --ink: #141414;
  --muted: #6d6a64;
  --line: #dedbd4;
  --accent: #1d2a8a;          /* link blue, as on gallery sites */
  --blocked: #e9e6e0;
  --serif: "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }

/* ---------- top bar + drawer ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: 14px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.bar.scrolled { border-bottom-color: var(--line); }
.burger { width: 40px; height: 40px; border: 0; background: none; cursor: pointer; display: grid; align-content: center; gap: 6px; padding: 8px; }
.burger span { display: block; height: 1.5px; background: var(--ink); }
.wordmark { justify-self: center; text-decoration: none; font: 400 26px/1 var(--serif); letter-spacing: .04em; }

.scrim { position: fixed; inset: 0; background: rgba(20,20,20,.35); z-index: 30; opacity: 0; transition: opacity .3s; }
.scrim.open { opacity: 1; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: min(380px, 86vw); z-index: 40; background: var(--paper);
  transform: translateX(-100%); transition: transform .35s cubic-bezier(.2,.7,.2,1); padding: 88px 40px 40px; }
.drawer.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.15); }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 14px 0; text-decoration: none; font: 500 13px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.drawer li a:hover, .drawer li a.active { color: var(--muted); }
.drawer-close { position: absolute; top: 20px; left: 32px; border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; }

main { min-height: 70vh; }
.foot { padding: 48px var(--gutter); color: var(--muted); font-size: 12px; letter-spacing: .04em; border-top: 1px solid var(--line); margin-top: 96px; }

.page-head { padding: clamp(40px, 8vw, 96px) var(--gutter) 32px; }
.eyebrow { font: 500 11px/1 var(--sans); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
.page-head p { max-width: 560px; color: var(--muted); margin: 16px 0 0; }

/* ---------- home: album marquees ---------- */
.intro { padding: clamp(48px, 10vw, 120px) var(--gutter) clamp(32px, 6vw, 64px); text-align: center; }
.intro h1 { font-size: clamp(44px, 8vw, 104px); line-height: .95; font-style: italic; }
.intro p { color: var(--muted); margin: 18px auto 0; max-width: 440px; }

.album { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.album-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 0 var(--gutter) 22px; }
.album-head h2 { font-size: clamp(30px, 4vw, 46px); }
.album-head .count { font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-left: 14px; }
.album-head p { color: var(--muted); margin: 6px 0 0; max-width: 520px; }
.album-head a { white-space: nowrap; font-size: 13px; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }

.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.track { display: flex; gap: 18px; width: max-content; animation: slide var(--dur, 60s) linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.track a { flex: none; height: clamp(220px, 38vh, 440px); }
.track img { height: 100%; width: auto; object-fit: cover; background: var(--line); transition: opacity .3s; }
.track a:hover img { opacity: .85; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .marquee { overflow-x: auto; } }

/* ---------- store grid (framed, Ocula style) ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--gutter) 36px; }
.filters button { border: 1px solid var(--line); background: none; padding: 8px 14px; font-size: 12px; letter-spacing: .06em; cursor: pointer; }
.filters button.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 56px); padding: 0 var(--gutter); align-items: start; }
.card { text-decoration: none; display: block; }
.frame-wrap { display: grid; place-items: center; aspect-ratio: 1 / 1.05; }
.frame { background: var(--paper); border: 9px solid #111; padding: 9%; box-shadow: 10px 10px 18px rgba(0,0,0,.18), 2px 2px 3px rgba(0,0,0,.12); max-width: 100%; max-height: 100%; }
.frame img { max-height: 100%; width: auto; }
.frame-wrap .frame { display: flex; }
.frame.land { width: 100%; }
.frame.land img { width: 100%; height: auto; }
.frame.port { height: 100%; }
.frame.port img { height: 100%; width: auto; }
.meta { margin-top: 22px; font-size: 14px; line-height: 1.55; }
.meta .artist { text-transform: uppercase; letter-spacing: .06em; }
.meta .title { font-style: italic; }
.meta .album-name { margin-top: 8px; }
.meta .price { margin-top: 12px; }
.meta .cta { margin-top: 10px; color: var(--accent); }
.card:hover .cta { text-decoration: underline; }
/* as on Ocula: each frame fills its column, rows align at the top, the caption sits right under its frame */
.grid .frame-wrap { display: block; aspect-ratio: auto; }
.grid .frame { display: block; width: 100%; height: auto; }
.grid .frame img { width: 100%; height: auto; }

/* ---------- work detail ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding: clamp(32px, 6vw, 72px) var(--gutter) 0; align-items: start; }
.detail .frame-wrap { aspect-ratio: auto; min-height: 50vh; }
.detail .frame.port { height: 72vh; }
.back { display: inline-block; font-size: 13px; text-decoration: none; color: var(--muted); margin: 24px var(--gutter) 0; }
.info h1 { font-size: clamp(36px, 4.5vw, 58px); font-style: italic; line-height: 1.05; }
.info .sub { color: var(--muted); margin-top: 10px; }
.story { margin: 28px 0; font-family: var(--serif); font-size: 21px; line-height: 1.5; }
.story.empty { font-family: var(--sans); font-size: 13px; color: var(--muted); border: 1px dashed var(--line); padding: 12px 14px; }
.spec { border-top: 1px solid var(--line); margin: 0; }
.spec div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); } .spec dd { margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 16px 28px; font: 500 12px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; text-decoration: none; cursor: pointer; min-width: 200px; }
.btn:hover { background: #333; }
.btn.ghost { background: none; color: var(--ink); }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.buy-row { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); padding: 0 var(--gutter); align-items: start; }
.summary { background: var(--paper); padding: 28px; display: grid; grid-template-columns: 120px 1fr; gap: 20px; align-items: center; }
.summary img { width: 120px; height: 120px; object-fit: cover; }
.summary h3 { font-size: 26px; font-style: italic; }
.summary p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.options { display: grid; gap: 12px; }
.opt { display: grid; grid-template-columns: 22px 1fr auto; gap: 14px; align-items: start; border: 1px solid var(--line); background: var(--paper); padding: 20px; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.opt input { margin: 4px 0 0; accent-color: var(--ink); }
.opt strong { font-weight: 500; display: block; }
.opt small { color: var(--muted); display: block; margin-top: 4px; font-size: 13px; }
.opt .amt { font-family: var(--serif); font-size: 22px; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.sizes button { border: 1px solid var(--line); background: var(--bg); padding: 8px 12px; font-size: 12px; cursor: pointer; }
.sizes button.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.sizes.idle button.on { background: var(--bg); color: var(--ink); }   /* digital chosen: show the size only as an outline */
.total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--ink); margin-top: 24px; padding-top: 16px; }
.total span:last-child { font-family: var(--serif); font-size: 32px; }
.paypal-slot { margin-top: 20px; min-height: 48px; }
.notice { background: #fff8e5; border: 1px solid #ecd9a4; padding: 14px 16px; font-size: 13px; }
.success { background: #eef6ee; border: 1px solid #b7d7b7; padding: 16px; font-size: 14px; }

/* ---------- about ---------- */
.about { max-width: 760px; margin: 0 auto; padding: clamp(48px, 8vw, 104px) var(--gutter) 0; text-align: center; }
.avatar { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin: 0 auto 32px; }
.about h1 { font-size: clamp(40px, 6vw, 64px); }
.about .lede { font-family: var(--serif); font-size: clamp(21px, 2.3vw, 26px); line-height: 1.5; margin: 28px 0 0; text-align: left; }
.about .body { text-align: left; color: #3b3935; margin-top: 18px; }
.contact { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: center; }
.contact a { text-decoration: none; letter-spacing: .02em; }
.contact .mail { font-family: var(--serif); font-size: 26px; }
.socials { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.socials a { font: 500 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

/* ---------- booking calendar (Airbnb-like) ---------- */
.booking { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: clamp(28px, 5vw, 72px); padding: 0 var(--gutter); align-items: start; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: 18px; }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.month h3 { font: 500 15px/1 var(--sans); text-align: center; margin-bottom: 16px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); }
.dow span { font-size: 11px; color: var(--muted); text-align: center; padding-bottom: 8px; }
.day { aspect-ratio: 1; border: 0; background: none; display: grid; place-content: center; gap: 2px; font-size: 14px; cursor: pointer; border-radius: 50%; position: relative; }
.day small { font-size: 10px; color: var(--muted); line-height: 1; }
.day:hover:not(:disabled) { outline: 1px solid var(--ink); }
.day.sel { background: var(--ink); color: var(--paper); }
.day.sel small { color: #ccc; }
.day:disabled { color: #c9c5bd; cursor: default; }
.day.blocked { color: #b8b4ac; text-decoration: line-through; cursor: not-allowed; }
.day.empty { visibility: hidden; }
.legend { display: flex; gap: 18px; margin-top: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

.panel { background: var(--paper); padding: 28px; box-shadow: 0 6px 24px rgba(0,0,0,.08); border: 1px solid var(--line); position: sticky; top: 90px; }
.panel h3 { font-size: 28px; }
.panel .date-line { color: var(--muted); margin: 6px 0 18px; font-size: 14px; }
.field { display: grid; gap: 6px; font-size: 12px; letter-spacing: .04em; color: var(--muted); margin-bottom: 14px; }
.field input, .field select, .field textarea { font: 400 15px/1.4 var(--sans); color: var(--ink); border: 1px solid var(--line); padding: 11px 12px; background: var(--bg); width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lines div { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; }
.lines div.strong { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; font-weight: 500; }
.err { color: #a12a2a; font-size: 13px; }

/* owner mode */
.owner-toggle { background: none; border: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; padding: 0; margin-top: 18px; }
.owner-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--ink); color: var(--paper); padding: 12px 16px; margin-bottom: 20px; font-size: 13px; }
.owner-bar button { background: var(--paper); color: var(--ink); border: 0; padding: 8px 12px; font-size: 12px; cursor: pointer; }
.owner-bar input { width: 80px; padding: 7px 8px; border: 0; font: inherit; color: var(--ink); }
.owner .day.blocked { background: var(--blocked); text-decoration: line-through; color: #8e8a82; cursor: pointer; }
.owner .day.picked { box-shadow: inset 0 0 0 2px var(--ink); }
.owner .day:disabled { cursor: not-allowed; }

@media (max-width: 860px) {
  .detail, .checkout, .booking { grid-template-columns: 1fr; }
  .detail .frame.port { height: 60vh; }
  .months { grid-template-columns: 1fr; }
  .months .month:nth-child(2) { display: none; }
  .panel { position: static; }
  .album-head { flex-direction: column; gap: 10px; }
  .summary { grid-template-columns: 80px 1fr; }
  .summary img { width: 80px; height: 80px; }
}

/* ---------- production additions ---------- */
:root { --booked: #c9d3e6; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 50; }
.skip:focus { left: 8px; }
main:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hint { color: var(--muted); font-size: 13px; }
.day.booked { color: #8e8a82; text-decoration: line-through; }
.owner .day.booked { background: var(--booked); cursor: pointer; }
.owner-bar label { display: inline-flex; align-items: center; gap: 6px; }
.records { padding: 64px var(--gutter) 0; }
.records h2 { font-size: 34px; margin-bottom: 18px; }
.table-wrap { overflow-x: auto; background: var(--paper); border: 1px solid var(--line); }
.records table { border-collapse: collapse; width: 100%; font-size: 13px; min-width: 720px; }
.records th, .records td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.records th { font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.records tr.warn td { background: #fff4f2; }
.records small { color: var(--muted); }
