:root {
  color-scheme: light;
  --paper: #f7f7f2;
  --ink: #1b2019;
  --muted: #4a5447;
  --line: #cbd0c5;
  --accent: #ddea62;
  --focus: #25604b;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-underline-offset: .23em; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }

.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  position: absolute;
  z-index: 1;
  inset: .8rem auto auto .8rem;
  padding: .8rem 1rem;
  background: var(--accent);
}

.shell { width: min(100% - 3rem, 76rem); margin-inline: auto; }

.top, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
}

.top { border-bottom: 1px solid var(--line); }
.wordmark { font-weight: 800; font-size: 1.6rem; letter-spacing: -.08em; text-decoration: none; }
.wordmark span { color: var(--focus); }
.top nav { display: flex; flex-wrap: wrap; gap: clamp(.9rem, 3vw, 2rem); }
.top nav a, .footer > a:last-child { padding-block: .6rem; color: var(--muted); font-size: .95rem; }
.top nav a { text-decoration: none; }
.top nav a:hover, .footer > a:last-child:hover { color: var(--ink); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: clamp(2rem, 5vw, 5.2rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
}

.subject, .project-type { color: var(--muted); font-size: .875rem; }

.hero h1 {
  margin-top: .75rem;
  font: normal clamp(4.2rem, 9.4vw, 8rem) / .86 Georgia, "Times New Roman", serif;
  letter-spacing: -.08em;
}

.hero h1 em { font-weight: inherit; }
.intro { max-width: 24rem; margin-top: 1.7rem; color: var(--muted); font-size: 1.08rem; line-height: 1.65; }

.hero-link {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  margin-top: 1.5rem;
  padding: .75rem 1.2rem;
  border: 1px solid var(--ink);
  background: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.hero-link:hover { background: var(--ink); color: var(--paper); }

.architecture {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.46;
  overflow: hidden;
  background: #725841;
}

.architecture span, .architecture::after { position: absolute; inset: 0; }
.architecture-ceiling {
  clip-path: polygon(0 0, 100% 0, 80% 10%, 28% 16%);
  background: linear-gradient(167deg, #42352b, #5c4938 23%, #8f6e4e 53%);
}
.architecture-wall {
  clip-path: polygon(28% 16%, 80% 10%, 100% 0, 100% 78%, 80% 69%, 28% 75%);
  background:
    linear-gradient(90deg, transparent 79.8%, #66513b 80%, #80644b 81.5%, transparent 100%),
    repeating-linear-gradient(175deg, transparent 0 11%, #5e403126 11% 11.35%, transparent 11.35% 20%),
    linear-gradient(145deg, #9b7958 23%, #ac8964 52%, #8c6848 82%);
}
.architecture-floor {
  clip-path: polygon(0 94%, 28% 75%, 80% 69%, 100% 78%, 100% 100%, 0 100%);
  background:
    repeating-linear-gradient(150deg, transparent 0 16%, #54382136 16.2% 16.4%, transparent 16.5% 25%),
    linear-gradient(126deg, #4f3d2c 19%, #735136 50%, #ab7d52);
}
.architecture-opening {
  clip-path: polygon(45% 26%, 72% 23%, 72% 71%, 45% 74%);
  background: linear-gradient(125deg, #2d2119, #513723 74%, #b88752);
}
.architecture-reveal {
  clip-path: polygon(65% 30%, 72% 23%, 72% 71%, 65% 67%);
  background: linear-gradient(116deg, #7a5030 36%, #b68750 68%, #edc98e 90%);
}
.architecture-outside {
  clip-path: polygon(49% 31%, 65% 30%, 65% 67%, 49% 70%);
  background:
    linear-gradient(167deg, transparent 57%, #bc9867 57.4% 68%, #d2ae7b 68.5% 100%),
    linear-gradient(111deg, #d7bc94, #f8e2b9 61%);
}
.architecture-sun {
  clip-path: polygon(46% 74%, 68% 71%, 93% 100%, 27% 100%);
  background: linear-gradient(155deg, #b7854a 54%, #f5cd89 82%, #dda45d 97%);
}
.architecture-column {
  clip-path: polygon(0 0, 28.1% 16%, 28.1% 75%, 0 94%);
  background:
    linear-gradient(90deg, #392d2470, transparent 55%, #caa77c33),
    linear-gradient(163deg, #624b36 2%, #8d6a4b 45%, #533e2d 93%);
}
.architecture::after {
  content: "";
  opacity: .14;
  mix-blend-mode: soft-light;
  background-image:
    radial-gradient(#38261a 25%, transparent 46%),
    radial-gradient(#fbea89 20%, transparent 48%);
  background-size: 4px 5px, 7px 8px;
  background-position: 0 0, 3px 4px;
  pointer-events: none;
}

.hero-image figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .35rem 1rem;
  margin-top: .65rem;
  font-size: .875rem;
}

.hero-image figcaption span:last-child { color: var(--muted); }

.projects, .about { border-top: 1px solid var(--line); scroll-margin-top: 1.25rem; }
.projects { padding-block: clamp(1.7rem, 4vw, 3.2rem) clamp(2.6rem, 6vw, 5rem); }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

h2 { font: normal clamp(2.6rem, 5vw, 4.2rem) / 1 Georgia, "Times New Roman", serif; letter-spacing: -.055em; }

.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filters button {
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 2rem;
  background: transparent;
  color: var(--ink);
  font-size: .875rem;
  cursor: pointer;
}
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--paper); }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 1.2rem; }
.project { min-width: 0; }

.art {
  display: grid;
  place-items: center;
  aspect-ratio: 1.37;
  overflow: hidden;
  container-type: inline-size;
  user-select: none;
}

.art-material {
  grid-template-columns: 1.4fr .95fr .8fr;
  align-items: stretch;
  justify-items: stretch;
  background: #c98e69;
}
.art-material span:first-child { background: linear-gradient(147deg, #ddc2a3 48%, #c2a383 48.5%, #e5cfad 81%); }
.art-material span:nth-child(2) { background: linear-gradient(147deg, #b67752 49%, #9a5c3c 49.5%, #c88d5b 94%); }
.art-material span:nth-child(3) { background: linear-gradient(147deg, #7d786b 50%, #55534a 50.5%, #827b6d); }

.art-rhythm {
  background: repeating-linear-gradient(130deg, #dce963 0 18px, #cbd853 18px 36px);
  color: #24271e;
}
.art-rhythm span {
  padding: .045em .13em .065em .06em;
  background: #eef993;
  font-size: clamp(2.6rem, 17cqw, 5.8rem);
  font-weight: 900;
  letter-spacing: -.12em;
  line-height: .96;
  transform: rotate(-9deg);
}

.art-pages { background: #2f4d45; }
.paper {
  display: grid;
  align-content: space-between;
  width: 46%;
  aspect-ratio: .75;
  padding: 1rem .7rem;
  transform: rotate(-12deg);
  box-shadow: .45rem .45rem #a3ad9c, 1rem 1rem #223a32;
  background: #eef0de;
  color: #2b4a40;
}
.paper span:first-child { font: bold clamp(1rem, 9cqw, 2.1rem) / .91 Georgia, "Times New Roman", serif; letter-spacing: -.065em; }
.paper span:last-child { min-height: 2.1rem; background: repeating-linear-gradient(#62796b 0 1px, transparent 1px 5px); }

.project-type { margin-top: 1rem; }
.project h3 { margin-top: .25rem; font-size: clamp(1.2rem, 2.4vw, 1.55rem); letter-spacing: -.035em; }
.project > p:not(.project-type), .project details p { margin-top: .45rem; color: var(--muted); line-height: 1.5; }
.project details { margin-top: .85rem; border-top: 1px solid var(--line); }
.project details p { margin-block: 0 .45rem; }
.project summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  min-height: 2.75rem;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: "+"; font-weight: 400; font-size: 1.3rem; line-height: 1; }
.project details[open] summary::after { content: "−"; }

.about {
  display: grid;
  grid-template-columns: minmax(0, .87fr) minmax(0, 1.13fr);
  gap: 1rem clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2rem, 5vw, 4rem);
}
.about p { max-width: 36rem; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.23rem); line-height: 1.65; }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 52rem) {
  .hero { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(4rem, 12vw, 6rem); }
  .architecture { aspect-ratio: 1.65; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 35rem) {
  .shell { width: calc(100% - 2rem); }
  .top, .footer { min-height: 4rem; }
  .hero { padding-block: 2.4rem; }
  .project-grid, .about { grid-template-columns: 1fr; }
  .art { aspect-ratio: 1.6; }
}
