/* Ready or Not UK — independent UK preparedness information hub */
:root {
  --navy: #1a2744;
  --navy-deep: #121b30;
  --navy-soft: #2a3b61;
  --cream: #f6f1e6;
  --cream-dark: #ebe3d2;
  --paper: #fffdf8;
  --ink: #241f18;
  --muted: #5c564c;
  --orange: #c96b3c;
  --orange-deep: #a8522b;
  --line: #d9d0bd;
  --focus: #1a2744;
  --ok: #2b5a4a;
  --warn: #8a4b16;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(18, 27, 48, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Liberation Sans", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --space: 1.15rem;
  --max: 70rem;
  --narrow: 46rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 1.0625rem;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--navy-soft); }
a:hover { color: var(--orange-deep); }
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -40px;
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { top: 1rem; }

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

.disclosure-bar {
  background: var(--navy-deep);
  color: #f3ead8;
  font-size: 0.92rem;
  padding: 0.55rem 0;
}
.disclosure-bar a { color: #ffd7bf; }

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--navy);
  min-height: 44px;
}
.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
}
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  display: block;
}
.brand-tag {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  max-width: 16rem;
}

.nav-toggle {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy);
  font: inherit;
  font-weight: 650;
  padding: 0 0.85rem;
}
.nav-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; }

.site-nav {
  display: none;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.site-nav.is-open { display: block; }
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 1rem;
}
.site-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.45rem 0;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  border-bottom: 1px solid var(--cream-dark);
}
.nav-desc { display: none; }

@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .header-row { display: block; }
  .site-nav { display: block; border-top: 0; }
  .site-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 1.1rem;
    padding: 0 0 0.85rem;
  }
  .site-nav a {
    border: 0;
    min-height: 44px;
    font-size: 0.95rem;
  }
  .site-nav a[aria-current="page"] { color: var(--orange-deep); }
}

