/* styles.css */
/* ==========================================================================
   STANDFAST: shared stylesheet
   Chart-paper cream · deep navy · brass rope · International Code of Signals
   Fraunces (display) + Atkinson Hyperlegible (body, designed for low vision)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces */
  --paper: #f7f2e8;
  --paper-2: #efe6d4;
  --card: #fffdf7;
  --navy: #13293d;
  --harbour: #1d4642;
  --ink: #10212f;

  /* Text */
  --ink-soft: #3a4a57;
  --on-dark: #f7f2e8;
  --on-dark-soft: #cfd8df;
  --link: #1d4e89;

  /* Brass & rope */
  --brass: #c9973b;
  --brass-light: #e2b866;
  --brass-deep: #7a5410;
  --rope-dark: #8a6420;
  --line: #d6c9ae;

  /* Code of Signals colours */
  --flag-red: #c8102e;

  --flag-blue: #1d3f8a;
  --flag-yellow: #f2c230;
  --flag-white: #ffffff;

  /* Function */
  --signal: #f2c230;
  --alert: #b3261e;
  --focus-ring: var(--ink);
  --rope: repeating-linear-gradient(115deg, var(--brass) 0 0.45rem, var(--rope-dark) 0.45rem 0.65rem);
  --grid-light: linear-gradient(rgba(16, 33, 47, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(16, 33, 47, 0.05) 1px, transparent 1px);
  --grid-dark: linear-gradient(rgba(247, 242, 232, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(247, 242, 232, 0.05) 1px, transparent 1px);

  /* Type */
  --font-body: "Atkinson Hyperlegible", Verdana, "Segoe UI", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --text-sm: 1.0625rem;
  --text-base: clamp(1.1875rem, 1.13rem + 0.3vw, 1.375rem);
  --text-lead: clamp(1.3rem, 1.2rem + 0.45vw, 1.55rem);
  --h3: clamp(1.45rem, 1.3rem + 0.6vw, 1.8rem);
  --h2: clamp(2rem, 1.6rem + 1.8vw, 3rem);
  --h1: clamp(2.5rem, 1.8rem + 3.4vw, 4.6rem);

  /* Layout */
  --wrap: 72rem;
  --narrow: 44rem;
  --radius: 0.6rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {

  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); line-height: 1.2; }


p { margin: 0 0 1em; }
p, li { text-wrap: pretty; }
strong { font-weight: 700; }
abbr[title] { text-decoration: underline dotted; text-underline-offset: 0.2em; cursor: help; }
sup { line-height: 0; }
cite { font-style: italic; }

a {
  color: var(--link);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 2px;
}
main:focus { outline: none; }

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

/* ---------- 3. Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);

  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  background: var(--signal);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus { top: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2.5rem, var(--narrow)); }

.rope { display: block; height: 0.45rem; background: var(--rope); }

/* ---------- 4. Dark contexts ---------- */
.site-header,
.hero,
.page-head--navy,
.section--navy,
.section--harbour,
.cta-band,
.site-footer {
  --focus-ring: var(--signal);

  color: var(--on-dark);
}

:is(.hero, .page-head--navy, .section--navy, .section--harbour, .cta-band, .site-footer) a:not(.btn) {
  color: var(--on-dark);
}

/* ---------- 5. Header & navigation ---------- */
.site-header { background: var(--ink); }
.site-header::after { content: ""; display: block; height: 0.45rem; background: var(--rope); }

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3rem;
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 0.005em;
  text-decoration: none;
}

.brand:hover .brand__name {
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
}

.brand__mark {
  position: relative;
  width: 2.2rem;
  aspect-ratio: 4 / 3;
  margin-left: 0.4rem;
  background: linear-gradient(var(--flag-blue), var(--flag-blue)) center / 37.5% 50% no-repeat, var(--flag-white);
}
.brand__mark::before {
  content: "";
  position: absolute;
  left: -0.45rem;
  top: -0.35rem;
  bottom: -0.7rem;
  width: 3px;
  border-radius: 2px;
  background: var(--brass-light);
}

