/* Indiana Camp site stylesheet ("Poster" world; rules in DESIGN.md). */

/* Typefaces: Anybody (wght + wdth axes) and Commissioner (wght), SIL OFL 1.1, files in fonts/ */
@font-face {
  font-family: 'Anybody Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  src: url("../fonts/anybody-latin-ext-standard-normal.75d96fa7bfaf.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Anybody Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 150%;
  src: url("../fonts/anybody-latin-standard-normal.0ec163d7322c.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Commissioner Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/commissioner-latin-ext-wght-normal.f33cd9c8e306.woff2") format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Commissioner Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/commissioner-latin-wght-normal.8c4ddafbebbf.woff2") format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}


/*
  "Poster" world: flat fields of ink, as in offset printing.
  Each section is one poster: at most two inks plus paper.
*/
:root {
  --fire: #DD491B;
  --fire-deep: #B83A12;
  --water: #05AA99;
  --water-deep: #1F9079;
  --night: #141A44;
  --night-light: #232B66;
  --ink: #090C26;   /* body text on a Fire field (4.6:1) */
  --paper: #EEF1EC;
  --paper-line: #C9D1CA;
  --mist: #D6DAEA;        /* muted paper for leads on Night */
  --mist-deep: #C5CAE0;   /* secondary text on Night */

  --font-display: 'Anybody Variable', 'Arial Narrow', sans-serif;
  --font-text: 'Commissioner Variable', 'Segoe UI', system-ui, sans-serif;

  /* slant of the band in the logo */
  --slant: -21deg;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(16px, 4.5vw, 64px);
  --max: 1360px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font: 400 1.0625rem/1.6 var(--font-text);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

a { color: inherit; }

:focus-visible {
  /* focus ring in an ink that contrasts with the field: Water on Night, Night on Fire, Water and Paper */
  outline: 3px solid var(--focus, var(--water));
  outline-offset: 3px;
}

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

/* Poster lettering */
.poster-heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-stretch: 56%;
  text-transform: uppercase;
  line-height: 0.86;
  letter-spacing: 0;
  margin: 0;
  text-wrap: balance;
}

.wide-caps {
  font-family: var(--font-display);
  font-weight: 800;
  font-stretch: 135%;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

/* Primary button: a field of ink, no radius, no shadow */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 56px;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 110%;
  font-size: 1.1875rem; /* 19px bold counts as large text, so 3.7:1 on Fire is enough */
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1em; height: 1em; flex: none; }

.btn--fire { background: var(--fire); color: var(--paper); }
.btn--fire:hover { background: var(--fire-deep); }
.btn--night { background: var(--night); color: var(--paper); }
.btn--night:hover { background: var(--night-light); }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--night);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header and menu ---------- */
.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 20;
}
.site-header__inner {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 14px var(--gutter) 0;
  max-width: none;
}
.site-header__logo { flex: none; display: block; width: 76px; margin-top: 2px; }
.site-header__logo img { width: 100%; height: auto; }

.site-header__nav { display: none; margin-left: auto; }
.site-header__nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.site-header__nav a {
  display: block;
  padding: 9px 12px 8px;
  font-family: var(--font-display);
  font-weight: 750;
  font-stretch: 118%;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--paper);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.site-header__nav a:hover { background: var(--paper); color: var(--night); }

.site-header__cta { display: none; min-height: 48px; padding: 0.7rem 1.1rem; }

