/* The garden: a quiet editorial counterpoint to the working rooms. */
:root {
  color-scheme: dark;
  --bg: #08090a;
  --ink: #efeae2;
  --muted: #aaa69f;
  --line: #efeae22b;
  --red: #bd342c;
  --cyan: #a6c7ce;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
}
:is(a, button, summary):focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 6px;
}
::selection {
  background: var(--red);
  color: var(--ink);
}
.skip-link {
  position: fixed;
  left: 20px;
  top: -100px;
  padding: 12px 20px;
  background: var(--ink);
  color: var(--bg);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.top-link,
.collection-menu {
  position: fixed;
  top: 24px;
  z-index: 30;
  font-size: 0.75rem;
  letter-spacing: 0.09em;
}
.top-link {
  left: 4vw;
  padding: 12px 16px;
  background: #08090aeb;
  border: 1px solid var(--line);
}
.top-link:hover {
  color: var(--cyan);
}
.collection-menu {
  right: 4vw;
  width: 180px;
}
.collection-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  border: 1px solid var(--line);
  background: #08090aeb;
}
summary::-webkit-details-marker {
  display: none;
}
.collection-menu summary::after {
  content: "+";
  float: right;
  color: var(--cyan);
}
.collection-menu[open] summary::after {
  content: "−";
}
.collection-options {
  background: #08090af5;
  border: 1px solid var(--line);
  border-top: 0;
}
.collection-options a {
  display: block;
  padding: 12px 16px;
}
.collection-options a:hover {
  color: var(--cyan);
  background: #ffffff08;
}
section {
  padding: 110px 6vw;
  scroll-margin-top: 80px;
}
.hero {
  min-height: 100svh;
  padding-top: 150px;
  padding-bottom: 90px;
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 65% 55%, #654f2922, transparent 65%);
}
.hero-inner,
.section-inner {
  width: min(1240px, 100%);
  margin: 0 auto;
  position: relative;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 7vw;
}
.kicker,
.room-label {
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 400;
}
.kicker {
  margin: 0 0 32px;
  color: var(--cyan);
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}
h1 {
  font-size: clamp(5rem, 10.5vw, 10rem);
  line-height: 0.86;
  letter-spacing: -0.075em;
  margin: 0 0 36px;
}
h1 em {
  color: var(--ink);
  font-weight: 400;
}
.lead {
  max-width: 380px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.85;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 23px;
  margin-top: 32px;
}
.text-link {
  font-size: 0.7rem;
  padding: 12px 0;
  border-bottom: 1px solid var(--red);
}
.text-link:hover {
  color: var(--cyan);
}
.garden-print {
  margin: 0 0 0 15px;
  transform: rotate(3deg);
  position: relative;
}
.garden-print::before {
  content: "";
  position: absolute;
  inset: -13px -13px 30px;
  border: 1px solid #efeae238;
  transform: rotate(-6deg);
  z-index: -1;
}
.garden-print img {
  width: 100%;
  height: clamp(340px, 38vw, 550px);
  object-fit: cover;
  filter: saturate(0.68);
}
.garden-print figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
}
.garden-print figcaption a {
  color: var(--ink);
}
section:not(.hero) {
  border-top: 1px solid var(--line);
}
.room {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 35px;
}
.room-label {
  margin: 12px 0 0;
  color: var(--cyan);
}
.room-label::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 12px;
  background: var(--red);
  vertical-align: middle;
}
.room-title {
  margin: 0;
  font-size: clamp(2.8rem, 5.7vw, 5.2rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.room-title em {
  font-weight: 400;
  color: #c8c2b7;
}
.room-note {
  max-width: 750px;
  margin: 0 0 64px auto;
  color: var(--muted);
  font-size: 0.9rem;
}
.post-ribbon {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.piece {
  position: relative;
  min-width: 0;
}
.piece-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.45);
  transition: filter 0.4s ease;
}
.piece:hover .piece-media,
.piece:focus-within .piece-media {
  filter: saturate(1);
}
.piece:nth-child(2) {
  padding-top: 65px;
}
.piece:nth-child(3) {
  padding-top: 25px;
}
.piece:nth-child(2) .piece-media {
  aspect-ratio: 1;
}
.piece-body {
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 16px;
}
.piece h3 {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  margin: 0 0 12px;
  line-height: 1.13;
  letter-spacing: -0.035em;
}
.piece p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0 0 18px;
}
.piece a {
  display: inline-block;
  padding: 8px 0;
  color: var(--cyan);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
}
.piece a::after {
  content: " ↗";
}
#music .post-ribbon,
#essays .post-ribbon {
  grid-template-columns: 1.2fr 1fr;
  gap: 8vw;
}
#music .piece:first-child .piece-media {
  aspect-ratio: 5 / 4;
}
#essays .piece:first-child .piece-media {
  aspect-ratio: 16 / 10;
}
#essays {
  background: #111211;
}
.album-stack {
  counter-reset: album;
}
.album {
  border-top: 1px solid var(--line);
  counter-increment: album;
}
.album:last-child {
  border-bottom: 1px solid var(--line);
}
.album summary {
  display: grid;
  grid-template-columns: minmax(180px, 38%) 1fr auto;
  gap: 6%;
  align-items: center;
  padding: 32px 0;
  cursor: pointer;
  list-style: none;
}
.album-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.65);
  transition: filter 0.4s ease;
}
.album:hover .album-cover,
.album[open] .album-cover {
  filter: saturate(1);
}
.album-title::before {
  content: "Album / 0" counter(album);
  display: block;
  color: var(--cyan);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  margin-bottom: 15px;
}
.album-title h3 {
  font-size: clamp(1.8rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0;
}
.album-title p {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 14px;
}
.album-toggle {
  font-size: 2rem;
  color: var(--cyan);
  font-weight: 200;
  transition: transform 0.2s ease;
}
.album[open] .album-toggle {
  transform: rotate(45deg);
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 20px 0 60px;
}
.photo-grid a {
  min-width: 0;
  display: block;
  cursor: zoom-in;
  overflow: hidden;
}
.photo-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.photo-grid a:nth-child(7n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}
.photo-grid a:nth-child(7n + 1) img {
  aspect-ratio: 4 / 3;
}
.photo-grid a:hover img {
  transform: scale(1.025);
}
#notes .post-ribbon {
  display: block;
}
#notes .piece {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 40px;
}
#notes .piece-media {
  max-width: 160px;
  aspect-ratio: 1;
  object-fit: contain;
}
#notes .piece-body {
  margin: 0;
  padding: 28px 0;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 6vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.7rem;
}
.photo-viewer {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  border: 0;
  margin: 0;
  padding: 20px 4vw;
  background: #08090af7;
  color: var(--ink);
}
.photo-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 16px;
}
.photo-viewer::backdrop {
  background: #08090a;
}
.viewer-toolbar,
.viewer-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 0.75rem;
}
.viewer-caption {
  margin: 0;
  color: var(--muted);
}
.photo-viewer button,
.viewer-original {
  border: 1px solid var(--line);
  color: var(--ink);
  background: none;
  padding: 12px 16px;
}
.viewer-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}
body.viewer-open {
  overflow: hidden;
}
@media (max-width: 760px) {
  section {
    padding: 75px 6vw;
  }
  .hero {
    padding-top: 140px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 65px;
  }
  h1 {
    font-size: clamp(5.5rem, 17vw, 8.5rem);
  }
  .garden-print {
    width: 80%;
    margin: 0 5% 0 auto;
  }
  .garden-print img {
    height: 370px;
  }
  .room {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .room-title {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }
  .room-note {
    margin-bottom: 42px;
  }
  .post-ribbon {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .piece:nth-child(n) {
    padding-top: 0;
  }
  .piece:nth-child(n) .piece-media {
    aspect-ratio: 4 / 3;
  }
  #music .post-ribbon,
  #essays .post-ribbon {
    grid-template-columns: 1fr;
    gap: 45px;
  }
  .album summary {
    grid-template-columns: 1fr auto;
    gap: 22px;
    padding: 28px 0;
  }
  .album-cover {
    grid-column: 1 / -1;
  }
  .album-title::before {
    margin-bottom: 10px;
  }
  .album-title p {
    margin: 10px 0 0;
  }
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .photo-grid a:nth-child(7n + 1) {
    grid-column: span 2;
    grid-row: auto;
  }
  #notes .piece {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 420px) {
  .top-link,
  .collection-menu {
    top: 16px;
    font-size: 0.65rem;
  }
  .collection-menu {
    width: 135px;
  }
  .garden-print {
    width: 87%;
  }
  .garden-print img {
    height: 300px;
  }
  .viewer-controls {
    gap: 6px;
    font-size: 0.65rem;
  }
  .photo-viewer button,
  .viewer-original {
    padding: 12px 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