.site-nav { width: 100%; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;

}
.site-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.4rem 0.9rem;
  border: 2px solid rgba(247, 242, 232, 0.22);
  border-radius: 0.4rem;
  color: var(--on-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
}
.site-nav a:hover { background: rgba(247, 242, 232, 0.08); text-decoration: underline; }
.site-nav a[aria-current="page"] { border-color: var(--brass-light); }
.site-nav .site-nav__cta { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.site-nav .site-nav__cta:hover { background: #ffd65a; }

@media (min-width: 48rem) {
  .site-nav { width: auto; }
  .site-nav ul { display: flex; gap: 0.35rem; }
  .site-nav a { border-color: transparent; }
  .site-nav a[aria-current="page"] {
    border-color: transparent;
    border-radius: 0.4rem 0.4rem 0 0;
    box-shadow: inset 0 -3px 0 var(--brass-light);
  }
}

/* ---------- 6. Buttons ---------- */
.btn {

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0.8rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 0.5rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }

.btn--signal {
  background: var(--signal);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 0.3rem 0 var(--rope-dark);
}
.btn--signal:hover { box-shadow: 0 0.4rem 0 var(--rope-dark); }

.btn--ghost {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(247, 242, 232, 0.75);

}
.btn--ghost:hover { background: rgba(247, 242, 232, 0.1); }

.btn--ink {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
  box-shadow: 0 0.3rem 0 var(--brass);
}

.btn--block { width: 100%; }
.btn__arrow { transition: transform 0.15s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- 7. Type helpers ---------- */
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.8rem;
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.eyebrow--light { color: var(--brass-light); }

.log-no {
  display: inline-block;
  padding: 0.1rem 0.55rem;

  border: 2px solid currentColor;
  border-radius: 0.3rem;
  letter-spacing: 0.08em;
}

.lead { font-size: var(--text-lead); line-height: 1.5; }

.tag {
  display: inline-block;
  margin: 0;
  padding: 0.25rem 0.75rem;
  border-radius: 0.3rem;
  background: var(--ink);
  color: var(--on-dark);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 2.1rem; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.22em;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%23e2b866' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}
.ticks--light li::before {

  background: var(--brass-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%2310212f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 72% no-repeat;
}

/* ---------- 8. Signal flags & numeral pennants ---------- */
.flag-frame {
  display: block;
  filter:
    drop-shadow(1px 0 0 var(--ink))
    drop-shadow(-1px 0 0 var(--ink))
    drop-shadow(0 1px 0 var(--ink))
    drop-shadow(0 -1px 0 var(--ink));
}

.flag {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--flag-white);
}
/* S: white, blue square */
.flag--s { background: linear-gradient(var(--flag-blue), var(--flag-blue)) center / 37.5% 50% no-repeat, var(--flag-white); }
/* T: red, white, blue vertical */
.flag--t { background: linear-gradient(90deg, var(--flag-red) 0 33.34%, var(--flag-white) 33.34% 66.67%, var(--flag-blue) 66.67%); }
/* A: white and blue swallowtail */
.flag--a {
  background: linear-gradient(90deg, var(--flag-white) 0 50%, var(--flag-blue) 50%);
  clip-path: polygon(0 0, 100% 0, 72% 50%, 100% 100%, 0 100%);
}
/* N: blue and white checks */
.flag--n { background: repeating-conic-gradient(var(--flag-white) 0 25%, var(--flag-blue) 0 50%) 0 0 / 50% 50%; }
/* D: yellow, blue, yellow horizontal */

.flag--d { background: linear-gradient(var(--flag-yellow) 0 25%, var(--flag-blue) 25% 75%, var(--flag-yellow) 75%); }
/* F: white, red diamond */
.flag--f::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--flag-red);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.pennant {
  display: block;
  width: 4.25rem;
  height: 2.5rem;
  clip-path: polygon(0 0, 100% 40%, 100% 60%, 0 100%);
}
.pennant--1 { background: radial-gradient(circle at 1.15rem 50%, var(--flag-red) 0 0.62rem, var(--flag-white) 0.65rem); }
.pennant--2 { background: radial-gradient(circle at 1.15rem 50%, var(--flag-white) 0 0.62rem, var(--flag-blue) 0.65rem); }
.pennant--3 { background: linear-gradient(90deg, var(--flag-red) 0 33.34%, var(--flag-white) 33.34% 66.67%, var(--flag-blue) 66.67%); }
.pennant--4 {
  background:
    linear-gradient(var(--flag-white), var(--flag-white)) 1rem 0 / 0.55rem 100% no-repeat,
    linear-gradient(var(--flag-white), var(--flag-white)) 0 50% / 100% 0.55rem no-repeat,
    var(--flag-red);
}

/* The hoist: flags on a rope halyard */
.hoist {
  position: relative;
  display: flex;
  gap: clamp(0.3rem, 1.2vw, 0.6rem);
  max-width: 31rem;

  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.8rem 0.5rem 0;
}
.hoist::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  border-radius: 2px;
  background: var(--rope);
}
.hoist__item {
  position: relative;
  flex: 1 1 0;
  max-width: 3.1rem;
  transform-origin: 50% -0.8rem;
}
.hoist__item::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 2px;
  height: calc(0.8rem - 4px);
  margin-left: -1px;
  background: var(--brass-light);
}

@media (prefers-reduced-motion: no-preference) {
  .hoist__item { animation: sway 7s ease-in-out infinite; }

  .hoist__item:nth-child(even) { animation-delay: -3.5s; }
  .hoist__item:nth-child(3n) { animation-duration: 8.5s; }
}
@keyframes sway {
  0%, 100% { transform: rotate(-2.5deg); }
  50% { transform: rotate(2.5deg); }
}

/* ---------- 9. Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section--chart,
.page-head--chart {
  background-color: var(--paper);
  background-image: var(--grid-light);
  background-size: 2.75rem 2.75rem;
}
.page-head--chart { background-color: var(--paper-2); }
.section--sand { background: var(--paper-2); }
.section--harbour { background: var(--harbour); }
.section--navy { background: var(--navy); }

.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head > :last-child { margin-bottom: 0; }
.section-head .lead { color: var(--ink-soft); }

/* ---------- 10. Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--navy);
  background-image: radial-gradient(48rem 26rem at 88% -8%, rgba(201, 151, 59, 0.22), transparent 65%), var(--grid-dark);

  background-size: auto, 3.5rem 3.5rem, 3.5rem 3.5rem;
  padding-block: clamp(2.75rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
}

.hero__inner { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center; }
@media (min-width: 62rem) {
  .hero__inner { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}

.hero__kicker { max-width: 32rem; margin-bottom: 1rem; font-weight: 700; color: var(--brass-light); }

.hero__title {
  max-width: 14ch;
  margin-bottom: 1.5rem;
  font-size: var(--h1);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero__title em { font-style: italic; font-weight: 600; color: var(--brass-light); }

.hero__lead {
  max-width: 36rem;
  margin-bottom: 2rem;
  font-size: var(--text-lead);
  line-height: 1.5;
  color: var(--on-dark-soft);
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__actions .btn { flex: 1 1 15rem; }
@media (min-width: 40rem) {
  .hero__actions .btn { flex: 0 1 auto; }

}

.hero__note {
  max-width: 34rem;
  margin: 2.25rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 242, 232, 0.22);
  font-size: var(--text-sm);
  color: var(--on-dark-soft);
}
.hero__note strong {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15em;
  color: var(--on-dark);
}

/* The ship's-log card */
.logcard {
  --focus-ring: var(--ink);
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 30rem;
  padding: 2rem 1.5rem 1.5rem 3.5rem;
  color: var(--ink);
  background-color: var(--paper);
  background-image: linear-gradient(90deg, transparent 2.35rem, rgba(179, 38, 30, 0.5) 2.35rem, rgba(179, 38, 30, 0.5) calc(2.35rem + 2px), transparent calc(2.35rem + 2px));
  border-radius: 0.5rem;
  box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.1);
  transform: rotate(-1deg);
}