.site-header__menu-button {
  margin-left: auto;
  min-height: 44px;
  padding: 10px 14px;
  background: var(--paper);
  color: var(--night);
  border: 0;
  font-family: var(--font-display);
  font-weight: 850;
  font-stretch: 120%;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (min-width: 1080px) {
  .site-header__inner { align-items: center; padding-top: 18px; }
  .site-header__logo { width: 92px; }
  .site-header__nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .site-header__menu-button { display: none; }
}

/* Mobile menu: full screen, Night field, list set like a playbill */
.menu {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 16px var(--gutter) 28px;
  background: var(--night);
  color: var(--paper);
  flex-direction: column;
}
.menu:popover-open { display: flex; }
.menu::backdrop { background: rgb(9 12 38 / 0.6); }
.menu__top { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.menu__name {
  font-family: var(--font-display); font-weight: 800; font-stretch: 135%;
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; color: var(--mist-deep);
}
.menu__close {
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--paper); color: var(--night); border: 0; cursor: pointer;
}
.menu__close svg { width: 22px; height: 22px; }
.menu__list { list-style: none; margin: 28px 0 0; padding: 0; }
.menu__list li + li { border-top: 2px solid var(--night-light); }
.menu__list a {
  display: block;
  padding: 12px 0 10px;
  font-size: clamp(2.6rem, 13vw, 4rem);
  text-decoration: none;
  color: var(--paper);
}
.menu__list a:hover { color: var(--fire); }
.menu__bottom { margin-top: auto; display: grid; gap: 14px; padding-top: 24px; }
.menu__phone {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 750; font-stretch: 120%;
  font-size: 1.15rem; text-decoration: none; color: var(--paper);
}
.menu__phone svg { width: 20px; height: 20px; }

/* ---------- Booking bar (phones) ---------- */
.booking-bar {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  background: var(--night);
  transition: transform 320ms var(--ease-out);
}
.booking-bar[data-tucked] { transform: translateY(110%); }
.booking-bar[hidden] { display: none; }
.booking-bar__cta { flex: 1; }
.booking-bar__phone {
  flex: none;
  width: 56px;
  display: grid;
  place-items: center;
  background: var(--water);
  color: var(--night);
}
.booking-bar__phone svg { width: 24px; height: 24px; }
@media (min-width: 1080px) { .booking-bar { display: none; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--paper); padding: 36px 0 calc(96px + env(safe-area-inset-bottom)); }
.site-footer__inner { display: grid; gap: 10px; }
.site-footer__name { margin: 0; font-weight: 600; color: var(--paper); }
.site-footer__details, .site-footer__copy { margin: 0; font-size: 0.95rem; color: var(--mist-deep); }
.site-footer a { color: var(--paper); text-underline-offset: 3px; }
@media (min-width: 1080px) { .site-footer { padding-bottom: 40px; } }

/* ========== Home page ========== */
/* Images inside .crop containers fill the field. The crop follows the focal point
   set in the admin: the template writes it as --focal in the style attribute. */
.crop picture, .crop img {
  width: 100%;
  height: 100%;
}
.crop img {
  object-fit: cover;
  object-position: var(--focal, 50% 50%);
}

/* Focus ring: Night on light and orange fields, back to Water inside the Night panel */
.info, .water, .tipi, .wall, .closing { --focus: var(--night); }
.interior { --focus: var(--water); }

/* ---------- 1. Hero poster ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  padding-bottom: 48px;
}
.hero__visual { position: relative; width: 100%; padding-top: 10px; }
.hero__tipi {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--night-light);
  animation: tipi-open 1.25s var(--ease-out) both;
}

.hero__band {
  position: absolute;
  left: -25%;
  right: -25%;
  top: 74%;
  margin: 0;
  padding: 0.7em 0 0.62em;
  background: var(--water);
  color: var(--night);
  text-align: center;
  font-size: clamp(0.95rem, 4.2vw, 1.5rem);
  transform: rotate(var(--slant));
  animation: band-slide-in 1.1s 0.25s var(--ease-out) both;
}
.hero__band span { display: inline-block; padding-left: 18%; }

.hero__text { position: relative; padding: 34px var(--gutter) 0; }
.hero__heading { font-size: clamp(3.1rem, 15.5vw, 6rem); color: var(--paper); }
.hero__heading span { color: var(--fire); }
.hero__lead { margin: 18px 0 0; max-width: 34ch; font-size: 1.0625rem; line-height: 1.5; color: var(--mist); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.hero__phone {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-family: var(--font-display); font-weight: 750; font-stretch: 115%; font-size: 1.05rem;
  letter-spacing: 0.01em; color: var(--paper); text-decoration: none; white-space: nowrap;
}
.hero__phone svg { width: 20px; height: 20px; flex: none; }
.hero__phone-label { font-family: var(--font-text); font-weight: 400; font-stretch: 100%; color: var(--mist-deep); }
.hero__phone:hover > span:last-child { text-decoration: underline; text-underline-offset: 4px; }

@keyframes tipi-open {
  from { clip-path: polygon(50% 0, 64% 100%, 36% 100%); }
  to { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
}
@keyframes band-slide-in {
  from { translate: -18% 0; }
  to { translate: 0 0; }
}

@media (min-width: 640px) and (max-width: 1079px) {
  .hero__visual { width: 88%; margin-left: auto; }
}
@media (min-width: 1080px) {
  .hero {
    min-height: max(640px, min(100svh, 960px));
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    align-items: end;
    padding-bottom: 0;
  }
  .hero__visual {
    grid-column: 2; grid-row: 1; align-self: end; justify-self: end;
    padding-top: 0; width: auto;
    height: calc(min(100svh, 960px) - 84px);
    min-height: 560px;
    aspect-ratio: 1 / 0.9;
    margin-right: -3vw;
  }
  .hero__tipi { width: 100%; height: 100%; aspect-ratio: auto; }
  .hero__band { left: -38%; right: -30%; top: 76%; font-size: clamp(1.2rem, 1.7vw, 1.6rem); }
  .hero__band span { padding-left: 26%; }
  .hero__text { grid-column: 1; grid-row: 1; align-self: center; z-index: 2; padding: 120px 0 64px var(--gutter); }
  .hero__lead { font-size: 1.1875rem; max-width: 36ch; }
}

/* ---------- 2. Practical info ---------- */
.info { background: var(--paper); color: var(--night); }
.info__inner { padding-top: 56px; padding-bottom: 48px; }
.info__heading { font-size: clamp(2.6rem, 11vw, 4.5rem); }
.info__list { margin: 28px 0 0; display: grid; }
.info__row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 4px 16px;
  align-items: baseline;
  padding: 14px 0 13px;
  border-top: 3px solid var(--night);
}
.info__row dt {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase;
}
.info__row dd { margin: 0; line-height: 1.45; text-wrap: pretty; }
.info__hour {
  display: block;
  font-family: var(--font-display); font-weight: 900; font-stretch: 62%;
  font-size: clamp(2.8rem, 12vw, 4.25rem); line-height: 0.9;
  margin-bottom: 4px;
}
.info__aerial { position: relative; margin: 36px calc(-1 * var(--gutter)) -48px; }
.info__aerial-photo { height: 360px; }
.info__aerial figcaption {
  position: absolute; left: var(--gutter); bottom: 0;
  padding: 10px 14px 9px; background: var(--night); color: var(--paper);
  font-size: 0.85rem;
}

