:root {
  --paper: #f7f2e8;
  --panel: #fffaf0;
  --panel-2: #ebe5d8;
  --ink: #20211e;
  --muted: #6f6a60;
  --soft: #9b8f7f;
  --line: #ded5c6;
  --accent: #c97816;
  --accent-dark: #8f4f09;
  --deep: #151b18;
  --sage: #dfe6dc;
  --blue: #0d6f8f;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  font-size: clamp(1.95rem, 3.6vw, 3.1rem);
}

h2 {
  font-size: clamp(1.45rem, 2.2vw, 2.05rem);
}

h3 {
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
}

p {
  margin: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgb(247 242 232 / 92%);
  border-bottom: 1px solid rgb(32 33 30 / 8%);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 70px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--ink);
}

.section,
.page-hero,
.case-hero {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: clamp(44px, 6vw, 80px) 0;
}

.page-hero {
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 48px);
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
}

.small {
  color: var(--muted);
  font-size: 0.92rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 19px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--paper);
  background: var(--ink);
  font-size: 0.92rem;
  text-decoration: none;
}

.button.secondary {
  color: var(--ink);
  background: transparent;
}

.button:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
  color: #fff;
}

.hero-image img,
.project-card img,
.gallery img,
.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 32px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.meta-card {
  padding: 26px;
  background: var(--panel);
}

.meta-card strong {
  display: block;
  margin-bottom: 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

.section-head {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-head .section-support {
  margin-top: 12px;
  max-width: 620px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.panel {
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--panel);
}

.panel h3 {
  margin-bottom: 14px;
}

.panel ul,
.fact-list {
  margin: 18px 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.panel li,
.fact-list li {
  margin: 8px 0;
}

.panel ul + p {
  margin-top: 18px;
}

.dark-band {
  padding: clamp(44px, 6vw, 80px) clamp(20px, 5vw, 72px);
  background: var(--deep);
  color: var(--paper);
}

.dark-band .section {
  padding: 0;
}

.dark-band p,
.dark-band .small {
  color: rgb(247 242 232 / 72%);
}

.image-panel {
  overflow: hidden;
  border-radius: 24px;
  background: var(--panel-2);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-hero {
  grid-template-columns: 1.3fr 0.7fr;
}

.about-portrait {
  width: min(300px, 100%);
  aspect-ratio: 4 / 5;
  justify-self: end;
  overflow: hidden;
  border-radius: 24px;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}

.prose {
  gap: 20px;
}

.prose p {
  max-width: 640px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--panel);
  text-decoration: none;
}

.project-card .thumb {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--panel-2);
}

.project-card .content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(22px, 3vw, 32px);
}

.project-card h2,
.project-card h3 {
  margin-bottom: 12px;
}

.status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 10px;
  border: 1px solid rgb(199 120 22 / 35%);
  border-radius: 999px;
  color: var(--accent-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-pending {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 28px;
  border: 1px dashed rgb(32 33 30 / 22%);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgb(255 255 255 / 28%), rgb(255 255 255 / 0)),
    var(--sage);
  color: var(--muted);
  text-align: center;
}

.image-pending span {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.thumb .image-pending,
.hero-image .image-pending,
.drawing-card .image-pending {
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
}

.gallery figure:has(.image-pending) {
  aspect-ratio: 4 / 3;
}

.gallery figure.wide:has(.image-pending) {
  aspect-ratio: 16 / 9;
}

.drawing-card:has(.image-pending) {
  aspect-ratio: 16 / 8;
}

.case-hero {
  padding: clamp(20px, 3vw, 36px) 0 0;
}

.case-spread {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 48%);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.hero-image {
  overflow: hidden;
  border-radius: 30px;
  height: clamp(380px, 40vw, 500px);
  background: var(--panel-2);
}

.thumb img.project-render,
.hero-image img.project-render {
  object-fit: contain;
  background: var(--panel-2);
}

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--line);
}

.facts.compact {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

.fact {
  padding: 16px 18px;
  background: var(--panel);
}

.fact span {
  display: block;
  margin-bottom: 6px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery figure,
.media-card {
  margin: 0;
  overflow: hidden;
  border-radius: 20px;
  background: var(--panel-2);
}

.gallery img {
  aspect-ratio: 4 / 3;
}

.gallery figure.wide {
  grid-column: span 2;
}

.gallery figure.wide img {
  aspect-ratio: 16 / 9;
}

figcaption,
.caption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 0.84rem;
}

.drawing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.drawing-grid.triple {
  grid-template-columns: repeat(3, 1fr);
}

.drawing-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
}

.drawing-card img {
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9);
}

.drawing-card.line-drawing {
  background: var(--panel);
}

.drawing-card.line-drawing a {
  display: block;
}

.drawing-card.line-drawing img {
  width: 100%;
  height: clamp(360px, 32vw, 520px);
  aspect-ratio: auto;
  object-fit: contain;
  object-position: center;
  background: var(--panel);
  padding: 20px;
  filter: contrast(1.04);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.contact-list a {
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  padding: 38px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: var(--panel);
  font-size: 0.9rem;
}

.footer-mark {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    flex-wrap: wrap;
  }

  .home-meta,
  .grid.two,
  .grid.three,
  .projects-grid,
  .split,
  .case-spread,
  .facts,
  .facts.compact,
  .gallery,
  .drawing-grid,
  .drawing-grid.triple {
    grid-template-columns: 1fr;
  }

  .case-spread .hero-image {
    order: -1;
  }

  .gallery figure.wide {
    grid-column: span 1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .brand img {
    height: 44px;
  }

  .section,
  .page-hero,
  .case-hero {
    width: min(100% - 28px, var(--max));
  }
}
