:root {
  color-scheme: light;
  --background: #f7f4ef;
  --text: #1f2528;
  --muted: #667074;
  --accent: #007f86;
  --accent-dark: #005e64;
  --line: #d8d0c5;
  --surface: #fffdfa;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
}

body {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  background: var(--background);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
}

::selection {
  background: var(--accent);
  color: var(--surface);
}

a {
  color: var(--accent-dark);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover,
a:focus {
  color: var(--text);
}

a:focus-visible {
  outline: 0.18rem solid var(--accent);
  outline-offset: 0.18rem;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1 {
  margin-bottom: 0.35rem;
  font-size: 4.2rem;
  line-height: 0.95;
}

h2 {
  margin-bottom: 1rem;
  padding-top: 0.5rem;
  border-top: 0.12rem solid var(--line);
  font-size: 1.45rem;
  line-height: 1.2;
}

h3 {
  margin-bottom: 0.15rem;
  font-size: 1.08rem;
  line-height: 1.3;
}

p,
ul {
  margin-bottom: 1rem;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

address {
  color: var(--muted);
  font-style: normal;
}

main,
footer {
  display: grid;
  gap: 1.6rem;
}

section,
article {
  display: grid;
  gap: 0.15rem;
}

article + article {
  margin-top: 1rem;
}

footer {
  margin-top: 2.4rem;
  padding-top: 1rem;
  border-top: 0.12rem solid var(--line);
}

.site-header {
  margin-bottom: 2.2rem;
}

.intro {
  display: grid;
  grid-template-columns: minmax(5.5rem, 10rem) 1fr;
  gap: 1.2rem;
  align-items: end;
}

.intro img {
  border: 0.18rem solid var(--text);
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: 1.25rem;
  line-height: 1.45;
}

.eyebrow,
.meta {
  color: var(--muted);
  font-size: 0.94rem;
}

.eyebrow {
  margin-bottom: 0.4rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.meta {
  margin-bottom: 0.2rem;
}

.language-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-bottom: 2rem;
  font-size: 0.96rem;
}

.language-nav a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.inline-list,
.language-list {
  padding-left: 1.2rem;
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  padding-left: 0;
  list-style: none;
}

.inline-list li {
  padding: 0.08rem 0.45rem;
  border: 0.08rem solid var(--line);
  background: var(--surface);
}

.fallback {
  min-height: 100vh;
  display: grid;
  align-content: center;
}

.fallback .site-header {
  margin-bottom: 1.4rem;
}

@media (max-width: 36rem) {
  body {
    padding: 1.4rem 1rem 2.4rem;
  }

  h1 {
    font-size: 2.8rem;
  }

  .intro {
    grid-template-columns: 1fr;
  }

  .intro img {
    width: 7.5rem;
  }
}