.logcard::before {
  content: "";
  position: absolute;
  top: -0.6rem;
  left: 50%;
  width: 5.5rem;
  height: 1.2rem;
  margin-left: -2.75rem;
  border-radius: 0.3rem;
  background: var(--rope);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}
.logcard__kicker {
  margin-bottom: 0.35rem;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.logcard__title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 1.4rem + 1vw, 2.2rem);
  line-height: 1.1;
}
.logcard__list { list-style: none; margin: 0 0 1.25rem; padding: 0; counter-reset: log; }
.logcard__list li {
  position: relative;
  counter-increment: log;
  padding: 0.7rem 0;

  border-bottom: 1px dashed var(--line);
  line-height: 1.4;
}
.logcard__list li::before {
  content: counter(log);
  position: absolute;
  left: -2.25rem;
  top: 0.7rem;
  width: 1.6rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--alert);
}
.logcard__cat { display: block; font-weight: 700; font-size: var(--text-sm); color: var(--brass-deep); }
.logcard__foot { margin: 0; font-style: italic; color: var(--ink-soft); }

/* ---------- 11. Promises strip ---------- */
.assurances { padding-block: 1.75rem; background: var(--paper-2); border-bottom: 2px solid var(--line); }
.assurances__list {
  gap: 1.25rem 2rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  line-height: 1.45;
}
.assurances__list strong { display: block; font-family: var(--font-display); font-size: 1.2em; }

