/* Novis Oculis — one page, black and white, one restrained accent */

:root {
  --bg: #f7f5f0;
  --ink: #141414;
  --muted: #4d4d4d;
  --rule: #d5cfc3;
  --accent: #7a5a22;
  --accent-hover: #5c4014;
  --max: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", "Iowan Old Style", "Times New Roman", Times, serif;
  font-size: 1.125rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.4rem 0.7rem;
  z-index: 10;
}

.skip:focus {
  top: 0.75rem;
}

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

.hero {
  padding: 4.5rem 0 3.25rem;
  text-align: center;
}

.logo {
  display: block;
  width: min(22.5rem, 100%);
  height: auto;
  margin: 0 auto 2rem;
}

.hero h1 {
  margin: 0 auto;
  max-width: 22rem;
  font-size: clamp(1.35rem, 2.6vw, 1.7rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0.01em;
}

.hero h1::after {
  content: "";
  display: block;
  width: 2.5rem;
  height: 1px;
  margin: 1.75rem auto 0;
  background: var(--accent);
}

section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--rule);
}

h2 {
  margin: 0 0 1.15rem;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 400;
}

p {
  margin: 0 0 1rem;
  color: var(--ink);
}

p:last-child {
  margin-bottom: 0;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding-left: 2.4rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-variant-numeric: oldstyle-nums;
}

.notice {
  font-style: italic;
}

.who,
.ways {
  margin-bottom: 1rem;
}

.who {
  line-height: 1.55;
}

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

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

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

footer {
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
}

footer p {
  margin: 0;
  color: var(--muted);
}

.center {
  text-align: center;
}
