@font-face {
  font-family: Cormorant;
  src: url("assets/cormorant-garamond-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: Manrope;
  src: url("assets/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #111211;
  --paper: #f2ece2;
  --gold: #e7c99a;
  --dark-text: #26231e;
  --muted: #d0cac0;
  --rule: #c9b89c;
  --display: Cormorant, Georgia, serif;
  --body: Manrope, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 1rem/1.65 var(--body);
}

a { color: inherit; }
a:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
section[id] { scroll-margin-top: 1rem; }
.wrap { width: min(88%, 1340px); margin-inline: auto; }
.skip { position: fixed; z-index: 3; top: 1rem; left: 1rem; padding: .7rem 1rem; background: var(--paper); color: var(--ink); clip-path: inset(50%); }
.skip:focus { clip-path: none; }

.masthead-inner, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.masthead-inner { min-height: 82px; border-bottom: 1px solid #bfb29e70; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  flex: none;
  font: 600 clamp(1.4rem, 2.6vw, 2.1rem)/1 var(--display);
  letter-spacing: .075em;
  text-decoration: none;
}
nav { display: flex; gap: clamp(1rem, 4.4vw, 4.5rem); }
nav a {
  font: 600 clamp(1rem, 1.85vw, 1.35rem)/1 var(--display);
  padding-block: .85rem;
  text-decoration: none;
  transition: color .18s ease;
}
nav a:hover { color: var(--gold); }

.hero { overflow: hidden; }
.hero-layout {
  min-height: clamp(480px, 46vw, 650px);
  position: relative;
  display: grid;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; width: 64%; padding-block: 3.9rem 4.5rem; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.045em;
}
h1 {
  font-size: clamp(3.5rem, 7vw, 7.2rem);
  line-height: .94;
}
h1 em { color: var(--gold); font-weight: inherit; }
.hero-copy p {
  max-width: 39ch;
  margin-top: clamp(1.5rem, 2.8vw, 2.2rem);
  font-size: clamp(1rem, 1.6vw, 1.27rem);
  color: var(--muted);
  line-height: 1.5;
}
.hero-art {
  position: absolute;
  inset: 0 -6% 0 auto;
  width: 50%;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 92%, transparent);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem 1.1rem; margin-top: 1.9rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  padding: .65rem 1.45rem;
  border: 1px solid var(--gold);
  font: 700 1.15rem/1.15 var(--display);
  text-align: center;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}
.button-gold { background: var(--gold); color: var(--ink); }
.button-gold:focus-visible { outline-color: var(--paper); }
.button-gold:hover { background: #f5dfbd; border-color: #f5dfbd; }
.button-outline { background: var(--ink); color: var(--paper); }
.button-outline:hover { background: var(--paper); color: var(--ink); }
.button-outline:focus-visible { outline-color: var(--paper); }

.projects {
  background: var(--paper);
  color: var(--dark-text);
  padding-block: clamp(2.6rem, 5.1vw, 4.75rem) clamp(3.4rem, 6.4vw, 6.3rem);
}
h2 { font-size: clamp(2.7rem, 5.7vw, 6rem); line-height: .98; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: clamp(1.9rem, 3.8vw, 3.3rem); }
.practice + .practice { border-left: 1px solid var(--rule); }
.practice { padding-inline: clamp(1.3rem, 3.5vw, 3.75rem); }
.practice:first-child { padding-left: 0; }
.practice:last-child { padding-right: 0; }
.number { color: #79551e; font: italic 600 clamp(1.55rem, 2.7vw, 2.6rem)/1 var(--display); }
.practice h3 { font-size: clamp(2.2rem, 3.6vw, 3.65rem); line-height: .97; margin: .2rem 0 1.15rem; }
.practice h4 { font-size: 1rem; font-weight: 800; line-height: 1.4; margin-bottom: .25rem; }
.practice p { font-size: .95rem; line-height: 1.55; }
.practice p + h4 { margin-top: 1rem; }

.closing { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2.4rem, 7vw, 8rem); padding-block: clamp(3rem, 5.5vw, 5.7rem); }
.closing h2 { font-size: clamp(2.55rem, 4.55vw, 4.7rem); margin-bottom: .8rem; }
.closing p { max-width: 48ch; color: var(--muted); }
.closing .button { margin-top: 1.2rem; }
.footer { min-height: 86px; border-top: 1px solid #bfb29e70; padding-block: .7rem; font-size: .85rem; color: var(--muted); }
.footer .brand { font-size: 1.5rem; color: var(--paper); }

@media (max-width: 780px) {
  .hero-copy { width: 70%; }
  h1 { font-size: clamp(3.15rem, 8.7vw, 5.2rem); }
  .practice { padding-inline: 1rem; }
}

@media (max-width: 620px) {
  .wrap { width: 88%; }
  .masthead-inner { min-height: 68px; gap: .45rem; }
  .brand { gap: .3rem; font-size: 1.22rem; }
  .masthead .brand img { width: 36px; height: 36px; }
  nav { gap: clamp(.55rem, 3vw, 1.2rem); }
  nav a { font-size: 1rem; }
  .hero-layout { min-height: 0; display: block; }
  .hero-copy { width: 100%; padding-block: 3rem 0; }
  h1 { font-size: clamp(2.65rem, 10.3vw, 4.1rem); }
  .hero-copy p { margin-top: 1.25rem; }
  .actions { margin-top: 1.35rem; }
  .button { padding-inline: 1rem; font-size: 1.06rem; }
  .hero-art { position: relative; inset: auto; width: min(100%, clamp(208px, 62.4vw, 312px)); height: clamp(260px, 78vw, 390px); margin: .9rem auto 0; }
  .hero-art img { object-fit: contain; mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 94%, transparent); }
  .project-grid, .closing { grid-template-columns: 1fr; }
  .practice, .practice:first-child, .practice:last-child { padding-inline: 0; }
  .practice + .practice { border-left: 0; border-top: 1px solid var(--rule); margin-top: 1.7rem; padding-top: 1.35rem; }
  .practice h3 { margin-bottom: .85rem; }
  .practice p { max-width: 48ch; }
  .closing { gap: 2.1rem; }
  .footer { font-size: .75rem; }
  .footer .brand { font-size: 1.18rem; }
  .footer img { width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  a { transition: none !important; }
}
