/* Hallmark · shape: the browser window is the radio program, one station per page · genre: atmospheric · theme: custom (after jewelsproject.xyz, by request) · job: listen · idea: "The screen is EFI's radio program: the title bar is the logo, the menu is the stations, each page is what is on air" · vibe: "Y2K terminal, stark black and white, chrome, deadpan"
 * paper: oklch(6% 0.004 25) · accent: oklch(87% 0.2 145) · display: Archivo 800 · body: Archivo · outlier: VT323 (log, clock, dates only) · hero: one cover on air, white label, listen, over a giant glitching chrome efi · nav: full-width white menu bar of stations · footer: white strip, icons, contact button · imagery: EFI's own photos and covers · signature: the radio log that tunes in, and menu letters that lose signal
 * axes: dark/grotesk-heavy/monochrome-plus-signal · posture: black field, white bars, chrome only in the logo, green only in readouts · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V5 · weakest: E, copy is thin until EFI sends credentials and new dates */
/* waive 11 (hand-drawn OS window): the window frame is the client's chosen concept and the site's real navigation (06_site_efi_fm.md) */
/* waive 54 (capitals in labels): the menu, buttons and titles are set in capitals because the client asked for the jewelsproject.xyz feel; untracked */
/* waive 67 (capitals in labels): same reason as 54, the client's reference sets every label in capitals */
/* waive 58 (hero text blocks): the radio log is the page's signature, after the reference's boot log; the cover, label and listen stay the one action */
/* waive 44d (hero past 1920x1080): inner pages are lists of posters that scroll by design */
/* waive 77 (section count): each station is its own page */
/* waive 26b (disabled states): the site has no disabled controls */
/* waive 39b (control height): window buttons are app chrome with a 48px hit area */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- frame ---------- */
body { background: var(--color-paper); }
.frame {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  border: var(--rule-hair) solid var(--color-rule);
}
.head { position: sticky; top: 0; z-index: var(--z-sticky-nav); }

.bar {
  display: flex;
  align-items: stretch;
  height: 60px;
  background: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.bar-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-inline: var(--space-md) var(--space-lg);
  border-right: var(--rule-hair) solid var(--color-rule);
  text-decoration: none;
}
.bar-word { font-family: var(--font-outlier); font-size: 1.6rem; line-height: 1; color: var(--color-accent); }
.bar-readout {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-lg);
  padding-inline: var(--space-md);
  font-family: var(--font-outlier);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--color-accent);
  min-width: 0;
  white-space: nowrap;
}
/* on air: while a set plays, the whole window goes live */
.bar-live { display: flex; align-items: center; gap: var(--space-sm); min-width: 0; }
.bar-live[hidden] { display: none; }
.bar-live b { font-weight: 400; text-transform: uppercase; background: var(--color-live); color: var(--color-ink); padding: 3px 8px 2px; animation: lamp 2.4s ease-in-out infinite; }
.bar-live-title { color: var(--color-ink); overflow: hidden; text-overflow: ellipsis; }
.is-live .bar-freq { display: none; }
@keyframes lamp { 0%, 100% { opacity: 1; } 50% { opacity: 0.62; } }
.is-live .ghost { animation: live-breathe 2.4s ease-in-out infinite; }
.js .is-live .ghost-b { animation: live-echo 2.4s ease-in-out infinite; }
@keyframes live-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.025); } }
@keyframes live-echo { 0%, 100% { opacity: 0.08; transform: translateX(10px); } 50% { opacity: 0.3; transform: translateX(16px); } }
.is-live .meter i:nth-child(n) { animation-duration: 0.34s; }
.is-live .meter i:nth-child(3n) { animation-duration: 0.22s; }
.is-live .meter i:nth-child(3n + 1) { animation-duration: 0.46s; }

.bar-btn {
  width: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-left: var(--rule-hair) solid var(--color-rule);
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
  padding: 0;
}
.bar-btn .ico { width: 22px; height: 22px; stroke-width: 1.5; }
.bar-btn:hover { background: var(--color-ink); color: var(--color-paper); }
.bar-btn:active .ico { transform: scale(0.9); }
.bar-btn:focus-visible { outline-offset: -4px; }

