@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("/fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f3ee;
  --fg: #161615;
  --muted: #6e6c66;
  --line: #dcd9d0;
  --accent: #2f5bd3;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121211;
    --fg: #ecebe6;
    --muted: #9a9890;
    --line: #2a2a27;
    --accent: #8aa8ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(72px, 16vw, 168px) 24px 40px;
}

main {
  flex: 1;
}

.hero {
  margin-bottom: clamp(64px, 11vw, 112px);
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(52px, 11vw, 88px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

h1 em {
  font-style: italic;
}

.lede {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2.6vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.block {
  padding: 32px 0;
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.block p {
  margin: 0;
  max-width: 34em;
}

a {
  color: inherit;
}

.email {
  font-family: var(--serif);
  font-size: clamp(26px, 5vw, 32px);
  line-height: 1.2;
  text-decoration-color: var(--line);
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  transition: text-decoration-color 0.15s ease;
}

.email:hover {
  text-decoration-color: currentColor;
}

.email:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.footer {
  padding-top: 32px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}
