:root {
  color-scheme: light;
  --ink: #25231e;
  --muted: #514c43;
  --line: #d4cbbd;
  --paper: #f4f0e6;
  --accent: #a43f2a;
  --serif: Georgia, "Bitstream Charter", serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
p { font-size: 1.0625rem; line-height: 1.65; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.02; letter-spacing: -.055em; }
:focus-visible { outline: 3px solid #a43f2a; outline-offset: 5px; }

.wrap { width: min(100% - 6rem, 74rem); margin-inline: auto; }
.skip-link { position: absolute; top: 0; left: 1rem; z-index: 5; translate: 0 -120%; padding: .65rem 1rem; background: white; color: var(--ink); }
.skip-link:focus { translate: 0 0; }

.site-header { border-bottom: 1px solid var(--line); }
.header-content,
.footer-content { display: flex; min-height: 4.7rem; align-items: center; justify-content: space-between; gap: 1rem; }
.wordmark { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.18rem; font-weight: 720; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.wordmark img { border-radius: .35rem; }
.wordmark b { font-weight: 500; }
nav { display: flex; gap: clamp(1rem, 3vw, 2.7rem); }
nav a,
.footer-content > a:last-child { padding-block: .65rem; font-size: .95rem; text-decoration: none; }
nav a:hover,
.footer-content > a:last-child:hover { text-decoration: underline; text-underline-offset: .3em; }

.hero-content { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.5rem, 5vw, 5rem); align-items: center; min-height: 37rem; padding-block: clamp(3rem, 6vw, 5rem); }
.hero h1 { font-size: clamp(3.75rem, 7.4vw, 7rem); line-height: .93; letter-spacing: -.077em; }
.hero p { max-width: 25rem; margin: 1.65rem 0 1.8rem; color: var(--muted); font-size: clamp(1.08rem, 1.75vw, 1.23rem); }
.hero-image { width: 100%; height: auto; aspect-ratio: 1.12; object-fit: cover; border-radius: .35rem; background: #e7d3bf; }
.button { display: inline-flex; min-height: 3.1rem; align-items: center; justify-content: center; padding: .72rem 1.18rem; border-radius: .32rem; background: var(--ink); color: #fffdf6; font-weight: 650; text-decoration: none; }
.button:hover { background: var(--accent); }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section h2 { font-size: clamp(2.65rem, 5.2vw, 4.6rem); }
.models { background: #fbf8f1; border-block: 1px solid var(--line); }
.section-intro { display: grid; align-items: end; grid-template-columns: 1.15fr 1fr; gap: 1.3rem 3rem; margin-bottom: 2.7rem; }
.section-intro p { margin: 0; color: var(--muted); max-width: 29rem; }
.families { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.family { padding: 1.45rem 1.6rem 1.85rem; }
.family:first-child { padding-left: 0; }
.family + .family { border-left: 1px solid var(--line); }
.family-role { margin: 0 0 1rem; font-size: .9rem; font-weight: 660; color: var(--accent); }
.family h3 { font-size: clamp(2.4rem, 5.3vw, 4.2rem); }
.family > p:last-child { color: var(--muted); margin: .8rem 0 0; max-width: 24rem; }

.work-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem 6rem; }
.work-layout > h2 { max-width: 13ch; }
.work-items article { padding: 1.45rem 0; border-top: 1px solid var(--line); }
.work-items article:last-child { padding-bottom: 0; }
.work-items h3 { font-size: 1.68rem; letter-spacing: -.04em; }
.work-items p { margin: .6rem 0 0; color: var(--muted); }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 650; line-height: 1.5; }
summary:hover { text-decoration: underline; text-underline-offset: .24em; }

.contact { background: #e9c0ac; border-block: 1px solid #d8ac97; }
.contact-content { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; }
.contact p { margin: 1rem 0 0; }
.footer-content { min-height: 5.7rem; }

@media (max-width: 780px) {
  .wrap { width: calc(100% - 2.5rem); }
  .hero-content { padding-block: 3.25rem 2.5rem; grid-template-columns: 1fr; gap: 2.6rem; }
  .hero h1 { font-size: clamp(3.5rem, 11vw, 5.5rem); }
  .hero p { margin-block: 1.35rem; }
  .hero-image { aspect-ratio: 1.25; }
  .section-intro, .work-layout { grid-template-columns: 1fr; }
  .families { grid-template-columns: 1fr; }
  .family, .family:first-child { padding: 1.4rem 0; }
  .family + .family { border-left: 0; border-top: 1px solid var(--line); }
  .contact-content { align-items: start; flex-direction: column; }
}

@media (max-width: 400px) {
  .wrap { width: calc(100% - 2rem); }
  .header-content { flex-wrap: wrap; justify-content: flex-start; gap: .1rem 1rem; padding-block: .75rem .35rem; }
  nav { gap: .9rem; }
  .wordmark { font-size: 1.09rem; }
}
