:root {
  color-scheme: light;
  --paper: #f7f1e6;
  --paper-2: #efe4d2;
  --ink: #2d2924;
  --muted: #746b60;
  --rule: #d7c6ac;
  --accent: #9b4a2a;
  --accent-soft: #ead1bd;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 10%, rgba(155, 74, 42, 0.08), transparent 34rem),
    var(--paper);
}

a {
  color: var(--accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page {
  width: min(100%, 58rem);
  margin: 0 auto;
  padding: 2rem 1.25rem 5rem;
}

.home {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.hero {
  max-width: 42rem;
  text-align: center;
}

.app-icon {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1.45rem;
  box-shadow: 0 1rem 3rem rgba(45, 41, 36, 0.18);
}

.caps {
  margin: 1.5rem 0 0.75rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  font-style: italic;
  font-weight: 500;
  line-height: 0.96;
}

.document h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
}

h2 {
  margin: 2.2rem 0 0.6rem;
  font-size: 1.4rem;
  font-weight: 650;
}

h3 {
  margin: 1.2rem 0 0.35rem;
  font-size: 1.02rem;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

p,
li {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted);
}

.lede {
  max-width: 42rem;
  margin: 1.2rem auto 0;
  font-size: 1.12rem;
}

.date {
  margin-top: 0.65rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  color: var(--accent);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 0.25rem;
  padding: 0 1.2rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.button.primary {
  border-color: var(--accent);
  color: var(--paper);
  background: var(--accent);
}

.topnav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

article {
  padding-bottom: 4rem;
}

section {
  border-top: 1px solid rgba(215, 198, 172, 0.64);
  margin-top: 2rem;
  padding-top: 0.2rem;
}

hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3.4rem 0;
}

@media (max-width: 520px) {
  .page {
    padding-inline: 1rem;
  }

  .actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