/* ---------- 12. Features ---------- */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; }
@media (min-width: 50rem) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.45rem 0.45rem 0 var(--brass);
}
.feature__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--paper-2);
  border-bottom: 2px solid var(--ink);
}
.feature__no { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--brass-deep); }
.feature__body { display: flex; flex: 1; flex-direction: column; padding: 1.5rem 1.5rem 1.75rem; }
.feature__title { margin-bottom: 0.6rem; font-size: var(--h3); }
.feature__body > p { margin-bottom: 1.25rem; }
.feature .ticks { margin-top: auto; padding-top: 1.25rem; border-top: 1px dashed var(--line); }

/* ---------- 13. How it works ---------- */
.howto {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: how;
  display: grid;

  gap: 2rem;
}
.howto li { position: relative; counter-increment: how; padding-top: 4.5rem; }
.howto li::before {
  content: counter(how);
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  box-shadow: 0 0 0 4px var(--paper-2), 0 0 0 7px var(--brass);
}
.howto h3 { margin-bottom: 0.5rem; }
.howto p { margin: 0; color: var(--ink-soft); }

@media (min-width: 52rem) {
  .howto { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
  .howto::before {
    content: "";
    position: absolute;
    top: 1.45rem;
    left: 1.6rem;
    right: 12%;

    height: 0.35rem;
    border-radius: 0.2rem;
    background: var(--rope);
  }
}

/* ---------- 14. Partners ---------- */
.partners { display: grid; gap: clamp(2.5rem, 6vw, 4rem); }
@media (min-width: 60rem) {
  .partners { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: start; }
}
.partners__intro .lead { margin-bottom: 2rem; color: var(--on-dark-soft); }

.partner-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.partner-points li {
  padding: 1.25rem 1.5rem;
  background: rgba(247, 242, 232, 0.06);
  border-left: 0.35rem solid var(--brass-light);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.partner-points h3 { margin-bottom: 0.4rem; font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.6rem); }
.partner-points p { margin: 0; color: var(--on-dark-soft); }
.partners__note { margin: 1.5rem 0 0; font-style: italic; color: var(--on-dark-soft); }

/* ---------- 15. Guide cards ---------- */
.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));

}
.guide-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.5rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.guide-card:hover,
.guide-card:focus-within { transform: translateY(-3px); box-shadow: 0 0.45rem 0 var(--brass); }
.guide-card__tag { align-self: flex-start; margin-bottom: 1rem; }
.guide-card h3 { font-size: clamp(1.4rem, 1.25rem + 0.5vw, 1.7rem); }
.guide-card h3 a { color: var(--ink); text-decoration: none; }
.guide-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.guide-card h3 a:hover { text-decoration: underline; }
.guide-card p { color: var(--ink-soft); }
.guide-card .guide-card__tag { color: var(--on-dark); }
.guide-card__meta {
  margin: auto 0 0;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: var(--text-sm);
  font-weight: 700;
}
.guide-card .guide-card__meta { color: var(--brass-deep); }