@media (min-width: 860px) {
  .info__inner {
    display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    grid-template-rows: auto 1fr;
    column-gap: 48px; padding-top: 88px; padding-bottom: 80px;
  }
  .info__heading { grid-column: 1; grid-row: 1; }
  .info__list { grid-column: 2; grid-row: 1 / span 2; }
  .info__list { margin: 0; grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .info__row--wide { grid-column: 1 / -1; }
  .info__aerial { grid-column: 1; grid-row: 2; align-self: start; margin: 44px 0 0; }
  .info__aerial-photo {
    height: auto;
    aspect-ratio: 1 / 0.9;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
  }
  .info__aerial figcaption { position: static; display: inline-block; margin-top: 0; }
}

/* ---------- 3. A day in the water ---------- */
.water { background: var(--water); color: var(--night); padding: 64px 0 56px; overflow: clip; }
.water__heading { font-size: clamp(3.4rem, 17vw, 6rem); }
.water__lead { margin: 20px 0 0; max-width: 44ch; font-size: 1.125rem; line-height: 1.5; }
.route { list-style: none; margin: 0; padding: 0; display: grid; }

/* Night band at the logo angle: 150 m is the key number of the section */
.route__main {
  margin: 104px calc(-1 * var(--gutter) - 34vw) 112px;
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45em;
  background: var(--night);
  color: var(--paper);
  transform: rotate(var(--slant));
}
.route__main .route__distance {
  font-family: var(--font-display); font-weight: 900; font-stretch: 58%;
  font-size: clamp(4.5rem, 24vw, 8.5rem); line-height: 0.8;
}
.route__main .route__place { font-size: clamp(0.85rem, 3.4vw, 1.3rem); max-width: 12ch; }

.route__stop {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "ile co" "ile opis";
  column-gap: 18px;
  align-items: end;
  padding: 16px 0;
  border-top: 4px solid var(--night);
}
.route__stop .route__distance {
  grid-area: ile;
  font-family: var(--font-display); font-weight: 900; font-stretch: 58%;
  font-size: clamp(3.2rem, 14vw, 4.75rem); line-height: 0.82;
  min-width: 2.4ch;
}
.route__stop .route__place { grid-area: co; font-size: 1rem; }
.route__desc { grid-area: opis; margin-top: 4px; line-height: 1.4; font-size: 0.98rem; }

@media (min-width: 960px) {
  .water { padding: 104px 0 96px; }
  .water__inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 72px; align-items: start; }
  .route__main { margin: 150px calc(-1 * var(--gutter) - 26vw) 230px -4vw; justify-content: flex-start; padding-left: 12%; }
  .route__main .route__place { max-width: none; }
  .route__main .route__distance { font-size: clamp(6rem, 9vw, 9rem); }
  .route__stop { padding: 20px 0 18px; }
  .route__stop .route__place { font-size: 1.15rem; }
}

