@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-latin-wght-italic.woff2") format("woff2");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}

:root {
  --ground: #F5F2EA;
  --ink: #1C2024;
  --soft: #5B6168;
  --rule: #D9D3C5;
  --accent: #7A2E22;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #15181B;
    --ink: #ECE7DB;
    --soft: #A29D92;
    --rule: #30353A;
    --accent: #D98E7C;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-size: 21px;
  line-height: 1.45;
  font-variant-numeric: oldstyle-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(22px, 4vw, 44px) clamp(22px, 6vw, 72px);
}

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-size: 17px;
  letter-spacing: 0.01em;
  color: var(--soft);
}
header { padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
footer { padding-top: 18px; border-top: 1px solid var(--rule); }
.mark { color: var(--ink); font-weight: 500; letter-spacing: 0.03em; }
.mark i { color: var(--accent); font-weight: 400; }

main {
  align-self: center;
  padding: clamp(48px, 10vh, 120px) 0;
}

h1 {
  margin: 0;
  font-weight: 400;
  font-size: clamp(44px, 9.2vw, 104px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 i { color: var(--accent); font-weight: 400; padding-right: 0.04em; }

.what, .reach {
  max-width: 30em;
  margin: 0;
  font-size: clamp(21px, 2.3vw, 26px);
}
.what { margin-top: clamp(28px, 5vh, 48px); }
.reach { margin-top: 0.7em; }

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover, a:focus-visible { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