/* ---------- 16. Newsletter signup ---------- */
.signup-grid { display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: start; }

@media (min-width: 60rem) {
  .signup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
}
.signup-intro .lead { margin-bottom: 1.75rem; color: var(--on-dark-soft); }
.signup-intro__sub { margin-bottom: 1rem; font-size: 1.35rem; color: var(--brass-light); }

.signup-form {
  --focus-ring: var(--ink);
  padding: clamp(1.4rem, 4vw, 2.25rem);
  color: var(--ink);
  background: var(--paper);
  border-top: 0.5rem solid var(--signal);
  border-radius: 0.75rem;
  box-shadow: 0 1.25rem 2.5rem rgba(0, 0, 0, 0.3);
}
.signup-form a:not(.btn) { color: var(--link); }

.field { margin: 0 0 1.4rem; }
fieldset.field { min-width: 0; padding: 0; border: 0; }
.field > label,
.field legend { display: block; margin-bottom: 0.45rem; padding: 0; font-weight: 700; }
.optional { font-weight: 400; color: var(--ink-soft); }
.hint { margin: 0.45rem 0 0; font-size: var(--text-sm); color: var(--ink-soft); }

input[type="text"],
input[type="email"],
select {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  padding: 0.7rem 0.95rem;
  font: inherit;

  color: var(--ink);
  background-color: #fff;
  border: 2px solid var(--ink-soft);
  border-radius: 0.45rem;
}
input[type="text"]:focus-visible,
input[type="email"]:focus-visible,
select:focus-visible { border-color: var(--ink); }

select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 3rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.55rem) 52%, calc(100% - 1.1rem) 52%;
  background-size: 0.45rem 0.45rem;
  background-repeat: no-repeat;
}

.choice { display: flex; align-items: flex-start; gap: 0.8rem; padding: 0.5rem 0; }
.choice input { flex: 0 0 auto; width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--flag-blue); }
.choice label { cursor: pointer; }
.choice--consent { margin: 0.25rem 0 1.5rem; padding: 1rem; background: var(--paper-2); border-radius: 0.45rem; }
.form-note { margin: 1rem 0 0; font-size: var(--text-sm); color: var(--ink-soft); }

/* ---------- 17. Sponsor slot ---------- */
.sponsor { padding-block: clamp(2.5rem, 6vw, 3.5rem); }
.sponsor__box {
  max-width: 50rem;
  margin-inline: auto;

  padding: 1.25rem clamp(1.25rem, 4vw, 2rem) 1.5rem;
  background: var(--card);
  border: 2px dashed var(--ink-soft);
  border-radius: var(--radius);
}
.sponsor__label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1rem;
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.sponsor__badge {
  display: inline-block;
  padding: 0.1rem 0.55rem;
  border: 2px solid var(--ink-soft);
  border-radius: 0.3rem;
  letter-spacing: 0.08em;
}
.sponsor__card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin: -0.5rem;
  padding: 0.5rem;

  color: var(--ink);
  text-decoration: none;
  border-radius: 0.45rem;
}
.sponsor__card:hover .sponsor__name { text-decoration: underline; }
.sponsor__logo {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 10rem;
  height: 4.5rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 0.4rem;
  font-weight: 700;
  color: var(--ink-soft);
}
.sponsor__text { flex: 1 1 16rem; }
.sponsor__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.sponsor__policy {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--text-sm);
  color: var(--ink-soft);
}