/* ---------- 4. Tipi ---------- */
.tipi { background: var(--fire); color: var(--ink); padding: 64px 0 calc(64px + 16vw); }
.tipi__heading { font-size: clamp(3rem, 14vw, 6rem); color: var(--paper); max-width: 12ch; }
.tipi__lead { margin: 18px 0 0; max-width: 48ch; font-size: 1.125rem; line-height: 1.5; }

.tipi__posters { display: grid; gap: 48px; margin-top: 44px; }
.tipi-type__poster { position: relative; }
.tipi-type__triangle {
  aspect-ratio: 1 / 0.92;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--fire-deep);
}
/* The big capacity number sits on the base line and cuts into the corner of the triangle */
.tipi-type__number {
  position: absolute;
  left: -0.03em;
  bottom: -0.035em;
  margin: 0;
  font-family: var(--font-display); font-weight: 900; font-stretch: 62%;
  font-size: clamp(9rem, 38vw, 18rem); line-height: 0.8;
  color: var(--paper);
  pointer-events: none;
}
.tipi-type__info { border-top: 4px solid var(--ink); padding-top: 12px; }
.tipi-type__name { margin: 0; font-size: 1.05rem; }
.tipi-type__count { margin: 4px 0 0; }

.interior { margin-top: 56px; display: grid; background: var(--night); color: var(--paper); }
.interior__photo { aspect-ratio: 3 / 2; }
.interior__text { padding: 28px 22px 30px; }
.interior__heading { font-size: clamp(2.4rem, 10vw, 3.75rem); color: var(--fire); }
.interior__list { list-style: none; margin: 16px 0 24px; padding: 0; }
.interior__list li { padding: 9px 0; border-top: 2px solid var(--night-light); }
.interior .btn--night { background: var(--fire); }
.interior .btn--night:hover { background: var(--fire-deep); }

@media (min-width: 860px) {
  .tipi { padding-top: 104px; }
  .tipi__posters { grid-template-columns: 1fr 1fr; gap: 48px; }
  .tipi-type:nth-child(2) { margin-top: 96px; }
}
@media (min-width: 1080px) {
  .interior { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-top: 80px; }
  .interior__photo { aspect-ratio: auto; min-height: 420px; }
  .interior__text { padding: 44px 40px; align-self: center; }
}

