:root {
  --bg: #f6f8f8;
  --card: #ffffff;
  --text: #17282c;
  --muted: #55686c;
  --line: #d9e2e3;
  --accent: #0d6a76;
  --accent-soft: #e3f0f1;
  --accent-fg: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101a1c;
    --card: #182528;
    --text: #e7eff0;
    --muted: #a3b5b8;
    --line: #2a3a3e;
    --accent: #5fb8c2;
    --accent-soft: #1d3337;
    --accent-fg: #0b1a1c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 "Segoe UI", system-ui, -apple-system, sans-serif;
}

a { color: var(--accent); }

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

header.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; }
header.top nav { display: flex; align-items: center; gap: 20px; font-size: 15px; }
header.top nav a { text-decoration: none; color: var(--muted); }
header.top nav a.button { color: var(--accent-fg); }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 21px; color: var(--text); text-decoration: none; }
.brand svg { width: 34px; height: 34px; flex: none; }

.hero { padding: 40px 0 56px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; }
.hero p { font-size: 19px; color: var(--muted); margin: 0 0 28px; }

.button { display: inline-block; background: var(--accent); color: var(--accent-fg); text-decoration: none; font-weight: 600; padding: 12px 22px; border-radius: 10px; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-left: 8px; }
.button.small { padding: 7px 14px; font-size: 14px; }

/* Stylised draft note shown next to the title: invented content only. */
.preview { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 12px 32px rgba(13, 106, 118, 0.12); font-size: 14px; }
.preview .bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.preview .rec { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; }
.preview .rec::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.preview h4 { margin: 12px 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--accent); }
.preview p { margin: 0; color: var(--text); }
.preview .flag { margin-top: 12px; background: #fff4e0; color: #8a5300; border-radius: 8px; padding: 8px 10px; font-size: 13px; }
@media (prefers-color-scheme: dark) { .preview .flag { background: #3a2c12; color: #f2c879; } }

section { padding: 44px 0; }
section h2 { font-size: 30px; margin: 0 0 8px; }
p.lead { color: var(--muted); margin: 0 0 26px; max-width: 760px; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 10px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.list li { padding-left: 30px; position: relative; }
.list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.band { background: var(--accent-soft); }
.cta { text-align: center; }
.cta p.lead { margin-left: auto; margin-right: auto; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
details + details { margin-top: 10px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }

@media (max-width: 820px) {
  .hero, .split { grid-template-columns: 1fr; }
  header.top nav a:not(.button):not(.lang) { display: none; }
  header.top { flex-wrap: wrap; }
}

@media (max-width: 560px) {
  .button.secondary { margin: 10px 0 0; }
  header.top nav a.button { display: none; }
  body { overflow-x: hidden; }
  section { padding: 30px 0; }
}

/* Opening section with the photo (Unsplash licence, see README). The photo sits on the right; a dark
   gradient on the left keeps the text readable. */
.hero-photo {
  padding: 0 0 72px;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(8, 32, 36, 0.92) 0%, rgba(8, 32, 36, 0.78) 42%, rgba(8, 32, 36, 0.15) 75%),
    url("hero.jpg") right top / cover no-repeat;
  min-height: 620px;
}
.hero-photo .brand { color: #ffffff; }
.hero-photo header.top nav a:not(.button) { color: rgba(255, 255, 255, 0.85); }
.hero-photo header.top nav a.button { background: #ffffff; color: #0d6a76; }
.hero-text { max-width: 600px; padding-top: 80px; }
.hero-text h1 { font-size: clamp(36px, 6vw, 60px); line-height: 1.08; margin: 0 0 20px; }
.hero-text p { font-size: 20px; color: rgba(255, 255, 255, 0.88); margin: 0 0 32px; }
.hero-photo .button { background: #ffffff; color: #0d6a76; }
.hero-photo .button.secondary { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.7); }
.draft { padding-top: 56px; }

@media (max-width: 820px) {
  .hero-photo {
    background:
      linear-gradient(180deg, rgba(8, 32, 36, 0.80) 0%, rgba(8, 32, 36, 0.88) 100%),
      url("hero.jpg") 65% center / cover no-repeat;
    min-height: 0;
  }
  .hero-text { padding-top: 40px; }
}

/* Example draft: source time next to each statement and the action bar. */
.preview p { font-size: 14.5px; line-height: 1.5; }
.preview .src { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent); font-size: 11.5px; font-weight: 600; white-space: nowrap; vertical-align: 1px; }
.preview .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.preview .actions span { padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.preview .actions .ghost { border: 1px solid var(--line); color: var(--muted); }
.preview .actions .approve { margin-left: auto; background: var(--accent); color: var(--accent-fg); }
.draft .list { margin-top: 8px; }
