@font-face {
  font-family: "Source Serif 4";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/source-serif-4-600.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/source-sans-3-500.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #f3f0ea;
  --bg-soft: #faf8f4;
  --ink: #1b1a17;
  --muted: #5f5b54;
  --line: #d6d0c6;
  --accent: #2c4741;
  --mark: #2c4741;
  --shadow: 0 30px 80px rgba(27, 26, 23, 0.06);
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121110;
    --bg-soft: #1a1917;
    --ink: #efeae2;
    --muted: #a49f96;
    --line: #322f2a;
    --accent: #c3d0cb;
    --mark: #c9d3cf;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  }
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  color: var(--ink);
  background-color: var(--bg);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 70% at 50% 42%, var(--bg-soft), transparent 62%),
    var(--bg);
}

.backdrop svg {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(920px, 140vw);
  height: auto;
  transform: translate(-50%, -54%);
  color: var(--mark);
  opacity: 0.08;
}

@media (prefers-color-scheme: dark) {
  .backdrop svg {
    opacity: 0.13;
  }
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2.5rem;
}

main {
  width: min(40rem, 100%);
  text-align: center;
}

.mark {
  width: 3.25rem;
  height: 3.25rem;
  margin: 0 auto 2rem;
  color: var(--mark);
}

.mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.35rem, 6vw, 3.75rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.rule {
  width: 3rem;
  height: 1px;
  margin: 1.75rem auto;
  background: var(--line);
  border: 0;
}

.tagline {
  margin: 0 auto;
  max-width: 26rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 400;
  letter-spacing: 0.005em;
}

.contact {
  margin: 2.25rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.contact a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  transition: border-color 160ms ease, color 160ms ease;
}

.contact a:hover,
.contact a:focus-visible {
  border-bottom-color: var(--accent);
}

.contact a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

footer {
  position: absolute;
  bottom: 1.5rem;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 40rem) {
  .page {
    padding: 2.25rem 1.25rem 4.5rem;
  }

  .mark {
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1.6rem;
  }

  .rule {
    margin: 1.45rem auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact a {
    transition: none;
  }
}