.hero {
  background:
    radial-gradient(circle at 10% 10%, rgba(201, 107, 60, 0.14), transparent 28%),
    linear-gradient(180deg, var(--navy) 0%, #243456 100%);
  color: #f7f1e6;
  padding: 3.2rem 0 3.4rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  line-height: 1.12;
  margin: 0 0 1rem;
  max-width: 16ch;
  font-weight: 700;
}
.hero .lede {
  font-size: 1.15rem;
  max-width: 42rem;
  color: #efe6d4;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.6rem; }
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.2rem;
  margin-top: 1.6rem;
  color: #d7d0c2;
  font-size: 0.92rem;
}
.trust-row span { display: inline-flex; align-items: center; gap: 0.4rem; }

.button, .button-secondary, button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
}
.button {
  background: var(--orange-deep);
  color: #fff;
}
.button:hover { background: #8f3d20; color: #fff; }
.button-secondary {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.hero .button-secondary { color: #fff; }
.button-ghost {
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--line);
}

.section { padding: 3rem 0; }
.section-alt { background: var(--paper); }
.section h2, .page-title, .article-header h1 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.8rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}
.section-intro { max-width: 44rem; color: var(--muted); margin-bottom: 1.5rem; }

.grid {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

.card, .guide-card, .tool-card, .equipment-card, .link-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.2rem 1.25rem 1.3rem;
}
.section-alt .card { background: #fff; }
.card h3, .guide-card h3, .tool-card h3 {
  font-family: var(--serif);
  color: var(--navy);
  margin: 0 0 0.45rem;
  font-size: 1.25rem;
}
.card p, .guide-card p { margin: 0 0 0.8rem; color: var(--muted); }
.card a.more, .guide-card a {
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--orange-deep);
  margin: 0 0 0.35rem;
}

.hub-grid .card { min-height: 10rem; }
.guide-card { display: flex; flex-direction: column; }
.guide-card .more { margin-top: auto; }
.draft-badge, .placeholder-badge, .ad-label, .official-badge, .suggestion-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-right: 0.35rem;
}
.draft-badge { background: #f1dfc3; color: #6a3b10; }
.placeholder-badge { background: #f6e1d5; color: #7a3414; }
.ad-label { background: #efe7d6; color: #3d3426; }
.official-badge { background: #d7ebe3; color: var(--ok); }
.suggestion-badge { background: #eee7d6; color: #5a4a2c; }

.tools-preview {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .tools-preview { grid-template-columns: 1.4fr 1fr; }
}
.meter {
  height: 10px;
  background: var(--cream-dark);
  border-radius: 999px;
  overflow: hidden;
}
.meter > span { display: block; height: 100%; background: var(--orange); width: 35%; }

.notice, .not-connected, .disclaimer {
  background: #fff7ea;
  border: 1px solid #e6d3b3;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  color: #4c3a22;
}
.not-connected { background: #f4eee3; }

.prose { max-width: var(--narrow); }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--navy); }
.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose .sources { font-size: 0.95rem; }
.article-header { padding: 2.2rem 0 0.5rem; }
.meta { color: var(--muted); font-size: 0.95rem; }

.equipment-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  background: var(--cream);
  border-radius: 12px;
  margin-bottom: 0.8rem;
}
.affiliate-box {
  border: 1px dashed #d9b898;
  background: #fff9f3;
  border-radius: 14px;
  padding: 1rem;
  margin: 1.2rem 0;
}
.affiliate-box .button { margin-top: 0.6rem; }

.page-hero {
  padding: 2.4rem 0 1.5rem;
}
.crumbs { font-size: 0.92rem; color: var(--muted); margin-bottom: 0.8rem; }
.crumbs a { color: var(--navy); }

.site-footer {
  background: var(--navy-deep);
  color: #ddd4c4;
  padding: 2.5rem 0 2rem;
  margin-top: 1rem;
}
.site-footer a { color: #f3d7c2; }
.footer-grid { display: grid; gap: 1.3rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.site-footer h2 { font-size: 1rem; color: #fff; margin: 0 0 0.6rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.35rem 0; }
.legal-note { margin-top: 1.5rem; font-size: 0.9rem; color: #c9c1b3; }

/* Kit builder */
.kit-layout { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .kit-layout { grid-template-columns: 17rem 1fr; align-items: start; }
}
.kit-controls, .kit-summary {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.kit-controls label, .fieldset-title {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin: 0.35rem 0;
}
.kit-controls select, .kit-controls input[type="number"],
input[type="email"], input[type="text"], input[type="url"], textarea {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 0.5rem 0.7rem;
  font: inherit;
  background: #fff;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.55rem 0;
  min-height: 44px;
}
.choice input { width: 1.25rem; height: 1.25rem; margin-top: 0.25rem; flex: none; }
.kit-item {
  border-bottom: 1px solid var(--cream-dark);
  padding: 0.95rem 0;
}
.kit-item:last-child { border-bottom: 0; }
.qty { font-weight: 750; color: var(--navy); }
.progress-num { font-family: var(--serif); font-size: 2rem; color: var(--navy); margin: 0; }
.kit-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1rem; }
.group-title {
  font-family: var(--serif);
  color: var(--navy);
  margin: 1.4rem 0 0.2rem;
}

.newsletter {
  display: grid;
  gap: 0.7rem;
}
.newsletter button { min-height: 48px; }

.timeline { display: grid; gap: 1rem; }
.timeline article {
  border-left: 4px solid var(--orange);
  padding: 0.2rem 0 0.2rem 1rem;
}

/* Print / PDF views hide commercial UI */
@media print {
  .skip-link, .disclosure-bar, .site-header, .site-footer,
  .hero-actions, .affiliate-box, .newsletter, .kit-actions,
  .ad-label, .nav-toggle, .button, .button-secondary { display: none !important; }
  body { background: #fff; }
  a { color: #000; text-decoration: none; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* November 2026 launch polish: compact mobile reading layout */
@media (max-width: 640px) {
  body { font-size: 1rem; line-height: 1.57; }
  .hero { padding: 2.1rem 0 2.4rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.6rem); line-height: 1.11; }
  .hero .lede { font-size: 1.02rem; }
  .section { padding: 2rem 0; }
  .section h2, .page-title, .article-header h1 { font-size: 1.7rem; line-height: 1.2; }
  .card, .guide-card, .equipment-card { padding: 1rem; }
  .kit-actions { gap: .55rem; }
}
