:root {
  color-scheme: light;
  --paper: #fcfaf3;
  --white-paper: #fffdf7;
  --ink: #503d32;
  --muted: #70594a;
  --moss: #586d43;
  --sage-paper: #edf0df;
  --peach-paper: #f6ebdf;
  --line: #dacabb;
  --line-strong: #bfa99a;
  --display: Gaegu, 'DM Sans', sans-serif;
  --gutter: clamp(1rem, 4vw, 2.25rem);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 0; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  background-image: radial-gradient(circle, #b8957b50 .65px, transparent .88px);
  background-size: 17px 16px;
  font-family: var(--display);
  font-size: clamp(1.2rem, 1.8vw, 1.4rem);
  line-height: 1.26;
}
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, summary { font: inherit; cursor: pointer; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-weight: 700; line-height: .98; letter-spacing: -.036em; }
img, svg { display: block; }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}
::selection { color: var(--ink); background: #dae2c3; }

.shell { width: min(66rem, calc(100% - 2 * var(--gutter))); margin-inline: auto; }
.skip-link {
  position: fixed;
  z-index: 3;
  top: .6rem;
  left: .6rem;
  padding: .6rem .85rem;
  transform: translateY(-150%);
  color: #fffdf7;
  background: var(--moss);
  border-radius: .4rem;
}
.skip-link:focus { transform: translateY(0); }
.site-header {
  min-height: 4.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .65rem 1rem;
  border-bottom: 1px dashed var(--line-strong);
}
.wordmark {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -.085em;
  line-height: 1;
  text-decoration: none;
}
.wordmark span { color: var(--moss); margin-inline-start: .04em; }
.site-note {
  color: var(--muted);
  font-size: clamp(.95rem, 2.6vw, 1.18rem);
  line-height: 1.05;
  text-align: right;
}
.site-note span { color: var(--moss); margin-inline: .2em; }
.quiet-link {
  font-weight: 700;
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: .2em;
  text-decoration-color: #879374a1;
}
.quiet-link:hover { text-decoration-color: currentColor; }

.welcome {
  position: relative;
  padding-block: clamp(2rem, 5.4vw, 3.95rem) clamp(1.25rem, 3.5vw, 2.2rem);
  text-align: center;
  border-bottom: 1px dashed var(--line-strong);
}
.note-label {
  color: var(--moss);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: .015em;
}
.welcome h1 {
  margin-block: .24rem .65rem;
  font-size: clamp(2.85rem, 6.8vw, 5.25rem);
  text-wrap: balance;
}
.welcome h1 span { display: inline-block; color: var(--moss); }
.welcome-deck {
  max-width: 34rem;
  margin-inline: auto;
  color: var(--muted);
  text-wrap: balance;
}
.welcome-sprig {
  position: absolute;
  top: clamp(.5rem, 2.9vw, 1.6rem);
  width: clamp(2.75rem, 8vw, 6.1rem);
  height: auto;
  opacity: .65;
  pointer-events: none;
}
.sprig-left { left: clamp(.5rem, 4vw, 3.9rem); transform: scaleX(-1) rotate(-12deg); }
.sprig-right { right: clamp(.5rem, 4vw, 3.9rem); transform: rotate(-12deg); }
.sticker-nav {
  max-width: 41rem;
  margin: clamp(1.05rem, 2.6vw, 1.55rem) auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(.3rem, 2vw, 1.25rem);
}
.sticker {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .12rem;
  min-width: 0;
  padding: .25rem .2rem .38rem;
  border: 1px dashed transparent;
  border-radius: .62rem .74rem .68rem .6rem;
  color: var(--muted);
  font-size: clamp(1.02rem, 2.8vw, 1.34rem);
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
}
.sticker-icon {
  width: clamp(3.25rem, 7vw, 4.65rem);
  height: auto;
  flex: 0 0 auto;
  transform: rotate(var(--lean, -3deg));
}
.sticker:nth-child(even) { --lean: 4deg; }
.sticker:hover, .sticker:focus-visible { background-color: #f5ecde; border-color: var(--line-strong); color: var(--ink); }
.sticker:hover .sticker-icon { transform: translateY(-.18rem) rotate(calc(var(--lean, -3deg) * -1)); }

.roll-section, .nook, .notes-section, .mailbox { margin-block-start: clamp(2.5rem, 6.4vw, 4.65rem); }
section[id] { scroll-margin-block-start: 1.05rem; }
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: .7rem 1.3rem;
  margin-block-end: 1.18rem;
}
main h2 { font-size: clamp(2.25rem, 4.9vw, 3.45rem); }
.section-heading h2, .bio-copy h2, .notes-section h2 { margin-block-start: .08rem; }
.tray-controls { display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .7rem; }
.tray-status { color: var(--muted); font-size: 1.02rem; }

.paper-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  max-width: 100%;
  min-height: 2.85rem;
  padding: .38rem .67rem;
  border: 1px solid var(--line-strong);
  border-radius: .43rem .51rem .39rem .48rem;
  background: var(--white-paper);
  color: var(--ink);
  font-size: clamp(1.07rem, 2.6vw, 1.27rem);
  font-weight: 700;
  line-height: 1.04;
  text-decoration: none;
}
.paper-button:hover { background: var(--peach-paper); border-color: #9d806d; }
.button-icon { width: 1.85rem; height: 1.85rem; flex: 0 0 auto; }
.print-tray, .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(.55rem, 2.2vw, 1.45rem);
}
.print-tray { padding-inline: .12rem; }
.print {
  display: block;
  min-width: 0;
  position: relative;
  padding: clamp(.28rem, .8vw, .58rem);
  background: var(--white-paper);
  border: 1px solid var(--line);
  border-radius: .27rem .37rem .31rem .43rem;
  box-shadow: 0 .25rem .65rem #6a483714, 0 1px 0 #af937d2c;
  text-decoration: none;
}
a.print:hover { border-color: #a68972; box-shadow: 0 .35rem .75rem #6a483720; }
.snapshot::before {
  content: '';
  position: absolute;
  z-index: 1;
  width: clamp(1.15rem, 5vw, 2.95rem);
  height: clamp(.42rem, 1.4vw, .84rem);
  left: 50%;
  top: 0;
  transform: translate(-50%, -52%) rotate(-5deg);
  background: #ead3afbd;
  border: 1px solid #d4b68e49;
  pointer-events: none;
}
.snapshot:nth-child(2)::before { background: #d0d9b2c2; transform: translate(-50%, -52%) rotate(4deg); }
.snapshot:nth-child(3)::before { background: #ead0c0cb; transform: translate(-50%, -52%) rotate(-3deg); }
.print-image {
  display: block;
  overflow: hidden;
  background: #ece8db;
  border-radius: .18rem .2rem .16rem .25rem;
}
.print-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.print-caption {
  display: block;
  padding: .4rem .15rem .04rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.28rem);
  line-height: 1.07;
}
a.print:hover .print-caption { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
.roll-link { text-align: center; margin-block-start: 1.05rem; }

.paper-panel {
  background: var(--sage-paper);
  border: 1px solid #d6d9c5;
  border-radius: .7rem .55rem .76rem .6rem;
  padding: clamp(1rem, 3.2vw, 2.1rem);
}
.nook {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 2.9rem);
}
.bio-print { align-self: center; }
.bio-copy h2 { margin-block-end: .46rem; }
.bio-copy p:not(.note-label), .section-deck { color: var(--muted); }
.bio-copy p + p { margin-block-start: .45rem; }

.notes-section > .section-deck { margin-block-start: .38rem; }
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .85rem;
  margin-block-start: 1rem;
}
.project-note {
  border: 1px solid var(--line);
  border-radius: .63rem .55rem .62rem .5rem;
  background: var(--white-paper);
}
.project-note:nth-child(2) { background: #f9f2e6; }
.project-note summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(.42rem, 2vw, .82rem);
  list-style: none;
  padding: clamp(.7rem, 2.25vw, 1.1rem);
}
.project-note summary::-webkit-details-marker { display: none; }
.project-note summary:hover .project-name { text-decoration: underline; text-underline-offset: .15em; }
.note-icon { width: clamp(2.6rem, 5.6vw, 3.75rem); height: auto; }
.project-note-heading { display: grid; gap: .09rem; }
.project-name { color: var(--ink); font-size: clamp(1.33rem, 3vw, 1.7rem); line-height: 1.05; font-weight: 700; }
.project-role { color: var(--muted); font-size: 1.07rem; line-height: 1.12; }
.project-result { color: var(--moss); font-weight: 700; font-size: 1.12rem; }
.note-toggle {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--moss);
}
.note-toggle::before { content: '+'; }
.project-note[open] .note-toggle::before { content: '−'; }
.note-body { margin: 0 1rem 1rem; padding-block-start: .7rem; border-top: 1px dashed var(--line); color: var(--muted); }

