:root {
  /* Gallery wall: a warm off-white rather than clinical #fff, so photographs
     read as prints hung on a wall instead of images floating on a screen. */
  --bg: #f6f5f1;
  --panel: #fffdf9;
  --mat: #ffffff;          /* the mount board a print sits on */
  --frame: #e0dbd0;        /* the frame edge */
  --border: #d8d3c8;
  --border-soft: #e7e3da;
  --text: #1c1a17;         /* ink */
  --text-muted: #6b6558;
  /* Darkened from the dark-theme brass so it clears 4.5:1 on a light ground. */
  --accent: #8a6230;
  --accent-hi: #6d4c24;
  --accent-dim: rgba(138,98,48,0.12);
  --on-accent: #fffdf8;
  --shadow: rgba(46,39,28,0.16);
  --shadow-soft: rgba(46,39,28,0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}
.wrap { max-width: 1020px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

::selection { background: var(--accent-dim); color: var(--text); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--panel); color: var(--text); border: 1px solid var(--border);
  padding: 10px 16px; font-size: 13px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.mark { display: block; }

/* ---------- nav ---------- */
nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--border-soft);
}
.nav-name {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic;
  font-size: 18px; color: var(--text); text-decoration: none; white-space: nowrap;
}
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 22px; }
nav a:not(.nav-name) {
  color: var(--text-muted); text-decoration: none; font-size: 13px;
  transition: color 0.15s ease;
}
nav a:not(.nav-name):hover { color: var(--text); }
@media (max-width: 560px) {
  nav { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links { justify-content: flex-start; gap: 4px 18px; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; border-bottom: 1px solid var(--border-soft); }
main > section:last-of-type { border-bottom: none; }
@media (max-width: 640px) { section { padding: 62px 0; } }

.eyebrow {
  font-size: 11px; color: var(--accent); letter-spacing: 0.12em;
  text-transform: uppercase; margin: 0 0 12px;
}
h2 {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 600;
  font-size: clamp(25px, 3.4vw, 32px); line-height: 1.25; margin: 0 0 16px;
}
.section-lede { color: var(--text-muted); font-size: 15px; max-width: 56ch; margin: 0 0 8px; }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 96px 0 88px; }
.hero .mark { width: 116px; height: auto; margin: 0 auto 28px; }
.hero h1 {
  font-family: 'Playfair Display', Georgia, serif; font-style: italic; font-weight: 600;
  font-size: clamp(36px, 6.4vw, 60px); line-height: 1.1; margin: 0 0 18px;
}
.hero-lede { color: var(--text-muted); font-size: 16px; max-width: 46ch; margin: 0 auto; }
.hero-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px;
}
.btn {
  display: inline-block; padding: 13px 26px; font-size: 13.5px;
  text-decoration: none; letter-spacing: 0.02em;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 500; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn-quiet { border: 1px solid var(--border); color: var(--text); background: var(--panel); }
.btn-quiet:hover { border-color: var(--text-muted); }

.status-line {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-muted); margin: 30px 0 0;
}
.status-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}

/* ---------- about ---------- */
/* Held on a panel rather than floating loose on the wall, and split into two
   columns so the text isn't stranded against a wide empty right-hand side. */
.about-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.18fr);
  gap: 52px;
  align-items: start;
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 48px;
  box-shadow: 0 1px 2px var(--shadow-soft), 0 16px 38px -18px var(--shadow);
}
@media (max-width: 820px) {
  .about-card { grid-template-columns: 1fr; gap: 30px; padding: 32px 26px; }
}
.about-intro h2 { margin-bottom: 0; }