/* ---------- 18. Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark-soft); }
.site-footer__inner { padding-block: clamp(3rem, 7vw, 4.5rem) 2rem; }

.site-footer__top { display: grid; gap: 2rem; }

@media (min-width: 48rem) {
  .site-footer__top { grid-template-columns: 1fr auto; align-items: start; }
}
.site-footer .brand { font-size: 1.6rem; }
.site-footer__tagline { margin: 0.5rem 0 0; font-style: italic; }

.site-footer__nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 0.25rem 2rem;
}
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 700; }

.disclaimer {
  margin-top: 2.5rem;
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: rgba(247, 242, 232, 0.04);
  border: 2px solid rgba(226, 184, 102, 0.55);
  border-radius: var(--radius);
}
.disclaimer__title { margin-bottom: 0.6rem; font-size: 1.35rem; color: var(--brass-light); }
.disclaimer p { color: var(--on-dark); }

.emergency { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.emergency li { padding: 0.45rem 0.9rem; background: rgba(247, 242, 232, 0.08); border-radius: 0.4rem; color: var(--on-dark); }
.emergency strong { margin-right: 0.35rem; font-family: var(--font-display); font-size: 1.25em; color: var(--signal); }

.site-footer__legal {
  display: flex;

  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(247, 242, 232, 0.15);
  font-size: var(--text-sm);
}
.site-footer__legal p { margin: 0; }

/* ---------- 19. Shared portraits & panels ---------- */
.monogram {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 7px var(--brass);
}
.monogram--lg {
  width: clamp(8rem, 20vw, 11rem);
  height: clamp(8rem, 20vw, 11rem);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  box-shadow: 0 0 0 6px var(--card), 0 0 0 11px var(--brass);

}

.keypoints,
.panel {
  padding: clamp(1.25rem, 4vw, 1.75rem);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.45rem 0.45rem 0 var(--brass);
}
.keypoints__title,
.panel h3 { margin: 0 0 0.75rem; font-size: var(--h3); }
.panel p:last-child { margin-bottom: 0; }

.cta-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  background-color: var(--navy);
  background-image: radial-gradient(30rem 14rem at 100% 0, rgba(201, 151, 59, 0.25), transparent 70%);
  border-radius: var(--radius);
}
.cta-band__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.45rem, 1.3rem + 0.7vw, 1.9rem);
  line-height: 1.15;
  color: var(--on-dark);

}
.cta-band p { margin: 0; }
.cta-band p:not(.cta-band__title) { color: var(--on-dark-soft); }

/* ---------- 20. Page heads ---------- */
.page-head { padding-block: clamp(2.25rem, 6vw, 4rem) clamp(2rem, 5vw, 3rem); }
.page-head--chart { border-bottom: 2px solid var(--ink); }
.page-head--navy {
  background-color: var(--navy);
  background-image: radial-gradient(48rem 26rem at 88% -8%, rgba(201, 151, 59, 0.22), transparent 65%), var(--grid-dark);
  background-size: auto, 3.5rem 3.5rem, 3.5rem 3.5rem;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.page-head--navy h1 { max-width: 18ch; }
.page-head--navy .lead { max-width: 42rem; color: var(--on-dark-soft); }

.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: var(--text-sm);
}
.breadcrumbs li + li::before {
  content: "›";
  content: "›" / "";
  margin-right: 0.6rem;
  color: var(--ink-soft);
}
.breadcrumbs a { display: inline-block; padding-block: 0.2rem; }


.article-title { max-width: 22ch; margin-top: 1rem; font-size: clamp(2.25rem, 1.7rem + 2.6vw, 3.75rem); }
.standfirst { max-width: 40rem; font-size: var(--text-lead); line-height: 1.5; color: var(--ink-soft); }

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  margin: 2rem 0 0;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink);
}
.article-meta dt,
.profile__facts dt {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-deep);
}
.article-meta dd { margin: 0.15rem 0 0; font-weight: 700; }

.jumplinks { margin-top: 2rem; }
.jumplinks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.jumplinks a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 1rem;
  border: 2px solid rgba(247, 242, 232, 0.45);
  border-radius: 999px;
  font-weight: 700;

  font-size: var(--text-sm);
  text-decoration: none;
}
.jumplinks a:hover { background: rgba(247, 242, 232, 0.1); text-decoration: underline; }

