/* Kingdom Plots company site.
   Brand colours: black, green, white only. Green is a background behind black text,
   or an accent on black. Never green text on white. The grey is used only for
   empty picture slots, which the owner will replace with real pictures. */
:root {
  --black: #000000;
  --green: #A4F02B;
  --white: #FFFFFF;
  --slot: #E4E6DF;

  --font-heading: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Nunito Sans', 'Segoe UI', sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  --radius-button: 10px;
  --radius-card: 16px;
  --container: 1200px;
  --gutter: 16px;
}

@media (min-width: 600px) {
  :root { --gutter: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
  caret-color: var(--black);
}

::selection { background: var(--green); color: var(--black); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.1;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

p { margin: 0; }

a { color: inherit; text-underline-offset: 3px; }

a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  box-shadow: 0 0 0 7px var(--black);
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 10;
  padding: var(--space-3) var(--space-4);
  background: var(--green);
  color: var(--black);
  font-weight: 700;
}
.skip-link:focus { top: var(--space-2); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--space-7); padding-bottom: var(--space-7); }
@media (min-width: 900px) {
  .section { padding-top: var(--space-8); padding-bottom: var(--space-8); }
}

.measure { max-width: 60ch; }
.lead { font-size: 19px; }
@media (min-width: 600px) { .lead { font-size: 21px; } }

.section-title { font-size: clamp(28px, 3.4vw, 40px); }
.section-title--spaced { margin-bottom: var(--space-6); }
.section-intro { margin-top: var(--space-2); margin-bottom: var(--space-6); max-width: 60ch; }

.theme-dark { background: var(--black); color: var(--white); }
.theme-green { background: var(--green); color: var(--black); }
.rule-top { border-top: 2px solid var(--black); }
.theme-dark + .theme-dark { border-top: 1px solid var(--white); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: var(--space-3) var(--space-5);
  border: 2px solid transparent;
  border-radius: var(--radius-button);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-decoration: none;
  transition: transform 100ms cubic-bezier(0.23, 1, 0.32, 1);
}
.button:active { transform: scale(0.97); }
.button--green { background: var(--green); color: var(--black); }
.button--green:hover { border-color: var(--white); }
.theme-green .button--black:hover,
.button--black:hover { background: var(--white); color: var(--black); border-color: var(--black); }
.button--black { background: var(--black); color: var(--white); }
.button--outline { background: var(--black); color: var(--white); border-color: var(--white); }
.button--outline:hover { background: var(--white); color: var(--black); }

.button-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

/* ---------- Header ---------- */
.site-header { background: var(--black); color: var(--white); }
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-right: auto;
  min-height: 44px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  color: var(--white);
  text-decoration: none;
}
.brand img { width: 48px; }
@media (min-width: 600px) {
  .brand { font-size: 26px; }
  .brand img { width: 58px; }
}
.site-nav {
  order: 3;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-5);
  font-weight: 700;
  font-size: 16px;
}
@media (min-width: 960px) {
  .site-nav { order: 0; width: auto; }
}
.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--white);
  text-decoration: none;
}
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.site-nav a[aria-current="page"] { color: var(--green); }
.site-header .button { min-height: 44px; padding: var(--space-2) var(--space-4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: var(--white); }
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5) var(--space-7);
  align-items: flex-start;
  padding-top: var(--space-7);
  padding-bottom: var(--space-7);
}
.site-footer__about { flex: 1 1 280px; min-width: 0; }
.site-footer__name { font-family: var(--font-heading); font-weight: 700; font-size: 22px; }
.site-footer__about p { margin-top: var(--space-2); max-width: 40ch; }
.site-footer nav { display: flex; flex-direction: column; font-weight: 700; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.blank { overflow-wrap: anywhere; }

/* ---------- Picture slots (owner supplies the pictures) ---------- */
.picture-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--space-4);
  background: var(--slot);
  color: var(--black);
  border: 2px dashed var(--black);
  border-radius: var(--radius-card);
  font-weight: 700;
  text-align: center;
}
.ratio-16x9 { aspect-ratio: 16 / 9; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x3 { aspect-ratio: 4 / 3; }

.text-slot {
  padding: var(--space-5);
  border: 1px dashed var(--black);
  border-radius: var(--space-3);
}

/* ---------- Home: hero ---------- */
.hero { padding-top: var(--space-7); padding-bottom: var(--space-8); }
.hero h1 { max-width: 17ch; font-size: clamp(36px, 6vw, 76px); line-height: 1.03; }
.hero .lead { margin-top: var(--space-5); }
.hero .measure + .measure { margin-top: var(--space-3); }
.pillars-list {
  list-style: none;
  margin: var(--space-6) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-7);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
}
@media (min-width: 600px) { .pillars-list { font-size: 22px; } }
.pillars-list li { border-top: 3px solid var(--green); padding-top: var(--space-2); }
.hero .button-row { margin-top: var(--space-6); }

/* ---------- Grids ---------- */
.grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Films ---------- */
.film { display: flex; flex-direction: column; gap: var(--space-3); }
.film__frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  aspect-ratio: 16 / 9;
  padding: var(--space-4);
  background: var(--black);
  color: var(--white);
  border: 2px dashed var(--white);
  outline: 2px solid var(--black);
  border-radius: var(--radius-card);
  font-weight: 700;
  text-align: center;
}
.film__title { font-family: var(--font-heading); font-weight: 600; font-size: 20px; line-height: 1.2; }

/* ---------- Topic label ---------- */
.topic { font-weight: 700; font-size: 15px; }

