/* Joséphine Byrne Garelli — Grand Conseil vaudois, Nyon.
   Palette drawn from La Côte: lake blue, vine gold, limestone paper. */

:root {
  --lake:      #10304B;  /* deep lake blue — primary ink */
  --lake-soft: #2A5A80;
  --paper:     #F7F8F6;  /* limestone, faintly warm-neutral */
  --surface:   #FFFFFF;
  --surface-2: #EEF1EF;
  --ink:       #17293A;
  --ink-soft:  #45596B;
  --muted:     #6E8092;
  --rule:      #D8DEDC;
  --rule-soft: #E7ECEA;
  --accent:    #1A5FA8;  /* PLR-adjacent blue */
  --accent-dk: #14497F;
  --accent-bg: #E1EBF6;
  --vine:      #A8873B;  /* vineyard brass, used sparingly */
  --vine-bg:   #F4EEDF;
  /* Inverted bands (ballot section, footer). Always light-on-dark in both
     themes, so they never depend on --lake flipping lightness. */
  --band-bg:   #10304B;
  --band-ink:  #EAF1F7;
  --band-dim:  #C9D9E6;
  --band-rule: rgba(255,255,255,.14);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --lake:      #CFE0EE;
    --lake-soft: #9DBBD3;
    --paper:     #0C161F;
    --surface:   #14212C;
    --surface-2: #1A2833;
    --ink:       #E6EDF3;
    --ink-soft:  #B6C6D3;
    --muted:     #859AAB;
    --rule:      #294053;
    --rule-soft: #1F3242;
    --accent:    #7BAEE4;
    --accent-dk: #A5C9EE;
    --accent-bg: #172F47;
    --vine:      #D6B368;
    --vine-bg:   #2C2415;
    --band-bg:   #16283A;
    --band-ink:  #E6EDF3;
    --band-dim:  #AEC1D2;
    --band-rule: rgba(255,255,255,.10);
  }
}

