/* Alcorque — base: tokens, reset, type, layout */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --fg: #212b2b;
  --bg: #f5f7f6;
  --brand: #336666;
  --brand-deep: #1c3a3a;
  --divider: #c9cfcc;
  --mid: #8a9491;
  --ff-display: "Fraunces", Georgia, serif;
  --ff-body: "Archivo", "Segoe UI", sans-serif;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --space-12: 96px;
  --wrap: 1200px;
  --ease-out: cubic-bezier(.22, .8, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 var(--space-3);
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }

p { margin: 0 0 var(--space-2); }

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-deep); }

ul, ol { padding-left: 1.3em; margin: 0 0 var(--space-2); }

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 32px);
}

.band { padding-block: clamp(56px, 9vw, 112px); }
.band--tight { padding-block: clamp(40px, 6vw, 72px); }

.skip-to-content {
  position: absolute;
  top: -120px;
  left: 16px;
  z-index: 1200;
  background: var(--brand-deep);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  transition: top .2s var(--ease-out);
}
.skip-to-content:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.btn {
  display: inline-block;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  min-height: 48px;
  border: 2px solid var(--brand);
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s var(--ease-out), border-color .2s var(--ease-out);
}
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--brand); }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--chalk { background: #fff; border-color: #fff; color: var(--brand-deep); }
.btn--chalk:hover { background: var(--divider); border-color: var(--divider); color: var(--brand-deep); }

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

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-3);
  font-size: .96rem;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
}
th { font-weight: 600; color: var(--brand-deep); }

.asoma {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.asoma.visto { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .asoma { opacity: 1; transform: none; transition: none; }
  .btn, .skip-to-content, a { transition: none; }
}
