/* Calderería La Plana — site styles. Mobile-first, no frameworks. */

/* ---------- Fonts (self-hosted, OFL) ---------- */
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #14181d;
  --steel: #232a32;
  --steel-2: #2e3741;
  --paper: #f5f3ef;
  --white: #ffffff;
  --line: #dcd8d1;
  --line-dark: #3a444f;
  --text: #14181d;
  --muted: #5b6470;
  --on-dark: #f5f3ef;
  --on-dark-muted: #a9b1bb;
  --accent: #e2571a;
  --accent-hover: #f06a2c;
  --accent-text: #b3410c;      /* accent for text on light backgrounds */
  --accent-on-dark: #f07a3e;   /* accent for text on dark backgrounds */

  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;

  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;

  --container: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 4px;
  --shadow: 0 1px 2px rgb(20 24 29 / .06), 0 8px 24px rgb(20 24 29 / .08);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: .005em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(2.6rem, 7vw, 4.75rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-transform: uppercase; }
h3 { font-size: 1.5rem; font-weight: 600; }
p { margin: 0 0 var(--space-4); }

a { color: var(--accent-text); text-underline-offset: .2em; }
a:hover { color: var(--ink); }

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

.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: 100;
  background: var(--accent); color: var(--ink);
  padding: var(--space-2) var(--space-4); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--space-4);
}
.eyebrow::before {
  content: ""; width: 2.25rem; height: 3px; background: var(--accent);
}
.lead { font-size: clamp(1.125rem, 2vw, 1.3rem); line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 3rem;
  padding: .75rem 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn svg { width: 1.25rem; height: 1.25rem; flex: none; }
.btn-primary { background: var(--accent); color: var(--ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { border-color: currentColor; color: var(--on-dark); }
.btn-ghost:hover { background: var(--on-dark); border-color: var(--on-dark); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.link-arrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  background: var(--ink);
  color: var(--on-dark);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-4);
}
.brand { display: block; flex: none; }
.brand img { width: 150px; height: auto; }

.site-nav { order: 3; width: 100%; }
.site-nav ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between; gap: var(--space-3);
  overflow-x: auto;
}
.site-nav a {
  display: block;
  padding: var(--space-2) 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
@media (max-width: 22.5em) { .site-nav a { font-size: .95rem; letter-spacing: .02em; } }
.site-nav a:hover { color: var(--accent-on-dark); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

.header-cta { display: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: var(--space-2);
  color: var(--on-dark); text-decoration: none; font-weight: 600;
}
.header-phone svg { width: 1.1rem; height: 1.1rem; color: var(--accent-on-dark); }
.header-phone:hover { color: var(--accent-on-dark); }

@media (min-width: 60em) {
  .brand img { width: 180px; }
  .site-nav { order: 0; width: auto; margin-left: auto; }
  .site-nav ul { gap: var(--space-6); overflow: visible; }
  .site-nav a { font-size: 1.125rem; letter-spacing: .08em; }
  .header-cta { display: flex; align-items: center; gap: var(--space-5); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  color: var(--on-dark);
  background: var(--ink);
  overflow: hidden;
}
.hero-media, .hero-media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 60% 40%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 24 29 / .94) 0%, rgb(20 24 29 / .82) 45%, rgb(20 24 29 / .45) 100%),
    linear-gradient(0deg, rgb(20 24 29 / .7) 0%, transparent 40%);
}
.hero-inner {
  padding-block: clamp(4rem, 12vw, 8.5rem) clamp(3rem, 8vw, 5.5rem);
  max-width: 50rem;
}
.hero .eyebrow { color: var(--accent-on-dark); }
.hero h1 { margin-bottom: var(--space-5); }
.hero .lead { color: #dfe3e8; max-width: 38rem; margin-bottom: var(--space-6); }

.hero-facts {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr; gap: 1px;
  background: var(--line-dark);
  border-top: 1px solid var(--line-dark);
}
.hero-facts li {
  background: rgb(20 24 29 / .88);
  padding: var(--space-5) var(--gutter);
  display: flex; gap: var(--space-4); align-items: baseline;
}
.hero-facts strong {
  font-family: var(--font-display); font-weight: 700;
  font-size: 1.75rem; line-height: 1; color: var(--accent-on-dark);
  text-transform: uppercase; flex: none; min-width: 4.5rem;
}
.hero-facts span { color: var(--on-dark-muted); line-height: 1.35; }
@media (min-width: 48em) {
  .hero-facts { grid-template-columns: repeat(3, 1fr); }
  .hero-facts li { flex-direction: column; gap: var(--space-2); padding: var(--space-6); }
}
.hero-facts-wrap { max-width: var(--container); margin-inline: auto; }
@media (min-width: 48em) { .hero-facts-wrap { padding-inline: var(--gutter); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
@media (min-width: 48em) { .section { padding-block: var(--space-9); } }
.section-white { background: var(--white); }
.section-dark { background: var(--steel); color: var(--on-dark); }
.section-dark .eyebrow { color: var(--accent-on-dark); }
.section-dark a:not(.btn) { color: var(--accent-on-dark); }
.section-dark a:not(.btn):hover { color: var(--on-dark); }

.section-head {
  display: grid; gap: var(--space-4) var(--space-7);
  margin-bottom: var(--space-7);
}
.section-head p { color: var(--muted); max-width: 38rem; margin: 0; }
.section-dark .section-head p { color: var(--on-dark-muted); }
.section-head h2 { margin: 0; }
@media (min-width: 60em) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; }
}

/* ---------- Services ---------- */
.services {
  list-style: none; margin: 0 0 var(--space-6); padding: 0;
  display: grid; gap: var(--space-5);
  counter-reset: svc;
}
@media (min-width: 48em) { .services { grid-template-columns: repeat(3, 1fr); } }
.service {
  counter-increment: svc;
  position: relative;
  background: var(--paper);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border-top: 4px solid var(--accent);
}
.service::before {
  content: "0" counter(svc);
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .14em; color: var(--muted);
  margin-bottom: var(--space-4);
}
.service svg { width: 2.75rem; height: 2.75rem; color: var(--ink); margin-bottom: var(--space-4); }
.service p { color: var(--muted); margin: 0; }

.materials {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3);
  margin: 0 0 var(--space-6); padding: 0; list-style: none;
}
.materials-label {
  font-family: var(--font-display); font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted); margin-right: var(--space-2);
}
.materials li:not(.materials-label) {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .2rem .85rem;
  font-size: .95rem;
  background: var(--white);
}