.menu {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-inline: var(--space-lg);
  background: var(--color-ink);
  color: var(--color-paper);
  border-bottom: var(--rule-hair) solid var(--color-rule);
}
.menu a {
  font-weight: 800;
  font-size: var(--text-lg);
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  padding-block: var(--space-sm);
  white-space: nowrap;
}
.menu a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.menu a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; text-decoration-color: var(--color-live); }
.menu a:focus-visible, .foot a:focus-visible { outline-color: var(--color-paper); }

.main { flex: 1; position: relative; isolation: isolate; }

/* ---------- footer ---------- */
.foot {
  display: grid;
  justify-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md) var(--space-sm);
  background: var(--color-ink);
  color: var(--color-paper);
  border-top: var(--rule-hair) solid var(--color-rule);
}
.foot-icons { display: flex; gap: var(--space-xs); }
.foot-icons a { display: grid; place-items: center; width: 44px; height: 44px; }
.foot-icons svg { width: 26px; height: 26px; fill: currentColor; }
.foot-icons a:hover svg { transform: scale(1.1); }
.foot-book {
  background: var(--color-paper);
  color: var(--color-ink);
  font-weight: 800;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  line-height: 1;
}
.foot-book:hover { background: var(--color-paper-3); }
.foot-c { font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; }

/* ---------- the log ---------- */
.log {
  font-family: var(--font-outlier);
  font-size: 1.15rem;
  line-height: 1.12;
  color: var(--color-ink);
}
.log { width: 21em; max-width: calc(100% - 2 * var(--space-md)); }
.log p { display: flex; gap: 0.4em; white-space: nowrap; }
.log .dots { flex: 1 1 auto; border-bottom: 2px dotted var(--color-ink-2); transform: translateY(-0.3em); }
.log .ok { font-weight: 400; color: var(--color-accent); }
.log .redact { color: var(--color-ink-2); }
.log-gap { height: 0.9em; }
.js .air .log p { animation: log-in 1ms linear both; animation-delay: calc(400ms + var(--i) * 170ms); }
@keyframes log-in { from { opacity: 0; } to { opacity: 1; } }

/* the log stays alive: a signal meter, and the same glitch rhythm as the logo behind it */
.air .log { animation: ghost-jolt 7s steps(1) infinite; }
.meter { display: inline-flex; align-items: flex-end; gap: 3px; height: 0.8em; }
.meter i { width: 4px; height: 100%; background: var(--color-accent); transform-origin: 50% 100%; transform: scaleY(0.3); animation: meter 0.8s ease-in-out infinite alternate; }
.meter i:nth-child(3n) { animation-duration: 0.55s; }
.meter i:nth-child(3n + 1) { animation-duration: 1.05s; }
.meter i:nth-child(4n) { animation-delay: -0.3s; }
.meter i:nth-child(5n + 2) { animation-delay: -0.6s; }
.meter i:nth-child(7n) { animation-delay: -0.15s; }
@keyframes meter { 0% { transform: scaleY(0.15); } 100% { transform: scaleY(1); } }
.log .is-drift { color: var(--color-accent); }
.log--line { position: absolute; top: var(--space-md); left: var(--space-md); z-index: 2; }
.log--line { width: 17em; display: flex; gap: 0.4em; white-space: nowrap; }

