:root {
  --paper: #fdfcf9;
  --wine: #631d32;
  --display: Didot, "Bodoni 72", "Times New Roman", serif;
  --reading: "Cormorant Garamond", Garamond, Georgia, serif;
  --glass-edge: rgba(255, 255, 255, .88);
  --glass-fill: linear-gradient(135deg, #fff7, #fff1 46%, #efe2d226 78%, #fff5);
  --glass-shadow: inset 0 1px 1px #fff, inset 0 -1px 1px #a8917360, 0 1px 0 #9f87683d, 0 15px 38px #735d4824;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--wine);
  background:
    linear-gradient(180deg, #fffefa7a, #faf7f03b 28rem, #fdfcf9e5 75rem),
    url("../images/ivory-silk.jpg") center top / max(100%, 1000px) auto no-repeat,
    #f9f5ee;
  font: 500 1.23rem/1.42 var(--reading);
}
a { color: inherit; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--wine); outline-offset: 4px; }
.wrap { width: min(1120px, 90%); margin-inline: auto; }
header { padding-top: 20px; }
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 22px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(18px) saturate(112%);
  backdrop-filter: blur(18px) saturate(112%);
}
nav a { text-decoration: none; }
nav div { display: flex; gap: 6px; }
.mark { font: italic 500 1.7rem/1 var(--reading); color: var(--wine); }
.glass-button, summary::after {
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: linear-gradient(155deg, #fffa, #f8eee32b 43%, #b89a782f);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(15px) saturate(115%);
  backdrop-filter: blur(15px) saturate(115%);
  color: var(--wine);
}
.glass-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 15px;
  min-height: 42px;
  text-decoration: none;
  transition: background .2s ease, box-shadow .2s ease;
}
.glass-button:hover, summary:hover::after {
  background: linear-gradient(135deg, #fffb, #fff4 76%);
  box-shadow: 0 8px 25px #4c362124, inset 0 1px 2px #fff, inset 0 0 0 1px #7d6b583d;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(22px, 5vw, 70px);
  padding: 36px 0 52px;
}
.label {
  margin: 0 0 23px;
  color: var(--wine);
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .17em;
  text-transform: uppercase;
}
h1, h2, h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
}
h1 { font-size: clamp(3rem, 8.2vw, 7.45rem); letter-spacing: -.055em; }
h1 em { font-family: var(--reading); font-weight: 500; letter-spacing: -.045em; }
h2 { font-size: clamp(2.65rem, 6vw, 4.75rem); letter-spacing: -.045em; }
h3 { font-size: clamp(1.45rem, 2.5vw, 2.35rem); }
p { max-width: 45ch; }
.hero p:not(.label) { margin: 22px 0 0; color: var(--wine); }
.cta { margin-top: 24px; padding: 12px 22px; font-weight: 600; }
.art {
  position: relative;
  width: 100%;
  margin: 0;
  aspect-ratio: 1 / 1.08;
}
.art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
.entry {
  overflow: hidden;
  border: 1px solid var(--glass-edge);
  border-radius: 20px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  align-items: center;
  gap: 14px 8px;
  padding: 10px 12px 15px;
  cursor: pointer;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary:focus-visible { outline-offset: -4px; }
summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font: 1.25rem/1 var(--display);
}
details[open] summary::after { content: "−"; }
footer { margin-top: auto; padding: 17px 0; border-top: 1px solid #856f5729; color: var(--wine); }
@media (max-width: 690px) {
  header { padding-top: 12px; }
  nav { padding-left: 16px; }
  .hero { grid-template-columns: 1fr; gap: 28px; padding: 40px 0 24px; }
  h1 { font-size: clamp(3.25rem, 12vw, 5.3rem); }
  .art { width: min(100%, 480px); margin-inline: auto; }
  .projects { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .glass-button { transition: none; }
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 1rem;
  z-index: 2;
  padding: .5rem 1rem;
  background: var(--paper);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }
.nav-links { flex-wrap: wrap; justify-content: flex-end; }
.nav-links [aria-current="page"] {
  background: #fff9;
  box-shadow: inset 0 0 0 1px #631d3257;
}
.inner-page { padding-block: clamp(34px, 7vw, 92px) 56px; }
.page-heading { padding: 0 0 clamp(20px, 5vw, 42px); }
.page-heading p, .detail-panel p { max-width: 58ch; }
.work-list { display: grid; gap: 13px; }
.project summary {
  grid-template-columns: clamp(70px, 18vw, 200px) minmax(0, 1fr) 36px;
  gap: clamp(12px, 2.5vw, 26px);
  padding: 12px 17px 12px 12px;
}
.project-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
}
.project-heading .project-title {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.02;
  margin-bottom: .28rem;
  font-size: clamp(1.5rem, 4vw, 3rem);
  overflow-wrap: anywhere;
}
.project-heading span:not(.project-title) { display: block; font-size: clamp(1rem, 2vw, 1.2rem); }
.project-body {
  padding: 20px clamp(17px, 6vw, 65px) 32px;
  border-top: 1px solid #856f5729;
}
.project-body p { max-width: 68ch; margin-block: 0 18px; }
.project-body h3 { margin: 24px 0 13px; }
.project-body h3:first-child { margin-top: 0; }
.project-source { margin-top: 12px; }
.photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-grid img, .work-figure img, .portrait img { display: block; border-radius: 13px; }
.work-figure { margin: 0 0 20px; max-width: 780px; }
.work-figure img { width: 100%; height: auto; }
.work-figure figcaption { margin-top: 8px; }
.infographic { max-width: 480px; }
.media-player {
  display: block;
  width: min(100%, 760px);
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 13px;
  background: #eee8e2;
  margin-bottom: 25px;
}
.audio-player { aspect-ratio: auto; height: 75px; }
.more-work { margin-top: clamp(36px, 7vw, 80px); }
.more-work h2 { margin-bottom: 22px; }
.mini-project { padding: clamp(16px, 3vw, 27px); min-height: 100%; }
.mini-project h3 { overflow-wrap: anywhere; }
.mini-project p { margin-bottom: 0; }
.bio-layout {
  display: grid;
  align-items: center;
  gap: clamp(20px, 5vw, 58px);
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}
.detail-panel { padding: clamp(22px, 5vw, 55px); }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; box-shadow: var(--glass-shadow); }
.contact-panel { max-width: 760px; margin: 0 auto; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 25px 0 0; }
@media (max-width: 690px) {
  nav { border-radius: 25px; }
  .nav-links .glass-button { padding-inline: 10px; font-size: 1.04rem; }
  .bio-layout { grid-template-columns: 1fr; }
  .portrait { max-width: 440px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 390px) {
  nav { justify-content: center; padding-inline: 7px; }
  nav .mark { display: none; }
  .nav-links { justify-content: center; }
  .project summary { grid-template-columns: 56px minmax(0, 1fr) 30px; gap: 8px; padding-inline: 8px; }
  .project summary::after { width: 29px; height: 29px; }
}

.hero {
  min-height: min(660px, 82vh);
  gap: clamp(8px, 3vw, 38px);
  padding-block: clamp(34px, 6vw, 76px);
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: clamp(25px, 4.2vw, 54px);
  border: 1px solid var(--glass-edge);
  border-radius: 32px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(11px) saturate(111%);
  backdrop-filter: blur(11px) saturate(111%);
}
.hero-copy h1 { font-size: clamp(3rem, 7.6vw, 7.15rem); }
.art { isolation: isolate; }
.art::before {
  content: "";
  position: absolute;
  inset: 7% 11% 8% 15%;
  z-index: -1;
  transform: rotate(-10deg);
  border-radius: 44% 29% 36% 24% / 32% 23% 34% 22%;
  border: 1px solid #fffd;
  background: linear-gradient(128deg, #fffc, #fff1 28%, #cfb99c19 62%, #fff9);
  box-shadow: inset 2px 2px 4px #fffd, inset -2px -2px 5px #ddc3a887, 8px 26px 50px #7964471c;
  -webkit-backdrop-filter: blur(5px) saturate(110%);
  backdrop-filter: blur(5px) saturate(110%);
}
.art img { filter: drop-shadow(9px 13px 15px #66544c27); }
.entry { border-radius: 24px; }
.project summary { background: linear-gradient(120deg, #fff2, #fff0 44%, #fff3); }
.project summary:hover { background: linear-gradient(120deg, #fff6, #fff0 44%, #fff4); }
.nav-links [aria-current="page"] {
  background: linear-gradient(150deg, #fff8, #b180722b);
  box-shadow: inset 0 0 0 1px #631d3257, 0 3px 9px #82533a17;
}
.contact-panel { background: linear-gradient(130deg, #fff6, #dec7ab21, #fff8); }
@media (max-width: 690px) {
  .hero { min-height: 0; gap: 12px; padding-block: 28px 38px; }
  .hero-copy { border-radius: 24px; }
  .hero-copy h1 { font-size: clamp(2.8rem, 11.5vw, 5.2rem); }
  .nav-links .glass-button { padding-inline: 9px; }
  body { background-position: top left, 55% top; }
}
