:root {
  --paper: #f2f2f2;
  --ink: #000000;
  --muted: #555555;
  --line: #cfcfcf;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, "Times New Roman", serif;
  --sans: "Jost", "Futura", "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 1.5rem; }

header.site {
  padding: 1.75rem 0 0;
}
header.site .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-family: var(--serif); font-size: 1.35rem; font-weight: 500; text-decoration: none; letter-spacing: 0.01em; }
header.site nav a { margin-left: 1.5rem; font-size: 1rem; color: var(--muted); }
header.site nav a:hover { color: var(--ink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.12; margin: 0; }

.hero { padding: 4rem 0 5rem; }
.hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -0.01em; }
.hero p.lede { margin: 1.5rem 0 0; max-width: 34rem; font-size: 1.3rem; color: #222; }
.hero p.contact { margin: 2rem 0 0; font-size: 1rem; color: var(--muted); max-width: 32rem; }
.hero img { width: 100%; max-width: 380px; height: auto; justify-self: end; }

section.block { border-top: 1px solid var(--line); padding: 3.5rem 0; }
section.block .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; }
section.block h2 { font-size: 1.9rem; }
section.block p { margin: 0 0 1rem; max-width: 38rem; }
section.block p:last-child { margin-bottom: 0; }

ul.plain { list-style: none; margin: 0; padding: 0; max-width: 38rem; }
ul.plain li { padding: 1rem 0; border-top: 1px solid var(--line); }
ul.plain li:first-child { border-top: 0; padding-top: 0; }
ul.plain strong { font-weight: 500; font-size: 1.2rem; display: block; margin-bottom: 0.15rem; }
ul.plain span { color: var(--muted); }

ol.steps { margin: 0; padding-left: 1.4rem; max-width: 38rem; }
ol.steps li { padding: 0.35rem 0 0.35rem 0.4rem; }
ol.steps li::marker { font-family: var(--serif); font-weight: 500; }

.consent { font-size: 0.95rem; color: var(--muted); max-width: 38rem; }

footer.site { border-top: 1px solid var(--line); padding: 2.25rem 0 3rem; font-size: 0.95rem; color: var(--muted); }
footer.site .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer.site a { color: var(--muted); margin-left: 1.25rem; }
footer.site a:first-child { margin-left: 0; }
footer.site a:hover { color: var(--ink); }

/* Legal pages */
main.legal { padding: 3.5rem 0 4rem; }
main.legal .wrap { max-width: 720px; }
main.legal h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin-bottom: 0.5rem; }
main.legal .updated { color: var(--muted); margin: 0 0 2.5rem; font-size: 1rem; }
main.legal h2 { font-size: 1.5rem; margin: 2.25rem 0 0.6rem; }
main.legal p, main.legal li { max-width: 40rem; }
main.legal ul { padding-left: 1.25rem; }

@media (max-width: 760px) {
  .hero { padding: 2.5rem 0 3.5rem; }
  .hero .wrap { grid-template-columns: 1fr; gap: 2rem; }
  .hero img { order: -1; justify-self: start; max-width: 150px; }
  section.block .wrap { grid-template-columns: 1fr; gap: 1.25rem; }
  header.site nav a:first-child { margin-left: 0; }
}

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