/* Conductor Games — studio hub.
   Identity: the engraved score. Ivory paper, black ink, Bodoni titling,
   staff-line rules, movements with tempo markings, red rehearsal marks.
   The orchestra conductor, not the electrical one. */

@font-face {
  font-family: 'Bodoni Moda';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Bodoni Moda';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/bodoni-italic-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/garamond-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'EB Garamond';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/garamond-italic-latin.woff2') format('woff2');
}

:root {
  --paper: #F6F1E5;
  --paper-shade: #EFE8D8;
  --ink: #1C1712;
  --ink-soft: #4A4238;
  --ink-faint: #8A7F6E;
  --staff: #C9BFA9;
  --red: #A5382A;
  --display: 'Bodoni Moda', serif;
  --body: 'EB Garamond', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 19px;
  line-height: 1.6;
}

::selection { background: var(--ink); color: var(--paper); }

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

img { max-width: 100%; display: block; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---- a five-line staff, used as the section divider ---- */
.staff {
  height: 25px;
  background: repeating-linear-gradient(
    to bottom,
    var(--staff) 0, var(--staff) 1px,
    transparent 1px, transparent 6px
  );
  background-size: 100% 25px;
  background-repeat: no-repeat;
  margin: 0;
  border: none;
}

/* ---- nav: the running head of a score ---- */
.nav {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 26px 0 18px;
  border-bottom: 2px solid var(--ink);
}
.nav .name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav ul {
  margin-left: auto;
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 16px;
  font-style: italic;
}
.nav ul a { color: var(--ink-soft); }
.nav ul a:hover { color: var(--red); }

/* ---- hero: the title page ---- */
.hero {
  text-align: center;
  padding: 84px 0 64px;
}
.hero .opus {
  font-size: 16px;
  font-style: italic;
  color: var(--ink-faint);
  letter-spacing: .04em;
}
.hero h1 {
  font-family: var(--display);
  font-weight: 750;
  font-variation-settings: 'wght' 750;
  font-size: clamp(46px, 9vw, 96px);
  line-height: 1.0;
  letter-spacing: .015em;
  text-transform: uppercase;
  margin-top: 18px;
}
.hero .subtitle {
  margin-top: 16px;
  font-size: 19px;
  font-style: italic;
  color: var(--ink-soft);
}

/* the conductor's beat pattern (4/4), drawn like an instruction figure */
.beat {
  width: 190px;
  margin: 44px auto 0;
  display: block;
}
.beat path.stroke {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.beat .count {
  font-family: var(--body);
  font-style: italic;
  font-size: 15px;
  fill: var(--ink-faint);
}
@media (prefers-reduced-motion: no-preference) {
  .beat path.stroke {
    stroke-dasharray: 760;
    stroke-dashoffset: 760;
    animation: conduct 2.8s ease-out .3s forwards;
  }
  @keyframes conduct { to { stroke-dashoffset: 0; } }
}
.hero .statement {
  max-width: 54ch;
  margin: 44px auto 0;
  font-size: 20px;
  color: var(--ink-soft);
}

/* ---- movements ---- */
section { padding: 64px 0 72px; }

.movement {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 34px;
}
.movement .no {
  font-family: var(--display);
  font-weight: 700;
  font-size: 30px;
}
.movement h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: .01em;
}
.movement .tempo {
  font-style: italic;
  font-size: 18px;
  color: var(--ink-faint);
}

/* ---- games: the programme ---- */
.programme { list-style: none; }
.programme > li { padding: 0 0 34px; }

.prog-line {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 21px;
}
.prog-line .title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .04em;
}
.prog-line .leader {
  flex: 1;
  border-bottom: 2px dotted var(--staff);
  transform: translateY(-5px);
}
.prog-line .detail { font-style: italic; color: var(--ink-soft); font-size: 17px; text-align: right; }

.plate {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 28px;
  align-items: start;
}
.plate figure {
  border: 1px solid var(--ink);
  padding: 10px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--paper-shade);
}
.plate figcaption {
  padding-top: 8px;
  font-size: 14px;
  font-style: italic;
  color: var(--ink-faint);
  text-align: center;
}
.plate .notes p { color: var(--ink-soft); font-size: 18px; }
.plate .notes p + p { margin-top: 12px; }
.plate .dyn {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  margin-right: 8px;
}
.plate .links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .06em;
  padding: 10px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: transparent;
}
.btn:hover { background: var(--ink); color: var(--paper); text-decoration: none; }
.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid:hover { background: var(--red); border-color: var(--red); }
.btn.quiet { border-color: var(--staff); color: var(--ink-soft); }
.btn.quiet:hover { border-color: var(--ink); color: var(--ink); background: transparent; }

/* the unwritten next piece */
.tacet {
  padding: 26px 0 0;
  font-style: italic;
  color: var(--ink-faint);
  font-size: 18px;
}
.tacet .prog-line .title { color: var(--ink-faint); font-weight: 500; }

/* ---- news: rehearsal marks ---- */
.news { list-style: none; }
.news li {
  display: grid;
  grid-template-columns: 56px 130px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--staff);
  align-items: baseline;
}
.news li:last-child { border-bottom: none; }
.news .mark {
  width: 40px; height: 40px;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--display);
  font-weight: 700;
  font-size: 21px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(8px);
}
.news time {
  font-style: italic;
  font-size: 16px;
  color: var(--ink-faint);
}
.news h3 { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: .01em; }
.news p { color: var(--ink-soft); font-size: 17px; margin-top: 4px; }

