:root {
  color-scheme: light dark;
  --bg: #f3f0e9;
  --surface: #e7e2d8;
  --text: #1b1d1a;
  --muted: #5b6059;
  --line: #bfc0b7;
  --accent: #c4522d;
  --accent-dark: #8e321d;
  --max-width: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191b19;
    --surface: #252824;
    --text: #f2efe8;
    --muted: #b7bcb2;
    --line: #50574e;
    --accent: #ef7750;
    --accent-dark: #ff9a7a;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
.site-header,
.site-footer,
.section,
.hero {
  width: min(100% - 2.5rem, var(--max-width));
  margin-inline: auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.5rem;
  border-bottom: 1px solid var(--line);
}
.brand {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.08em;
  text-decoration: none;
}
.brand span { color: var(--accent); }
nav { display: flex; gap: 1.25rem; }
nav a,
.footer-links a {
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
nav a:hover,
.footer-links a:hover { color: var(--accent); }
.hero {
  min-height: min(43rem, calc(100vh - 5.5rem));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-block: 4.5rem 3rem;
}
.eyebrow,
.section-index,
.card-number {
  color: var(--accent);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(4.8rem, 16vw, 10rem);
  line-height: .86;
  letter-spacing: -.09em;
}
h1 em { color: var(--accent); font-style: normal; }
.hero-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.intro {
  max-width: 23rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.25;
}
.circle-link {
  display: grid;
  width: 4rem;
  height: 4rem;
  place-items: center;
  border: 1px solid var(--text);
  border-radius: 50%;
  color: var(--text);
  font-size: 1.5rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.circle-link:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.section {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 2rem;
  padding-block: 7rem;
  border-top: 1px solid var(--line);
}
.section-index { padding-top: .5rem; }
.section-content { max-width: 52rem; }
h2 {
  max-width: 14ch;
  margin: 0 0 2rem;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: .95;
  letter-spacing: -.07em;
}
.lead {
  max-width: 35rem;
  margin: 0 0 1.5rem;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.25;
}
.profile .section-content > p:not(.lead) { max-width: 38rem; color: var(--muted); }
.work { background: var(--surface); }
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
  border: 1px solid var(--line);
}
.work-card { min-height: 16rem; padding: 1.5rem; background: var(--surface); }
.card-number { margin: 0 0 3rem; }
h3 { margin: 0 0 1rem; font-size: 1.65rem; line-height: 1; letter-spacing: -.04em; }
.work-card p:last-child { margin: 0; color: var(--muted); }
.contact { padding-bottom: 8rem; }
.contact-content { display: flex; flex-direction: column; align-items: flex-start; }
.status-note { margin: 1rem 0 0; padding: .75rem 1rem; border-left: 3px solid var(--accent); color: var(--muted); font-size: .9rem; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8rem;
}
.site-footer p { margin: 0; }
.site-footer > p:last-child { text-align: right; }
.footer-links { display: flex; gap: 1rem; }
@media (max-width: 700px) {
  .site-header,
  .site-footer,
  .section,
  .hero { width: min(100% - 2rem, var(--max-width)); }
  .hero { min-height: 37rem; padding-block: 3rem 2rem; }
  .section { display: block; padding-block: 4.5rem; }
  .section-index { margin-bottom: 2.5rem; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card { min-height: auto; }
  .card-number { margin-bottom: 2rem; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer > p:last-child { text-align: left; }
}
