/* Windward Strategy — the Chart Room. Spec: docs/superpowers/specs/2026-07-27-strategy-chart-room-design.md */

:root {
  color-scheme: light dark;
  --g: #f7f5ef;
  --ink: #1d2433;
  --mut: #5f6878;
  --line: #ddd8cb;
  --gold: #c9a25e;
  --gold-ink: #8a6b39;
  --gf-stroke: #202e4d;
  --hf-fill: #202e4d;
  --hf-stroke: transparent;
  --hf-sw: 0;
  --hf-dot: #c9a25e;
}

@media (prefers-color-scheme: dark) {
  :root {
  --g: #101625;
  --ink: #e7e5da;
  --mut: #99a0b0;
  --line: rgba(231, 229, 218, 0.14);
  --gold: #c9a25e;
  --gold-ink: #d9bd85;
  --gf-stroke: #d9bd85;
  --hf-fill: transparent;
  --hf-stroke: #d9bd85;
  --hf-sw: 1.6;
  --hf-dot: #d9bd85;
  }
}

/* The lamp: a stored choice outranks the OS preference */
:root[data-theme="light"] {
  --g: #f7f5ef;
  --ink: #1d2433;
  --mut: #5f6878;
  --line: #ddd8cb;
  --gold: #c9a25e;
  --gold-ink: #8a6b39;
  --gf-stroke: #202e4d;
  --hf-fill: #202e4d;
  --hf-stroke: transparent;
  --hf-sw: 0;
  --hf-dot: #c9a25e;
}
:root[data-theme="dark"] {
  --g: #101625;
  --ink: #e7e5da;
  --mut: #99a0b0;
  --line: rgba(231, 229, 218, 0.14);
  --gold: #c9a25e;
  --gold-ink: #d9bd85;
  --gf-stroke: #d9bd85;
  --hf-fill: transparent;
  --hf-stroke: #d9bd85;
  --hf-sw: 1.6;
  --hf-dot: #d9bd85;
}

@font-face {
  font-family: "EB Garamond";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/EBGaramond-Roman.woff2) format("woff2");
}
@font-face {
  font-family: "EB Garamond";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/EBGaramond-Italic.woff2) format("woff2");
}

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

body {
  font-family: "EB Garamond", Georgia, serif;
  background: var(--g);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 30px;
}

/* flags — division fields are constant; only the mount flips (flag law) */
.gflag .mount { stroke: var(--gf-stroke); }
.hflag .f { fill: var(--hf-fill); stroke: var(--hf-stroke); stroke-width: var(--hf-sw); }
.hflag .d { fill: var(--hf-dot); }

/* top bar */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-name {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; justify-content: flex-end; }
.top-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--mut);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
.top-link:hover { color: var(--gold-ink); }

/* the lamp */
.lamp { display: flex; align-items: center; gap: 2px; }
.lamp-opt {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px 8px;
  cursor: pointer;
  font-family: "EB Garamond", Georgia, serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
}
.lamp-opt::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  border: 1px solid var(--gold-ink);
  flex: none;
}
.lamp-opt:hover { color: var(--gold-ink); }
.lamp-opt:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.lamp-opt[aria-pressed="true"] { color: var(--ink); }
.lamp-opt[aria-pressed="true"]::before {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 5px rgba(201, 162, 94, 0.55);
}

/* hero */
.hero { padding: 88px 0 66px; max-width: 660px; }
.hero-h1 {
  font-weight: 600;
  font-size: clamp(34px, 5.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 22px;
  font-size: 18px;
  font-style: italic;
  color: var(--mut);
  line-height: 1.55;
}

/* engagement rows */
.engagements { border-top: 1px solid var(--line); }
.eng {
  display: grid;
  grid-template-columns: 230px 180px 1fr;
  gap: 26px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.eng-name { font-weight: 600; font-size: 23px; letter-spacing: -0.005em; }
.eng-kicker {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
  white-space: nowrap;
}
.eng-desc { font-size: 16.5px; color: var(--mut); line-height: 1.6; max-width: 52ch; }
@media (max-width: 760px) {
  .eng { grid-template-columns: 1fr; gap: 5px; }
  .eng-desc { max-width: none; }
}

/* contact */
.contact { padding: 72px 0 20px; }
.contact-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-ink);
}
.contact-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.contact-link:hover { color: var(--gold-ink); }
.contact-link:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* footer */
.foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding: 26px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 32px;
  align-items: center;
  justify-content: space-between;
}
.plate { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.plate-text {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--mut);
}
.plate-diamond {
  width: 5px;
  height: 5px;
  background: var(--gold);
  transform: rotate(45deg);
  flex: none;
}
.plate-link {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mut);
  text-decoration: none;
}
.plate-link:hover { color: var(--gold-ink); }
.foot-copy { font-size: 12.5px; color: var(--mut); }