/* ---------- on air (home) ---------- */
.air {
  position: relative;
  min-height: calc(100dvh - 60px - 41px - 150px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: var(--space-xl);
  padding: var(--space-md) var(--space-md) var(--space-2xl);
  overflow: hidden;
}
.air .log { position: relative; z-index: 2; justify-self: start; }

.ghost { position: absolute; inset: 0; z-index: -1; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.ghost > * { grid-area: 1 / 1; }
.ghost img {
  width: min(92vw, 1250px);
  max-width: none;
  filter: grayscale(1) brightness(0.55) contrast(1.3);
  opacity: 0.26;
}
.ghost-b { display: none; }
.js .ghost-b { display: block; filter: grayscale(1) sepia(1) hue-rotate(-50deg) saturate(4) brightness(0.5); opacity: 0; transform: translateX(14px); animation: ghost-split 7s steps(1) infinite; }
.ghost-a { animation: ghost-jolt 7s steps(1) infinite; }
@keyframes ghost-split { 0%, 88% { opacity: 0; } 89% { opacity: 0.28; } 90% { opacity: 0; } 92% { opacity: 0.22; } 93%, 100% { opacity: 0; } }
@keyframes ghost-jolt { 0%, 88% { transform: none; } 89% { transform: translateX(-10px); } 90% { transform: none; } 92% { transform: translateX(6px); } 93%, 100% { transform: none; } }
.grain {
  position: absolute;
  inset: -50%;
  opacity: 0.14;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.4 -0.2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.6s steps(3) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }

.air-center { align-self: center; justify-self: center; display: grid; justify-items: center; gap: var(--space-md); text-align: center; }
.cover { display: block; width: min(340px, 72vw); border: var(--rule-hair) solid var(--color-rule); }
.cover img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cover--wide { width: min(680px, 88vw); }
.cover--wide img, .cover--wide iframe { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.cover iframe { display: block; border: 0; }
.cover-link { display: block; }
.cover:hover img { filter: brightness(1.08); }
.label { font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); line-height: 1; text-transform: uppercase; }
.label a { display: block; background: var(--color-ink); color: var(--color-paper); text-decoration: none; padding: var(--space-sm) var(--space-lg); }
.label a:hover { background: var(--color-ink-2); }
.listen { font-weight: 800; text-transform: uppercase; text-decoration: none; padding: var(--space-xs) var(--space-md); }
.listen:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- inner pages ---------- */
.page {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-lg);
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  max-width: var(--container);
  margin-inline: auto;
}
.page--narrow { gap: var(--space-md); }
.page-title { font-weight: 800; font-size: var(--text-display-s); line-height: 1; text-transform: uppercase; letter-spacing: var(--tracking-display); text-align: center; }
.page-sub { font-weight: 600; font-size: var(--text-lead); text-transform: uppercase; text-align: center; }
.small-title { font-family: var(--font-body); font-weight: 800; font-size: var(--text-md); text-transform: uppercase; margin-top: var(--space-2xl); }

.btn-line, .btn-solid {
  display: inline-block;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  padding: var(--space-sm) var(--space-lg);
  line-height: 1;
  white-space: nowrap;
  border: 2px solid var(--color-ink);
}
.btn-line { background: var(--color-paper); color: var(--color-ink); }
.btn-line:hover { background: var(--color-ink); color: var(--color-paper); }
.btn-solid { background: var(--color-ink); color: var(--color-paper); font-weight: 800; margin-top: var(--space-lg); }
.btn-solid:hover { background: var(--color-ink-2); border-color: var(--color-ink-2); }

/* posters (sets) */
.posters { display: grid; gap: var(--space-2xl); width: min(560px, 100%); }
.poster { background: var(--color-card); color: var(--color-card-ink); padding: var(--space-md); display: grid; gap: var(--space-sm); position: relative; }
.poster::after { content: ""; position: absolute; inset: 0; background: var(--color-veil); pointer-events: none; transition: opacity var(--dur-long) var(--ease-out); }
.poster:hover::after, .poster:focus-within::after { opacity: 0; }
.poster-top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; text-transform: uppercase; font-size: var(--text-sm); }
.poster-mark { width: 58px; height: auto; filter: grayscale(1) brightness(0.25) contrast(1.4); }
.poster-body { display: grid; grid-template-columns: minmax(0, 1fr) 40px; position: relative; }
.poster-pic { aspect-ratio: 4 / 5; overflow: hidden; }
.poster-pic img { width: 100%; height: 100%; object-fit: cover; }
.poster-side { writing-mode: vertical-rl; justify-self: end; align-self: center; font-weight: 800; font-size: var(--text-xl); text-transform: uppercase; line-height: 1; white-space: nowrap; }
.poster-btn {
  position: absolute;
  left: calc(50% - 20px);
  top: 80%;
  transform: translate(-50%, -50%);
  z-index: 2;
  background: var(--color-chip);
  color: var(--color-ink);
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  font-size: var(--text-sm);
  padding: var(--space-xs) var(--space-md);
  min-height: 44px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.poster-btn:hover { background: var(--color-paper); }
.poster-title { margin-top: var(--space-xs); font-family: var(--font-body); font-weight: 800; font-size: var(--text-xl); line-height: 1.1; text-transform: uppercase; }

/* tiles (radio) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: var(--space-xs); width: min(1100px, 100%); }
.tile { display: grid; gap: var(--space-md); padding: var(--space-md) var(--space-md) var(--space-lg); border: var(--rule-hair) solid var(--color-rule-soft); }
.tile-pic { display: block; aspect-ratio: 1; overflow: hidden; }
.tile-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-long) var(--ease-out); }
.tile:hover .tile-pic img { transform: scale(1.03); }
.tile-pic iframe { display: block; width: 100%; height: 100%; border: 0; }
.tile-pic--blank { position: relative; display: grid; place-items: center; background: var(--color-paper-2); }
.tile-pic--blank .tile-logo { width: 62%; height: auto; object-fit: contain; opacity: 0.85; }
.tile-num { position: absolute; left: var(--space-sm); bottom: var(--space-xs); font-family: var(--font-outlier); font-size: 2.6rem; line-height: 1; color: var(--color-accent); }
.tile-title { font-family: var(--font-body); font-weight: 600; font-size: var(--text-md); text-transform: uppercase; text-align: center; color: var(--color-muted); }
.tile-btn { display: block; background: var(--color-chip); color: var(--color-ink); text-align: center; font-weight: 600; text-transform: uppercase; text-decoration: none; padding: var(--space-sm); min-height: 44px; display: grid; place-items: center; line-height: 1; }
.tile-btn:hover { background: var(--color-chip-hover); }

/* dates */
.dates { list-style: none; margin: 0; padding: 0; width: min(640px, 100%); border-top: var(--rule-hair) solid var(--color-rule-soft); }
.dates li { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); column-gap: var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule-soft); }
.d-date { grid-row: span 2; font-family: var(--font-outlier); font-size: 1.5rem; line-height: 1; color: var(--color-accent); }
.d-name { font-weight: 800; text-transform: uppercase; }
.d-where { color: var(--color-muted); font-size: var(--text-sm); }

