/* Bill Steen Photography — "Night Plate" */
:root {
  --bg: #0e0e0d;
  --text: #ece9e2;
  --muted: #b9b5ab;
  --rule: #2a2a27;
  --paper: #f3f1ec;
  --ink: #141413;
  --gutter: 48px;
  --sans: Archivo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
body.locked { overflow: hidden; }

/* ---- Opening photo ---- */
.hero { position: relative; display: flex; flex-direction: column; }
.hero > img { width: 100%; height: auto; }
.topbar { position: absolute; inset: 0 0 auto 0; padding: 30px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: baseline; color: #fff; background: linear-gradient(rgba(0,0,0,.35), rgba(0,0,0,0)); }
.logo { font-size: 15px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; }
.topbar nav { display: flex; gap: 28px; font-size: 14px; }
.topbar nav a { text-decoration: none; padding: 6px 0; }
.topbar nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 36px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.hero-foot h1 { margin: 0; font-size: clamp(44px, 7vw, 72px); line-height: 1; font-weight: 500; letter-spacing: -.02em; }
.hero-foot .code { font-family: var(--mono); font-size: 13px; }


/* ---- Gallery ---- */
.gallery { padding: 72px 0 0; display: flex; flex-direction: column; gap: 88px; }
.photo { margin: 0; }
.full .photo img { width: 100%; max-height: 94vh; object-fit: contain; }
.full .photo { max-width: calc(94vh * var(--r, 1.5)); margin-inline: auto; }
.full figcaption { padding-inline: clamp(0px, calc(var(--gutter) - (100vw - 94vh * var(--r, 1.5)) / 2), var(--gutter)); }
.pair .photo img { width: 100%; max-height: 90vh; object-fit: contain; }
.pair { padding-inline: var(--gutter); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding-top: 14px; font-family: var(--mono); font-size: 13px; letter-spacing: .02em; }
figcaption .title { font-family: var(--sans); font-size: 15px; letter-spacing: 0; }
figcaption .place { color: var(--muted); }
.order { text-transform: uppercase; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 4px; }
figcaption .order { margin-left: auto; padding: 8px 0; }
.order:hover { color: #fff; }

/* ---- Info ---- */
.info { margin-top: 120px; padding: 56px var(--gutter); border-top: 1px solid var(--rule); display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 56px; font-size: 15px; }
.info h2 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.info p { margin: 0 0 12px; }
.footer { padding: 24px var(--gutter) 48px; font-size: 13px; color: var(--muted); }

/* ---- Enquiry panel (Graphite) ---- */
.backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 10; }
.panel { --pbg: #262623; --pfield: #33332f; --pline: #55534c; --ptext: #f1efe9; --pmuted: #c4c0b6;
  position: fixed; top: 0; right: 0; bottom: 0; width: min(500px, 100%); z-index: 11; background: var(--pbg); color: var(--ptext); padding: 30px 40px 40px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .35s ease, visibility 0s linear .35s; }
.panel:target, .panel.open { transform: none; visibility: visible; transition: transform .35s ease; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel h2 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.01em; }
.close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -12px; color: var(--ptext); }
.panel form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; border: 0; min-width: 0; }
.lbl { font-size: 13px; font-weight: 500; color: var(--pmuted); padding: 0; }
.panel input[type=text], .panel input[type=email], .panel textarea { font: inherit; font-size: 16px; color: var(--ptext); background: var(--pfield); border: 1px solid var(--pfield); border-radius: 0; padding: 11px 12px; min-height: 46px; width: 100%; }
.panel textarea { resize: vertical; }
.panel input:focus-visible, .panel textarea:focus-visible, .panel button:focus-visible, .pill input:focus-visible + span { outline: 2px solid var(--ptext); outline-offset: 2px; }
/* chosen photo + picker */
.chosen { display: flex; align-items: center; gap: 14px; background: var(--pfield); padding: 10px; min-height: 64px; }
.chosen img { width: 84px; height: 56px; object-fit: cover; flex: none; }
.chosen-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.c-code { font-family: var(--mono); font-size: 12px; color: var(--pmuted); }
.c-code:empty { display: none; }
.c-title { font-size: 15px; }
.change { margin-left: auto; font: inherit; font-size: 13px; color: var(--ptext); background: none; border: 1px solid var(--pline); min-height: 40px; padding: 0 14px; cursor: pointer; flex: none; }
.change:hover { border-color: var(--ptext); }
.picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; max-height: 300px; overflow-y: auto; padding: 2px; }
.picker[hidden] { display: none; }
.pick { font: inherit; color: var(--ptext); background: var(--pfield); border: 1px solid transparent; padding: 0; cursor: pointer; display: flex; flex-direction: column; text-align: left; }
.pick img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.pick span { font-family: var(--mono); font-size: 10px; padding: 3px 5px; color: var(--pmuted); }
.pick:hover, .pick.on { border-color: var(--ptext); }
.pick-general { grid-column: 1 / -1; font-size: 14px; padding: 12px; }
/* sizes */
.pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pill span { display: flex; flex-direction: column; justify-content: center; min-height: 50px; padding: 6px 12px; background: var(--pfield); border: 1px solid var(--pline); font-size: 14px; line-height: 1.3; }
.pill small { font-size: 11px; color: var(--pmuted); }
.pill input:checked + span { border-color: var(--ptext); box-shadow: inset 0 0 0 1px var(--ptext); }
.send { font: inherit; font-size: 15px; font-weight: 500; min-height: 52px; background: transparent; color: var(--ptext); border: 1px solid var(--ptext); cursor: pointer; transition: background .15s, color .15s; }
.send:hover { background: var(--ptext); color: var(--pbg); }
.send:disabled { opacity: .6; cursor: wait; }
.note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--pmuted); }
.status { margin: 0; font-size: 15px; }
.status:empty { display: none; }
.status a { color: var(--ptext); }
.hp { position: absolute; left: -9999px; }


