:root {
  color-scheme: light;
  --paper: #f1e8eb;
  --ink: #1c1d19;
  --muted: #565952;
  --line: #cdbdc5;
  --accent: #9c315e;
  --pink: #ff369b;
  --card: #fffdfa;
  --card-border: #dbccd3;
  --card-shadow: 0 2px 3px rgb(76 39 61 / 6%), 0 9px 22px rgb(76 39 61 / 9%);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(ellipse at 86% 0, rgb(255 196 222 / 46%), transparent 48rem),
    radial-gradient(ellipse at 0 40%, rgb(222 212 241 / 55%), transparent 46rem),
    radial-gradient(circle, rgb(104 69 98 / 13%) .65px, transparent .85px) 0 0 / 8px 8px,
    var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.skip-link {
  position: fixed;
  z-index: 2;
  left: 1rem;
  top: 1rem;
  padding: .6rem 1rem;
  background: var(--paper);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.pointer-trail {
  position: fixed;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  .pointer-trail { display: none; }
}

.page { position: relative; z-index: 1; width: min(1120px, calc(100% - 2 * clamp(20px, 5vw, 72px))); margin-inline: auto; }
.site-header, .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-block: 20px;
  color: var(--muted);
  font-size: .875rem;
}
.site-header { padding-block: clamp(14px, 2.5vw, 26px); border-bottom: 1px solid var(--line); }
.site-header nav { display: flex; flex-wrap: wrap; gap: 4px clamp(12px, 3vw, 36px); }
.site-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  font-weight: 600;
}
.site-header a, .site-footer a { color: var(--ink); text-decoration: none; }
.site-header a[aria-current="page"] { color: var(--accent); text-decoration: underline; }
.site-header a:hover, .site-footer a:hover { text-decoration: underline; }

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(96px, 19%, 210px);
  align-items: center;
  gap: clamp(14px, 3vw, 40px);
  padding-block: clamp(34px, 6vw, 78px) clamp(36px, 5vw, 64px);
}
.intro:has(.intro-photo[hidden]) { grid-template-columns: minmax(0, 1fr); }
.intro-copy { container-type: inline-size; }
.intro h1 {
  margin: 0;
  font-size: clamp(2.45rem, 16cqi, 8.5rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .96;
}
.pink-underline {
  text-decoration: underline;
  text-decoration-color: var(--pink);
  text-decoration-thickness: max(2px, .055em);
  text-underline-offset: .1em;
  text-decoration-skip-ink: none;
}
/* Give the text mask room for descenders without changing the box on hover. */
.intro h1, .detail-page h1, .case-content h2 { padding-bottom: .18em; }
.title-spotlight {
  color: transparent;
  background: radial-gradient(circle 72px at var(--title-x) var(--title-y), var(--pink) 28%, var(--ink) 100%);
  background-clip: text;
}
.intro p {
  max-width: 35rem;
  margin: 20px 0 0;
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.5;
}
.intro-photo {
  --photo-tilt: 5deg;
  position: relative;
  margin: 0 5px 0 0;
  padding: clamp(5px, .75vw, 10px);
  background: var(--card);
  box-shadow: 2px 4px 12px rgb(28 29 25 / 16%);
  transform: rotate(var(--photo-tilt));
  transition: transform .2s ease;
}
.intro-photo:hover { transform: rotate(1deg); }
.intro-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: -5px;
  left: 30%;
  width: 40%;
  height: clamp(17px, 1.8vw, 24px);
  background: var(--pink);
  opacity: .8;
  transform: rotate(-9deg);
}
.intro-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 27%;
}

