:root {
  color-scheme: dark;
  --background: #141514;
  --foreground: #f2f0e9;
  --muted: #d0ccc2;
  --soft: #9a958b;
  --line: rgba(242, 240, 233, 0.18);
  --accent: #8f9866;
  --max-width: 720px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.05), transparent 26%),
    var(--background);
  color: var(--foreground);
  font-family:
    Geist,
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  text-rendering: geometricPrecision;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding-inline: 24px;
}

.header,
.hero,
.footer {
  width: min(100%, var(--max-width));
  margin-inline: auto;
}

.header {
  min-height: 128px;
  display: flex;
  align-items: end;
  justify-content: center;
}

.wordmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-block: 20px 58px;
  text-align: center;
}

.rule {
  width: min(260px, 44vw);
  height: 2px;
  margin-bottom: 34px;
  background: var(--accent);
}

h1,
p {
  margin-top: 0;
}

h1 {
  max-width: 590px;
  margin-bottom: 34px;
  font-size: clamp(25px, 3vw, 32px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.intro {
  max-width: 560px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.45vw, 17px);
  line-height: 1.35;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
  color: var(--foreground);
  font-size: 16px;
}

.actions a,
.footer a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

.actions a:hover,
.footer a:hover {
  color: #ffffff;
  text-decoration-color: var(--foreground);
}

.actions span {
  color: var(--soft);
}

.footer {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.footer em {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: 0;
}

@media (max-width: 680px) {
  .page {
    padding-inline: 18px;
  }

  .header {
    min-height: 112px;
  }

  .hero {
    justify-content: start;
    padding-block: 48px 56px;
  }

  .rule {
    width: 148px;
    margin-bottom: 30px;
  }

  h1 {
    margin-bottom: 30px;
  }

  .intro {
    font-size: 15px;
  }

  .footer {
    min-height: 96px;
    flex-wrap: wrap;
    gap: 14px 28px;
  }
}