/* booking */
.book { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: var(--space-2xl); align-items: center; width: min(960px, 100%); }
.book-pic { border: var(--rule-hair) solid var(--color-rule); }
.book-pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.book-text { display: grid; gap: var(--space-md); justify-items: start; }
.book-text .page-title, .book-text .page-sub { text-align: left; }
.book-mail { font-weight: 800; font-size: var(--text-xl); background: var(--color-ink); color: var(--color-paper); text-decoration: none; padding: var(--space-sm) var(--space-md); }
.book-mail:hover { background: var(--color-ink-2); }

/* ---------- static between stations ---------- */
.static {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  pointer-events: none;
  opacity: 0;
  background-color: var(--color-paper);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.6 -0.25'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
.js .static.is-on { opacity: 1; animation: grain 0.18s steps(3) infinite; }
.js .static.is-off { opacity: 0; transition: opacity 260ms linear; }

/* ---------- small screens ---------- */
@media (max-width: 40rem) {
  .bar { height: 52px; }
  .bar-logo { padding-inline: var(--space-sm); gap: var(--space-xs); }
  .bar-word { font-size: 1.3rem; }
  .bar-freq { display: none; }
  .bar-live-title { display: none; }
  .bar-readout { font-size: 1.15rem; padding-inline: var(--space-xs); }
  .bar-btn { width: 44px; }
  .menu { padding-inline: var(--space-sm); gap: var(--space-xs); }
  .menu a { font-size: var(--text-sm); }
  .log { font-size: 1rem; }
  .ghost img { width: 150vw; }
  .book { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .poster-side { font-size: var(--text-md); }
  .poster-body { grid-template-columns: minmax(0, 1fr) 30px; }
  .poster-btn { left: calc(50% - 15px); }
  .label { font-size: var(--text-lg); }
  .book-mail { font-size: var(--text-md); }
}
@media (max-width: 24rem) { .bar-word { font-size: 1.15rem; } }

@media (prefers-reduced-motion: reduce) {
  .ghost-a, .ghost-b, .grain, .air .log, .meter i, .bar-live b, .is-live .ghost, .js .is-live .ghost-b, .is-live .meter i:nth-child(n) { animation: none; }
  .js .is-live .ghost-b { opacity: 0.2; transform: translateX(12px); }
  .meter i { transform: scaleY(0.7); }
  .js .air .log p { animation: none; }
  .js .static.is-on { animation: none; }
}
@media (max-width: 24rem) { .label { font-size: var(--text-md); } }
