/* LAD 2027 — Cinematic. Web adaptation tokens, not a new brand standard. */
:root {
  --bg: #171416;
  --bg-2: #241e1d;
  --ivory: #f4e6d1;
  --muted: #c9bbae;
  --accent: #f90005;
  --button: #b91c1c;
  --button-hover: #991b1b;
  --focus: #f4e6d1;

  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px; --s12: 96px;
  --pad: clamp(20px, 4.5vw, 64px);
  --max: 1200px;
  --section: clamp(48px, 8vw, 96px);
  --rule: linear-gradient(90deg, var(--accent) 0%, rgba(249, 0, 5, 0.55) 35%, rgba(249, 0, 5, 0) 100%);
}

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

html {
  background: var(--bg);
  color: var(--ivory);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0; }
h1, h2 { margin: 0; font-weight: 500; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--ivory); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #fff; text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
main:focus { outline: none; }

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

.container {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* Skip link — visible only on focus */
.skip-link {
  position: absolute;
  top: var(--s1);
  left: var(--s1);
  z-index: 10;
  padding: 10px var(--s2);
  background: var(--ivory);
  color: var(--bg);
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; outline-color: var(--accent); }

/* Header — normal flow, not sticky */
.site-header { background: var(--bg); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s2);
  min-height: 56px;
}
.brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.header-end { display: flex; align-items: center; gap: var(--s3); }

.lang-nav ul { display: flex; align-items: center; gap: 2px; margin-right: -8px; }
.lang-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 6px;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-decoration: none;
}
.lang-nav a:hover { color: var(--ivory); text-decoration: underline; }
.lang-nav a[aria-current="page"] {
  color: var(--ivory);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.45em;
}
.lang-sep { color: var(--muted); font-size: 14px; }

.jump-link {
  display: none;
  align-items: center;
  min-height: 44px;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}

/* Hero — artwork at natural ratio, never cropped */
.hero { background: var(--bg); }
.hero picture { display: block; max-width: 1753px; margin: 0 auto; }
.hero-art { width: 100%; height: auto; margin: 0 auto; }

/* Desktop: header + artwork + descriptor + competition fit the first screen.
   The artwork keeps its exact ratio; it is only scaled down (never cropped),
   with a floor so the poster typography stays readable on short screens. */
@media (min-width: 701px) {
  :root {
    --first-screen-chrome: 320px;
    --art-h: max(400px, calc(100svh - var(--first-screen-chrome)));
    /* 1753 / 897 = 1.954292 — the artwork's own ratio */
    --art-w: min(100%, 1753px, calc(var(--art-h) * 1.954292));
  }
  .hero-art {
    width: auto;
    max-width: 100%;
    max-height: var(--art-h);
  }

  /* Side gutters: start exactly at the artwork's own edge tone (sampled from the
     master: left #0d0b0f, right #121014) and ease into the page background, so the
     scaled-down artwork has no visible rectangle edge. The artwork itself is untouched. */
  .hero { position: relative; }
  .hero picture { position: relative; z-index: 1; }
  .hero::before,
  .hero::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: calc((100% - var(--art-w)) / 2 + 1px);
  }
  /* Top layer: horizontal fade from transparent (at the artwork edge) to the page
     background. Bottom layer: the artwork's edge column, sampled top→bottom. */
  .hero::before {
    left: 0;
    background:
      linear-gradient(to left, rgba(23, 20, 22, 0), var(--bg)),
      linear-gradient(to bottom, #0e0c0f 2%, #0d0b10 32%, #0b0a0e 52%, #0a0a0e 67%, #0c0b10 82%, #0f0e12 87%, #191619 92%, #171517 98%);
  }
  .hero::after {
    right: 0;
    background:
      linear-gradient(to right, rgba(23, 20, 22, 0), var(--bg)),
      linear-gradient(to bottom, #0f0e10 2%, #121014 12%, #131115 27%, #121013 37%, #201717 42%, #2e2222 47%, #1e1819 52%, #120e10 57%, #121113 67%, #100f11 77%, #131215 87%, #1a1719 92%, #151315 98%);
  }
}

/* Descriptor strip directly below artwork */
.descriptor { background: var(--bg); }
.descriptor-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s1) var(--s4);
  padding-top: 14px;
  padding-bottom: 14px;
}
.descriptor-text {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.5;
}
.descriptor-dates {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.5;
}
time { white-space: nowrap; }

