@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f5f3ee;
  --ink: #2a2a2a;
  --muted: #6d6a63;
  --line: rgba(42, 42, 42, 0.16);
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(1.5rem, 6vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.45;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
  border-radius: 2px;
}

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

/* Small tracked capitals: echoes the CAPITAL line of the wordmark. */
.label {
  font-family: var(--sans);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Masthead */
.masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: clamp(1.5rem, 4vw, 2.75rem);
}
.masthead .logo { display: block; line-height: 0; }
.masthead .logo img {
  display: block;
  width: clamp(6.5rem, 12vw, 8.5rem);
  height: auto;
}
.lang {
  display: flex;
  gap: 1.25rem;
  padding-top: 0.5rem;
}
.lang a {
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* Statement */
main { flex: 1; }
.statement {
  padding-top: clamp(3.5rem, 11vw, 8rem);
  padding-bottom: clamp(3.5rem, 9vw, 6.5rem);
}
h1 {
  margin: 0;
  max-width: 13em;
  font-size: clamp(2.5rem, 7.2vw, 5.25rem);
  font-weight: 350;
  line-height: 1.04;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
.lede {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  max-width: 33em;
  font-size: clamp(1.1875rem, 1.7vw, 1.375rem);
  line-height: 1.42;
  color: var(--muted);
  text-wrap: pretty;
}

/* Rows */
.rows {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.rows > * {
  display: grid;
  grid-template-columns: minmax(9rem, 15rem) 1fr;
  gap: 0.375rem 2rem;
  align-items: baseline;
  padding: 1.375rem 0;
  border-bottom: 1px solid var(--line);
}
.rows h2 { margin: 0; }
.rows h2.label { color: var(--ink); }
.rows p { margin: 0; max-width: 34em; text-wrap: pretty; }
.rows .head { padding: 0.875rem 0; }
.rows .contact a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 0.2s ease;
}
.rows .contact a:hover { text-decoration-color: var(--ink); }

/* Footer */
footer {
  padding-top: clamp(2.5rem, 6vw, 4rem);
  padding-bottom: clamp(1.5rem, 4vw, 2.5rem);
}
footer p { margin: 0; }

/* 404 */
.notfound a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

@media (max-width: 40rem) {
  body { font-size: 1.125rem; }
  .rows > * { grid-template-columns: 1fr; padding: 1.125rem 0; }
  .rows .head { padding: 0.75rem 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .masthead, .statement h1, .statement .lede, .rows, footer {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .statement h1 { animation-delay: 0.08s; }
  .statement .lede { animation-delay: 0.18s; }
  .rows { animation-delay: 0.3s; }
  footer { animation-delay: 0.4s; }
  @keyframes rise {
    from { opacity: 0; transform: translateY(8px); }
  }
}

@media print {
  body { background: #fff; }
  .lang { display: none; }
}
