@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&display=swap');

:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --ink: #21231f;
  --muted: #676a62;
  --line: #d8d5cd;
  --accent: #aa5137;
  --mono: 'DM Mono', ui-monospace, monospace;
  --sans: 'DM Sans', Arial, sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 0 7vw;
  border-bottom: 1px solid var(--line);
}
.wordmark { font-size: 1.5rem; font-weight: 700; letter-spacing: -.06em; }
.wordmark span { color: var(--accent); }
nav { display: flex; align-items: center; gap: clamp(1.2rem, 3.5vw, 3.4rem); font-size: .88rem; }
nav a, .site-footer a { transition: color .2s ease; }
nav a:hover, .site-footer a:hover, .contact-link:hover { color: var(--accent); }
.nav-contact { border-bottom: 1px solid var(--ink); padding-bottom: 4px; }

.hero {
  position: relative;
  min-height: min(760px, calc(100svh - 84px));
  padding: clamp(6rem, 13vw, 12rem) 12vw 5rem;
  overflow: hidden;
}
.eyebrow, .section-label {
  margin: 0;
  color: var(--muted);
  font: 500 .7rem/1.5 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 1.6rem 0 2.4rem;
  font-size: clamp(3.4rem, 8.5vw, 8.4rem);
  font-weight: 500;
  line-height: .98;
  letter-spacing: -.075em;
}
h1 em { color: var(--accent); font-family: var(--serif); font-weight: 500; letter-spacing: -.06em; }
.hero-bottom { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; max-width: 800px; }
.intro { max-width: 420px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.2rem); line-height: 1.7; }
.hero-mark {
  position: absolute;
  z-index: 0;
  right: 7vw;
  bottom: 3.5rem;
  color: #e7e3db;
  font: 500 clamp(3.5rem, 10vw, 9rem)/1 var(--mono);
  letter-spacing: -.12em;
  pointer-events: none;
}
.hero-mark span { color: var(--accent); }

.content-section {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) 2fr;
  gap: 4vw;
  padding: clamp(4rem, 9vw, 8rem) 12vw;
  border-top: 1px solid var(--line);
}
.section-copy { max-width: 760px; }
h2 { margin: 0 0 1.5rem; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 500; letter-spacing: -.06em; line-height: 1.05; }
.section-copy > p, .contact-copy > p { max-width: 620px; margin: 0; color: var(--muted); font-size: 1.06rem; line-height: 1.8; }
.work { background: #ebe8e0; }
.work-list { margin-top: 3rem; border-top: 1px solid #cecbc3; }
.work-item { display: grid; grid-template-columns: 50px 112px minmax(0, 1fr) 50px; gap: 1rem; align-items: center; padding: 1.6rem 0; border-bottom: 1px solid #cecbc3; }
.work-number { padding-top: .2rem; color: var(--accent); font: .72rem var(--mono); }
.work-image { display: block; width: 112px; height: 92px; object-fit: contain; background: #dfdcd4; }
.work-item h3 { margin: 0 0 .4rem; font-size: 1.2rem; font-weight: 600; letter-spacing: -.03em; }
.work-item h3 a:hover { color: var(--accent); }
.work-item h3 a:focus-visible { outline-offset: 3px; }
.work-item p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.6; }
.work-tag { justify-self: end; padding-top: .15rem; color: var(--accent); font: .62rem var(--mono); letter-spacing: .1em; }

.detail-hero { padding: clamp(5rem, 10vw, 9rem) 12vw 4rem; border-bottom: 1px solid var(--line); }
.detail-hero h1 { margin-bottom: 1.5rem; }
.detail-intro { max-width: 700px; margin: 0; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.75; }
.detail-image { margin: 0; padding: 2rem 12vw; background: #ebe8e0; }
.detail-image img { display: block; max-width: 100%; max-height: 620px; margin: 0 auto; object-fit: contain; }
.detail-image figcaption { max-width: 700px; margin: .8rem auto 0; color: var(--muted); font: .68rem/1.5 var(--mono); }
.detail-section { display: grid; grid-template-columns: minmax(150px, .75fr) 2fr; gap: 4vw; padding: clamp(3.5rem, 7vw, 6rem) 12vw; border-bottom: 1px solid var(--line); }
.detail-section:nth-of-type(even) { background: #ebe8e0; }
.detail-section .section-copy > p + p { margin-top: 1rem; }
.detail-back { display: inline-block; margin-top: 2rem; color: var(--accent); font: .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }

.contact { display: grid; grid-template-columns: minmax(150px, .75fr) 2fr; gap: 4vw; padding: clamp(4.5rem, 10vw, 9rem) 12vw; background: var(--ink); color: var(--paper); }
.contact .section-label { color: #aaa99f; }
.contact-copy h2 { max-width: 700px; }
.contact-copy > p { color: #c2c1b8; }
.contact-link { display: inline-flex; gap: 2rem; align-items: center; margin-top: 2.6rem; padding-bottom: .6rem; border-bottom: 1px solid #77786f; font-size: 1.1rem; }
.contact-link span { color: #df8b6f; }
.site-footer { display: flex; justify-content: space-between; padding: 1.5rem 7vw; color: var(--muted); font: .68rem var(--mono); }

@media (max-width: 680px) {
  .site-header { min-height: 70px; padding: 0 6vw; }
  nav { gap: 1rem; font-size: .78rem; }
  .nav-contact { display: none; }
  .hero { min-height: 690px; min-height: min(700px, calc(100svh - 70px)); padding: 6rem 8vw 3rem; }
  h1 { margin: 1.3rem 0 2rem; font-size: clamp(3.15rem, 15vw, 5.8rem); }
  .hero-bottom { align-items: flex-start; flex-direction: column; }
  .hero-mark { right: 7vw; bottom: 1.5rem; font-size: 4rem; }
  .content-section, .contact { grid-template-columns: 1fr; gap: 1.8rem; padding: 4rem 8vw; }
  .detail-hero { padding: 4.5rem 8vw 3.5rem; }
  .detail-section { grid-template-columns: 1fr; gap: 1.5rem; padding: 3.5rem 8vw; }
  .section-copy > p, .contact-copy > p { font-size: .98rem; }
  .work-item { grid-template-columns: 28px 72px minmax(0, 1fr) 34px; gap: .7rem; }
  .work-image { width: 72px; height: 72px; }
  .detail-image { padding: 1.5rem 8vw; }
  .site-footer { padding: 1.4rem 6vw; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
