/* Fonts: Lora and Inter, both SIL Open Font License 1.1, subset to Latin and self-hosted. */
@font-face { font-family: "Lora"; src: url("/fonts/lora.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("/fonts/lora-italic.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --mist: #e4e8e7;
  --ink: #1d2a2c;
  --slate: #566669;
  --rule: #c3cccb;
  --fjord: #2b5b68;
  --serif: "Lora", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --gap: clamp(14px, 2vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--fjord); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: var(--mist); padding: .6rem 1rem; z-index: 10; }
.skip:focus { top: .75rem; }

/* header and footer */
.bar { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-block: clamp(20px, 3.4vw, 40px); }
.mark { font: 500 clamp(1.35rem, 2.6vw, 1.85rem)/1.1 var(--serif); letter-spacing: -0.01em; text-decoration: none; }
.bar nav { display: flex; gap: clamp(1.1rem, 3vw, 2.2rem); font: 500 .95rem/1.2 var(--sans); }
.bar nav a { text-decoration: none; padding-block: .35rem; border-bottom: 2px solid transparent; }
.bar nav a:hover { border-bottom-color: var(--slate); }
.bar nav a[aria-current="page"] { border-bottom-color: var(--ink); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; margin-top: clamp(4rem, 9vw, 8rem); padding-block: 1.6rem 2.4rem; color: var(--slate); font-size: .875rem;
  background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; }
.foot p { margin: 0; }

/* gallery */
.hero { margin: 0; }
.hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
figcaption { margin-top: .65rem; font: 500 .875rem/1.4 var(--sans); color: var(--slate); }
.photo { display: block; cursor: zoom-in; }
.photo:hover + figcaption { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.intro { max-width: 34ch; margin: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 6rem); font: 400 clamp(1.4rem, 2.6vw, 1.95rem)/1.35 var(--serif); }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5.5rem) var(--gap); align-items: end; }
.grid figure { margin: 0; grid-column: 1 / -1; }
.grid img { width: 100%; }
@media (min-width: 760px) {
  .grid .s4 { grid-column: span 4; }
  .grid .s8 { grid-column: span 8; }
  .grid .s12 { grid-column: span 12; }
}

/* text pages */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.side { margin: 0; }
.side img { width: 100%; }

.prose { max-width: 40rem; padding-bottom: .5rem; }
.prose.wide { max-width: 52rem; }
.prose h1 { margin: 0 0 1.6rem; font: 500 clamp(2.2rem, 5vw, 3.4rem)/1.05 var(--serif); letter-spacing: -0.015em; }
.prose p { margin: 0 0 1.2rem; font: 400 1.0625rem/1.7 var(--serif); }
.prose .lead { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.45; }
.prose .mail { margin: 1.2rem 0 2rem; font: 500 clamp(1.5rem, 4.4vw, 2.6rem)/1.15 var(--serif); overflow-wrap: anywhere; }
.prose .mail a { text-decoration-thickness: 2px; text-underline-offset: .2em; }
.prose a.more { font: 500 1rem/1.4 var(--sans); text-underline-offset: 4px; }
.band { margin: clamp(2.5rem, 6vw, 4.5rem) 0 0; }
.band img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

/* lightbox (progressive enhancement; without JS the links open the full image) */
.lb { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(20, 29, 31, .96); color: #e8eeed; }
.lb[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb figure { margin: 0; min-height: 0; display: grid; place-items: center; padding: clamp(12px, 3vw, 36px) clamp(12px, 3vw, 36px) 0; }
.lb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lb .bar2 { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem clamp(12px, 3vw, 36px) 1.2rem; }
.lb .cap { margin: 0; font: 500 .95rem/1.3 var(--sans); }
.lb .ctl { display: flex; gap: .6rem; }
.lb button { font: 500 .9rem/1 var(--sans); color: inherit; background: transparent; border: 1px solid #6c7d80; padding: .7rem 1rem; cursor: pointer; }
.lb button:hover { background: #2a393c; }
.lb button:focus-visible { outline: 3px solid #9fd0dc; outline-offset: 2px; }
.lb::backdrop { background: rgba(20, 29, 31, .96); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .bar nav, .skip, .lb { display: none; } }