/* ---- about ---- */
.about p { max-width: 60ch; color: var(--ink-soft); font-size: 19px; }
.about p + p { margin-top: 14px; }
.about b { color: var(--ink); font-weight: 600; }
.about .quote {
  margin-top: 28px;
  font-style: italic;
  font-size: 20px;
  color: var(--ink);
}

/* ---- contact ---- */
.contact-rows { max-width: 620px; border-top: 1px solid var(--ink); }
.contact-rows div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--staff);
  align-items: baseline;
}
.contact-rows dt {
  width: 170px;
  font-style: italic;
  font-size: 17px;
  color: var(--ink-faint);
}
.contact-rows dd a { font-size: 19px; }

/* ---- footer: Fine. ---- */
footer {
  text-align: center;
  padding: 56px 0 64px;
}
footer .fine {
  font-family: var(--display);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
}
footer .colophon {
  margin-top: 14px;
  font-size: 15px;
  font-style: italic;
  color: var(--ink-faint);
}
footer .colophon a { color: var(--ink-soft); }

@media (max-width: 700px) {
  .plate { grid-template-columns: 1fr; }
  .news li { grid-template-columns: 48px 1fr; }
  .news li > div { grid-column: 1 / -1; }
  .news time { text-align: left; }
  .prog-line .detail { display: none; }
  .nav ul { gap: 14px; }
  .nav ul li.hide-s { display: none; }
  .hero { padding: 56px 0 44px; }
  section { padding: 48px 0 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ===== ARCADE-ELECTRIC THEME (live): the score, rewired.
   Structure of the engraved score; vocabulary and light of the arcade. ===== */
:root {
  --paper: #0E0B1A;
  --paper-shade: #191430;
  --ink: #EDE8FF;
  --ink-soft: #BCB2E0;
  --ink-faint: #7D71A8;
  --staff: #372E5E;
  --red: #FF3DA6;      /* rehearsal marks go hot magenta */
  --cyan: #8DBFFA;
  --volt: #F5E642;
}
body {
  /* perfboard dot grid */
  background-image: radial-gradient(rgba(237,232,255,.06) 1px, transparent 1.5px);
  background-size: 24px 24px;
}
a { color: var(--cyan); }
a:hover { text-shadow: 0 0 10px rgba(141,191,250,.6); }
::selection { background: var(--volt); color: #0E0B1A; }
.nav { border-bottom-color: var(--ink); }
.hero .opus, .hero .subtitle { color: var(--cyan); text-shadow: 0 0 12px rgba(141,191,250,.4); }
.hero h1 { text-shadow: 0 0 34px rgba(237,232,255,.25); }

/* circuit figure */
.beat.circuit { width: 300px; }
.beat.circuit path.stroke {
  stroke: var(--volt);
  stroke-width: 2.4;
  filter: drop-shadow(0 0 6px rgba(245,230,66,.8));
}
.beat.circuit .node { fill: var(--volt); }
.beat.circuit .count { fill: var(--ink-faint); font-size: 14px; }
.beat.circuit .bulb { fill: transparent; }
@media (prefers-reduced-motion: no-preference) {
  .beat.circuit path.stroke {
    stroke-dasharray: 1100;
    stroke-dashoffset: 1100;
    animation: conduct 3s ease-out .3s forwards;
  }
  .beat.circuit .bulb {
    animation: lampon 1.2s ease-out 3.1s forwards;
  }
  @keyframes lampon {
    to { fill: rgba(245,230,66,.28); filter: drop-shadow(0 0 18px rgba(245,230,66,.9)); }
  }
}

/* buses (was staves): dim violet lines with a live cyan via at each end */
.staff {
  background: repeating-linear-gradient(to bottom,
    var(--staff) 0, var(--staff) 1px, transparent 1px, transparent 6px);
  background-size: 100% 25px;
  background-repeat: no-repeat;
  position: relative;
}
.staff::before, .staff::after {
  content: '';
  position: absolute;
  top: 9px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(141,191,250,.8);
}
.staff::before { left: 0; }
.staff::after { right: 0; }

.movement .no { color: var(--volt); text-shadow: 0 0 10px rgba(245,230,66,.4); }
.movement .tempo { color: var(--cyan); }

.prog-line .leader { border-bottom-color: var(--staff); }
.plate figure {
  background: #07050F;
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(141,191,250,.25);
  padding: 8px;
}
.plate figcaption { color: var(--ink-faint); }
.plate .dyn { color: var(--volt); font-style: normal; }

.btn { border-color: var(--ink); color: var(--ink); }
.btn:hover { background: var(--ink); color: #0E0B1A; text-decoration: none; }
.btn.solid { background: var(--volt); border-color: var(--volt); color: #0E0B1A; }
.btn.solid:hover { box-shadow: 0 0 20px rgba(245,230,66,.6); background: var(--volt); }
.btn.quiet { border-color: var(--staff); color: var(--ink-soft); }
.btn.quiet:hover { border-color: var(--cyan); color: var(--cyan); }

.news .mark {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 10px rgba(255,61,166,.4);
}
.news h3 { color: var(--ink); }

.contact-rows { border-top-color: var(--ink); }
.about .quote { color: var(--cyan); }

footer { color: var(--volt); }
footer .gnd { width: 44px; margin: 0 auto 10px; display: block; filter: drop-shadow(0 0 8px rgba(245,230,66,.6)); }
footer .fine { font-size: 20px; letter-spacing: .12em; text-transform: uppercase; font-style: normal; }
footer .colophon a { color: var(--ink-soft); }

/* ===== hero logo: the official mark (static; bolt fills the left space) ===== */
.logo-hero {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}
.logo-hero img {
  width: min(460px, 78vw);
  height: auto;
  display: block;
}