/* ---------- Products ---------- */
.products {
  list-style: none; margin: 0 0 var(--space-6); padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-3);
}
@media (min-width: 48em) { .products { grid-template-columns: repeat(3, 1fr); gap: var(--space-5); } }
.product {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.product img { width: 100%; aspect-ratio: 5 / 4; object-fit: contain; padding: var(--space-3); }
.product-body {
  border-top: 1px solid var(--line);
  padding: var(--space-3) var(--space-4) var(--space-4);
}
.product h3 { font-size: 1.375rem; text-transform: uppercase; margin: 0 0 var(--space-1); }
.product p { color: var(--muted); font-size: .95rem; line-height: 1.45; margin: 0; }

/* ---------- Sectors ---------- */
.sectors-layout { display: grid; gap: var(--space-6); }
@media (min-width: 60em) { .sectors-layout { grid-template-columns: 5fr 7fr; gap: var(--space-8); align-items: start; } }
.sectors-intro p { color: var(--on-dark-muted); }
.sectors-intro h2 { margin-bottom: var(--space-5); }
.sectors {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  background: var(--line-dark); border: 1px solid var(--line-dark);
}
.sector {
  background: var(--steel);
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
}
.sector svg { width: 2.5rem; height: 2.5rem; color: var(--accent-on-dark); }
.sector h3 { font-size: 1.375rem; text-transform: uppercase; margin: 0; }
.sector p { color: var(--on-dark-muted); font-size: .95rem; margin: 0; }
.sector-main { grid-column: 1 / -1; background: var(--steel-2); }
@media (min-width: 48em) {
  .sector-main { flex-direction: row; align-items: center; gap: var(--space-5); padding: var(--space-6); }
  .sector-main svg { width: 3.5rem; height: 3.5rem; }
}

/* ---------- Gallery ---------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2);
}
.gallery li:first-child { grid-column: 1 / -1; }
@media (min-width: 48em) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
  .gallery li:first-child { grid-column: span 2; }
}
.gallery figure { margin: 0; position: relative; height: 100%; overflow: hidden; background: var(--ink); }
.gallery picture { height: 100%; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease, opacity .4s; }
.gallery figure:hover img { transform: scale(1.03); opacity: .9; }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: var(--space-6) var(--space-3) var(--space-3);
  background: linear-gradient(0deg, rgb(20 24 29 / .85), transparent);
  color: var(--on-dark);
  font-size: .9rem; line-height: 1.3;
}

/* ---------- Split (image + text) ---------- */
.split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 60em) { .split { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.split-media { position: relative; }
.split-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split-media::after {
  content: ""; position: absolute; z-index: -1;
  inset: auto auto calc(-1 * var(--space-4)) calc(-1 * var(--space-4));
  width: 45%; height: 45%; background: var(--accent);
}
.split-media { isolation: isolate; margin: 0 0 var(--space-4) var(--space-4); }
.split-body p { color: var(--muted); }
.checklist { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: grid; gap: var(--space-3); }
.checklist li { display: flex; gap: var(--space-3); align-items: flex-start; }
.checklist svg { width: 1.375rem; height: 1.375rem; flex: none; margin-top: .15rem; color: var(--accent-text); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--accent);
  color: var(--ink);
  padding-block: var(--space-8);
}
.cta-band-inner { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 60em) { .cta-band-inner { grid-template-columns: 1fr auto; gap: var(--space-7); } }
.cta-band h2 { margin-bottom: var(--space-2); }
.cta-band p { margin: 0; font-size: 1.15rem; }
.cta-band .btn-dark { background: var(--ink); color: var(--white); }
.cta-band .btn-dark:hover { background: var(--steel-2); color: var(--white); }
.cta-band .btn-outline { border-color: var(--ink); color: var(--ink); }
.cta-band .btn-outline:hover { background: var(--ink); color: var(--white); }
.cta-band :focus-visible { outline-color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  padding-block: var(--space-8) var(--space-5);
  font-size: .975rem;
}
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--accent-on-dark); text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-6); margin-bottom: var(--space-7); }
@media (min-width: 48em) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 170px; margin-bottom: var(--space-4); }
.footer-brand p { max-width: 22rem; }
.site-footer h2 {
  font-size: 1.125rem; letter-spacing: .12em; color: var(--on-dark);
  margin-bottom: var(--space-4);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.site-footer address { font-style: normal; }
.hours { display: grid; grid-template-columns: auto auto; gap: var(--space-1) var(--space-4); margin: 0; justify-content: start; }
.hours dt { color: var(--on-dark); }
.hours dd { margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--space-5);
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); justify-content: space-between;
  font-size: .9rem;
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }

/* ---------- Floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed; right: var(--space-4); bottom: var(--space-4); z-index: 50;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #1f8f4e; color: var(--white);
  box-shadow: var(--shadow);
}
.wa-float svg { width: 1.75rem; height: 1.75rem; }
.wa-float:hover { background: #18773f; color: var(--white); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: var(--on-dark);
  padding-block: var(--space-7) var(--space-8);
}
.page-hero .hero-media img { object-position: 50% 45%; opacity: .32; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgb(20 24 29 / .9) 0%, rgb(20 24 29 / .55) 100%);
}
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: var(--space-4); max-width: 48rem; }
.page-hero .lead { color: #dfe3e8; max-width: 40rem; margin: 0; }

.breadcrumb ol {
  list-style: none; margin: 0 0 var(--space-6); padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  font-size: .95rem; color: var(--on-dark-muted);
}
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--line-dark); }
.breadcrumb a { color: var(--on-dark); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-on-dark); text-decoration: underline; }

/* ---------- Cards ---------- */
.cards {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-5);
}
@media (min-width: 48em) { .cards { grid-template-columns: repeat(2, 1fr); } }
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: var(--space-6) var(--space-5);
}
.section-white .card { background: var(--paper); border-color: transparent; border-left-color: var(--accent); }
.card h2, .card h3 { font-size: 1.625rem; text-transform: uppercase; margin-bottom: var(--space-3); }
.card p { color: var(--muted); margin: 0; }
.card p + p { margin-top: var(--space-3); }

