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

:root {
  --paper: #eef1f0;
  --paper-2: #e2e7e6;
  --ink: #16202b;
  --ink-soft: #46525e;
  --steel: #7d8b97;
  --line: #c3cbd0;
  --accent: #2350b8;
  --accent-ink: #ffffff;
  --measure: 38rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #131a21;
    --paper-2: #1b242d;
    --ink: #e7ecee;
    --ink-soft: #a6b1ba;
    --steel: #6f7e8a;
    --line: #2d3943;
    --accent: #7ea2f2;
    --accent-ink: #0f1620;
  }
}
:root[data-theme="dark"] {
  --paper: #131a21;
  --paper-2: #1b242d;
  --ink: #e7ecee;
  --ink-soft: #a6b1ba;
  --steel: #6f7e8a;
  --line: #2d3943;
  --accent: #7ea2f2;
  --accent-ink: #0f1620;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-stretch: 100%;
}

a { color: inherit; }

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

.wrap {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

/* Header */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}
.wordmark {
  font-weight: 800;
  font-stretch: 125%;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.langs {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.langs a {
  display: block;
  padding: 0.35rem 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-soft);
  border-radius: 4px;
}
.langs a:hover { color: var(--ink); background: var(--paper-2); }
.langs a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }

/* Hero */
.hero {
  display: grid;
  gap: 2.5rem;
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
  align-items: center;
}
@media (min-width: 60rem) {
  .hero { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; padding-top: 4rem; padding-bottom: 5rem; }
}
.hero h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(2.4rem, 6.2vw, 4.4rem);
  line-height: 0.98;
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -0.025em;
  max-width: 14ch;
}
.lede {
  margin: 0 0 1rem;
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--ink-soft);
}
.status {
  margin: 0 0 2rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}
.status strong { color: var(--ink); font-weight: 600; }

.button {
  display: inline-block;
  padding: 0.9rem 1.4rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 650;
  text-decoration: none;
  border-radius: 4px;
}
.button:hover { filter: brightness(1.08); }

/* Wall drawing */
.frame { margin: 0; }
.frame svg { display: block; width: 100%; height: auto; }
.frame figcaption {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--steel);
}
.frame .member { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.frame .lip { fill: none; stroke: var(--steel); stroke-width: 1.5; }
.frame .strap { fill: none; stroke: var(--accent); stroke-width: 2.5; }
.frame .dim { fill: none; stroke: var(--steel); stroke-width: 1; }
.frame .dim-text { fill: var(--steel); font: 600 17px "Archivo", sans-serif; }
.frame .opening { fill: var(--paper-2); }

@media (prefers-reduced-motion: no-preference) {
  .frame .draw {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: draw 0.9s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
  .frame .strap.draw { animation-delay: 1.1s; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
}

/* Sections */
.section {
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2rem) 1px no-repeat;
}
@media (min-width: 48rem) { .section { background-size: calc(100% - 4rem) 1px; } }
.section h2 {
  margin: 0 0 2rem;
  font-size: clamp(1.6rem, 3.4vw, 2.25rem);
  line-height: 1.1;
  font-weight: 750;
  font-stretch: 108%;
  letter-spacing: -0.015em;
  max-width: 24ch;
}

.areas {
  display: grid;
  gap: 2rem 3rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 48rem) { .areas { grid-template-columns: 1fr 1fr; } }
.areas li { border-left: 3px solid var(--accent); padding-left: 1.1rem; }
.areas h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1875rem;
  font-weight: 700;
}
.areas p { margin: 0; color: var(--ink-soft); max-width: 34rem; }

.origin {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 60rem) { .origin { grid-template-columns: 1fr 1.3fr; gap: 4rem; } }
.origin h2 { margin-bottom: 0; }
.origin p { margin: 0 0 1rem; max-width: var(--measure); }

.contact .mail {
  display: inline-block;
  margin: 0.5rem 0 1rem;
  font-size: clamp(1.35rem, 4.6vw, 2.6rem);
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: -0.015em;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.15em;
  text-decoration-color: var(--accent);
  overflow-wrap: anywhere;
}
.contact p { margin: 0; max-width: var(--measure); color: var(--ink-soft); }

.site-foot {
  padding-top: 2rem;
  padding-bottom: 2.5rem;
  background: linear-gradient(var(--line), var(--line)) top center / calc(100% - 2rem) 1px no-repeat;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.site-foot p { margin: 0; }
@media (min-width: 48rem) { .site-foot { background-size: calc(100% - 4rem) 1px; } }

/* Aviso legal */
.legal { padding-top: 2.5rem; padding-bottom: 4rem; }
.legal h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.02em;
}
.legal .updated { margin: 0 0 2.5rem; font-size: 0.875rem; color: var(--ink-soft); }
.legal h2 { margin: 2.25rem 0 0.75rem; font-size: 1.25rem; font-weight: 700; }
.legal p { margin: 0 0 0.9rem; max-width: var(--measure); color: var(--ink-soft); }
.legal p strong { color: var(--ink); }
.legal a, .site-foot a { text-decoration-color: var(--accent); text-underline-offset: 0.15em; }
.site-foot p + p { margin-top: 0.35rem; }