.section-title { margin: 0 0 14px; color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 600; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.project {
  position: relative;
  padding: clamp(8px, 1.3vw, 15px);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--card-shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.project:hover:not(.suppress-hover) {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--pink);
  transform: translateY(-3px);
}
.project-image {
  width: 100%;
  aspect-ratio: 1200 / 850;
  display: block;
  height: auto;
  object-fit: cover;
  background: #f5eef1;
  border-radius: 2px;
}
.project-image-contained { object-fit: contain; }
.annotated-photo { position: relative; }
.annotated-photo svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  fill: none;
  stroke: #f9a9d0;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgb(34 15 26 / 80%));
}
.project-type { margin: 14px 0 7px; color: var(--muted); font-size: .75rem; }
.project-copy h3 { margin: 0; font-size: clamp(1.05rem, 2.45vw, 1.85rem); letter-spacing: -.045em; }
.project-copy button {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .45rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  letter-spacing: inherit;
}
.project-copy button::after { content: ""; position: absolute; inset: 0; }
.project-copy button span { color: var(--accent); font-size: .8em; }
.project-copy p { margin: .55rem 0 .25rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.previous-work { margin-top: clamp(44px, 8vw, 96px); }
#previous-work { margin-bottom: clamp(44px, 8vw, 96px); }
.detail-page { padding-block: clamp(44px, 8vw, 96px); }
.detail-page h1 {
  margin: 0 0 24px;
  font-size: clamp(3.2rem, 11vw, 7.5rem);
  letter-spacing: -.075em;
  line-height: 1;
}
.about-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(180px, 35%, 390px);
  align-items: start;
  gap: clamp(20px, 5vw, 64px);
}
.about-header:has(.about-photos[hidden]) { grid-template-columns: 1fr; }
.about-photos:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(10px, 2vw, 22px);
  padding: 8px;
}
.about-photos .intro-photo {
  --photo-tilt: -4deg;
  margin: 0;
  padding-bottom: clamp(12px, 2vw, 20px);
}
.about-photos .intro-photo:nth-child(even) {
  --photo-tilt: 5deg;
  margin-top: 16px;
}
.about-photos .intro-photo:only-child { grid-column: 2; }
.about-lead { max-width: 36rem; margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.35rem); line-height: 1.55; }
.about-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-details p { max-width: 34rem; line-height: 1.6; }
.about-details a { color: var(--accent); }
.detail-section { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.detail-section h2 { margin: 0 0 10px; font-size: 1.35rem; }
.contact-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; }
.contact-links > div { padding: 14px; background: var(--card); border: 1px solid var(--card-border); border-radius: 6px; box-shadow: var(--card-shadow); }
.contact-links dt { font-weight: 700; }
.contact-links dd { margin: 6px 0 0; color: var(--muted); overflow-wrap: anywhere; }
.contact-links a { color: var(--accent); overflow-wrap: anywhere; }
.contact-links dd:has(.contact-copy) { display: flex; align-items: center; gap: 6px; }
.contact-copy {
  position: relative;
  flex: 0 0 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--pink);
  cursor: pointer;
}
.contact-copy:hover, .contact-copy:focus-visible { background: #f5eaf0; }
.contact-copy::before, .contact-copy::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}
.contact-copy::before { top: 7px; left: 8px; }
.contact-copy::after { top: 11px; left: 12px; background: var(--card); }
.contact-copy-status { margin: 0; color: var(--accent); font-size: .9rem; }
.volunteer-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(108px, 17vw, 165px);
  align-items: start;
  gap: clamp(12px, 3vw, 30px);
}
.volunteer-header h1 { margin: 0; font-size: clamp(2.25rem, 9.5vw, 7.5rem); }
.award-event { margin: 4px 0 0; color: var(--accent); font-size: clamp(.65rem, 1.1vw, .8rem); }
.award-photo h2 {
  margin: 0;
  font-size: clamp(.9rem, 1.6vw, 1.15rem);
  letter-spacing: -.035em;
  line-height: 1.15;
}
.award-photo {
  position: relative;
  margin: 0 6px 0 0;
  padding: 6px 6px 10px;
  background: var(--card);
  box-shadow: 1px 3px 9px rgb(28 29 25 / 15%);
  transform: rotate(4deg);
}
.award-photo img { display: block; width: 100%; height: auto; }
.award-photo figcaption { padding: 10px 4px 0; text-align: center; }
.award-photo button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  letter-spacing: inherit;
}
.award-photo button::after { content: ""; position: absolute; inset: 0; }
.award-photo:hover:not(.suppress-hover) { box-shadow: 4px 4px 0 var(--pink); }
.volunteer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 5vw, 48px);
  padding-block: clamp(20px, 3vw, 34px) 8px;
}
.volunteer-grid .project {
  padding-bottom: 24px;
  border-radius: 2px;
  transform: rotate(-1.5deg);
}
.volunteer-grid .project:nth-child(even) { transform: rotate(1.5deg); }
.volunteer-grid .project:hover:not(.suppress-hover) {
  border-color: var(--accent);
  box-shadow: 4px 4px 0 var(--pink);
}
.site-footer { border-top: 1px solid var(--line); }

