@font-face {
  font-family: 'Handwritten';
  src: url('assets/mono.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f4f4f1;
  --ink: #121412;
  --grid-blue: #b5d9e1;
  --pink: #f76bdc;
  --berry: #9d174f;
  --paper-width: min(100vw, 1366px);
  --paper-shadow: 2px 5px 11px rgb(33 43 33 / 16%);
  font-family: 'Handwritten', 'Courier New', monospace;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-tap-highlight-color: rgb(231 74 161 / 22%);
  scrollbar-color: #af476f var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 280px;
  background: var(--paper) url('assets/grid-tall.png') center top / min(100%, 1366px) auto repeat-y;
}
button, input, textarea, select { font: inherit; }
button, a { touch-action: manipulation; }
button { color: inherit; }
a { color: inherit; text-underline-offset: 0.22em; }
img, svg { display: block; max-width: 100%; }
button, a, input, textarea { caret-color: var(--berry); }
button { cursor: pointer; }
::selection { color: #261324; background: #f5a6d6; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 5px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 400; text-wrap: balance; }
p { overflow-wrap: break-word; }
[id] { scroll-margin-top: 28px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 11px 18px;
  background: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: translateY(0); }

/* The original scanned collage is the visual authority for the home page. */
.home-hero {
  width: min(100%, 1366px);
  margin-inline: auto;
}
.hero-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1366 / 620;
  background: url('assets/home-reference.png') center top / 100% auto no-repeat;
}
.site-header {
  position: relative;
  z-index: 2;
  width: min(100%, 1366px);
  margin-inline: auto;
}
.site-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px clamp(20px, 3.7vw, 52px);
  min-height: 84px;
  padding: 12px 28px;
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-size: 20px;
  line-height: 1.15;
  text-decoration: none;
  text-transform: uppercase;
}
.site-nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: #b42776;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}
.site-nav a:hover { color: var(--berry); text-decoration: underline; }
.home-page .site-header { aspect-ratio: 1366 / 170; }
.home-page .site-nav {
  justify-content: flex-start;
  min-height: calc(var(--paper-width) * 0.074);
  padding: 12px 7.25%;
  gap: 10px 4.2%;
}
.home-page .site-nav a { font-size: clamp(15px, 1.465vw, 20px); }
.home-page .site-nav .about-link {
  position: absolute;
  top: calc(var(--paper-width) * -0.065886);
  right: 2.6354%;
  width: 35.8712%;
  aspect-ratio: 490 / 215;
  padding: 0;
  background: url('assets/home-reference.png') 95.8904% 40.1211% / 278.7755% auto no-repeat;
  font-size: 0;
  text-decoration: none;
}
.home-page .site-nav .about-link:hover { filter: brightness(1.04); }
.about-section {
  position: relative;
  display: grid;
  grid-template-columns: 43.10345% minmax(0, 1fr);
  gap: 5.09404%;
  width: min(93.4114%, 1276px);
  margin: 0 auto;
  padding-bottom: 92px;
}
.home-page main {
  position: relative;
  isolation: isolate;
}
.home-page main::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: calc(var(--paper-width) * 0.33382);
  pointer-events: none;
  background: linear-gradient(to bottom, rgb(255 100 220 / 0) 0%, rgb(255 100 220 / 12%) 21%, rgb(255 100 220 / 80%) 77%, #f966db 100%);
}
.about-portrait { align-self: start; }
.about-portrait svg { width: 100%; height: auto; aspect-ratio: 550 / 655; }
.about-copy { min-width: 0; }
.about-heading { width: 83.1%; margin-left: -12.85%; }
.about-heading svg { width: 100%; height: auto; aspect-ratio: 550 / 150; }
.about-bio {
  margin-top: 15px;
  font-size: clamp(16px, 1.4641vw, 20px);
  line-height: 2.04;
  text-transform: uppercase;
}
.about-bio p { max-width: 70ch; }
.about-note {
  max-width: 68ch;
  margin-top: clamp(35px, 6.2vw, 85px);
  font-size: clamp(16px, 1.4641vw, 20px);
  line-height: 1.65;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}
