/* A: Gallery. Dark warm room, name low and large, uneven wall of frames. */
:root {
  --room: #151311;
  --wall: #1d1a17;
  --pane: #24201c;
  --ink: #ece6dc;
  --muted: #9a9086;
  --line: #342f29;
  --accent: #c9a77c;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--room); color: var(--ink);
  font: 18px/1.65 var(--serif);
}
/* fine grain over the whole page */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--room); padding: 10px 14px; z-index: 3; }
.skip:focus { top: 16px; }

.top {
  position: absolute; inset: 0 0 auto; z-index: 1;
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1360px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px);
}
.mark { font: 500 14px/1 var(--sans); letter-spacing: .08em; text-decoration: none; }
nav a {
  font: 500 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; margin-left: 28px; color: var(--muted);
  transition: color .2s ease;
}
nav a:hover { color: var(--ink); }

main { max-width: 1360px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

.hero {
  min-height: 100dvh; display: grid; grid-template-rows: 1fr auto auto;
  padding: 120px 0 9vh; position: relative;
}
.hero::after { /* soft lamp light from top right */
  content: ""; position: absolute; right: -10%; top: -10%; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(closest-side, rgba(201,167,124,.10), transparent 70%);
  pointer-events: none;
}
.hero-meta { align-self: start; justify-self: end; text-align: right; font: 500 13px/1.9 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.hero-meta p { margin: 0; }
h1 {
  font-weight: 400; font-size: clamp(64px, 15vw, 220px); line-height: .86;
  letter-spacing: -.035em; margin: 0;
}
h1 em { font-style: italic; color: var(--accent); padding-left: .55em; }
.lede { font-size: clamp(18px, 1.8vw, 22px); color: var(--muted); max-width: 32ch; margin: 36px 0 0; text-wrap: balance; }

h2 { font: 500 13px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 0; }

.work { padding: 14vh 0 12vh; border-top: 1px solid var(--line); }
.work-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.work-head p { margin: 0; color: var(--muted); font-style: italic; }
.wall { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2.4vw, 36px); align-items: start; }
.slot { margin: 0; }
.pane {
  background: var(--pane); border: 1px solid var(--line); border-radius: 2px;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.03);
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .3s ease;
}
.slot:hover .pane { transform: translateY(-4px); border-color: #4a4239; }
figcaption { font: 13px/1 var(--sans); color: var(--muted); margin-top: 14px; letter-spacing: .04em; }
figcaption span { font-family: var(--mono); color: var(--accent); margin-right: 10px; }
.s1 { grid-column: 1 / 7; } .s1 .pane { aspect-ratio: 4 / 5; }
.s2 { grid-column: 8 / 13; margin-top: 18vh; } .s2 .pane { aspect-ratio: 1; }
.s3 { grid-column: 2 / 6; } .s3 .pane { aspect-ratio: 3 / 4; }
.s4 { grid-column: 7 / 13; margin-top: 8vh; } .s4 .pane { aspect-ratio: 3 / 2; }
.s5 { grid-column: 4 / 10; margin-top: 4vh; } .s5 .pane { aspect-ratio: 16 / 9; }

.about { padding: 14vh 0 16vh; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.about-body { max-width: 46ch; }
.big { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.3; margin: 0; letter-spacing: -.01em; text-wrap: pretty; }
.note { color: var(--muted); font-style: italic; margin: 32px 0 0; }

.foot {
  max-width: 1360px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 48px) 48px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; font: 13px/1 var(--sans); color: var(--muted); letter-spacing: .06em;
}
.foot p { margin: 0; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }

@media (max-width: 760px) {
  nav a { margin-left: 18px; }
  .hero-meta { justify-self: start; text-align: left; }
  h1 em { padding-left: .3em; }
  .work-head { flex-direction: column; gap: 12px; }
  .wall { grid-template-columns: 1fr 1fr; }
  .s1, .s4, .s5 { grid-column: 1 / -1; margin-top: 0; }
  .s2, .s3 { grid-column: auto; margin-top: 0; }
  .s2 { margin-top: 40px; }
  .about { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .pane { transition: none; } }
