:root {
  --bg: #faf8f5;
  --text: #26201b;
  --muted: #6e6259;
  --accent: #5e2605;
  --accent-contrast: #ffffff;
  --rule: #e8e1da;
  --surface: #f2ede7;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171210;
    --text: #ece5df;
    --muted: #a3968b;
    --accent: #d99e6a;
    --accent-contrast: #241209;
    --rule: #2e2620;
    --surface: #201a16;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.page {
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0 1.5rem;
}

.wordmark {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  white-space: nowrap;
}

.lang-switch {
  font-size: 0.875rem;
  color: var(--muted);
}

.lang-switch a {
  color: var(--muted);
  text-decoration: none;
  padding: 0.25rem 0.125rem;
}

.lang-switch a:hover {
  color: var(--accent);
}

.lang-switch .active {
  color: var(--text);
  font-weight: 600;
}

/* Hero */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero h1 {
  margin: 0;
  color: var(--accent);
  font-size: clamp(1.75rem, 6vw, 2.875rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  line-height: 1.25;
}

.hero p {
  margin: 1.25rem 0 0;
  font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
  color: var(--muted);
  max-width: 34rem;
}

/* Sections */

main section {
  border-top: 1px solid var(--rule);
  padding: 2.75rem 0;
}

main section h2 {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

main section p {
  margin: 0 0 1rem;
  max-width: 36rem;
}

main section p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

address {
  font-style: normal;
}

.contact-list {
  margin: 0;
}

.contact-list div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  padding: 0.375rem 0;
}

.contact-list dt {
  flex: 0 0 7.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.contact-list dd {
  margin: 0;
  flex: 1 1 14rem;
}

/* Legal pages */

.legal h1 {
  margin: 2.5rem 0 0.5rem;
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.3;
}

.legal .subtitle {
  color: var(--muted);
  margin: 0 0 2.5rem;
  font-size: 0.9375rem;
}

.legal h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.125rem;
}

.legal main {
  padding-bottom: 3rem;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--rule);
  padding: 1.75rem 0 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--muted);
}

footer.site nav {
  display: flex;
  gap: 1.25rem;
}

footer.site a {
  color: var(--muted);
}

footer.site a:hover {
  color: var(--accent);
}
