/* What the real site adds to the mockup's stylesheet (suf.css). */

/* typefaces of the design, served by the site (SIL Open Font License, see fonts/OFL-*.txt) */
@font-face { font-family: 'Anton'; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/Anton-Regular.ttf") format("truetype"); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url("/static/fonts/SpaceGrotesk.ttf") format("truetype"); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/SpaceMono-Regular.ttf") format("truetype"); }
@font-face { font-family: 'Space Mono'; font-style: normal; font-weight: 700; font-display: swap; src: url("/static/fonts/SpaceMono-Bold.ttf") format("truetype"); }

html, body { height: 100%; margin: 0; background: #000; color-scheme: dark; }
.suf [hidden] { display: none !important; }
.suf a { color: #fff; }
.suf a:hover { color: #a8a8a8; }

/* frame: menu on top, the page fills the rest */
.shell { position: relative; display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 12px 24px; }
.bar nav { display: flex; flex-wrap: wrap; gap: 4px; }
.frame { position: relative; flex: 1 1 0; min-height: 0; margin: 0 16px 16px; border: 1px solid #555; overflow: hidden; }
.scroller { position: absolute; inset: 0; overflow: auto; }
.scroller:focus { outline: none; }
.scroller > .page, .scroller > .hero { min-height: 100%; }
.page { padding: 64px 24px 120px; overflow: clip; }
.column { display: flex; flex-direction: column; gap: 32px; max-width: 1240px; margin: 0 auto; }
.column.wide { max-width: 1392px; }
.hero { position: relative; display: flex; flex-direction: column; overflow: clip; }
.suf .hero-sub { padding: 8px 16px; letter-spacing: .3em; font-size: 15px; }
.hero-sub span { display: block; white-space: nowrap; } /* two lines, never three */
.filters { display: flex; flex-wrap: wrap; gap: 12px; }
.suf .menu-btn { display: none; } /* small screens only */

/* elements that are links here and buttons in the mockup */
.suf a.logo { display: flex; align-items: center; gap: 16px; color: #fff; text-decoration: none; }
.logo-sub { font-size: 11px; line-height: 1.4; letter-spacing: .24em; text-transform: uppercase; }
.suf a.nav-btn, .suf a.nav-btn:hover { color: #fff; text-decoration: none; }
.suf a.alb-item { color: #fff; text-decoration: none; }
.suf a.alb-item:hover, .suf a.alb-item.on { color: #000; }
.suf a.credit { color: #000; text-decoration: none; }
.suf a.credit:hover { color: #fff; }

.legal { position: relative; display: flex; justify-content: center; padding: 14px 24px; border-top: 1px solid #555; background: #000; }
.legal .btn { max-width: 100%; text-align: center; }

/* the legal notice popup; the browser opens and closes it */
.legal-box { width: min(760px, calc(100vw - 24px)); max-width: none; max-height: min(85vh, 900px); max-height: min(85dvh, 900px); padding: 0; border: 3px solid #fff; background: #000; color: #fff; overflow: hidden; }
.legal-box:popover-open { display: flex; flex-direction: column; animation: zoom-a .45s var(--snap) both; }
.legal-box::backdrop { background: rgba(0,0,0,.88); }
.legal-box > .hazard { flex: none; height: 8px; }
.legal-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px; border-bottom: 1px solid #555; }
.legal-head h2 { min-width: 0; margin: 0; font-size: clamp(22px, 4vw, 34px); font-weight: 400; line-height: 1.25; }
.legal-head .btn { flex: none; }
.legal-text { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 24px 20px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.legal-text h3 { margin: 22px 0 6px; font-size: 20px; font-weight: 400; line-height: 1.4; letter-spacing: .04em; }
.legal-text p { margin: 0 0 12px; }
.legal-text ul { margin: 0 0 12px; padding-left: 20px; }
.legal-text li { margin-bottom: 6px; }
.suf .legal-text a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* member portraits stay in colour (the mockup turns them black and white) */
.shot { filter: contrast(1.1); }

/* without JavaScript, hide what cannot work and show what it would open */
html:not(.js) .needs-js { display: none !important; }
html:not(.js) .suf #versions[hidden] { display: block !important; }

/* ---------- medium screens: the menu stays on one line ---------- */
@media (max-width: 1179px) {
  .bar { flex-wrap: nowrap; gap: 12px; padding: 10px 16px; }
  .bar > .eq, .bar .logo-sub, .bar .nav-btn .mono { display: none; }
  .suf .bar .logo { gap: 12px; min-height: 48px; font-size: 32px; }
  .bar .mark { width: 44px; height: 44px; }
  .bar nav { justify-content: flex-end; gap: 2px; }
  .bar .nav-btn { padding: 0 12px; letter-spacing: .1em; font-size: 13px; }
}

/* ---------- phones: a button opens the menu over the page ---------- */
@media (max-width: 760px) {
  .bar { flex-wrap: wrap; gap: 8px; padding: 8px 12px 10px; }
  .bar::after { left: 8px; right: 8px; }
  .bar nav { justify-content: flex-start; }
  .frame { margin: 0 8px 8px; }
  .page { padding: 40px 14px 80px; }

  html.js .suf .menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 16px; border: 1px solid #fff; background: #000; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; }
  html.js .suf .menu-btn[aria-expanded="true"] { background: #fff; color: #000; }
  .burger { position: relative; display: block; width: 20px; height: 14px; }
  .burger i { position: absolute; left: 0; width: 100%; height: 2px; background: currentColor; transition: top .2s steps(3), rotate .2s .15s steps(3), opacity .1s; }
  .burger i:nth-child(1) { top: 0; }
  .burger i:nth-child(2) { top: 6px; }
  .burger i:nth-child(3) { top: 12px; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(1) { top: 6px; rotate: 45deg; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] .burger i:nth-child(3) { top: 6px; rotate: -45deg; }

  /* above the page only while open, so the photo viewer still covers the bar */
  html.js .bar.open { z-index: 10; }
  html.js .bar nav { display: none; position: absolute; top: 100%; left: 8px; right: 8px; max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); flex-direction: column; flex-wrap: nowrap; gap: 0; overflow-y: auto; border: 1px solid #fff; background: #000; box-shadow: 0 18px 40px #000; }
  html.js .bar.open nav { display: flex; animation: scan-in .25s steps(6) backwards; }
  html.js .suf .bar nav .nav-btn { flex: none; justify-content: flex-start; gap: 16px; min-height: 48px; padding: 0 20px; border-bottom: 1px solid #333; font-size: 15px; }
  html.js .bar nav .nav-btn .mono { display: inline; min-width: 1.43em; } /* two figures wide, the arrow included */
  /* !important: the entries carry their desktop entrance in their style attribute */
  html.js .bar.open .nav-btn { animation: deploy-r-a .3s steps(6) backwards !important; }
  html.js .bar.open .nav-btn:nth-child(2) { animation-delay: .04s !important; }
  html.js .bar.open .nav-btn:nth-child(3) { animation-delay: .08s !important; }
  html.js .bar.open .nav-btn:nth-child(4) { animation-delay: .12s !important; }
  html.js .bar.open .nav-btn:nth-child(5) { animation-delay: .16s !important; }
  html.js .bar.open .nav-btn:nth-child(6) { animation-delay: .2s !important; }
  html.js .bar.open .nav-btn:nth-child(7) { animation-delay: .24s !important; }

  .suf .hero-sub { padding: 6px 10px; letter-spacing: .18em; font-size: clamp(11px, 3.6vw, 15px); }
  /* !important: these two sizes are set in the style attributes of the home page */
  .hero > .eq { height: 48px !important; }
  .hero > .marquee.slow { font-size: 36px !important; }

  /* the filters slide sideways instead of piling up */
  .filters { flex-wrap: nowrap; gap: 8px; padding: 2px 2px 8px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #fff #000; }
  .suf .filters > .btn { flex: none; min-height: 44px; padding: 0 16px; font-size: 12px; }
  .suf .filters > .btn:focus-visible { outline-offset: -4px; }

  /* stacked concert rows: keep date, name and place together */
  .gig { gap: 8px; padding: 18px 10px; }
  .gig > .gig-date { width: 100%; }
  .gig .gig-what { flex-basis: 100%; }
  .gig .gig-title { font-size: 24px; }
}

@media (max-width: 359px) {
  .bar .logo > .disp { display: none; } /* the emblem alone */
}

/* ---------- short screens (a phone held sideways) ---------- */
@media (max-height: 500px) {
  .bar { padding-top: 6px; padding-bottom: 8px; }
  .suf .bar .logo { min-height: 44px; }
  .bar .mark { width: 40px; height: 40px; }
  .bar .nav-btn { min-height: 44px; }
  .frame { margin: 0 8px 8px; }
  .page { padding-top: 32px; padding-bottom: 64px; }
  .hero-title { font-size: clamp(96px, 42vh, 220px); }
  .hero .reticle { width: min(500px, 100%, 70vh) !important; }
  .hero > .eq { height: 48px !important; }
  .hero > .marquee.slow { font-size: 36px !important; }
  .member { height: clamp(300px, calc(100vh - 84px), 540px); }
  .face.front { gap: 8px; padding: 14px 16px; }
  .face.front .portrait { max-width: clamp(130px, calc(100vh - 250px), 280px); }
  .zoom { gap: 8px; padding: 8px; }
  .zoom-box { padding: 6px; }
  .zoom-img { max-height: calc(100vh - 88px); max-height: calc(100dvh - 88px); }
}

@media (prefers-reduced-motion: reduce) {
  .boot, .gate { display: none; }
}
