/* Green Passion. One stylesheet, no build step.
   Palette comes from the rig itself: deep green cabinets, orange fronts. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2-variations");
}

/* ---------- Tokens ---------- */
:root {
  --bg: #f4f1ea;
  --surface: #fbfaf5;
  --ink: #0f231a;
  --muted: #4a5b51;
  --line: rgb(15 35 26 / 0.14);
  --accent-text: #a8380a;

  --dark-bg: #0c1f17;
  --dark-surface: #12291f;
  --dark-ink: #edf1e6;
  --dark-muted: #a9b8ac;
  --dark-line: rgb(237 241 230 / 0.16);

  --orange: #ff6b2c;
  --on-orange: #1a0d05;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 9vw, 7.5rem);
  --radius: 14px;
  --header-h: 4rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1711;
    --surface: #0f2119;
    --ink: #edf1e6;
    --muted: #a9b8ac;
    --line: rgb(237 241 230 / 0.14);
    --accent-text: #ff8a55;
    --dark-bg: #10261c;
    --dark-surface: #163325;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
button { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.02; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-size: clamp(2.75rem, 6vw + 1rem, 5.5rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 3.2vw + 1rem, 3.5rem); font-weight: 650; max-width: 20ch; }
h3 { font-size: 1.375rem; font-weight: 650; line-height: 1.2; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

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

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

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

.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--orange);
  color: var(--on-orange);
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 0.5rem; }

/* Placeholder marker. Everything carrying .ph must be replaced before launch. */
.ph {
  font-family: var(--mono);
  font-size: 0.88em;
  letter-spacing: 0;
  padding: 0.1em 0.35em;
  border-radius: 5px;
  outline: 1px dashed currentColor;
  outline-offset: -1px;
  background: color-mix(in srgb, currentColor 9%, transparent);
  overflow-wrap: anywhere;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.draft {
  background: var(--orange);
  color: var(--on-orange);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.5rem var(--gutter);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--dark-bg) 88%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: var(--dark-ink);
  border-bottom: 1px solid var(--dark-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem 1.5rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  margin-right: auto;
  white-space: nowrap;
}
.brand__mark { flex: none; }
.mark-bg { fill: var(--orange); }
.mark-ring { fill: none; stroke: var(--on-orange); stroke-width: 2; }
.mark-dot { fill: var(--on-orange); }

.nav ul { display: flex; gap: 0.25rem; }
.nav a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--dark-muted);
}
.nav a:hover { color: var(--dark-ink); background: var(--dark-line); }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
}
.lang[hidden] { display: none; }
.lang button {
  min-width: 2.75rem;
  min-height: 2rem;
  padding: 0 0.6rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--dark-muted);
  font-family: var(--mono);
  font-size: 0.8125rem;
  cursor: pointer;
}
.lang button:hover { color: var(--dark-ink); }
.lang button[aria-pressed="true"] { background: var(--dark-ink); color: var(--dark-bg); }

@media (max-width: 47.99rem) {
  :root { --header-h: 6.25rem; }
  .site-header__inner { flex-wrap: wrap; padding-block: 0.625rem 0.375rem; }
  .nav { order: 3; flex-basis: 100%; margin-inline: -0.5rem; }
  .nav ul { justify-content: space-between; gap: 0; overflow-x: auto; scrollbar-width: none; }
  .nav li { flex: none; }
  .nav a { padding: 0.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  background: var(--dark-bg);
  color: var(--dark-ink);
  padding-block: clamp(2.5rem, 7vw, 6rem) clamp(3rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 60rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.eyebrow .ph { text-transform: none; }
.eyebrow__num { color: var(--accent-text); margin-right: 0.5em; }
.hero .eyebrow,
.section--dark .eyebrow { color: var(--dark-muted); }
.section--dark .eyebrow__num { color: var(--orange); }

.lede {
  margin-top: 1.5rem;
  max-width: 34rem;
  font-size: clamp(1.125rem, 0.6vw + 1rem, 1.3125rem);
  line-height: 1.5;
  color: var(--dark-muted);
}

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--dark-line);
  color: var(--dark-muted);
  font-size: 0.9375rem;
}
.hero__facts strong { color: var(--dark-ink); font-weight: 650; font-size: 1.125rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.375rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: #ff8148; transform: translateY(-1px); }
.btn--ghost { border-color: var(--dark-line); color: var(--dark-ink); }
.btn--ghost:hover { border-color: var(--dark-ink); }

.hero__media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--dark-line), 0 30px 80px -30px rgb(0 0 0 / 0.8);
}
.hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero__text > *, .hero__media { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__text > :nth-child(2) { animation-delay: 0.06s; }
  .hero__text > :nth-child(3) { animation-delay: 0.12s; }
  .hero__text > :nth-child(4) { animation-delay: 0.18s; }
  .hero__media { animation-delay: 0.2s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--section); }
.section--dark { background: var(--dark-bg); color: var(--dark-ink); }
.section--accent { background: var(--orange); color: var(--on-orange); }
.section--accent .eyebrow,
.section--accent .eyebrow__num { color: var(--on-orange); }

