@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F2F1F0;
  --ink: #1D1B1A;
  --text: #45423F;
  --mute: #6B6763;
  --rule: #B8B5B2;
  --red: #E0301A;
  --red-deep: #B2200D;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, p, ul, address { margin: 0; }

:focus-visible { outline: 2px solid var(--red-deep); outline-offset: 4px; }

/* Footer, shared by all pages */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.75rem;
  padding: 1.5rem;
}

.foot a {
  color: var(--mute);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot a:hover, .foot a:focus-visible { color: var(--ink); }

/* Home */

.home main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
}

.home h1 {
  font-size: clamp(3.75rem, 2rem + 10vw, 9rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1;
  letter-spacing: -0.03em;
}

.rule {
  width: 4.5rem;
  height: 2px;
  margin: clamp(1.5rem, 3.5vw, 2.25rem) auto;
  background: var(--red);
}

.tagline {
  display: flex;
  justify-content: center;
  font-size: clamp(1rem, 0.9rem + 0.45vw, 1.25rem);
  font-weight: 500;
  line-height: 1.3;
}

.tagline span + span {
  margin-left: 1.1em;
  padding-left: 1.1em;
  border-left: 1px solid var(--rule);
}

.contact {
  display: inline-block;
  margin-top: clamp(2.25rem, 5vw, 3.25rem);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration-line: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.55em;
  transition: color 0.2s ease;
}

.contact:hover, .contact:focus-visible { color: var(--red-deep); }

@media (max-width: 720px) {
  .tagline { flex-direction: column; gap: 0.35em; }
  .tagline span + span { margin-left: 0; padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .home main > div { animation: arrive 1s ease both; }
  @keyframes arrive { from { opacity: 0; } to { opacity: 1; } }
}

/* Legal pages */

.legal .head {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--rule);
  text-align: center;
}

.legal .head a {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.legal main {
  flex: 1;
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) 1.5rem;
  overflow-wrap: break-word;
  hyphens: auto;
}

.legal h1 {
  margin-bottom: 2rem;
  font-size: clamp(1.875rem, 1.4rem + 2.4vw, 2.75rem);
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.legal h2 {
  margin: 2.25rem 0 0.6rem;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.3;
}

.legal p, .legal address, .legal ul {
  margin-bottom: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.6;
}

.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.4rem; }

.legal main a {
  color: var(--ink);
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

.legal .note {
  margin-bottom: 0.5rem;
  padding-left: 1rem;
  border-left: 2px solid var(--red);
}

.legal .stand { margin-top: 2.5rem; color: var(--mute); font-size: 0.875rem; }

.legal .foot { border-top: 1px solid var(--rule); }