/* ---------- 21. Article body ---------- */
.article-body { padding-block: clamp(2.5rem, 6vw, 4rem); }

.prose { line-height: 1.7; }
.prose > * { margin-block: 0; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { margin-top: 2.25em; font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.4rem); }
.prose > h3 { margin-top: 1.75em; }
.prose > h2 + *,
.prose > h3 + * { margin-top: 0.75em; }
.prose > .eyebrow + h2 { margin-top: 0; }
.prose :where(ul, ol):not([class]) { padding-left: 1.4em; }
.prose :where(ul, ol):not([class]) li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--brass-deep); font-weight: 700; }
.prose sup a { padding: 0 0.1em; font-weight: 700; text-decoration: none; }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.1rem; }
.steps li { position: relative; min-height: 2.5rem; padding-left: 3.5rem; counter-increment: step; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;

  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
}

.callout {
  padding: 1.25rem 1.5rem;
  background: #f8e6e3;
  border-left: 0.5rem solid var(--alert);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.callout--partner { background: #e3eeec; border-left-color: var(--harbour); }
.callout__title { margin: 0 0 0.5rem; font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.6rem); }
.callout ul { margin: 0.5rem 0 1rem; }
.callout > :last-child { margin-bottom: 0; }

.table-wrap { margin-top: 1.5em; }
.evidence { width: 100%; border-collapse: collapse; font-size: 0.95em; line-height: 1.5; }
.evidence th,
.evidence td { padding: 0.9rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.evidence thead th {
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.evidence thead th:first-child { border-top-left-radius: 0.45rem; }
.evidence thead th:last-child { border-top-right-radius: 0.45rem; }

.evidence tbody th { width: 26%; font-family: var(--font-display); font-size: 1.08em; line-height: 1.25; }
.evidence tbody tr:nth-child(even) { background: rgba(239, 230, 212, 0.55); }

.verdict {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border: 2px solid currentColor;
  border-radius: 0.3rem;
  font-weight: 700;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.verdict--yes { color: #1f4d1a; background: #e1eedd; }
.verdict--ask { color: #173a6b; background: #e1e9f5; }
.verdict--maybe { color: #5c3f06; background: #f6ead0; }
.verdict--no { color: #7d1d16; background: #f6e1df; }

@media (max-width: 40rem) {
  .evidence thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .evidence,
  .evidence tbody,
  .evidence tr,
  .evidence th,
  .evidence td { display: block; width: 100%; }
  .evidence tr {

    margin-bottom: 1rem;
    overflow: hidden;
    background: var(--card) !important;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
  }
  .evidence tbody th { width: 100%; background: var(--paper-2); }
  .evidence td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    font-size: var(--text-sm);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brass-deep);
  }
  .evidence tr > :last-child { border-bottom: 0; }
}

.checklist { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.checklist li { position: relative; padding-left: 2.4rem; }
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 0.25rem;

}
.print-tip { font-size: var(--text-sm); font-style: italic; color: var(--ink-soft); }

.author-box {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 0.25rem;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.author-box p { margin: 0; }
.author-box__name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.author-box__meta { font-size: var(--text-sm); color: var(--ink-soft); }

.references { font-size: var(--text-sm); line-height: 1.55; color: var(--ink-soft); }
.references__title { margin-bottom: 0.75rem; font-size: 1.5rem; color: var(--ink); }
.references ol { margin: 0; padding-left: 1.4em; }
.references li + li { margin-top: 0.6rem; }
.references li:target { background: #fff3c4; outline: 2px solid var(--signal); outline-offset: 4px; }

/* ---------- 22. About page ---------- */
.flag-key {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: clamp(0.3rem, 1.2vw, 0.7rem);
  max-width: 36rem;
}
.flag-key li {

  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.15rem, 1rem + 1vw, 1.6rem);
  line-height: 1;
}
.flag-key .flag-frame { margin-bottom: 0.5rem; }

.pennant-key { list-style: none; margin: 1.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.pennant-key li { display: flex; align-items: center; gap: 0.85rem; font-weight: 700; }

.profile { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 54rem) {
  .profile { grid-template-columns: 18rem minmax(0, 1fr); align-items: start; }
}
.profile__card {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 2.25rem 1.5rem 1.75rem;
  text-align: center;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0.45rem 0.45rem 0 var(--brass);
}
.profile__card .monogram { margin-bottom: 1.25rem; }
.profile__name { margin: 0; font-size: 1.6rem; }
.profile__role { margin: 0; font-weight: 700; color: var(--brass-deep); }
.profile__facts {
  display: grid;
  gap: 0.8rem;

  width: 100%;
  margin: 1.25rem 0 0;
  padding-top: 1.25rem;
  text-align: left;
  border-top: 1px dashed var(--line);
}
.profile__facts dd { margin: 0.1rem 0 0; font-size: var(--text-sm); }
.profile__body > .lead { color: var(--ink); }

.principles {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: order;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
}
.principles li {
  position: relative;
  counter-increment: order;
  padding: 1.5rem 1.5rem 1.5rem 4.75rem;
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
}
.principles li::before {
  content: counter(order);
  position: absolute;
  left: 1.25rem;
  top: 1.35rem;
  display: grid;

  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--brass-light);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--brass);
}
.principles h3 { margin-bottom: 0.4rem; font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.5rem); }
.principles p { margin: 0; color: var(--ink-soft); }

.split { display: grid; gap: clamp(3rem, 7vw, 5rem); }
@media (min-width: 56rem) {
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.split h2 { font-size: clamp(1.75rem, 1.45rem + 1.3vw, 2.4rem); }

.sponsor-list { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.sponsor-list li { padding: 1rem 1.25rem; background: var(--card); border: 2px dashed var(--ink-soft); border-radius: var(--radius); }
.sponsor-list strong { display: block; font-family: var(--font-display); font-size: 1.2em; }

/* ---------- 23. Preferences & accessibility modes ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


@media (prefers-contrast: more) {
  :root {
    --ink-soft: #1f2d38;
    --on-dark-soft: #f7f2e8;
    --line: #8c7c5f;
  }
}

@media (forced-colors: active) {
  .flag, .pennant, .brand__mark { forced-color-adjust: none; }
  .btn { border: 2px solid ButtonText; }
  .ticks li::before,
  .steps li::before,
  .howto li::before,
  .principles li::before { border: 1px solid CanvasText; }
}

/* ---------- 24. Print ---------- */
@media print {
  @page { margin: 16mm; }

  *, *::before, *::after {
    color: #000 !important;
    background: transparent !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  body { font-size: 12pt; line-height: 1.5; }

  .skip-link,

  .site-nav,
  .site-header::after,
  .hoist,
  .hero__actions,
  .logcard,
  .sponsor,
  .signup-section,
  .cta-band,
  .related,
  .jumplinks,
  .rope,
  .site-footer__nav,
  .brand__mark { display: none !important; }

  .page-head, .hero, .section { padding-block: 1rem; }
  .steps li::before, .principles li::before, .monogram { border: 1px solid #000; }
  .evidence thead th, .evidence tr, .keypoints, .panel, .feature, .guide-card, .profile__card { border: 1px solid #000; }
  .disclaimer { border: 1px solid #000; }

  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 90%; word-break: break-all; }

  h2, h3 { break-after: avoid; }
  .callout, .keypoints, .evidence tr, .checklist li, .disclaimer { break-inside: avoid; }
}
/* Borrowed from ChatGPT baseline: slim audience strip above the header */
.topbar { background: var(--harbour); color: var(--on-dark); font-size: var(--text-sm); padding: .4rem 0; text-align: center; }
.cards--list { grid-template-columns: 1fr !important; }
.signup-form input[type=email]{width:100%}
#signup-msg{margin:.75rem 0 0;font-weight:700}
