@font-face {
  font-family: "DM Mono";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/dm-mono-regular.woff2") format("woff2");
}

@font-face {
  font-family: "DM Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/dm-mono-medium.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/libre-baskerville-regular.woff2") format("woff2");
}

@font-face {
  font-family: "Libre Baskerville";
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  src: url("/fonts/libre-baskerville-italic.woff2") format("woff2");
}

:root {
  --paper: #eae8df;
  --ink: #29241f;
  --muted: #70695f;
  --line: #c8c4ba;
  --accent: #873d25;
  --paper-tinted: #e1ded4;
}

@media (prefers-color-scheme: dark) {
  :root:not(.theme-light) {
    --paper: #201d19;
    --ink: #eee9de;
    --muted: #b8b0a4;
    --line: #504a42;
    --accent: #dc8665;
    --paper-tinted: #2a2621;
    color-scheme: dark;
  }
}

:root.theme-dark {
  --paper: #201d19;
  --ink: #eee9de;
  --muted: #b8b0a4;
  --line: #504a42;
  --accent: #dc8665;
  --paper-tinted: #2a2621;
  color-scheme: dark;
}

:root.theme-light { color-scheme: light; }

* { box-sizing: border-box; }

html { background: var(--paper); }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.shell {
  width: min(100% - 3rem, 72rem);
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  font-family: "DM Mono", monospace;
  font-size: .73rem;
  letter-spacing: .025em;
}

.header-inner,
.site-footer > .shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-inner { min-height: 5.5rem; }

.wordmark {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.1rem;
  font-weight: bold;
  letter-spacing: -.04em;
  text-decoration: none;
}

nav { display: flex; align-items: center; gap: 1.5rem; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav a:focus-visible, .contact-link:hover, .contact-link:focus-visible { color: var(--accent); }

.language-switcher {
  display: flex;
  gap: .5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--line);
  text-transform: uppercase;
}

.language-switcher a[aria-current="true"] { color: var(--ink); }

.theme-control { display: none; align-items: center; gap: .45rem; color: var(--muted); }
.theme-js .theme-control { display: flex; }
.theme-control span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.theme-control select {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  letter-spacing: inherit;
  text-transform: uppercase;
}
.theme-control select:focus-visible { outline: 1px solid var(--accent); outline-offset: .25rem; }

.hero {
  display: grid;
  align-content: center;
  min-height: calc(100vh - 10.75rem);
  padding-block: 7rem 8rem;
}

.eyebrow {
  margin: 0 0 1.75rem;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
  letter-spacing: .07em;
  text-transform: uppercase;
}

h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -.065em;
  line-height: 1.08;
}

.hero-foot {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 3.5rem;
  color: var(--muted);
  font-size: .9rem;
}

.hero-intro {
  max-width: 46rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.hero-foot p { margin: 0; }
.contact-link { color: var(--ink); text-underline-offset: .25em; }

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  width: fit-content;
  margin-top: 4rem;
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .7rem;
  letter-spacing: .06em;
  text-decoration: none;
  text-transform: uppercase;
}
.scroll-cue span:last-child { color: var(--accent); font-size: 1.15rem; line-height: 1; }
.scroll-cue:hover, .scroll-cue:focus-visible { color: var(--accent); }

.content-section { padding-block: 6.5rem; }
.content-section--tinted { background: var(--paper-tinted); }

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 1fr);
  gap: 4rem;
}

.content-section h2 {
  max-width: 20ch;
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -.045em;
  line-height: 1.16;
}

.split-section > p {
  max-width: 37rem;
  margin: 2.7rem 0 0;
  color: var(--muted);
}

.focus-grid,
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.focus-grid { margin-top: 2.5rem; }
.focus-grid article,
.engagement-grid article { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.focus-grid h2,
.engagement-grid h2 { font-size: 1.2rem; letter-spacing: -.025em; }
.focus-grid p,
.engagement-grid p { color: var(--muted); font-size: .93rem; }

.technology-line {
  margin: 3rem 0 0;
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: .73rem;
  letter-spacing: .025em;
}

.engagement-grid { margin-top: 2.5rem; }
.engagement-grid span {
  color: var(--accent);
  font-family: "DM Mono", monospace;
  font-size: .72rem;
}
.engagement-grid h2 { margin-top: .7rem; }

.contact-section { max-width: 55rem; }
.contact-section > p:not(.eyebrow) { max-width: 40rem; color: var(--muted); }
.contact-section .contact-link { display: inline-block; margin-top: 1rem; }
.contact-link span { margin-left: .35em; color: var(--accent); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "DM Mono", monospace;
  font-size: .68rem;
  letter-spacing: .02em;
}

.site-footer > .shell { min-height: 5.25rem; }

.social-links {
  display: flex;
  gap: .9rem;
}

.social-links a {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.imprint-link {
  color: var(--muted);
  text-decoration: none;
}

.imprint-link:hover, .imprint-link:focus-visible { color: var(--accent); }

.legal-page {
  min-height: calc(100vh - 10.75rem);
  max-width: 48rem;
  padding-block: 6rem 8rem;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.legal-content { margin-top: 3.5rem; }
.legal-content h2 {
  margin: 2.5rem 0 .75rem;
  font-family: "DM Mono", monospace;
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.legal-content p { margin: 0; }
.legal-content p + h2 { margin-top: 2.5rem; }
.legal-content a { color: var(--accent); text-underline-offset: .25em; }

@media (max-width: 38rem) {
  .shell { width: min(100% - 2rem, 72rem); }
  .header-inner { min-height: 4.5rem; }
  nav { gap: .75rem; }
  .theme-control select { max-width: 4.5rem; }
  .hero { min-height: calc(100vh - 9.75rem); padding-block: 5rem; }
  .hero-foot, .site-footer > .shell { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .site-footer > .shell { justify-content: center; padding-block: 1.25rem; }
  .content-section { padding-block: 4.5rem; }
  .split-section, .focus-grid, .engagement-grid { grid-template-columns: 1fr; gap: 2rem; }
  .split-section > p { margin-top: 0; }
}