.home-page .site-footer { background: #f966db; }

@media (min-width: 701px) {
  .about-section { container-type: inline-size; isolation: isolate; }
  .about-section::before {
    content: '';
    position: absolute;
    z-index: -2;
    top: 0;
    bottom: 0;
    left: -3.52675%;
    width: 107.0535%;
    background: url('assets/grid-tall.png') center -63.479624cqw / 107.0535cqw auto repeat-y;
    pointer-events: none;
  }
  .about-section::after {
    content: '';
    position: absolute;
    z-index: -1;
    bottom: 0;
    left: -3.52675%;
    width: 107.0535%;
    height: 35.7366cqw;
    background: linear-gradient(to bottom, rgb(255 100 220 / 0) 0%, rgb(255 100 220 / 12%) 21%, rgb(255 100 220 / 80%) 77%, #f966db 100%);
    pointer-events: none;
  }
  .home-page main::after { display: none; }
}

/* Every section title is real paper lettering, sourced or generated as art. */
.page-heading {
  width: min(100%, 1366px);
  margin: 2px auto 0;
}
.page-title { background-repeat: no-repeat; }
.title-photography {
  width: 100%;
  aspect-ratio: 1366 / 270;
  background-image: url('assets/photography-reference.png');
  background-size: 100% auto;
  background-position: center top;
}
.photography-page { background-position: center 86px; }
.title-activities, .title-artwork, .title-more {
  width: min(93%, 1266px);
  margin-inline: auto;
}
.title-activities svg, .title-artwork svg, .title-more svg { display: block; width: 100%; height: auto; }
.title-more { width: min(64%, 740px); }
.collection-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: min(89.2%, 1218px);
  margin: 10px auto 86px;
}
.collection-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 3px;
  max-width: 100%;
  font-size: clamp(21px, 2.08vw, 29px);
  line-height: 1.3;
  text-decoration: none;
  text-transform: uppercase;
  text-wrap: balance;
}
.collection-nav a:hover { color: var(--berry); text-decoration: underline; }
.gallery-section {
  width: min(89.2%, 1218px);
  margin: 0 auto 110px;
}
.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 45px;
}
.section-heading h2 {
  font-size: clamp(27px, 2.7vw, 37px);
  line-height: 1.25;
  text-transform: uppercase;
}
.section-heading p, .section-note {
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.5;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 66px 42px;
  padding: 12px 12px 0;
}
.photography-page #luggage { position: relative; isolation: isolate; }
.photography-page #luggage::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 64px;
  left: -6.05%;
  width: 112.1%;
  aspect-ratio: 1366 / 455;
  background: url('assets/photography-reference.png') center 81.4061% / 100% auto no-repeat;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 6%, #000 88%, transparent 100%);
  pointer-events: none;
}
.photography-page #luggage .gallery-grid { padding-top: 28px; }
.photography-page #luggage .photo-card:nth-child(2) { margin-top: 76px; }
.photo-card {
  --tilt: -1.8deg;
  position: relative;
  min-width: 0;
  padding: 10px 10px 22px;
  background: #fffefa;
  box-shadow: var(--paper-shadow);
  transform: rotate(var(--tilt));
}
.photo-card:nth-child(3n + 2) { --tilt: 1.6deg; margin-top: 28px; }
.photo-card:nth-child(3n + 3) { --tilt: -0.6deg; margin-top: 8px; }
.photo-card:nth-child(6n + 4) { --tilt: 2deg; }
.photo-card::before {
  content: '';
  position: absolute;
  z-index: 1;
  top: -13px;
  left: calc(50% - 30px);
  width: 60px;
  height: 25px;
  background: rgb(234 204 152 / 66%);
  transform: rotate(-6deg);
  pointer-events: none;
}
.photo-card:nth-child(4n + 2)::before { background: rgb(226 163 192 / 57%); transform: rotate(5deg); }
.photo-card:nth-child(4n + 3)::before { background: rgb(170 204 183 / 61%); }
.photo-card a {
  display: block;
  text-decoration: none;
}
.photo-card a:focus-visible { outline-offset: 4px; }
.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  background: #e4e4dc;
}
.photo-card figcaption {
  padding: 13px 4px 0;
  font-size: 16px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  text-align: center;
}
@media (hover: hover) {
  .photo-card:has(a:hover) { --paper-shadow: 3px 8px 16px rgb(33 43 33 / 23%); }
  .photo-card a:hover + figcaption { color: var(--berry); }
}
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  min-height: 100px;
  padding: 24px max(5.4%, calc((100% - 1218px) / 2));
  font-size: 17px;
}
.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.site-footer a:hover { color: var(--berry); }
.not-found {
  width: min(87%, 900px);
  min-height: 66vh;
  margin: auto;
  padding: 90px 0;
}
.not-found h1 { margin-bottom: 25px; font-size: clamp(36px, 6vw, 70px); }
.not-found p { margin-bottom: 24px; }
.not-found a { display: inline-flex; align-items: center; min-height: 44px; }

