/* Previous body font, kept for comparison. Only downloads if --body uses it. */
@font-face { font-family: "Inter Tight"; src: url("assets/fonts/InterTight-Variable.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/BarlowSemiCondensed-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/BarlowSemiCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow Semi Condensed"; src: url("assets/fonts/BarlowSemiCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Rye"; src: url("assets/fonts/Rye-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  color-scheme: light;
  --parchment: #CFB08A;
  --parchment-light: #DCC19C;
  --parchment-dark: #BB9670;
  --tile: #C4A27C;
  --cream: #EEDDBF;
  --cream-soft: #D9BE98;
  --ink: #140E08;
  --ink-soft: #2E2216;
  --wall: #1A130C;
  --wall-2: #241A10;
  --rule: #6E5238;
  --rule-dark: #5E4530;
  --accent: #8E2418;
  --accent-bright: #B33A24;
  --hover: #6B2318;
  --accent-on-dark: #D95C45; /* red for small text on dark backgrounds, ~5:1 on --ink */
  --shadow: 0 1px 2px rgba(40, 22, 8, 0.25), 0 10px 24px -6px rgba(40, 22, 8, 0.35), 0 28px 50px -18px rgba(40, 22, 8, 0.4);
  --shadow-lift: 0 2px 4px rgba(40, 22, 8, 0.25), 0 18px 36px -8px rgba(40, 22, 8, 0.42), 0 40px 70px -22px rgba(40, 22, 8, 0.5);
  --display: "Rye", serif;
  --body: "Barlow Semi Condensed", system-ui, sans-serif; /* was "Inter Tight" */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  position: relative; display: flex; flex-direction: column; margin: 0; min-height: 100vh; overflow-x: hidden; overflow-x: clip; /* clip doesn't create a scroll container, so the sticky header holds while the lightbox locks scrolling */
  color: var(--ink); font: 400 1rem/1.5 var(--body);
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 30% 0%, rgba(245, 228, 200, 0.55), transparent 50%),
    radial-gradient(circle at 4% 40%, rgba(95, 55, 25, 0.14), transparent 22%),
    radial-gradient(circle at 96% 70%, rgba(95, 55, 25, 0.16), transparent 24%);
}
/* Paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: 0.32; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .22 0 0 0 0 .1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* Vignette */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 99; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 62%, rgba(70, 38, 15, 0.32) 100%);
}
main { flex: 1; }
img, svg { display: block; }
h1, h2, p, figure { margin: 0; }
a { color: var(--ink); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--accent); color: var(--cream); }

h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
h2 { font-size: clamp(2.5rem, 5vw, 3.75rem); line-height: 1; text-shadow: 2px 2px 0 rgba(142, 36, 24, 0.22); }

.wrap { max-width: 1280px; margin-inline: auto; padding-inline: 32px; }
.label { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); }
.star { fill: var(--accent); }

/* Buttons */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 34px;
  border: 1.5px solid var(--ink); color: var(--ink);
  font-size: 0.875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--cream); transform: translateY(-2px); box-shadow: 4px 4px 0 var(--accent); }
.btn-solid { background: var(--ink); color: var(--cream); box-shadow: 4px 4px 0 var(--accent); }
.btn-solid:hover { border-color: var(--accent); background: var(--accent); color: var(--cream); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: 1px 1px 0 var(--accent); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background 0.25s, box-shadow 0.25s, border-color 0.25s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(207, 176, 138, 0.86); border-bottom-color: rgba(110, 82, 56, 0.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.2); backdrop-filter: blur(10px) saturate(1.2);
  box-shadow: 0 8px 24px -16px rgba(40, 22, 8, 0.5);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--display); font-size: 1.375rem; text-transform: uppercase; }