html { scrollbar-gutter: stable; }
html:has(:is(.case-dialog, .photo-viewer)[open]),
body:has(:is(.case-dialog, .photo-viewer)[open]) { overflow: hidden; }

.case-dialog {
  overscroll-behavior: contain;
  width: min(760px, calc(100% - 32px));
  max-height: 88vh;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
}
.case-dialog::backdrop { background: rgb(28 29 25 / 65%); }
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  padding: 12px clamp(18px, 4vw, 40px);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.dialog-head button { padding: .35rem; border: 0; background: none; cursor: pointer; }
.case-content { padding: clamp(18px, 4vw, 40px); }
.case-eyebrow, .case-note { color: var(--muted); font-size: .875rem; }
.case-content h2 { margin: .4rem 0 0; font-size: clamp(2rem, 6vw, 3.8rem); letter-spacing: -.055em; }
.case-content p { line-height: 1.55; }
.case-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(20px, 5vw, 36px);
  padding: 18px 8px 10px;
}
.case-polaroid {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 9px 9px 20px;
  background: var(--card);
  box-shadow: 1px 3px 9px rgb(28 29 25 / 15%);
  transform: rotate(-2.5deg);
}
.case-polaroid:nth-child(even) { transform: rotate(2deg); }
.case-polaroid:only-child {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(100%, 560px);
  transform: rotate(-1.5deg);
}
.case-polaroid::before, .volunteer-grid .project::before, .award-photo::before {
  content: "";
  position: absolute;
  z-index: 1;
  pointer-events: none;
  top: -5px;
  left: 34%;
  width: 32%;
  height: 24px;
  background: var(--pink);
  opacity: .8;
  transform: rotate(5deg);
}
.case-polaroid:nth-child(even)::before,
.volunteer-grid .project:nth-child(even)::before { transform: rotate(-7deg); }
.case-polaroid img {
  display: block;
  width: 100%;
  max-height: 480px;
  object-fit: contain;
}
.case-polaroid figcaption {
  margin-top: 9px;
  color: var(--muted);
  font-size: .85rem;
  overflow-wrap: anywhere;
}
.case-columns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; margin-top: 1.75rem; }
.case-columns h3 { margin-block: 0 .4rem; font-size: 1rem; }
.case-columns p { margin: 0; }
.case-link { display: inline-block; margin-top: 1.25rem; color: var(--accent); }

.photo-zoom {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.photo-viewer {
  overscroll-behavior: contain;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  padding: 0;
  border: 0;
  background: transparent;
}
.photo-viewer[open] { display: grid; place-items: center; }
.photo-viewer::backdrop { background: rgb(28 29 25 / 82%); }
.photo-viewer-close {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--card);
  color: var(--pink);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.photo-viewer-image {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-out;
}
.photo-viewer-image img {
  display: block;
  max-width: min(94vw, 1280px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  object-fit: contain;
}

@media (max-width: 520px) {
  .site-header { flex-direction: column; align-items: flex-start; gap: 4px; }
  .about-header, .about-details { grid-template-columns: 1fr; }
  .about-photos { width: min(100%, 340px); }
  .about-photos .intro-photo:only-child { grid-column: 1; }
  .about-details { gap: 0; }
  .project-grid { grid-template-columns: 1fr; gap: 18px; }
  .project { padding: 12px; }
  .project-copy h3 { font-size: 1.45rem; }
  .case-columns { grid-template-columns: 1fr; }
  .case-gallery { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .intro-photo { transition: none; }
  .intro-photo:hover { transform: rotate(var(--photo-tilt)); }
  .project { transition: none; }
  .project:hover:not(.suppress-hover) { transform: none; }
}
