/* =========================================================================
   Diet Art v2 : "Sergi" gallery system
   White gallery walls, passe-partout frames, museum labels, one beet accent.
   ========================================================================= */

:root {
  --wall: #faf9f7;
  --wall-2: #f1efeb;
  --panel: #ffffff;
  --ink: #171217;
  --ink-soft: #564e57;
  --beet: #93204e;
  --beet-deep: #6b173a;
  --night: #141016;
  --night-2: #1c1620;
  --chalk: #f4f1ee;
  --chalk-soft: #c3b9c5;
  --line: rgba(23, 18, 23, 0.16);
  --line-chalk: rgba(244, 241, 238, 0.18);
  --shadow: 0 14px 40px -18px rgba(23, 18, 23, 0.28);
  --radius: 2px;
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--wall);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: var(--beet); text-underline-offset: 3px; }
a:hover { color: var(--beet-deep); }
::selection { background: var(--beet); color: #fff; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4.2vw, 3rem); }
h3 {
  font-size: 1.1rem;
  font-stretch: 110%;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.accent-serif {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--beet);
}
p { margin: 0 0 1.1rem; max-width: var(--measure); }
.lede { font-size: 1.2rem; line-height: 1.7; color: var(--ink-soft); }

.wrap { max-width: 1180px; margin: 0 auto; padding-inline: var(--gutter); }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: color-mix(in srgb, var(--wall) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -24px rgba(23, 18, 23, 0.5);
}
.header-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.wordmark:hover { color: var(--ink); }
.wordmark .who {
  font-stretch: 100%;
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
}
.wordmark b { color: var(--beet); font-weight: inherit; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 1.4rem; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.015em;
  text-decoration: none;
  color: var(--ink);
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--beet); }
.site-nav a[aria-current="page"] { color: var(--beet); border-bottom-color: var(--beet); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.lang-toggle button {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 0.4rem 0.65rem;
  cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--wall); }

.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: fixed;
    inset: 4.25rem 0 auto 0;
    margin: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--wall);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .site-nav .lang-toggle { margin-top: 1rem; align-self: flex-start; }
}

/* ------------------------------------------------------------------- bands */
.band { padding-block: var(--section-y); }
.band-alt { background: var(--wall-2); }
.band-night {
  background: var(--night);
  color: var(--chalk);
}
.band-night h2, .band-night h3 { color: var(--chalk); }
.band-night p { color: var(--chalk-soft); }
.band-night .accent-serif { color: #e58ab2; }
.band-night a { color: #e58ab2; }
.band-night a:hover { color: #f1b3cc; }

/* ----------------------------------------------------------------- kickers */
.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--beet);
  margin: 0 0 1.2rem;
}
.band-night .kicker { color: #e58ab2; }

/* ------------------------------------------------------------------ frames */
.frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(10px, 1.6vw, 18px);
  box-shadow: var(--shadow);
}
.frame > img, .frame > video { width: 100%; height: auto; border-radius: 1px; }
.frame.media-tall > img, .frame.media-tall > video {
  aspect-ratio: 9 / 14;
  object-fit: cover;
}
.band-night .frame { border-color: rgba(244, 241, 238, 0.12); }

.plate-label {
  margin-top: 0.85rem;
  border-left: 2px solid var(--beet);
  padding-left: 0.85rem;
}
.plate-label .t {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  display: block;
}
.plate-label .c {
  font-style: italic;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: block;
}
.band-night .plate-label .c { color: var(--chalk-soft); }
.plate-label .s { font-size: 0.8rem; }

.plate-no {
  font-family: var(--font-display);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--beet);
}
.band-night .plate-no { -webkit-text-stroke-color: #e58ab2; }

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn-fill { background: var(--beet); color: #fff; }
.btn-fill:hover { background: var(--beet-deep); color: #fff; }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--beet); color: var(--beet); }
.band-night .btn-ghost { border-color: var(--chalk); color: var(--chalk); }
.band-night .btn-ghost:hover { border-color: #e58ab2; color: #e58ab2; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }

/* -------------------------------------------------------------------- hero */
.hero { padding-block: clamp(8rem, 16vh, 11rem) var(--section-y); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.hero-copy .lede { max-width: 46ch; }
.hero-art { max-width: 460px; justify-self: end; width: 100%; }
@media (max-width: 880px) {
  .hero { padding-top: 7rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { justify-self: start; }
}

/* -------------------------------------------------------------- fact strip */
.fact-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.fact {
  background: var(--wall-2);
  padding: 1.6rem 1.4rem;
}
.fact .n {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 800;
  font-size: 1.5rem;
  display: block;
}
.fact .d { font-size: 0.92rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------- grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
@media (max-width: 880px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.section-head { max-width: 70ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }

/* ------------------------------------------------------------------ quotes */
.quote-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  box-shadow: var(--shadow);
}
.quote-card blockquote {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.04rem;
}
.quote-card cite {
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}

/* ------------------------------------------------------------------- chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; list-style: none; }
.chips li {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 0.5rem 0.95rem;
}

/* ------------------------------------------------------------------- steps */
.steps { display: grid; gap: 0; border-top: 1px solid var(--line); }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  align-items: start;
  padding-block: 1.8rem;
  border-bottom: 1px solid var(--line);
}

/* ----------------------------------------------------------------- forms */
.demo-form { display: grid; gap: 1rem; max-width: 560px; }
.demo-form label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  display: grid;
  gap: 0.4rem;
}
.demo-form input, .demo-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}
.demo-form input:focus, .demo-form textarea:focus {
  outline: 2px solid var(--beet);
  outline-offset: 1px;
}
.form-note { font-size: 0.88rem; color: var(--ink-soft); font-style: italic; }

/* ------------------------------------------------------------------ footer */
.site-footer {
  background: var(--night);
  color: var(--chalk-soft);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2rem;
  font-size: 0.95rem;
}
.site-footer h3 { color: var(--chalk); margin-bottom: 0.9rem; }
.site-footer a { color: var(--chalk); }
.site-footer a:hover { color: #e58ab2; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line-chalk);
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer-grid p { color: var(--chalk-soft); }
.disclaimer {
  margin-top: 1.6rem;
  font-size: 0.83rem;
  font-style: italic;
  color: var(--chalk-soft);
  max-width: 80ch;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- map embed */
.map-frame { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ------------------------------------------------------------------- misc */
.video-actions { margin-top: 0.6rem; font-size: 0.88rem; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--beet);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

.hero-contact {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}