/* ---------- Photo pair ---------- */
.photo-pair { display: grid; gap: var(--space-5); }
@media (min-width: 48em) { .photo-pair { grid-template-columns: 1fr 1fr; } }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-pair figcaption {
  padding-top: var(--space-3);
  font-family: var(--font-display); font-weight: 600; font-size: 1.125rem;
  letter-spacing: .06em; text-transform: uppercase;
}

/* ---------- Feature rows (services page) ---------- */
.feature { display: grid; gap: var(--space-6); align-items: center; }
.feature + .feature { margin-top: var(--space-8); }
@media (min-width: 60em) {
  .feature { grid-template-columns: 1fr 1fr; gap: var(--space-8); }
  .feature:nth-child(even) .feature-media { order: 2; }
}
.feature-media { margin: 0; background: var(--white); }
.feature-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-media.is-render img { object-fit: contain; padding: var(--space-5); }
.feature-num {
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  letter-spacing: .14em; color: var(--accent-text); margin-bottom: var(--space-2);
}
.feature-body p { color: var(--muted); }
.feature-body .materials { margin-top: var(--space-5); }

/* ---------- Products page ---------- */
.products-lg { grid-template-columns: 1fr; }
@media (min-width: 36em) { .products-lg { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 60em) { .products-lg { grid-template-columns: repeat(3, 1fr); } }
.products-lg .product-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.products-lg .product h2 { font-size: 1.75rem; text-transform: uppercase; margin: 0 0 var(--space-2); }
.products-lg .product p { font-size: 1rem; line-height: 1.55; }

/* ---------- Contact page ---------- */
.contact-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--space-4);
}
@media (min-width: 48em) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-item {
  display: flex; gap: var(--space-4); align-items: flex-start;
  background: var(--white); border: 1px solid var(--line);
  padding: var(--space-5);
}
.contact-item > svg { width: 2rem; height: 2rem; flex: none; color: var(--accent-text); margin-top: .2rem; }
.contact-item h2 {
  font-size: 1.125rem; letter-spacing: .12em; color: var(--muted);
  margin: 0 0 var(--space-1);
}
.contact-item p { margin: 0; }
.contact-item .big { font-size: 1.375rem; font-weight: 600; font-style: normal; overflow-wrap: anywhere; }
.contact-item .big a { color: var(--ink); text-decoration: none; }
.contact-item .big a:hover { color: var(--accent-text); text-decoration: underline; }
.contact-item .note { color: var(--muted); font-size: .95rem; margin-top: var(--space-1); }
.contact-item .hours { color: var(--ink); }
.contact-item .hours dt { color: var(--ink); font-weight: 600; }
.contact-layout { display: grid; gap: var(--space-6); }
@media (min-width: 60em) { .contact-layout { grid-template-columns: 3fr 2fr; gap: var(--space-7); align-items: start; } }
.contact-photo { margin: 0; }
.contact-photo img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; }
.contact-photo figcaption { padding-top: var(--space-3); color: var(--muted); font-size: .95rem; }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 46rem; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 1.875rem); margin: var(--space-7) 0 var(--space-3); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.25rem; margin: var(--space-5) 0 var(--space-2); }
.prose ul { padding-left: 1.25rem; margin: 0 0 var(--space-4); }
.prose li { margin-bottom: var(--space-2); }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-4); }
.prose dt { font-weight: 600; }
.prose dd { margin: 0; }
@media (max-width: 36em) { .prose dl { grid-template-columns: 1fr; gap: 0; } .prose dd { margin-bottom: var(--space-3); } }
.updated { color: var(--muted); font-size: .95rem; }

/* ---------- 404 ---------- */
.error-page { min-height: 55vh; display: grid; align-content: center; }
.error-code {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(5rem, 18vw, 10rem);
  line-height: 1; color: var(--accent); margin: 0 0 var(--space-3);
}

/* ---------- Utilities ---------- */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
