/* escalestories.com — train de nuit. Self-hosted fonts, no JS, no trackers. */

@font-face { font-family: 'Marcellus'; src: url('fonts/Marcellus-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Cormorant'; src: url('fonts/Cormorant-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Cormorant'; font-style: italic; src: url('fonts/Cormorant-Italic.ttf'); font-display: swap; }
@font-face { font-family: 'Cormorant'; font-weight: 600; src: url('fonts/Cormorant-SemiBold.ttf'); font-display: swap; }
@font-face { font-family: 'Jost'; src: url('fonts/Jost-Regular.ttf'); font-display: swap; }
@font-face { font-family: 'Jost'; font-weight: 500; src: url('fonts/Jost-Medium.ttf'); font-display: swap; }

:root {
  --wagon: #122A24;
  --wagon-lt: #1B3B32;
  --boiserie: #16332C;
  --ivory: #EDE3CB;
  --paper: #F4EDDD;
  --ink: #233229;
  --brass: #C9A24B;
  --brass-hi: #E4C77E;
  --velours: #6E2B33;
  --dim: #A3B4A6;
  --line: #2E5147;
}

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

body {
  background: var(--wagon);
  color: var(--ivory);
  font-family: 'Cormorant', Georgia, serif;
  font-size: 19px;
  line-height: 1.55;
}

a { color: var(--brass-hi); }

h1, h2, h3 { font-family: 'Marcellus', Georgia, serif; font-weight: 400; }

/* ---- top bar (language toggle) ---- */
.topbar {
  display: flex;
  justify-content: flex-end;
  max-width: 1020px;
  margin: 0 auto;
  padding: 16px 24px 0;
}
/* Globe + current language; the whole pill is the switch link. Fixed
   min-width + centering so the pill keeps the exact same size in FR and EN
   ("EN" is a hair wider than "FR" — without this the pill shifts on toggle). */
.lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 72px;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 6px 12px;
}
.lang:hover { color: var(--brass-hi); border-color: var(--brass); }
.lang-icon { width: 14px; height: 14px; flex: 0 0 14px; }

/* ---- hero ---- */
.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 24px 56px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.hero.small { padding: 56px 24px 40px; }
.wordmark {
  /* A link back home, styled as the plaque — no underline, brass kept. */
  display: block;
  text-decoration: none;
  font-family: 'Marcellus', serif;
  color: var(--brass);
  font-size: 22px;
  letter-spacing: 6px;
  margin-bottom: 28px;
}
.wordmark:hover { color: var(--brass-hi); }
.hero h1 { font-size: clamp(30px, 5.5vw, 46px); line-height: 1.2; margin-bottom: 20px; }
.lede { font-style: italic; color: var(--dim); max-width: 620px; margin: 0 auto; font-size: 21px; }
.cta-row { margin-top: 36px; display: flex; gap: 24px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: #231A07;
  background: var(--brass);
  border-top: 1px solid #E8CE8B;
  border-bottom: 2px solid #A87F33;
  border-radius: 3px;
  padding: 15px 30px;
}
.cta:hover { background: var(--brass-hi); }
.qr { border-radius: 6px; }

/* ---- sections ---- */
section { max-width: 1020px; margin: 0 auto; padding: 56px 24px; }
section h2 {
  font-size: 28px;
  color: var(--ivory);
  text-align: center;
  margin-bottom: 10px;
}
.section-sub { text-align: center; font-style: italic; color: var(--dim); margin-bottom: 36px; }

/* ---- demo cards ---- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.card {
  background: var(--boiserie);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  /* Flex column + the grid's default row-stretch make cards in a row equal
     height; margin-top:auto on the audio then pins every player to the bottom
     edge, so the audio bars line up across a row regardless of blurb length. */
  display: flex;
  flex-direction: column;
  height: 100%;
}
.cover-wrap { position: relative; }
.card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  background: var(--wagon-lt);
}
.badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  letter-spacing: 1px;
  background: var(--wagon);
  color: var(--brass-hi);
  border: 1px solid var(--brass);
  border-radius: 4px;
  padding: 3px 7px;
}
.card .genre {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brass);
  margin: 14px 0 4px;
}
.card h3 { font-size: 22px; margin-bottom: 8px; }
.card .blurb { font-style: italic; color: var(--dim); font-size: 17px; }
/* margin-top:auto pushes the player to the card's bottom (see .card note). */
.card audio { width: 100%; margin-top: auto; padding-top: 16px; }

/* ---- how ---- */
.steps { max-width: 640px; margin: 0 auto; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 58px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--brass);
  border-radius: 50%;
  color: var(--brass-hi);
  font-family: 'Marcellus', serif;
  font-size: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps strong { font-family: 'Marcellus', serif; font-weight: 400; color: var(--ivory); display: block; margin-bottom: 2px; }
.steps li { color: var(--dim); }

/* ---- pricing (train tickets) ---- */
.tickets { display: flex; gap: 24px; justify-content: center; flex-wrap: wrap; margin: 8px 0 22px; }
.ticket {
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 22px 40px;
  text-align: center;
  min-width: 210px;
  /* perforated ticket edge */
  background-image: radial-gradient(circle at 0 50%, var(--wagon) 7px, transparent 7.5px),
    radial-gradient(circle at 100% 50%, var(--wagon) 7px, transparent 7.5px);
}
.ticket .length {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #6b6250;
}
.ticket .mins { font-style: italic; margin: 4px 0 8px; }
.ticket .price { font-family: 'Marcellus', serif; font-size: 32px; }
.included { text-align: center; max-width: 560px; margin: 0 auto 18px; }
.promise {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  font-style: italic;
  color: var(--dim);
  border-left: 2px solid var(--velours);
  padding-left: 14px;
}

/* ---- legal hub ---- */
.legal-list { max-width: 640px; }
.legal-list h2 { text-align: left; font-size: 20px; margin: 26px 0 10px; }
.legal-list ul { list-style: none; }
.legal-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.legal-list a { font-family: 'Jost', sans-serif; font-size: 16px; text-decoration: none; }
.legal-list a:hover { text-decoration: underline; }
.market-intro { font-style: italic; color: var(--dim); margin-bottom: 8px; }
.legal-list .gov { font-family: 'Jost', sans-serif; font-size: 12px; color: var(--brass); }
.legal-list .muted-note { font-family: 'Jost', sans-serif; font-size: 12px; color: var(--dim); }

/* ---- footer ---- */
footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 44px 24px 52px;
  margin-top: 40px;
}
footer .brand {
  display: inline-block;
  text-decoration: none;
  font-family: 'Marcellus', serif;
  color: var(--brass);
  letter-spacing: 5px;
}
footer .brand:hover { color: var(--brass-hi); }
footer .baseline { font-style: italic; color: var(--dim); margin: 6px 0 16px; }
footer nav { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
footer nav a { font-family: 'Jost', sans-serif; font-size: 14px; color: var(--dim); }
footer .fine { margin-top: 18px; font-size: 15px; color: var(--dim); font-style: italic; }