/* A native, keyboard-accessible viewer keeps each photograph at its own ratio. */
body.lightbox-open, body:has(.image-lightbox[open]) { overflow: hidden; }
.image-lightbox {
  position: fixed;
  width: min(1280px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  color: var(--paper);
  background: #171816;
  box-shadow: 0 16px 60px rgb(0 0 0 / 35%);
  overflow: auto;
  overscroll-behavior: contain;
  color-scheme: dark;
}
.image-lightbox::backdrop { background: rgb(20 22 20 / 88%); }
.image-lightbox [hidden] { display: none; }
.lightbox-shell { position: relative; padding: 52px 24px 18px; }
.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 6px 12px;
  color: #fffefa;
  background: transparent;
  border: 0;
  font-size: 24px;
  line-height: 1;
}
.lightbox-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 130px;
}
.lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 205px);
  margin-inline: auto;
  object-fit: contain;
}
.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px 28px;
  padding-top: 17px;
}
.lightbox-caption { flex: 1; min-width: 0; max-width: 76ch; font-size: 17px; line-height: 1.4; }
.lightbox-controls { display: flex; align-items: center; flex-shrink: 0; gap: 12px; }
.lightbox-count { font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox-prev, .lightbox-next {
  min-width: 44px;
  min-height: 44px;
  padding: 6px 13px;
  color: #fffefa;
  background: #30352d;
  border: 1px solid #727d68;
  font-size: 20px;
}
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: #53413e; }
.image-lightbox :focus-visible { outline-color: #fa9ed9; }
.lightbox-error { padding: 35px; max-width: 58ch; text-align: center; }
.lightbox-original { display: inline-flex; align-items: center; min-height: 44px; margin-top: 15px; }

@media (min-width: 1600px) {
  body { background-size: 1366px auto; }
}

@media (max-width: 1000px) {
  .home-page .site-nav { padding-left: 5.4%; gap: 8px 3%; }
  .home-page .site-header { margin-bottom: 12px; }
  .about-section { grid-template-columns: 43% minmax(0, 1fr); gap: 4%; padding-bottom: 60px; }
  .about-bio { line-height: 1.8; }
  .about-note { margin-top: 32px; line-height: 1.6; }
  .gallery-grid { column-gap: 28px; row-gap: 50px; padding-inline: 4px; }
  .photo-card { padding: 8px 8px 18px; }
  .photo-card figcaption { font-size: 15px; }
}

@media (max-width: 700px) {
  :root { font-size: 17px; }
  .site-nav { gap: 4px 22px; min-height: 100px; padding: 8px 18px; }
  .site-nav a { font-size: 17px; }
  .home-page .site-header { height: auto; padding-bottom: 35px; }
  .home-page .site-header { aspect-ratio: auto; margin-bottom: 0; }
  .home-page .hero-art { aspect-ratio: 1366 / 740; }
  .home-page .hero-art::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60%;
    height: 16.2162%;
    background: url('assets/grid-tall.png') left 43.7853% / 166.6667% auto no-repeat;
  }
  .home-page .site-nav {
    justify-content: center;
    gap: 2px 24px;
    padding: 12px 20px;
    min-height: 100px;
  }
  .home-page .site-nav a { font-size: 17px; }
  .home-page .site-nav .about-link {
    position: static;
    width: auto;
    min-width: 80px;
    aspect-ratio: auto;
    background: none;
    font-size: 17px;
    text-transform: uppercase;
  }
  .home-page .site-nav .about-link:hover { color: var(--berry); filter: none; text-decoration: underline; }
  .home-page .site-nav .about-link em { margin-left: 0.3em; }
  .about-section {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    width: min(92%, 550px);
    padding-bottom: 48px;
  }
  .about-portrait {
    width: 93%;
    margin-inline: auto;
    padding: 8px 8px 14px;
    background: #fffefa;
    box-shadow: 2px 5px 11px rgb(33 43 33 / 16%);
  }
  .about-portrait svg { clip-path: polygon(0 0, 96% 0, 96% 18%, 100% 18%, 100% 100%, 0 100%); }
  .about-copy { padding-inline: 14px; }
  .about-heading {
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 5px;
    background: #fffefa;
    box-shadow: 1px 3px 7px rgb(33 43 33 / 13%);
  }
  .about-bio { margin-top: 8px; font-size: 17px; line-height: 1.8; }
  .about-bio p + p { margin-top: 14px; }
  .about-note { margin-top: 30px; font-size: 17px; line-height: 1.65; letter-spacing: 0; }
  .home-page main::after { inset: 45% 0 0; height: auto; }
  .page-heading { margin-top: 8px; }
  .photography-page { background-position: center 108px; }
  .title-activities, .title-artwork, .title-more { width: 100%; }
  .title-more { width: 72%; }
  .collection-nav { gap: 11px; width: 88%; margin: 24px auto 52px; }
  .collection-nav a { font-size: 21px; }
  .gallery-section { width: 88%; margin-bottom: 74px; }
  .section-heading { display: block; margin-bottom: 33px; }
  .section-heading h2 { font-size: 28px; }
  .section-heading p { margin-top: 12px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px 23px; padding-inline: 0; }
  .photography-page #luggage::before { top: 115px; }
  .photography-page #luggage .gallery-grid { padding-top: 24px; }
  .photography-page #luggage .photo-card:nth-child(2) { margin-top: 24px; }
  .photo-card { padding: 6px 6px 15px; }
  .photo-card:nth-child(3n + 2), .photo-card:nth-child(3n + 3) { margin-top: 0; }
  .photo-card:nth-child(2n) { margin-top: 19px; }
  .photo-card::before { width: 46px; height: 20px; top: -10px; left: calc(50% - 23px); }
  .photo-card figcaption { padding: 10px 2px 0; font-size: 14px; }
  .site-footer { min-height: 90px; padding: 18px 6%; font-size: 16px; }
  .image-lightbox { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); }
  .lightbox-shell { padding: 52px 10px 12px; }
  .lightbox-image { max-height: calc(100dvh - 240px); }
  .lightbox-footer { flex-direction: column; align-items: stretch; gap: 14px; padding: 17px 8px 0; }
  .lightbox-caption { font-size: 16px; text-align: center; }
  .lightbox-controls { justify-content: center; }
}

@media (max-width: 390px) {
  .home-page .site-nav, .site-nav { column-gap: 18px; }
  .home-page .site-nav a, .site-nav a { font-size: 16px; }
  .gallery-grid { column-gap: 18px; }
  .gallery-section { width: 89%; }
  .photo-card figcaption { font-size: 13px; }
  .about-copy { padding-inline: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .skip-link, .site-nav, .site-footer, .image-lightbox { display: none !important; }
  body { background: #fff; }
  .gallery-section { break-inside: avoid; }
  .photo-card { break-inside: avoid; transform: none; box-shadow: none; }
}