.mailbox {
  margin-block-end: 1.5rem;
  display: flex;
  align-items: center;
  gap: .65rem clamp(.8rem, 2vw, 1.4rem);
  background: var(--peach-paper);
  border-color: #e1cdbd;
}
.mailbox-icon { width: clamp(3.1rem, 7vw, 5.1rem); height: auto; flex: 0 0 auto; }
.mailbox p { margin-block-start: .18rem; color: var(--muted); }
.mailbox .paper-button { margin-inline-start: auto; overflow-wrap: anywhere; }
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem .85rem;
  color: var(--muted);
  padding-block: .7rem 1.65rem;
  border-top: 1px dashed var(--line-strong);
  font-size: 1.13rem;
}

.album-intro {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: clamp(1.7rem, 4.9vw, 3.25rem) 0 clamp(1.25rem, 3vw, 1.9rem);
  border-bottom: 1px dashed var(--line-strong);
}
.album-camera { width: clamp(3.6rem, 8vw, 5rem); height: auto; transform: rotate(-5deg); }
.album-intro h1 { margin-block: .16rem .46rem; font-size: clamp(2.7rem, 6.6vw, 4.8rem); text-wrap: balance; }
.album-intro p:not(.note-label) { color: var(--muted); text-wrap: balance; }
.album { margin-block-start: 1.1rem; }
.portfolio-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .45rem 1rem; margin-block-end: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: .35rem; }
.filters button {
  display: inline-flex;
  align-items: center;
  gap: .19rem;
  min-height: 2.8rem;
  padding: .3rem .55rem;
  color: var(--ink);
  font-size: 1.09rem;
  font-weight: 700;
  line-height: 1;
  border: 1px solid var(--line);
  border-radius: .43rem .5rem .4rem .55rem;
  background: var(--white-paper);
}
.filters button:hover { border-color: #a98e78; }
.filters button[aria-pressed='true'] { color: #445639; background: var(--sage-paper); border-color: #a5ae90; }
.filter-icon { width: 1.72rem; height: 1.72rem; flex: 0 0 auto; }
.album-count { color: var(--muted); font-size: 1.06rem; }
.portfolio-grid { gap: clamp(.7rem, 1.95vw, 1.15rem); }
.album-print .print-caption { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .07rem .52rem; }
.photo-title { font-weight: 700; color: var(--ink); }
.photo-label { font-size: .91rem; }
.photo-portrait img { object-position: 50% 40%; }
.album-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .65rem .95rem; margin-block-start: 1.3rem; }
.gallery-footer { display: block; margin-block-start: 2.4rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .4rem; }
.credits { margin-block-start: .4rem; }
.credits summary { color: var(--muted); width: fit-content; }
.credits ul { display: flex; flex-wrap: wrap; gap: .25rem 1rem; list-style: none; margin: .25rem 0 0; padding-inline-start: 0; }

.lightbox {
  width: min(calc(100% - 1.35rem), 65rem);
  max-width: none;
  max-height: calc(100% - 1.35rem);
  max-height: calc(100dvh - 1.35rem);
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--white-paper);
  border: 1px solid var(--line);
  border-radius: .6rem;
  box-shadow: 0 1rem 3rem #35271e42;
}
.lightbox::backdrop { background: #382d24d9; }
.lightbox-inner { padding: clamp(.66rem, 2vw, 1rem); }
.lightbox-header, .lightbox-footer { display: flex; justify-content: space-between; align-items: center; gap: .45rem 1rem; }
.lightbox-header { margin-block-end: .53rem; }
.lightbox-header h2 { font-size: clamp(1.64rem, 3.8vw, 2.4rem); }
.lightbox-header p, .lightbox-footer { color: var(--muted); font-size: 1.08rem; }
.lightbox-image-wrap { display: grid; place-items: center; min-height: 5rem; overflow: hidden; border-radius: .28rem; background: #ece8db; }
.lightbox-image-wrap img { width: auto; height: auto; max-width: 100%; max-height: min(67vh, 52rem); max-height: min(67dvh, 52rem); object-fit: contain; }
.lightbox-image-wrap img:not([src]) { display: none; }
.lightbox-footer { flex-wrap: wrap; margin-block-start: .55rem; }
.lightbox-navigation { display: flex; align-items: center; gap: .52rem; margin-inline-start: auto; }
.square-button {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: .44rem;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}
.square-button:hover { background: var(--peach-paper); }
.square-button:disabled { opacity: .55; cursor: default; }
#lightbox-count { min-width: 3.25rem; text-align: center; font-variant-numeric: tabular-nums; }

@media (min-width: 720px) {
  .snapshot:nth-child(1) { transform: rotate(-.9deg); }
  .snapshot:nth-child(2) { transform: rotate(.5deg); }
  .snapshot:nth-child(3) { transform: rotate(-.65deg); }
  .snapshot:hover { transform: translateY(-.16rem) rotate(0); }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .sticker-icon, .print { transition: transform .18s, border-color .18s, box-shadow .18s; }
  .sticker, .paper-button, .filters button { transition: background-color .16s, border-color .16s, color .16s; }
}
@media (max-width: 780px) {
  .portfolio-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .welcome-sprig { opacity: .45; }
}
@media (max-width: 640px) {
  .nook { grid-template-columns: minmax(0, 1fr); }
  .bio-copy { grid-row: 1; }
  .bio-print { width: min(100%, 24rem); }
  .notes-grid { grid-template-columns: minmax(0, 1fr); }
  .mailbox { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .mailbox .paper-button { justify-self: start; margin-inline-start: 0; grid-column: 2; }
  .welcome-sprig { top: .55rem; }
  .sprig-left { left: -.2rem; }
  .sprig-right { right: -.2rem; }
}
@media (max-width: 470px) {
  .welcome { padding-block-start: 1.75rem; }
  .welcome h1 { max-width: 9em; margin-inline: auto; }
  .welcome-sprig { width: 2.45rem; opacity: .37; }
  .sticker { padding-inline: .1rem; }
  .section-heading { align-items: start; }
  .print-tray .print-caption { font-size: .94rem; line-height: 1.01; }
  .portfolio-grid { grid-template-columns: minmax(0, 1fr); }
}
