/* ============================================================
   Prosperity in Every Postcode - site styles
   Palette drawn from the 2026 cover: Angel of the North against
   blue sky, weathered-steel rust, slate type panels, green field.
   Edit the variables below and the whole site follows.
   ============================================================ */
:root {
  --slate: #37434f;        /* primary dark - header, footer, quote bands */
  --slate-2: #46545f;      /* the cover's type-panel grey - panels */
  --accent: #b5502f;       /* weathered steel rust - buttons, rules */
  --accent-dark: #93401f;  /* deeper rust for hover */
  --accent-soft: #9dc0e6;  /* cover sky - accent on dark backgrounds */
  --field: #84a348;        /* cover field green - decorative rules only */
  --ink: #232a31;          /* body text */
  --muted: #61707d;        /* secondary text */
  --paper: #ffffff;
  --wash: #f3f6f9;         /* cool pale section background */
  --line: #dce4eb;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); line-height: 1.65; background: var(--paper); font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header / nav ---------- */
header.site {
  background: var(--slate); color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 1080px; margin: 0 auto; }
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: #fff; text-decoration: none; letter-spacing: .3px; }
.brand span { color: var(--accent-soft); }
nav.main { display: flex; gap: 26px; align-items: center; }
nav.main a { color: #e8ebf0; text-decoration: none; font-size: .95rem; }
nav.main a:hover, nav.main a.active { color: var(--accent-soft); }
nav.main a.btn { color: #fff; }
nav.main a.btn:hover { color: #fff; }
#nav-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.4); color: #fff; font-size: 1.3rem; padding: 2px 10px; border-radius: 6px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  font-weight: 600; text-decoration: none; padding: 12px 26px;
  border-radius: 6px; border: none; cursor: pointer; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.ghost { background: transparent; border: 2px solid #fff; color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--slate); }
.btn.on-light { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  /* Pure CSS: sky-to-slate in the cover's colours, with a soft rust sash set at
     the angle of the sculpture's wing. No raster background, so it stays sharp
     at every viewport width and never crops or upscales. */
  background-image:
    linear-gradient(115deg, rgba(181,80,47,0) 32%, rgba(181,80,47,.17) 45%, rgba(181,80,47,.17) 55%, rgba(181,80,47,0) 68%),
    linear-gradient(100deg, rgba(31,40,49,.97) 0%, rgba(38,52,66,.88) 46%, rgba(63,92,122,.58) 100%),
    linear-gradient(160deg, #b4cce6 0%, #7fa4ca 45%, #4a6a90 100%);
  color: #fff; padding: 76px 0 68px;
}
.hero .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.kicker { text-transform: uppercase; letter-spacing: 2.5px; font-size: .8rem; color: var(--accent-soft); font-weight: 700; margin-bottom: 14px; }
.hero h1 { font-family: var(--serif); font-size: 3rem; line-height: 1.12; margin-bottom: 18px; }
.hero .sub { font-size: 1.2rem; color: #e9eff6; margin-bottom: 10px; font-family: var(--serif); }
.hero .meta { color: #c2d2e2; font-size: .95rem; margin-bottom: 24px; }
.hero .blurb { color: #eaf0f6; max-width: 570px; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
/* Cover: sized by width only, height always auto. No aspect-ratio is declared,
   so the file's own proportions govern and the image can never be letterboxed
   or stretched, whatever version of it a browser happens to be holding. It
   grows with the viewport instead of sitting at a fixed size on large screens. */
.cover-slot { display: block; width: clamp(230px, 24vw, 380px); margin-left: auto; }
.cover-slot img {
  display: block; width: 100%; height: auto;
  border-radius: 4px; box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* ---------- Sections ---------- */
section { padding: 64px 0; }
section.wash { background: var(--wash); }
section.dark { background: var(--slate); color: #e6ecf2; }
section.dark h2 { color: #fff; }
section.dark h3 { color: var(--accent-soft); }
h2 { font-family: var(--serif); font-size: 2rem; color: var(--slate); margin-bottom: 18px; }
h3 { font-family: var(--serif); font-size: 1.25rem; color: var(--slate); margin: 26px 0 8px; }
.lede { font-size: 1.15rem; max-width: 780px; }
p + p { margin-top: 14px; }
.center { text-align: center; }
.center .lede { margin: 0 auto; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-top: 34px; }
.card { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 24px; }
.card h3 { margin-top: 0; }
.card .num { font-family: var(--serif); font-size: .85rem; color: var(--accent-dark); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; }
section.dark .card { background: var(--slate-2); border-color: rgba(255,255,255,.14); border-left-color: var(--accent-soft); color: #dde5ed; }
section.dark .card .num { color: var(--accent-soft); }

/* ---------- Numbered capability list ---------- */
.assess { counter-reset: cap; margin-top: 30px; display: grid; gap: 14px; }
.assess li { list-style: none; display: flex; gap: 16px; align-items: flex-start;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 18px 22px; }
section.dark .assess li { background: var(--slate-2); border-color: rgba(255,255,255,.14); }
.assess li::before {
  counter-increment: cap; content: counter(cap);
  font-family: var(--serif); font-weight: 700; font-size: 1.1rem;
  color: #fff; background: var(--accent); border-radius: 50%;
  min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
}
.assess .q { font-weight: 600; color: var(--slate); }
section.dark .assess .q { color: #fff; }
.assess .where { color: var(--muted); font-size: .93rem; display: block; margin-top: 2px; }
section.dark .assess .where { color: #b8c5d1; }

/* ---------- Chapter list ---------- */
.parts { margin-top: 30px; }
.part { margin-bottom: 34px; }
.part h3 { border-bottom: 2px solid var(--accent); display: inline-block; padding-bottom: 4px; }
.part p.remit { color: var(--muted); margin: 6px 0 12px; }
ol.chapters { list-style: none; counter-reset: none; }
ol.chapters li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; align-items: baseline; }
ol.chapters li:last-child { border-bottom: none; }
ol.chapters .n { font-family: var(--serif); color: var(--accent-dark); font-weight: 700; min-width: 2.2em; }
ol.chapters .t { font-weight: 600; color: var(--slate); }
ol.chapters .d { color: var(--muted); font-size: .95rem; }

/* ---------- Quote band ---------- */
.quoteband { background: var(--slate); color: #fff; padding: 56px 0; text-align: center; }
.quoteband blockquote { font-family: var(--serif); font-size: 1.55rem; line-height: 1.45; max-width: 860px; margin: 0 auto 12px; }
.quoteband cite { color: var(--accent-soft); font-style: normal; font-size: .95rem; }

/* ---------- Author ---------- */
.author-grid { display: grid; grid-template-columns: 300px 1fr; gap: 44px; align-items: start; }
.author-grid img { border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.15); }
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.svc { background: var(--wash); border: 1px solid var(--line); border-radius: 8px; padding: 18px 20px; }
.svc strong { color: var(--slate); display: block; margin-bottom: 4px; }
.svc a { font-size: .92rem; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 26px 28px; margin-bottom: 22px; }
.testimonial p.quote { font-family: var(--serif); font-size: 1.1rem; font-style: italic; color: var(--ink); }
.testimonial p.who { margin-top: 12px; font-weight: 600; color: var(--slate); font-size: .95rem; }
.testimonial p.who span { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Signup ---------- */
.signup { background: var(--wash); border-top: 4px solid var(--accent); }
.signup .inner { max-width: 640px; margin: 0 auto; text-align: center; }
.kit-slot { margin-top: 24px; }

/* ---------- Footer ---------- */
footer.site { background: var(--slate); color: #a9b6c2; padding: 40px 0; font-size: .92rem; }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
footer.site h4 { color: #fff; font-size: 1rem; margin-bottom: 10px; }
footer.site a { color: #ccd6e0; text-decoration: none; display: block; margin-bottom: 6px; }
footer.site a:hover { color: var(--accent-soft); }
footer.site .fine { text-align: center; margin-top: 30px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); }

/* ---------- Page head (inner pages) ---------- */
.pagehead {
  background-image:
    linear-gradient(115deg, rgba(181,80,47,0) 34%, rgba(181,80,47,.15) 46%, rgba(181,80,47,.15) 56%, rgba(181,80,47,0) 68%),
    linear-gradient(100deg, rgba(31,40,49,.97) 0%, rgba(38,52,66,.90) 50%, rgba(63,92,122,.62) 100%),
    linear-gradient(160deg, #a8c3e0 0%, #7099c2 45%, #47678d 100%);
  color: #fff; padding: 54px 0 44px;
}
.pagehead h1 { font-family: var(--serif); font-size: 2.4rem; }
.pagehead p { color: #ccd8e4; max-width: 760px; margin-top: 10px; font-size: 1.1rem; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero .wrap, .author-grid { grid-template-columns: 1fr; }
  .cover-slot { width: min(74vw, 300px); margin: 0 auto; }
  .hero h1 { font-size: 2.2rem; }
  footer.site .cols { grid-template-columns: 1fr; }
  #nav-toggle { display: block; }
  nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--slate); flex-direction: column; padding: 18px 24px; gap: 16px; }
  nav.main.open { display: flex; }
}