.section__intro {
  margin-top: 1.25rem;
  max-width: 38rem;
  font-size: 1.125rem;
  color: var(--muted);
}
.section--dark .section__intro { color: var(--dark-muted); }
.section--accent .section__intro { color: inherit; }

/* ---------- About cards ---------- */
.cards {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}
.card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  counter-increment: card;
}
.card::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  margin-bottom: 2.5rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent-text);
}
.card p { margin-top: 0.625rem; color: var(--muted); }

/* ---------- System ---------- */
.system-head { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 60rem) {
  .system-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
}
.system-head__media {
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--dark-line);
}
.system-head__media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
@media (max-width: 59.99rem) {
  .system-head__media img { aspect-ratio: 4 / 3; object-position: 50% 35%; }
}

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.tags li {
  padding: 0.375rem 0.875rem;
  border: 1px solid var(--dark-line);
  border-radius: 999px;
  font-size: 0.9375rem;
  color: var(--dark-ink);
}
.system-logo { margin-top: 2rem; width: 96px; height: 96px; border-radius: 10px; }

.stats-label {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1px;
  margin-top: 1rem;
  background: var(--dark-line);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem 1.375rem 1.5rem;
  background: var(--dark-surface);
}
.stat dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.stat dd {
  font-size: clamp(1.5rem, 1.2vw + 1rem, 1.875rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--orange);
}
.stat dd small {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dark-muted);
}

.systems {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  align-items: start;
}
.system-card {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--dark-surface);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
}
.system-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--dark-line);
}
.system-card__head h3 { font-size: 1.5rem; }
.system-card__tag { font-family: var(--mono); font-size: 0.8125rem; color: var(--orange); }

.units { width: 100%; border-collapse: collapse; margin-top: 0.5rem; }
.units td, .units th {
  padding: 0.625rem 0;
  border-bottom: 1px solid var(--dark-line);
  text-align: left;
  font-weight: 400;
  vertical-align: baseline;
}
.units td:first-child {
  width: 3rem;
  font-family: var(--mono);
  color: var(--orange);
}
.units th { font-weight: 600; }
.units td:last-child { text-align: right; font-family: var(--mono); font-size: 0.9375rem; color: var(--dark-muted); }

.specs-list { margin-top: 1.5rem; display: grid; gap: 0.875rem; }
.specs-list dt {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dark-muted);
}
.specs-list dd { margin-top: 0.125rem; }

.footnote { margin-top: 1.25rem; font-size: 0.9375rem; color: var(--dark-muted); max-width: 46rem; }

.photo {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--dark-line);
}
.photo img { width: 100%; aspect-ratio: 1080 / 768; object-fit: cover; }
@media (min-width: 48rem) {
  .photo img { aspect-ratio: 21 / 9; object-position: 50% 58%; }
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: clamp(2rem, 4vw, 3.5rem);
}
@media (min-width: 48rem) {
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
}
.gallery__item {
  overflow: hidden;
  border-radius: 10px;
  background: var(--line);
  aspect-ratio: 1;
}
.gallery__item--big { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .gallery__item:hover img { transform: scale(1.03); }
}

.section--alt { background: var(--surface); border-top: 1px solid var(--line); }

/* ---------- History ---------- */
.history { display: grid; gap: clamp(2rem, 5vw, 5rem); }
@media (min-width: 60rem) {
  .history { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; }
  .history__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.timeline { border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 2.5rem 1.75rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0.4rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline__when {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.timeline h3 { margin-top: 0.375rem; }
.timeline h3 + p { margin-top: 0.5rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: clamp(2.5rem, 5vw, 5rem); }
@media (min-width: 60rem) {
  .contact { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); align-items: end; }
}

.contact__mail {
  margin-top: 2rem;
  font-size: clamp(1.375rem, 2.6vw + 0.5rem, 2.5rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.contact__mail .ph { font-size: 0.8em; font-weight: 400; letter-spacing: 0; }
.note { margin-top: 1.25rem; max-width: 34rem; font-size: 0.9375rem; }

.contact__list { border-top: 1.5px solid var(--on-orange); }
.contact__list > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  padding-block: 0.9375rem;
  border-bottom: 1.5px solid var(--on-orange);
}
.contact__list dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  align-self: center;
}
.contact__list dd { font-weight: 600; }
.contact a:hover { text-decoration-thickness: 0.14em; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark-bg);
  color: var(--dark-muted);
  font-size: 0.9375rem;
  padding-block: 2rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
}
.site-footer a:hover { color: var(--dark-ink); }

/* ---------- 404 ---------- */
.notfound {
  min-height: 100svh;
  display: grid;
  place-content: center;
  gap: 1.25rem;
  padding: var(--gutter);
  background: var(--dark-bg);
  color: var(--dark-ink);
  text-align: center;
}
.notfound p { color: var(--dark-muted); }
.notfound .btn { justify-self: center; margin-top: 1rem; }

@media print {
  .site-header, .draft, .actions, .skip { display: none; }
  .hero, .section--dark, .section--accent, .site-footer { background: none; color: #000; }
}