/* ---------- 5. Night in the village: entered through the outline of the big tipi ---------- */
.night {
  --peak: 16vw;
  position: relative;
  margin-top: calc(var(--peak) * -1);
  padding: calc(var(--peak) + 40px) 0 72px;
  background: var(--night);
  color: var(--paper);
  clip-path: polygon(0 var(--peak), 50% 0, 100% var(--peak), 100% 100%, 0 100%);
}
.night__heading { font-size: clamp(3.2rem, 16vw, 6rem); }
.night__heading span { color: var(--fire); }
.night__text p { margin: 18px 0 0; max-width: 44ch; font-size: 1.125rem; line-height: 1.55; color: var(--mist); }
.night__montage { position: relative; margin-top: 40px; padding-bottom: 32%; }
.night__village { aspect-ratio: 3 / 2; }
.night__fire {
  position: absolute;
  right: -4%;
  bottom: 0;
  width: 64%;
  aspect-ratio: 1 / 0.9;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@media (min-width: 1080px) {
  .night { --peak: 11vw; padding-bottom: 112px; }
  .night__inner { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: center; }
  .night__montage { margin-top: 0; padding-bottom: 18%; }
  .night__fire { width: 44%; right: auto; left: -6%; }
}

/* ---------- 6. Attractions wall: every tile is a small poster ---------- */
.wall { background: var(--paper); color: var(--night); padding: 64px 0 72px; }
.wall__heading { font-size: clamp(3rem, 15vw, 6rem); }
.wall__lead { margin: 16px 0 0; max-width: 46ch; font-size: 1.125rem; }
.wall__grid {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.tile {
  --mask-bottom: 60%;
  position: relative;
  overflow: hidden;
  container-type: size;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px 14px;
}
/* Wall slots are counted from 1. On phones the seventh (last) one takes a full row. */
.tile:nth-child(7) { grid-column: span 2; aspect-ratio: 16 / 11; --mask-bottom: 64%; }
.tile--fire { background: var(--fire); color: var(--ink); }
.tile--night { background: var(--night); color: var(--paper); }

.tile__photo { position: absolute; inset: 0; }
/* tipi triangle */
.tile--triangle .tile__photo { clip-path: polygon(50% -14%, 108% var(--mask-bottom), -8% var(--mask-bottom)); }
/* band at -21° (38.4cqw = tan 21° × tile width) */
.tile--band .tile__photo {
  clip-path: polygon(
    0 calc(var(--mask-bottom) - 52%),
    100% calc(var(--mask-bottom) - 52% - 38.4cqw),
    100% calc(var(--mask-bottom) - 38.4cqw),
    0 var(--mask-bottom)
  );
}

/* On phones the first tile is narrow, so it gets a triangle instead of a band:
   a band would leave too little of the photo. */
@media (max-width: 1079px) {
  .tile:nth-child(1) .tile__photo { clip-path: polygon(50% -14%, 108% var(--mask-bottom), -8% var(--mask-bottom)); }
}

.tile__text { position: relative; margin: 0; display: grid; gap: 6px; }
.tile__word { font-size: clamp(2.3rem, 21cqw, 6.75rem); line-height: 0.8; }
.tile--fire .tile__word { color: var(--paper); }
.tile__desc { font-size: 0.84rem; line-height: 1.3; font-weight: 500; max-width: 24ch; }

.wall__note { margin: 24px 0 0; max-width: 62ch; font-size: 1rem; line-height: 1.5; }

@media (min-width: 1080px) {
  .wall { padding: 104px 0 112px; }
  .wall__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(180px, 16vw, 240px);
    gap: 10px;
    margin-top: 48px;
  }
  .tile, .tile:nth-child(7) { aspect-ratio: auto; --mask-bottom: 70%; padding: 14px 18px 18px; grid-column: auto; }
  .tile:nth-child(1) { grid-column: 1 / span 5; grid-row: 1 / span 2; }
  .tile:nth-child(2) { grid-column: 6 / span 4; grid-row: 1; --mask-bottom: 74%; }
  .tile:nth-child(3) { grid-column: 6 / span 4; grid-row: 2; --mask-bottom: 74%; }
  .tile:nth-child(4) { grid-column: 10 / span 3; grid-row: 1 / span 2; }
  .tile:nth-child(5) { grid-column: 5 / span 3; grid-row: 3 / span 2; }
  .tile:nth-child(6) { grid-column: 1 / span 4; grid-row: 3 / span 2; }
  .tile:nth-child(7) { grid-column: 8 / span 5; grid-row: 3 / span 2; }
  .tile__desc { font-size: 0.9rem; }
  .wall__note { font-size: 1.0625rem; }
}

/* ---------- 7. Closing ---------- */
.closing { background: var(--fire); color: var(--ink); padding: 64px 0 56px; }
.closing__heading { font-size: clamp(3rem, 15vw, 6rem); color: var(--paper); max-width: 14ch; }
.closing__cta { margin-top: 28px; }
.closing__contacts { list-style: none; margin: 32px 0 0; padding: 0; display: grid; }
.closing__contacts li { border-top: 3px solid var(--ink); }
.closing__contacts a {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 0; min-height: 52px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.closing__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.closing__contacts svg { width: 22px; height: 22px; flex: none; }
.closing__phone {
  font-family: var(--font-display); font-weight: 850; font-stretch: 120%;
  font-size: clamp(1.4rem, 6vw, 2rem); letter-spacing: 0.01em;
}
.closing__map {
  font-family: var(--font-display); font-weight: 800; font-stretch: 125%;
  font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 8px 4px; background: var(--night); color: var(--paper);
}
.closing__triangle {
  margin-top: 44px;
  aspect-ratio: 1 / 0.88;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

@media (min-width: 1080px) {
  .closing { padding: 112px 0 0; }
  .closing__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; align-items: end; }
  .closing__text { padding-bottom: 96px; }
  .closing__triangle { margin-top: 0; }
}

/* ---------- Error pages (404, 500) ---------- */
.error-page { min-height: 100svh; display: grid; align-items: center; padding: 140px 0 96px; background: var(--night); color: var(--paper); }
.error-page__code { margin: 0 0 18px; color: var(--mist-deep); font-size: 0.95rem; }
.error-page__heading { font-size: clamp(3rem, 13vw, 6.5rem); max-width: 14ch; }
.error-page__text { margin: 22px 0 0; max-width: 40ch; font-size: 1.125rem; color: var(--mist); }
.error-page__text a { color: var(--paper); }
.error-page__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.error-page__link {
  font-family: var(--font-display); font-weight: 750; font-stretch: 115%;
  text-transform: uppercase; letter-spacing: 0.02em; color: var(--paper);
  text-underline-offset: 4px;
}