.brand .star { transition: transform 0.5s var(--ease); }
.brand:hover .star { transform: rotate(144deg); }
.site-header nav { display: flex; align-items: center; gap: 32px; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.site-header nav a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0.18em; bottom: 10px; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease);
}
.site-header nav a:hover::after { transform: scaleX(1); }
.nav-cta { padding: 0 18px; border: 1.5px solid var(--ink); }
.nav-cta:hover { background: var(--ink); color: var(--cream); }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: center; padding-block: 64px 120px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 32px; }
.hero .place { display: flex; align-items: center; gap: 18px; font-size: 1.0625rem; letter-spacing: 0.32em; color: var(--hover); } /* darker than --accent so small text passes 4.5:1 on parchment */
.hero .place::before { content: ""; width: 56px; height: 1.5px; background: currentColor; }
.hero h1 { display: flex; flex-direction: column; line-height: 0.86; }
.h1-small { display: flex; align-items: baseline; gap: 0.3em; font-size: clamp(30px, 4vw, 60px); letter-spacing: 0.02em; }
.h1-big {
  font-size: clamp(58px, 7.6vw, 118px); letter-spacing: 0.005em; margin-left: -0.04em; margin-top: 0.05em;
  text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(20, 14, 8, 0.18);
}
.hero .tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 1.25rem; letter-spacing: 0.28em; }
.hero .tagline span { white-space: nowrap; }
.hero .tagline .star { width: 12px; height: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 8px; }

.hero-art { position: relative; justify-self: center; width: min(100%, 440px); }
.hero-sheet { transform: rotate(2.5deg); }