/* ---------- Articles ---------- */
.articles { display: flex; flex-wrap: wrap; gap: var(--space-7); }
.articles__lead { flex: 3 1 520px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.articles__lead h2 { font-size: clamp(30px, 4.2vw, 50px); line-height: 1.05; }
.articles__lead p { font-size: 19px; max-width: 60ch; }
.articles__more { flex: 2 1 300px; min-width: 0; }
.articles__more h2 { font-size: 24px; margin-bottom: var(--space-2); }
.article-row {
  display: flex;
  gap: var(--space-4);
  align-items: center;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--black);
  text-decoration: none;
}
.article-row:last-child { border-bottom: 1px solid var(--black); }
.article-row:hover .article-row__title { text-decoration: underline; }
.article-row .picture-slot { flex: none; width: 104px; height: 80px; padding: var(--space-2); border-radius: var(--radius-button); font-size: 14px; }
.article-row__body { min-width: 0; }
.article-row__title { font-family: var(--font-heading); font-weight: 600; font-size: 18px; line-height: 1.2; }
@media (min-width: 600px) { .article-row__title { font-size: 20px; } }

/* ---------- Bordered cards (topics, pillars) ---------- */
.card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--white);
  color: var(--black);
  border: 2px solid var(--black);
  border-radius: var(--radius-card);
  text-decoration: none;
}
a.card:hover .card__title { text-decoration: underline; }
.card--green { background: var(--green); }
.card__title { font-family: var(--font-heading); font-weight: 700; font-size: 22px; line-height: 1.2; }
.icon { width: 36px; height: 36px; flex: none; }

/* ---------- Verse band ---------- */
.verse { max-width: 900px; margin: 0 auto; text-align: center; }
.verse blockquote {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1.15;
  text-wrap: balance;
}
.verse cite { display: block; margin-top: var(--space-5); font-style: normal; font-weight: 700; font-size: 18px; }

/* ---------- Research ---------- */
.study {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-card);
}
.study--dark { background: var(--black); color: var(--white); border: 2px solid var(--black); }
.study--blank { border: 2px dashed var(--black); }
.study__number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.study__title { font-family: var(--font-heading); font-weight: 700; font-size: 24px; line-height: 1.2; }

/* ---------- Debate ---------- */
.question {
  border-top: 3px solid var(--green);
  padding-top: var(--space-4);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.2;
}

/* ---------- Games band ---------- */
.games { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-7); }
.games__text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-4); align-items: flex-start; }
.games__text img { width: 200px; }
.games__text h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; }
.games__text p { font-size: 19px; max-width: 46ch; }
.games__scene { flex: 1 1 340px; min-width: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }

/* ---------- Article page ---------- */
.article { max-width: 760px; margin: 0 auto; padding: var(--space-7) var(--gutter); display: flex; flex-direction: column; gap: var(--space-5); font-size: 18px; line-height: 1.6; }
.article h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.05; }
.article .standfirst { font-size: 20px; }
.article h2 { margin-top: var(--space-4); font-size: clamp(24px, 3vw, 30px); line-height: 1.15; }
.article__byline { font-size: 16px; font-weight: 600; }
.article__byline span { display: block; font-weight: 400; }
.pull-verse { margin: var(--space-2) 0; padding: var(--space-6); background: var(--green); color: var(--black); border-radius: var(--radius-card); }
.pull-verse p { font-family: var(--font-heading); font-weight: 700; font-size: clamp(22px, 3.2vw, 32px); line-height: 1.2; text-wrap: balance; }
.pull-verse cite { display: block; margin-top: var(--space-4); font-style: normal; font-weight: 700; }
.panel { margin-top: var(--space-2); padding: var(--space-6) var(--space-5); border-radius: var(--radius-card); }
.panel h2 { margin: 0 0 var(--space-2); }
.panel--outline { border: 2px solid var(--black); box-shadow: inset 0 0 0 4px var(--green); }
.panel--dark { background: var(--black); color: var(--white); display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-6); }
.panel--dark > div { flex: 1 1 280px; min-width: 0; }

.read-next { display: flex; flex-direction: column; gap: var(--space-3); text-decoration: none; }
.read-next:hover .read-next__title { text-decoration: underline; }
.read-next__title { font-family: var(--font-heading); font-weight: 600; font-size: 22px; line-height: 1.2; }

/* ---------- About page ---------- */
.statement { border-top: 4px solid var(--black); padding-top: var(--space-4); }
.statement h2 { font-size: 18px; line-height: 1.2; }
.statement p { margin-top: var(--space-3); font-family: var(--font-heading); font-weight: 600; font-size: clamp(22px, 2.8vw, 32px); line-height: 1.22; text-wrap: balance; }
.split { display: flex; flex-wrap: wrap; gap: var(--space-6) var(--space-8); }
.split > * { flex: 1 1 340px; min-width: 0; }
.split--center { align-items: center; }
.stack { display: flex; flex-direction: column; gap: var(--space-4); }
.principle { background: var(--black); color: var(--white); border-radius: var(--radius-card); padding: var(--space-6); align-self: center; }
.principle p { margin-top: var(--space-3); font-family: var(--font-heading); font-weight: 600; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.25; text-wrap: balance; }
.why p { font-size: 19px; max-width: 58ch; }
.why p + p { margin-top: var(--space-3); }
.how-item { border-top: 3px solid var(--green); padding-top: var(--space-4); }
.how-item h3 { font-size: 22px; line-height: 1.2; }
.how-item p { margin-top: var(--space-2); }
.founder { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-8); }
.founder .picture-slot { flex: none; width: 200px; height: 200px; border-radius: 50%; }
.founder__text { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.founder__name { font-weight: 700; font-size: 20px; }
.contact-band { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5) var(--space-7); }
.contact-band > div { flex: 1 1 320px; min-width: 0; }
.contact-band__email { margin-top: var(--space-3); font-weight: 700; font-size: 22px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .button { transition: none; }
  .button:active { transform: none; }
}
