/* wide.css: big desktop screens only (1280 px and wider). Loaded after styles.css.
   Everything at 1279 px and below (laptops, tablets, phones) is untouched.

   Design (2026-11-11 tune-up): the top of the page is a "poster wall".
     [            ]   [ logo, tagline, buttons      ]
     [  FLYER     ]   [                             ]
     [  (big)     ]   [ show info, two columns wide ]
     [ hello text ]   [                             ]
   The flyer is the one big bold thing; everything around it stays quiet.
   How: on wide screens <main> becomes a grid, and the hero and show sections "dissolve"
   (display: contents) so their parts (flyer, logo block, show panel, hello text) can sit in that grid.
   Only when the show section is switched on; without a show the normal centred hero is used. */

@media (min-width: 1280px) {
  :root {
    --wide-max: 1720px;                       /* the whole top block never gets wider than this */
    --wide-flyer: clamp(440px, 33vw, 660px);  /* the flyer column */
    --wide-gap: clamp(40px, 3.6vw, 80px);     /* space between flyer and the right side */
  }

  main:has(> #show:not([hidden])) {
    display: grid;
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [flyer-start] var(--wide-flyer) [flyer-end] var(--wide-gap)
      [right-start] minmax(0, calc(var(--wide-max) - var(--wide-flyer) - var(--wide-gap) - 2 * var(--gutter))) [right-end]
      minmax(var(--gutter), 1fr) [full-end];
    grid-template-rows: auto auto 1fr auto;
    align-items: start;
    overflow-x: clip;   /* the big flower behind the logo must not make the page scroll sideways */
  }
  main:has(> #show:not([hidden])) > * { grid-column: full; }

  /* dissolve the two wrapper sections so their parts join the grid */
  main:has(> #show:not([hidden])) > .hero,
  main > #show:not([hidden]),
  main > #show:not([hidden]) .show-grid { display: contents; }
  main > #show:not([hidden]) > .h2 { display: none; }   /* the show panel has its own heading */

  /* the flyer: big, framed, a little glow */
  main > #show .show-poster {
    grid-column: flyer; grid-row: 1;
    position: relative; z-index: 2;
    margin-top: 64px;
  }
  main > #show .show-poster img {
    width: 100%; height: auto;
    border: 1px solid rgba(255, 110, 199, 0.55);
    box-shadow: 0 0 0 1px rgba(63, 242, 255, 0.25), 0 0 34px rgba(255, 110, 199, 0.28), 0 0 80px rgba(155, 77, 255, 0.18);
  }

  /* right side, top: the logo block (no longer full-screen tall) */
  main:has(> #show:not([hidden])) > .hero .hero-inner {
    grid-column: right; grid-row: 1;
    max-width: none; padding: 48px 0 8px; text-align: center;
  }
  main > .hero .logo-wrap { width: min(560px, 52svh, 100%); }
  main > .hero .hero-tiles { margin-top: 22px; }
  main > .hero .hero-tiles .tile { padding-block: 12px; }

  /* right side, below: the show panel as a wide two-column card */
  main > #show .panel {
    grid-column: right; grid-row: 2 / span 2;
    margin: 28px 0 0;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); column-gap: 40px;
    grid-auto-flow: row dense; align-content: start;
  }
  main > #show .panel > * { grid-column: 2; }
  main > #show .panel > .ph { grid-column: 1 / -1; }
  main > #show .panel > .big { grid-column: 1; font-size: clamp(30px, 2.2vw, 44px); line-height: 1.1; margin-bottom: 4px; }
  main > #show .panel > .show-facts { grid-column: 1; grid-row: span 5; align-self: start; }
  main > #show .panel > .btn { margin-top: 14px; }

  /* the pink hello text goes under the flyer */
  main:has(> #show:not([hidden])) > .hero .hero-hello {
    grid-column: flyer; grid-row: 2;
    position: static; max-width: none; margin: 28px 0 0;
  }

  /* the geometry behind the logo can spill out now that the hero box is gone; keep it behind the flyer */
  main > .hero .geo--hero { z-index: 0; }

  /* Instagram: profile on the left, a 4-wide post grid on the right (instead of a phone-width strip) */
  .igp {
    max-width: none; display: grid; grid-template-columns: 300px 1fr; column-gap: 32px;
    padding: 26px 26px 26px; align-items: start;
  }
  .igp > * { grid-column: 1; }
  .igp-top { grid-template-columns: 1fr; justify-items: start; gap: 18px; padding: 0; }
  .igp-hls { flex-wrap: wrap; gap: 14px 18px; padding: 18px 0 0; overflow: visible; }
  .igp-tabs { display: none; }
  .igp-tile.igp-extra { display: block; }
  .igp-grid { grid-column: 2; grid-row: 1 / span 3; grid-template-columns: repeat(4, 1fr); gap: 4px; }
  /* the 12th spot of the 4 x 3 grid points to the rest of the profile */
  .igp-grid::after {
    content: "MORE ON INSTAGRAM"; display: grid; place-items: center; text-align: center; aspect-ratio: 3 / 4;
    border: 1px solid var(--line); color: var(--green); font: 700 13px var(--mono); letter-spacing: 0.16em;
    background: radial-gradient(circle, rgba(0, 255, 110, 0.12), transparent 70%);
  }
}

/* 1600 px and up: everything grows a little so the page does not look small on a big monitor */
@media (min-width: 1600px) {
  main > .hero .tagline { font-size: clamp(15px, 0.95vw, 19px); margin-bottom: 30px; }
  main > .hero .cta-row { gap: 18px; }
  main > .hero .cta-row .btn { padding: 16px 28px; font-size: clamp(14px, 0.85vw, 17px); }
  main > .hero .hero-hello { font-size: clamp(15px, 0.9vw, 18px); }
  main > #show .show-facts li { grid-template-columns: 84px 1fr; }

  /* sections below the top get wider so they are not a thin strip down the middle */
  main > .section:not(#show) { max-width: clamp(1180px, 80vw, 1720px); }
  .h2 { font-size: clamp(44px, 2.6vw, 56px); }
  .big { font-size: clamp(28px, 1.6vw, 34px); }
}

@media (min-width: 2200px) {
  :root { --wide-max: 1960px; }
  body { font-size: 17px; }
  main > .hero .logo-wrap { width: min(680px, 56svh, 100%); }
}
