:root {
  --paper: #f4f0e6;
  --paper-raised: #faf7ef;
  --ink: #1f201c;
  --muted: #67675f;
  --line: #d8d0bf;
  --accent: #9e3f2f;
  --soft-accent: #eee0d5;
  --forest: #2c4431;
  --shadow: 0 12px 35px rgb(70 55 30 / 7%);

  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  background-color: var(--paper);
  background-image: radial-gradient(color-mix(in oklab, var(--line) 55%, transparent) 0.6px, transparent 0.6px);
  background-size: 8px 8px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

a:hover {
  color: var(--accent);
}

h1,
p {
  text-wrap: pretty;
}

.page-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  width: min(1180px, 100% - 40px);
  margin-inline: auto;
}

/* Header */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: clamp(64px, 10vh, 88px);
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

/* Hero */

main {
  flex: 1;
  display: flex;
  align-items: center;
}

.hero {
  padding-block: clamp(24px, 7vh, 104px) clamp(16px, 3.5vh, 44px);
  max-width: 980px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: clamp(20px, 4vh, 44px);
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 160ms ease, border-color 160ms ease;
}

.cta:hover {
  border-color: var(--accent);
}

.cta span {
  transition: transform 160ms ease;
}

.cta:hover span {
  transform: translateX(3px);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.8rem, min(6.6vw, 11vh), 5.9rem);
  letter-spacing: -0.05em;
  line-height: 0.96;
}

/* Frontier */

.frontier {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  line-height: 0;
}

.frontier svg {
  display: block;
  width: 100%;
  height: clamp(110px, min(18vw, 26vh), 260px);
}

.frontier-grid line {
  stroke: var(--line);
  stroke-width: 1;
  stroke-dasharray: 2 6;
}

.frontier-fill {
  fill: url(#frontier-fade);
}

.fade-top {
  stop-color: color-mix(in oklab, var(--forest) 14%, var(--paper));
}

.fade-bottom {
  stop-color: color-mix(in oklab, var(--forest) 46%, var(--paper));
}

.frontier-ghost {
  fill: none;
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.frontier-line {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.25;
  stroke-linejoin: round;
}

.dot {
  fill: color-mix(in oklab, var(--forest) 58%, var(--paper));
  stroke: transparent;
  stroke-width: 1.5;
  transition: fill 700ms ease, stroke 700ms ease;
}

.dot.is-frontier {
  fill: var(--ink);
  stroke: var(--paper);
}

.dot-ring {
  fill: none;
  stroke: var(--ink);
  stroke-width: 1;
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding-block: 28px;
  color: var(--muted);
  font-size: 0.84rem;
}

.made-in .heart {
  display: inline-block;
  transition: color 160ms ease, transform 160ms ease;
}

.made-in:hover .heart {
  color: var(--accent);
  transform: scale(1.15);
}

@media (max-width: 560px) {
  .site-header {
    height: 72px;
  }

  .page-shell {
    width: min(1180px, 100% - 28px);
  }

  .site-footer {
    flex-direction: column;
    gap: 4px;
  }
}
