:root {
  --paper: #F2F0EC; --card: #FFFFFF; --ink: #15151E; --sub: #5F5F6B; --red: #E10600; --line: #E2DED7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif; }
header { background: var(--ink); color: #fff; padding: 28px 20px 26px; }
.wrap { max-width: 720px; margin: 0 auto; }
.kicker { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 900; letter-spacing: .18em; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
h1 { font-size: 40px; line-height: 1.05; font-weight: 900; font-style: italic; letter-spacing: -.02em; text-transform: uppercase; margin: 10px 0 6px; hyphens: auto; overflow-wrap: break-word; }  /* long French words (CONFIDENTIALITÉ) fit a 320px phone */
header p { margin: 0; color: #A6A6B0; }
main { padding: 12px 20px 56px; }
h2 { font-size: 20px; font-weight: 800; margin: 30px 0 8px; }
section { background: var(--card); border-radius: 18px; padding: 4px 20px 16px; margin-top: 14px; }
section h2 { margin-top: 16px; }
a { color: var(--red); font-weight: 700; }
ul { padding-left: 20px; }
li { margin: 4px 0; }
small, .muted { color: var(--sub); }
nav { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 14px; font-size: 14px; }  /* wraps: French labels run longer */
nav a { color: #fff; }
footer { color: var(--sub); font-size: 13px; padding: 0 20px 40px; }
.lead { font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.tile { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.tile b { display: block; font-size: 28px; font-weight: 900; font-variant-numeric: tabular-nums; }
.tile span { color: var(--sub); font-size: 14px; }
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { color: var(--sub); font-weight: 700; }

/*
 * Home page, "Seven nights" (docs/design/website/quiet/quiet-b.png, picked 2026-11-30): the week as seven bars of
 * light on black ice, three empty, one filling green. Scoped to body.home so the other pages keep their look; every
 * colour, size and duration comes from theme.css. #week holds the static bars until site/week.js draws live ones.
 */
.home {
  --bar-w: clamp(18px, 3.2vw, 52px);           /* one night */
  --bar-h: clamp(220px, 44vh, 460px);
  --bar-gap: clamp(14px, 4.6vw, 84px);
  --slots: 13;                                 /* lineup slots in a night (the app's sample roster) */
  background: var(--ice); color: var(--text); font-family: var(--font);
}
.home a { color: inherit; font-weight: var(--weight-strong); }

.home-top { background: none; position: absolute; top: 0; left: 0; padding: clamp(20px, 3.4vw, 44px) var(--edge); z-index: 1; }
.home-mark { display: block; line-height: 0; }
.wordmark { height: var(--wordmark-tall); width: auto; display: block; }
.wordmark .puck { fill: var(--text); }
.wordmark .iq { fill: var(--red); }

.home-hero {
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center; gap: var(--space-8);
  grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); padding: 120px var(--edge) var(--space-8); overflow: hidden;
  background: radial-gradient(120% 60% at 70% 100%, rgba(246, 241, 231, .045), transparent 60%), var(--ice);
}
.home-copy { max-width: 520px; }
.home h1 {
  font-size: var(--size-hero); line-height: 1.02; font-style: normal; text-transform: none; font-weight: var(--weight-medium); letter-spacing: var(--track-tight);
  margin: 0 0 var(--space-5);
}
.home-line { font-size: var(--size-hero-lede); color: var(--text-dim); margin: 0 0 var(--space-7); }
.home-store {
  display: inline-flex; align-items: center; min-height: calc(var(--touch) + var(--space-2)); padding: 0 var(--space-6);
  border-radius: var(--radius-control); background: var(--text); color: var(--ice) !important; font-size: var(--size-lede);
  text-decoration: none; transition: transform var(--quick) var(--ease), box-shadow var(--quick) var(--ease);
}
.home-store:hover { transform: translateY(-1px); box-shadow: var(--glow-light-far); }
.home-store:focus-visible { outline: 2px solid var(--green); outline-offset: var(--space-1); }

/* Filled live by site/week.js; until then it takes no room and none of the other pages' card look. */
.home #tonight { background: none; border-radius: 0; margin: 0; padding: 0; }
.home #tonight:empty { display: none; }

/*
 * The week: seven nights standing on the ice, turned a little away like the picture. Each bar is one night of a
 * sample lineup: its light is the slots filled with a player in a game (--filled of --slots), the clear glass above
 * is the empty slots, and green is what the top pickup adds (--added). Same story as site/week.js's live bars.
 */
#week { display: flex; justify-content: center; min-height: calc(var(--bar-h) * 1.7); }
.nights { margin: 0; display: grid; justify-items: center; gap: var(--space-5); }
.nights-bars {
  list-style: none; margin: 0; display: flex; align-items: flex-end; justify-content: center; gap: var(--bar-gap);
  height: calc(var(--bar-h) * 1.7); padding: 0 0 calc(var(--bar-h) * .62);
  transform: perspective(1600px) rotateY(12deg); transform-origin: 30% 50%;
}
.night { position: relative; width: var(--bar-w); height: var(--bar-h); flex: none; }
.glass {                                         /* the night's lineup: every slot, filled or not */
  position: absolute; inset: 0; border-radius: var(--radius-bar);
  background: linear-gradient(90deg, var(--glass-fill), transparent 60%, var(--glass-fill));
  border: 1px solid var(--rule); border-top-color: var(--glass);
}
.night::before {                                 /* the base plate on the ice */
  content: ""; position: absolute; left: -30%; right: -30%; bottom: -3px; height: 4px; background: var(--rule);
}
.night::after {                                  /* the reflection in the ice, as tall as the light */
  content: ""; position: absolute; left: 0; right: 0; top: calc(100% + 4px);
  height: calc(58% * var(--filled) / var(--slots)); filter: blur(5px); opacity: .5;
  background: linear-gradient(rgba(255, 240, 210, .42), transparent);
}
.lit, .gain { position: absolute; left: 0; right: 0; transform-origin: 50% 100%; }
.lit {
  bottom: 0; height: calc(100% * var(--filled) / var(--slots));
  background: linear-gradient(90deg, var(--light-edge), var(--light) 45%, var(--light-edge));
  box-shadow: var(--glow-light), var(--glow-light-far);
  animation: night-rise var(--slow) var(--ease-out) both;
}
.gain {
  bottom: calc(100% * var(--filled) / var(--slots)); height: calc(100% * var(--added) / var(--slots));
  background: linear-gradient(90deg, var(--green-edge), var(--green) 45%, var(--green-edge));
  box-shadow: var(--glow-green), var(--glow-green-far);
  animation: night-rise var(--fill-time) var(--ease-out) .9s both;
}
.night:nth-child(2) .lit { animation-delay: .12s; }
.night:nth-child(3) .lit { animation-delay: .24s; }
.night:nth-child(4) .lit { animation-delay: .36s; }
.night:nth-child(5) .lit { animation-delay: .48s; }
.night:nth-child(6) .lit { animation-delay: .6s; }
.night:nth-child(7) .lit { animation-delay: .72s; }
.day {                                           /* the night's short name, on the ice under its bar */
  position: absolute; left: 50%; top: calc(100% + var(--space-3)); transform: translateX(-50%);
  font-size: var(--size-small); font-weight: var(--weight-strong); color: var(--text-dim);
  white-space: nowrap; z-index: 1;
}
.night.gaining .day { color: var(--green); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@keyframes night-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.home-foot {
  padding: var(--space-7) var(--edge) var(--space-8); border-top: 1px solid var(--rule); color: var(--text-faint);
  font-size: var(--size-small); display: grid; gap: var(--space-3);
}
.home-foot p { margin: 0; max-width: var(--measure); }
.home-foot nav { display: flex; flex-wrap: wrap; gap: var(--space-5); }
.home-foot nav a { color: var(--text); text-decoration: none; }
.home-foot nav a:hover { text-decoration: underline; }
.home-fine { font-size: var(--size-micro); }

@media (max-width: 820px) {
  .home { --bar-h: clamp(200px, 34vh, 300px); }
  .home-hero { grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: 112px; padding-bottom: var(--space-5); }
  #week { min-height: calc(var(--bar-h) * 1.45); }
  .nights-bars { transform: none; height: calc(var(--bar-h) * 1.45); padding-bottom: calc(var(--bar-h) * .42); }
  .day { font-size: var(--size-micro); }          /* 'Thurs' clears its neighbours down to 320px */
}
@media (prefers-reduced-motion: reduce) {
  .lit, .gain { animation: none; }
  .home-store { transition: none; }
}