/* Competition spotlight */
.competition {
  background: var(--bg-2);
  position: relative;
}
.competition::before {
  content: "";
  display: block;
  height: 2px;
  background: var(--rule);
}
.competition-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4) var(--s8);
  padding-top: var(--s5);
  padding-bottom: var(--s5);
}
.label {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--muted);
}
.label::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 12px;
  background: var(--rule);
}
.competition-dates {
  margin-top: var(--s2);
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.01em;
}
.competition-location {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.competition-cta {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s2);
  max-width: 340px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  min-width: 184px;
  padding: 0 var(--s4);
  border: 0;
  border-radius: 2px;
  background: var(--button);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--button-hover); color: #fff; }
.button-icon { font-size: 1.1em; letter-spacing: 0; }

.regulations-status {
  font-size: 16px;
  line-height: 1.5;
  color: var(--ivory);
  text-align: right;
}
.regulations-status:empty { display: none; }

/* About — editorial */
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--s4) var(--s8);
  padding-top: var(--s12);
  padding-bottom: var(--s12);
}
.about-heading {
  font-size: clamp(26px, 2.6vw, 36px);
  font-weight: 300;
  line-height: 1.25;
  letter-spacing: 0;
}
.about-heading::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: var(--s3);
  background: var(--rule);
}
.prose { max-width: 70ch; }
.prose p { color: var(--muted); }
.prose p + p { margin-top: var(--s3); }
.prose p:first-child {
  font-size: clamp(19px, 1.7vw, 21px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--ivory);
}

/* Footer */
.site-footer { border-top: 1px solid rgba(244, 230, 209, 0.12); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s1) var(--s3);
  padding-top: var(--s4);
  padding-bottom: var(--s4);
}
.footer-copy,
.footer-email {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.footer-email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration-color: rgba(201, 187, 174, 0.45);
}
.footer-email:hover { color: var(--ivory); text-decoration-color: var(--ivory); }

/* Tablet */
@media (max-width: 1024px) {
  .about-inner { grid-template-columns: minmax(0, 1fr); }
}

/* Mobile — vertical artwork */
@media (max-width: 700px) {
  body { font-size: 17px; }
  .header-inner { min-height: 56px; }
  .header-end { gap: var(--s1); }
  .jump-link { display: inline-flex; }
  .brand { font-size: 14px; }

  .descriptor-inner { flex-direction: column; gap: 4px; padding-top: var(--s2); padding-bottom: var(--s2); }
  .descriptor-text { font-size: 13px; }

  .competition-inner {
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--s5);
    padding-bottom: var(--s5);
  }
  .competition-cta { align-items: stretch; max-width: none; }
  .button { width: 100%; }
  .regulations-status { text-align: left; }

  .about-inner { padding-top: var(--s6); padding-bottom: var(--s6); }

  .footer-inner { flex-direction: column-reverse; align-items: flex-start; gap: 0; }
}

@media (max-width: 400px) {
  .label, .descriptor-text { letter-spacing: 0.1em; }
  .brand { letter-spacing: 0.08em; }
  .jump-link { letter-spacing: 0.06em; margin-right: 4px; }
  .header-end { gap: 0; }
  .lang-nav a { min-width: 36px; padding: 0 4px; letter-spacing: 0.06em; }
}

@media (forced-colors: active) {
  .button { border: 2px solid ButtonText; }
  .label::after, .about-heading::after, .competition::before { background: CanvasText; }
}

@media print {
  html, body { background: #fff; color: #000; }
  .skip-link, .lang-nav, .jump-link, .button { display: none; }
}