/* ---- Phones ---- */
@media (max-width: 760px) {
  :root { --gutter: 20px; }
  .topbar { position: static; order: -1; padding: 18px var(--gutter); background: none; color: var(--text); }
  .hero-foot { position: static; padding: 14px var(--gutter) 0; color: var(--text); text-shadow: none; }
  .hero-foot h1 { font-size: 36px; }
  .logo { font-size: 13px; letter-spacing: .14em; }
  .topbar nav { gap: 20px; }
  .gallery { gap: 56px; padding-top: 48px; }
  .pair { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pills { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel { padding: 24px 20px 32px; }
}


/* discourage casual saving of photos */
.hero > img, .photo img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }

/* ---- Phones: photos edge to edge, quiet captions ---- */
@media (max-width: 760px) {
  .gallery { gap: 44px; padding-top: 36px; }
  .pair { padding-inline: 0; gap: 44px; }
  figcaption, .full figcaption { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 1px; padding: 10px 16px 0; }
  figcaption .title { grid-column: 1; grid-row: 1; font-size: 14px; line-height: 1.35; }
  figcaption .code { grid-column: 1; grid-row: 2; font-size: 11px; color: var(--muted); }
  figcaption .place { display: none; }
  figcaption .order { grid-column: 2; grid-row: 1 / span 2; align-self: center; margin: 0; padding: 12px 0 12px 8px; font-family: var(--sans); font-size: 13px; text-transform: none; letter-spacing: 0; text-decoration: none; color: var(--muted); }
  figcaption .order::after { content: " →"; }
  .hero-foot { padding: 12px 16px 0; }
  .hero-foot h1 { font-size: 30px; }
  .hero-foot .code { font-size: 11px; color: var(--muted); }
  .hero-foot .order { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: 13px; text-decoration: none; }
  .hero-foot .order::after { content: " →"; }
  .topbar { padding: 16px; }
}