.about-facts {
  margin: 26px 0 0; padding: 24px 0 0;
  border-top: 1px solid var(--border-soft);
  display: grid; gap: 15px;
}
.about-facts > div { display: grid; gap: 3px; }
.about-facts dt {
  font-size: 10.5px; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.about-facts dd { margin: 0; font-size: 13.5px; color: var(--text); }

.about-body p { color: var(--text-muted); font-size: 15.5px; margin: 0 0 16px; }
.about-body p:last-child { margin-bottom: 0; }
.about-body strong { color: var(--text); font-weight: 600; }
.about-lead {
  font-size: 17.5px; line-height: 1.55; color: var(--text);
  margin-bottom: 18px;
}

/* ---------- work ---------- */
.gallery-group { margin-top: 52px; }
.gallery-head { margin-bottom: 22px; }
.gallery-label {
  font-size: 12px; font-weight: 600; color: var(--text);
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 6px;
}
.gallery-note { font-size: 13.5px; color: var(--text-muted); margin: 0; max-width: 58ch; }
/* A hung wall rather than a spreadsheet of thumbnails.
   Each print is sized from its own aspect ratio (--r, set per photo from the
   manifest), so a wide photograph hangs wide and a tall one hangs narrow.
   Rows fill the full width and every print in a row lands at the same height:
   with flex-grow proportional to --r, and the mat's fixed side padding folded
   into flex-basis, the padding cancels out of the maths exactly. */
.gallery-grid {
  --mat-pad: 14px;
  --row-h: 290px;    /* target image height for a full row */
  --row-max: 420px;  /* cap, so a lone print on a short row can't balloon */
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 30px;
  /* A full row is justified by flex-grow and has no slack, so this only acts
     on a short trailing row — a leftover print hangs centred, not stranded. */
  justify-content: center;
}
@media (max-width: 700px) {
  .gallery-grid { --mat-pad: 9px; --row-h: 250px; gap: 20px; }
}

/* Each photograph is presented as a mounted print: white mat, thin frame,
   and a shadow that lifts it off the wall. */
.work-photo {
  box-sizing: border-box; display: block; font: inherit; text-align: left;
  flex-grow: var(--r, 1); flex-shrink: 1;
  flex-basis: calc(var(--r, 1) * var(--row-h) + var(--mat-pad) * 2);
  max-width: calc(var(--r, 1) * var(--row-max) + var(--mat-pad) * 2);
  background: var(--mat); border: 1px solid var(--frame); border-radius: 0;
  padding: var(--mat-pad) var(--mat-pad) calc(var(--mat-pad) * 2.4);
  cursor: pointer;
  box-shadow: 0 1px 2px var(--shadow-soft), 0 10px 24px -8px var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-photo img {
  width: 100%; height: auto; display: block;
  background: var(--bg);
}
.work-photo:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 4px var(--shadow-soft), 0 20px 38px -10px var(--shadow);
}

.work-tile {
  border: 1px dashed var(--border); background: var(--panel);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; padding: 46px 20px; text-align: center;
  flex: 1 1 100%; max-width: 100%;
}
.work-tile strong { font-size: 13px; font-weight: 600; color: var(--text); }
.work-tile span { font-size: 12.5px; color: var(--text-muted); }

/* ---------- services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 34px; }
@media (max-width: 820px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--panel); border: 1px solid var(--border);
  padding: 26px 24px 24px;
  box-shadow: 0 1px 2px var(--shadow-soft);
}
.service-card h3 { font-size: 16px; font-weight: 600; margin: 0 0 10px; }
.service-card > p { font-size: 14px; color: var(--text-muted); margin: 0 0 18px; }
.service-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-soft); }
.service-list li {
  font-size: 13.5px; color: var(--text-muted);
  padding: 9px 0 9px 18px; position: relative;
  border-bottom: 1px solid var(--border-soft);
}
.service-list li:last-child { border-bottom: none; padding-bottom: 0; }
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 18px;
  width: 6px; height: 1px; background: var(--accent);
}

/* ---------- process ---------- */
.process-list {
  list-style: none; margin: 34px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
@media (max-width: 880px) { .process-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .process-list { grid-template-columns: 1fr; } }
.process-step { border-top: 1px solid var(--border); padding-top: 16px; }
.step-number { display: block; font-size: 12px; color: var(--accent); letter-spacing: 0.1em; margin-bottom: 10px; }
.process-step h3 { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.process-step p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ---------- contact ---------- */
.contact { text-align: center; }
.contact-lede { color: var(--text-muted); max-width: 50ch; margin: 0 auto 30px; font-size: 15px; }
.contact-email {
  font-family: 'Playfair Display', Georgia, serif; font-weight: 500;
  font-size: clamp(19px, 3.4vw, 28px); color: var(--text);
  text-decoration: none; display: inline-block;
  border-bottom: 1px solid var(--border); padding-bottom: 4px;
  transition: color 0.15s ease, border-color 0.15s ease;
  word-break: break-word;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

.contact-details {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 14px 44px; margin-top: 30px;
}
.contact-item { display: flex; flex-direction: column; gap: 3px; }
.contact-label {
  font-size: 10.5px; color: var(--text-muted);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.contact-item a, .contact-item span:not(.contact-label) {
  font-size: 15px; color: var(--text); text-decoration: none;
}
.contact-item a {
  border-bottom: 1px solid var(--border); padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.contact-item a:hover { color: var(--accent); border-color: var(--accent); }

.contact-meta { font-size: 13px; color: var(--text-muted); margin: 26px 0 0; }
.contact-sub { margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.contact-sub a { color: var(--text-muted); }
.contact-sub a:hover { color: var(--accent); }

/* ---------- footer ---------- */
footer { padding: 40px 0 48px; text-align: center; border-top: 1px solid var(--border-soft); }
footer .mark { width: 40px; height: auto; margin: 0 auto 12px; }
footer p { font-size: 11.5px; color: var(--text-muted); margin: 0; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(246,245,241,0.97);
  display: flex; align-items: center; justify-content: center;
  padding: 60px 20px;
}
.lightbox[hidden] { display: none; }
.lightbox-figure {
  margin: 0; max-width: 100%; text-align: center;
  background: var(--mat); border: 1px solid var(--frame);
  padding: 18px 18px 14px;
  box-shadow: 0 2px 6px var(--shadow-soft), 0 26px 54px -14px var(--shadow);
}
.lightbox-figure img {
  max-width: min(1000px, 100%); max-height: calc(100vh - 200px);
  object-fit: contain; display: block; margin: 0 auto;
}
.lightbox-figure figcaption { font-size: 12px; color: var(--text-muted); margin-top: 14px; letter-spacing: 0.02em; }
.lightbox-close, .lightbox-nav {
  position: absolute; background: none; border: none; color: var(--text-muted);
  cursor: pointer; font-family: inherit; line-height: 1;
  transition: color 0.15s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { color: var(--text); }
.lightbox-close { top: 16px; right: 20px; font-size: 34px; padding: 4px 10px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 46px; padding: 6px 14px; }
.lightbox-prev { left: 8px; }
.lightbox-next { right: 8px; }
@media (max-width: 640px) {
  .lightbox { padding: 56px 10px; }
  .lightbox-figure { padding: 10px 10px 8px; }
  .lightbox-nav { font-size: 34px; padding: 4px 6px; }
}
