:root {
  --paper: #f6f4ef;
  --paper-2: #ece8df;
  --ink: #14161a;
  --ink-2: #4a4f57;
  --line: #d6d1c6;
  --accent: #c2410c;
  --accent-ink: #9a3412;

  --font-sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;

  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lead: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
  --text-h2: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  --text-hero: clamp(2.75rem, 1.4rem + 6.5vw, 6.25rem);

  --gutter: clamp(1rem, 0.5rem + 3vw, 3rem);
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);
  --max: 72rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121316;
    --paper-2: #1b1d21;
    --ink: #eeebe4;
    --ink-2: #a8a49c;
    --line: #2e3036;
    --accent: #f97316;
    --accent-ink: #fb923c;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--ink); color: var(--paper); padding: .5rem 1rem; z-index: 10; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 4rem; gap: 1rem; }
.brand { font-weight: 700; font-size: 1.25rem; letter-spacing: -0.02em; text-decoration: none; }
.brand span { color: var(--accent); }
.nav { display: flex; gap: 1.25rem; font-size: .9375rem; }
.nav a { text-decoration: none; color: var(--ink-2); padding: .5rem 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
@media (max-width: 40rem) { .nav a:not(.nav-contact) { display: none; } }
.nav-contact { color: var(--accent-ink) !important; font-weight: 600; }

/* Hero */
.hero { padding: clamp(3.5rem, 2rem + 8vw, 9rem) 0 var(--space-section); }
.eyebrow {
  font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); margin: 0 0 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::before { content: ""; width: 2rem; height: 2px; background: var(--accent); }
.hero h1 {
  font-size: var(--text-hero); line-height: .98; letter-spacing: -0.035em;
  font-weight: 600; margin: 0; max-width: 14ch;
}
.hero h1 em { font-family: var(--font-serif); font-weight: 400; font-style: italic; color: var(--accent); letter-spacing: -0.01em; }
.hero .lead { font-size: var(--text-lead); color: var(--ink-2); max-width: 38rem; margin: 2rem 0 2.5rem; }
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--ink); color: var(--paper); text-decoration: none;
  padding: .95rem 1.5rem; font-weight: 600; min-height: 44px;
  transition: background .25s var(--ease), translate .25s var(--ease);
}
.btn:hover { background: var(--accent); translate: 0 -2px; }
.btn:active { translate: 0 0; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  border-top: 1px solid var(--line); margin-top: clamp(3rem, 2rem + 5vw, 6rem);
}
.facts div { padding: 1.25rem 1.5rem 0 0; }
.facts dt { font-size: .8125rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.facts dd { margin: .25rem 0 0; font-weight: 600; }

/* Sections */
section { scroll-margin-top: 1rem; }
.section { padding: var(--space-section) 0; border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 1rem; margin-bottom: clamp(2rem, 1rem + 4vw, 4rem); }
@media (min-width: 56rem) { .section-head { grid-template-columns: 1fr 2fr; align-items: end; } }
.section-head .label { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-ink); margin: 0; }
.section h2 { font-size: var(--text-h2); line-height: 1.1; letter-spacing: -0.025em; font-weight: 600; margin: 0; max-width: 22ch; }

.about-body { display: grid; gap: 1.5rem; }
@media (min-width: 56rem) { .about-body { grid-template-columns: 1fr 2fr; } .about-body > div { grid-column: 2; } }
.about-body p { margin: 0 0 1.25rem; max-width: 42rem; }
.about-body p:first-child { font-size: var(--text-lead); }

/* Services */
.services { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 48rem) { .services { grid-template-columns: 1fr 1fr; } }
.service {
  position: relative; padding: 2rem 1.5rem 2.25rem 0; border-top: 1px solid var(--line);
  transition: background .3s var(--ease);
}
@media (min-width: 48rem) {
  .service { padding: 2.5rem 2.5rem 2.75rem; }
  .service:nth-child(odd) { border-right: 1px solid var(--line); padding-left: 0; }
}
.service .num { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-size: 1.5rem; }
.service h3 { font-size: 1.375rem; letter-spacing: -0.015em; margin: .5rem 0 .75rem; font-weight: 600; }
.service p { margin: 0; color: var(--ink-2); max-width: 30rem; }

/* Principles */
.principles { background: var(--ink); color: var(--paper); border-top: 0; }
.principles .label { color: var(--accent); }
.principles-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .principles-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } }
.principles-grid h3 { font-size: 1.125rem; margin: 0 0 .5rem; font-weight: 600; }
.principles-grid p { margin: 0; opacity: .72; }
.principles-grid li { border-top: 2px solid var(--accent); padding-top: 1.25rem; }
@media (prefers-color-scheme: dark) { .principles { background: var(--paper-2); color: var(--ink); } }

/* Company */
.company-card {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: clamp(1.5rem, 1rem + 2vw, 3rem);
  display: grid; gap: 1.5rem 3rem;
}
@media (min-width: 48rem) { .company-card { grid-template-columns: 1fr 1fr; } }
.company-card dt { font-size: .8125rem; color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.company-card dd { margin: .35rem 0 0; font-weight: 500; }

/* Contact */
.contact { text-align: left; }
.contact-mail {
  display: inline-block; font-size: clamp(1.75rem, 1rem + 4.5vw, 4.5rem); font-weight: 600;
  letter-spacing: -0.03em; text-decoration: none; line-height: 1.1; word-break: break-word;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 0 3px no-repeat;
  transition: background-size .45s var(--ease), color .2s;
}
.contact-mail:hover { background-size: 100% 3px; color: var(--accent-ink); }
.contact p { color: var(--ink-2); max-width: 36rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; font-size: .875rem; color: var(--ink-2); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }

/* Legal page */
.legal { padding: clamp(3rem, 2rem + 4vw, 6rem) 0 var(--space-section); }
.legal h1 { font-size: var(--text-h2); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 .5rem; }
.legal .updated { color: var(--ink-2); margin: 0 0 3rem; }
.legal h2 { font-size: 1.25rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { max-width: 44rem; }