:root[data-theme="dark"] {
  --lake:      #CFE0EE;
  --lake-soft: #9DBBD3;
  --paper:     #0C161F;
  --surface:   #14212C;
  --surface-2: #1A2833;
  --ink:       #E6EDF3;
  --ink-soft:  #B6C6D3;
  --muted:     #859AAB;
  --rule:      #294053;
  --rule-soft: #1F3242;
  --accent:    #7BAEE4;
  --accent-dk: #A5C9EE;
  --accent-bg: #172F47;
  --vine:      #D6B368;
  --vine-bg:   #2C2415;
  --band-bg:   #16283A;
  --band-ink:  #E6EDF3;
  --band-dim:  #AEC1D2;
  --band-rule: rgba(255,255,255,.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 18px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .kicker, .eyebrow, .btn, .nav, .brand-name, .foot-name {
  font-family: "Libre Franklin", "Helvetica Neue", Arial, sans-serif;
}

.inner { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.inner.narrow { max-width: 720px; }

a { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 10px 16px; z-index: 99;
}
.skip:focus { left: 12px; top: 12px; }

.eyebrow, .kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 12px;
}

/* --------------------------------------------------------------- nav */

.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}
.nav-in {
  max-width: 1080px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
}
.brand { text-decoration: none; color: var(--ink); line-height: 1.2; }
.brand-name { display: block; font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.brand-sub { display: block; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }

.nav nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav nav a {
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none;
}
.nav nav a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 15px; border-radius: 3px;
}
.nav-cta:hover { background: var(--accent-dk); }

/* -------------------------------------------------------------- hero */

.hero {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 24px 68px;
  align-items: center;
}

h1 {
  font-size: clamp(44px, 7.2vw, 76px);
  font-weight: 800;
  line-height: .96;
  letter-spacing: -.032em;
  color: var(--lake);
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-line { font-size: 21px; color: var(--ink-soft); margin: 0 0 14px; max-width: 30ch; }

.hero-thesis {
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  border-left: 3px solid var(--vine);
  padding-left: 18px;
  margin: 0 0 30px;
  max-width: 42ch;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-portrait { display: flex; justify-content: center; }
.portrait-slot {
  width: 100%; max-width: 300px; aspect-ratio: 4/5;
  background: var(--surface-2);
  border: 1px dashed var(--rule);
  border-radius: 4px;
  display: grid; place-items: center;
  color: var(--muted); font-size: 13px; text-align: center;
  font-family: "Libre Franklin", sans-serif; letter-spacing: .06em; text-transform: uppercase;
}

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-block;
  font-size: 15px; font-weight: 600;
  padding: 13px 24px;
  border-radius: 3px;
  text-decoration: none;
  border: 1.5px solid transparent;
}
.btn-sm { font-size: 14px; padding: 9px 18px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ------------------------------------------------------------ ballot */

.ballot {
  background: var(--band-bg);
  color: var(--band-ink);
  padding: 68px 0 72px;
}

.ballot .eyebrow { color: var(--vine); }
.ballot h2 {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.08;
  margin: 0 0 20px; color: inherit; text-wrap: balance;
}
.ballot h2 em { font-style: italic; color: var(--vine); }
.ballot .lead { font-size: 19px; max-width: 62ch; margin: 0 0 34px; opacity: .93; }
.ballot .lead strong { font-weight: 600; }

.ballot-demo {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 40px;
  align-items: start;
}

.bulletin {
  background: #FCFCF9;
  color: #17293A;
  border-radius: 3px;
  padding: 20px 22px 24px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
  transform: rotate(-1.1deg);
}
.bulletin-head {
  font-family: "Libre Franklin", sans-serif;
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: #6E8092; margin: 0 0 4px;
}
.bulletin-list {
  font-family: "Libre Franklin", sans-serif;
  font-weight: 700; font-size: 17px; margin: 0 0 14px;
  padding-bottom: 10px; border-bottom: 2px solid #17293A;
}
.bulletin-lines { margin: 0; padding-left: 22px; font-size: 15px; line-height: 2.05; }
.bulletin-lines li { border-bottom: 1px solid #DCE2E0; }
.bulletin-lines .mark { color: #1A5FA8; font-weight: 700; margin-left: 4px; }
.bulletin-lines .dim { color: #B4BFC7; }

.howto { margin: 0; padding-left: 22px; font-size: 17.5px; line-height: 1.55; }
.howto li { margin-bottom: 14px; }
.howto strong { font-weight: 600; }

.ballot-note {
  margin: 34px 0 0; font-size: 16px; opacity: .8; max-width: 66ch;
}

/* ----------------------------------------------------------- sections */

.section { padding: 68px 0; }
.section.alt { background: var(--surface); border-block: 1px solid var(--rule-soft); }

.section h2 {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 700; letter-spacing: -.022em; line-height: 1.1;
  color: var(--lake); margin: 0 0 16px; text-wrap: balance;
}
.section .lead { font-size: 19px; color: var(--ink-soft); max-width: 62ch; margin: 0 0 34px; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 24px 24px 26px;
}
.section.alt .card, .support .card { background: var(--paper); }
.card h3 {
  font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  margin: 0 0 10px; color: var(--lake);
}
.card p { margin: 0 0 16px; font-size: 16.5px; color: var(--ink-soft); }
.card .btn { margin-top: 2px; }

.placeholder-note {
  color: var(--muted);
  background: var(--vine-bg);
  border-left: 3px solid var(--vine);
  padding: 12px 16px;
  border-radius: 0 3px 3px 0;
  font-size: 16px;
}

/* A control that is not built yet.
   It must not look like a working button, and it must not be a link to "#":
   both invite a click that does nothing, which is what makes a visitor stop
   trusting the rest of the page. Dashed, muted, no pointer — it reads as a
   space reserved rather than a thing broken. Rendered as <span> in the markup
   so the keyboard never lands on it either. */
.is-todo {
  color: var(--muted);
  background: none;
  border: 1px dashed var(--rule);
  cursor: default;
  font-weight: 400;
}
.is-todo:hover { background: none; color: var(--muted); }
.foot-links .is-todo {
  border: 0;
  padding: 0;
  font-size: inherit;
  display: inline;
}

.support { background: var(--surface-2); }

/* -------------------------------------------------------------- foot */

.foot {
  background: var(--band-bg);
  color: var(--band-dim);
  padding: 46px 0 30px;
}

.foot-in {
  display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  padding-bottom: 26px; margin-bottom: 20px;
  border-bottom: 1px solid var(--band-rule);
}
.foot-name { font-weight: 700; font-size: 17px; margin: 0 0 6px; color: inherit; }
.foot-meta { margin: 0; font-size: 14px; opacity: .78; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.foot-links a {
  font-family: "Libre Franklin", sans-serif;
  font-size: 14px; color: inherit; opacity: .85; text-decoration: none;
}
.foot-links a:hover { opacity: 1; text-decoration: underline; }
.foot-fine { font-size: 13px; opacity: .62; margin: 0; max-width: 76ch; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .hero-portrait { order: -1; justify-content: flex-start; }
  .portrait-slot { max-width: 200px; }

  /* WHILE THE PORTRAIT IS STILL A PLACEHOLDER, IT DOES NOT LEAD.
     `order: -1` above hoists the picture over the name on a phone, which is
     right once there IS a picture — a face is the fastest thing a voter reads.
     Measured 18 September 2026 at 375px: with the slot still empty it made the
     first screen a dashed grey rectangle, and the candidate's name fell below
     the fold. An empty frame is not a portrait.
     Delete this block the day the real photograph lands — the session is
     booked for 21 September 2026 — and the intended order returns by itself. */
  .hero:has(.portrait-slot) .hero-portrait { order: 0; }
  .hero:has(.portrait-slot) .portrait-slot { max-width: 150px; }
  .ballot-demo { grid-template-columns: 1fr; gap: 30px; }
  .bulletin { transform: none; max-width: 340px; }
}

@media (max-width: 560px) {
  body { font-size: 17px; }
  .nav nav { gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
