:root {
  color-scheme: light dark;
  --ink: #17211d;
  --paper: #f6f8f5;
  --wash: #e9f0ed;
  --gold: #c7a940;
  --fig: #425744;
  --brick: #9d4f41;
  --line: color-mix(in srgb, var(--ink), transparent 86%);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--line), transparent 48%) 1px, transparent 1px),
    linear-gradient(180deg, var(--paper), var(--wash));
  background-size: 44px 44px, auto;
  font-family: Charter, "Iowan Old Style", Georgia, serif;
}

a {
  color: inherit;
}

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.hero {
  width: min(720px, 100%);
  padding: 56px 0;
}

.app-icon {
  display: block;
  width: 104px;
  height: 104px;
  margin-bottom: 22px;
  border-radius: 22px;
  box-shadow: 0 14px 35px color-mix(in srgb, var(--ink), transparent 78%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brick);
  font-family: Avenir Next, Trebuchet MS, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: 72px;
  line-height: 0.98;
  letter-spacing: 0;
}

p {
  max-width: 62ch;
  margin: 20px 0 0;
  font-size: 20px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-family: Avenir Next, Trebuchet MS, sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.button.secondary {
  background: var(--fig);
}

.button:hover {
  transform: translateY(-1px);
}

.button[aria-disabled="true"] {
  opacity: 0.48;
  pointer-events: none;
}

.small {
  font-size: 14px;
  opacity: 0.74;
}

.text-page .hero {
  width: min(820px, 100%);
}

.text-page h1 {
  font-size: 64px;
}

@media (max-width: 720px) {
  h1 {
    font-size: 56px;
  }

  .text-page h1 {
    font-size: 52px;
  }
}

@media (max-width: 520px) {
  .shell {
    padding: 16px;
  }

  .hero {
    padding: 28px 0;
  }

  .app-icon {
    width: 82px;
    height: 82px;
    border-radius: 18px;
  }

  h1,
  .text-page h1 {
    font-size: 42px;
  }

  p {
    font-size: 17px;
  }

  .actions {
    display: grid;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #edf5f0;
    --paper: #111815;
    --wash: #18241f;
    --line: color-mix(in srgb, var(--ink), transparent 82%);
  }

  body {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--line), transparent 68%) 1px, transparent 1px),
      linear-gradient(180deg, var(--paper), var(--wash));
    background-size: 44px 44px, auto;
  }

  .button {
    background: var(--gold);
    color: #18130e;
  }

  .button.secondary {
    background: #b9c0a6;
    color: #18130e;
  }
}