/* Framed pieces */
.pinned { position: relative; padding: 10px; background: var(--ink); box-shadow: var(--shadow); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.pinned img { width: 100%; height: auto; }


/* Sections */
.section { display: flex; flex-direction: column; gap: 56px; padding-block: 120px; }
.section-head { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--rule); }
.link-arrow span { display: inline-block; transition: transform 0.25s var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* Work: photo prints */
/* Flex-wrap (not grid) so a partly filled last row stays centered */
.work-grid, .flash-grid { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; }
.work-grid > *, .flash-grid > * { flex: 0 1 250px; min-width: 200px; }
.work-grid { gap: 48px; }
.print { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 14px; background: var(--ink); color: var(--cream); box-shadow: var(--shadow); transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.print:nth-child(3n+1) { --tilt: -0.8deg; }
.print:nth-child(3n+2) { --tilt: 0.5deg; }
.print:nth-child(3n) { --tilt: -0.3deg; }
.print { transform: rotate(var(--tilt, 0deg)); }
.photo { aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* Captions everywhere use .title, .place and .year; each section arranges them its own
   way and the lightbox always reads them title, place, year. Leave out any that are unknown. */
/* Work: place · year as a small red line above the title */
/* Each of place and year starts with a dot in a 24px gutter. The caption is pulled 20px
   left (keeping the 4px inset) and clipped 24px in, so a dot that starts a line (place, or a year that wrapped) is hidden. */
.print figcaption { display: flex; flex-wrap: wrap; gap: 4px 0; margin-left: -20px; padding-right: 4px; clip-path: inset(-12px -12px -12px 24px); }
.print .place, .print .year { order: -1; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-on-dark); }
.print .place::before, .print .year::before { content: "\00B7"; display: inline-block; width: 24px; letter-spacing: 0; text-align: center; }
.print .title { flex-basis: 100%; padding-left: 24px; font-family: var(--display); font-size: 1.125rem; text-transform: uppercase; line-height: 1.15; }

/* Flash: dark pegboard wall */
.flash {
  position: relative; color: var(--cream);
  background-color: var(--wall);
  background-image:
    radial-gradient(circle, rgba(0, 0, 0, 0.55) 1.6px, transparent 2.2px),
    radial-gradient(ellipse at 50% 0%, var(--wall-2), transparent 70%);
  background-size: 22px 22px, 100% 100%;
  border-block: 3px solid var(--ink);
}
.flash h2 { color: var(--cream); text-shadow: 3px 3px 0 var(--accent); }
.flash .label { color: var(--cream-soft); }
.flash .section-head { border-bottom-color: rgba(217, 190, 152, 0.25); }
.flash-grid { gap: 72px; max-width: 894px; margin-inline: auto; padding-top: 8px; } /* max 3 per row */
.flash-grid .pinned { position: relative; background: #0c0805; padding: 10px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.75), 0 2px 4px rgba(0, 0, 0, 0.5); }
.flash-grid .pinned:nth-child(odd) { transform: rotate(-2deg); }
.flash-grid .pinned:nth-child(even) { transform: rotate(1.8deg) translateY(28px); }
/* Flash: place, title and year each on their own line */
.flash-grid figcaption { padding: 12px 2px 2px; font-size: 0.8125rem; letter-spacing: 0.16em; line-height: 1.5; }
.flash-grid figcaption > span { display: block; }

/* Click to enlarge (script.js opens the lightbox). Hover only lifts the piece. */
.print, .flash-grid .pinned { cursor: zoom-in; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.print:focus-visible, .flash-grid .pinned:focus-visible { outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .print:hover { z-index: 2; transform: rotate(0deg) translateY(-6px) scale(1.14); box-shadow: var(--shadow-lift); }
  .flash-grid .pinned:hover { z-index: 2; transform: rotate(0deg) translateY(-6px) scale(1.14); box-shadow: 0 30px 60px -16px rgba(0, 0, 0, 0.85), 0 4px 8px rgba(0, 0, 0, 0.5); }
  .flash-grid .pinned:nth-child(even):hover { transform: rotate(0deg) translateY(22px) scale(1.14); }
}

/* Lightbox */
.lightbox { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--cream); }
.lightbox::backdrop { background: rgba(12, 8, 5, 0.94); }
.lightbox[open] { display: grid; place-items: center; animation: lb-in 0.25s var(--ease); }
@keyframes lb-in { from { opacity: 0; } }
html:has(.lightbox[open]) { overflow: hidden; }
.lightbox figure { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 64px 88px 24px; }
.lightbox img { max-width: min(100%, 1100px); max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.9); }
.lightbox figcaption { font-size: 0.875rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cream-soft); text-align: center; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 1.5px solid rgba(238, 221, 191, 0.45); border-radius: 50%; background: rgba(20, 14, 8, 0.6); color: var(--cream); font: 400 1.5rem/1 var(--body); cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.lb-btn:hover { background: var(--accent); border-color: var(--accent); }
.lb-close { top: 16px; right: 16px; }
.lb-prev, .lb-next { top: 50%; translate: 0 -50%; }
.lb-prev { left: 20px; }
.lb-next { right: 20px; }
.lb-btn[hidden] { display: none; }
@media (max-width: 600px) {
  .lightbox figure { padding: 64px 12px 88px; }
  .lightbox img { max-height: calc(100dvh - 190px); }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .lb-prev { left: calc(50% - 64px); }
  .lb-next { right: calc(50% - 64px); }
}

/* No hover on touch screens, so keep pieces larger there */
@media (hover: none) {
  .work-grid > *, .flash-grid > * { flex-basis: 340px; min-width: 260px; }
}

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: center; }
.snapshot { position: relative; padding: 14px 14px 52px; background: #F3E7CF; box-shadow: var(--shadow); transform: rotate(-2deg); transition: transform 0.45s var(--ease); }
.snapshot img { width: 100%; height: auto; filter: sepia(0.18) contrast(1.02); }
.snapshot figcaption { position: absolute; left: 0; right: 0; bottom: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 0; color: var(--ink-soft); text-transform: uppercase; }
/* Snapshot: title in the display face, place · year small underneath */
.snapshot .title { flex-basis: 100%; text-align: center; font-family: var(--display); font-size: 1.125rem; }
.snapshot .place, .snapshot .year { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.2em; }
.snapshot .place + .year::before { content: "\00B7"; margin-inline: 0.6em; }
.snapshot:has(.place, .year) { padding-bottom: 68px; }
.about-body { display: flex; flex-direction: column; gap: 28px; }
.about-body h2 { margin-top: -14px; }
.lead { max-width: 50ch; font-size: 1.4375rem; line-height: 1.55; color: var(--ink-soft); }

/* Booking ticket */
/* The notches are real holes (mask), so the background shows through them. A mask
   clips box-shadow, so the section casts a single drop-shadow that follows the
   ticket's outline, notches included. Stacking several drop-shadows compounds them. */
.booking { padding-block: 40px 140px; filter: drop-shadow(0 12px 16px rgba(40, 22, 8, 0.3)); }
.ticket {
  --notch: 44px; /* cut-out radius */
  --ring: calc(var(--notch) + 8px); /* gap the inner border keeps around it */
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 28px;
  max-width: 820px; margin-inline: auto; padding: 72px 48px; text-align: center;
  background: var(--cream);
  /* Two full-size layers intersected (not two halves side by side), so there's no seam in the middle */
  -webkit-mask: radial-gradient(circle at 0 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)), radial-gradient(circle at 100% 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px));
  -webkit-mask-composite: source-in;
  mask: radial-gradient(circle at 0 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px)), radial-gradient(circle at 100% 50%, transparent var(--notch), #000 calc(var(--notch) + 0.5px));
  mask-composite: intersect;
}
.ticket::before { content: ""; position: absolute; inset: 12px; border: 1.5px solid var(--ink); outline: 2.5px solid var(--accent); outline-offset: -8.5px; pointer-events: none; -webkit-mask: radial-gradient(circle at 0 50%, transparent var(--ring), #000 calc(var(--ring) + 1px)), radial-gradient(circle at 100% 50%, transparent var(--ring), #000 calc(var(--ring) + 1px)); -webkit-mask-composite: source-in; mask: radial-gradient(circle at 0 50%, transparent var(--ring), #000 calc(var(--ring) + 1px)), radial-gradient(circle at 100% 50%, transparent var(--ring), #000 calc(var(--ring) + 1px)); mask-composite: intersect; }
.ticket h2 { font-size: clamp(44px, 7vw, 92px); text-shadow: 3px 3px 0 var(--accent), 6px 6px 0 rgba(20, 14, 8, 0.18); } /* same red-and-black lettering as DALTON in the hero */
.ticket > p { max-width: 40ch; font-size: 1.375rem; font-weight: 500; color: var(--ink-soft); }
.send-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: -8px 0 0; padding: 0; list-style: none; }
.send-list li { display: flex; align-items: center; gap: 10px; }
.send-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ticket .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }

/* Footer */
.site-footer { background: var(--ink); color: var(--cream-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-block: 32px; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; }
.site-footer a { color: var(--cream); display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: var(--accent-bright); }

/* 404 */
.hero-simple { grid-template-columns: 1fr; justify-items: start; padding-block: 120px 160px; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--ease) var(--d, 0ms), translate 0.8s var(--ease) var(--d, 0ms), transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.js .reveal.in { opacity: 1; translate: 0 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; translate: none; transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 72px; padding-block: 40px 96px; }
  .hero-art { width: min(80%, 400px); }
  .about-grid { grid-template-columns: 1fr; gap: 56px; }
  .snapshot { max-width: 520px; }
}

/* Phone */
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  .site-header .wrap { padding-block: 8px; }
  .site-header nav { gap: 16px; font-size: 0.75rem; letter-spacing: 0.12em; }
  .nav-cta { padding: 0 12px; }
  .hero { gap: 64px; padding-block: 32px 80px; }
  .hero-copy { gap: 24px; }
  .hero .place { font-size: 0.9375rem; }
  .hero .place::before { width: 40px; }
  .hero .tagline { font-size: 1rem; letter-spacing: 0.2em; }
  .hero-actions { flex-direction: column; align-self: stretch; }
  .hero-art { width: 78%; margin-right: -4%; }
  .section { gap: 36px; padding-block: 80px; }
  .work-grid { gap: 28px; }
  .flash-grid { gap: 48px; padding-inline: 8px; }
  .work-grid > *, .flash-grid > * { flex-basis: 100%; min-width: 0; }
  .flash-grid .pinned:nth-child(even) { transform: rotate(1.8deg); }
  .about-grid { gap: 48px; }
  .snapshot { margin-inline: 8px; }
  .booking { padding-block: 24px 96px; }
  .ticket { padding: 56px 28px; }
  .lead { font-size: 1.25rem; }
  .ticket > p { font-size: 1.1875rem; }
  .ticket { --notch: 34px; --ring: calc(var(--notch) + 12px); }
  .ticket::before { inset: 8px; }
  .send-list { flex-direction: column; align-items: center; gap: 8px; }
  .ticket .actions { align-self: stretch; flex-direction: column; }
  .site-footer .wrap { flex-direction: column; text-align: center; gap: 4px; }
}
@media (max-width: 400px) {
  .brand span { display: none; }
}
