:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --ink: #1d2a30;
  --muted: #56666e;
  --line: #d9d6cf;
  --accent: #1f4e5f;
  --accent-ink: #ffffff;
  --draft: #8a5a00;
  --draft-bg: #fff4d6;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14191c;
    --surface: #1e262a;
    --ink: #e8ecee;
    --muted: #9db0b8;
    --line: #34414a;
    --accent: #5fb0c9;
    --accent-ink: #0c1316;
    --draft: #f0c36a;
    --draft-bg: #3a2f14;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); background: var(--surface); }
header.site .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
header.site nav { display: flex; gap: 16px; margin-left: auto; align-items: center; flex-wrap: wrap; }
header.site nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
header.site nav a:hover { text-decoration: underline; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--surface); text-decoration: none; font-weight: 600; font-size: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { filter: brightness(1.06); }
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: center; padding: 48px 0 32px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 0 0 14px; }
.lead { font-size: 19px; color: var(--ink); margin: 0 0 18px; }
.cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.small { font-size: 14px; }
.muted { color: var(--muted); }
.heroplan { width: 100%; height: auto; }
.hp-bg { fill: var(--surface); stroke: var(--line); }
.hp-room { fill: #e4f0f3; stroke: none; }
@media (prefers-color-scheme: dark) { .hp-room { fill: #23343b; } }
.hp-line path { stroke: var(--ink); stroke-width: 6; stroke-linejoin: miter; }
.hp-open rect { fill: var(--surface); }
.hp-text text { fill: var(--ink); font-size: 14px; font-weight: 600; }
.hp-text .hp-small { fill: var(--muted); font-weight: 400; font-size: 12px; }
.hp-dim path { stroke: var(--muted); stroke-width: 1.2; }
.hp-dim text { fill: var(--muted); font-size: 11px; }
h2 { font-size: 28px; line-height: 1.2; margin: 40px 0 14px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cards article { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }
.who p { max-width: 70ch; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }
main.page { padding: 32px 0 16px; max-width: 760px; }
main.page h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 16px; }
.steps { padding-left: 22px; }
.steps li { margin-bottom: 8px; }
.draft { background: var(--draft-bg); color: var(--draft); border-radius: 8px; padding: 8px 12px; font-size: 14px; }
footer.site { margin-top: 56px; border-top: 1px solid var(--line); background: var(--surface); padding: 28px 0 40px; font-size: 15px; }
footer.site .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
footer.site h2 { margin: 0 0 8px; font-size: 14px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
footer.site a { color: var(--ink); text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .note { margin-top: 24px; color: var(--muted); max-width: 70ch; }
a:focus-visible, summary:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  header.site nav { margin-left: 0; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
blockquote { margin: 0; padding: 0 0 0 12px; border-left: 3px solid var(--line); }

/* Element styles: plain and document-like. Thin rules instead of boxes, small radii, no shadows or motion. */
.btn { min-height: 44px; padding: 0 18px; border-radius: 6px; }
.hero { padding: 48px 0 24px; gap: 40px; }
.hero h1 { letter-spacing: 0; }
.heroplan { filter: none; }
.facts { margin: 0 0 8px; color: var(--muted); font-size: 15px; }
h2 { margin-top: 48px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 24px; }
.hero + section h2, .hero + h2 { border-top: 0; }
.stepcards { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 32px; padding: 0; margin: 0; }
.stepcards li { counter-increment: step; }
.stepcards h3::before { content: counter(step) '. '; color: var(--muted); font-weight: 400; }
.stepcards p { margin: 0; color: var(--muted); }
.cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.cards article { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 14px 0 18px; }
.cards h3 { font-size: 17px; }
.faq details { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 12px 0; margin: 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; }
.faq p { margin: 8px 0 0; }
.finalcta { margin: 48px 0 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.finalcta h2 { margin: 0 0 6px; padding: 0; border: 0; font-size: 22px; }
.finalcta p { margin: 0 0 12px; color: var(--muted); }
.related ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.related h2 { font-size: 20px; }
main.page .lead { color: var(--ink); font-size: 19px; }

/* Language menu */
.langmenu { position: relative; }
.langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 15px; font-weight: 600; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu summary::after { content: ''; width: 6px; height: 6px; margin: -3px 0 0 4px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); }
.langmenu[open] summary { border-color: var(--accent); }
.langmenu ul { position: absolute; right: 0; top: calc(100% + 4px); z-index: 20; min-width: 160px; margin: 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.langmenu li a { display: block; padding: 10px 12px; border-radius: 4px; }
.langmenu li a:hover { background: var(--bg); text-decoration: none; }
.langmenu a[aria-current] { font-weight: 700; }
footer.site a[aria-current] { font-weight: 700; }
@media (max-width: 760px) { header.site nav { width: auto; margin-left: auto; } }

/* Headings stand out from the body text: accent colour and a short bar, not size */
h1, h3 { color: var(--ink); font-weight: 750; }
h2 { color: var(--accent); font-size: 26px; font-weight: 750; letter-spacing: 0; border-top: 0; padding-top: 0; margin-top: 56px; }
h2::before { content: ''; display: block; width: 44px; height: 4px; margin-bottom: 14px; background: var(--accent); border-radius: 2px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 750; }
main.page h1 { font-weight: 750; }
.cards p, .stepcards p, .faq p { color: var(--muted); }
.finalcta h2 { font-size: 24px; margin: 0 0 6px; }
.finalcta h2::before { display: none; }
.related h2 { font-size: 22px; }

blockquote pre { margin: 0; white-space: pre-wrap; font: inherit; }

/* Screenshots and the guide list */
figure { margin: 24px 0; }
figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }
.heroshot figure { margin: 0; }
.guides ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.guides li { border-top: 1px solid var(--line); padding: 14px 0 16px; display: flex; flex-direction: column; gap: 2px; }
.guides li a { font-weight: 700; color: var(--ink); text-decoration: none; font-size: 17px; }
.guides li a:hover { color: var(--accent); text-decoration: underline; }
.guides li span { color: var(--muted); font-size: 15px; }

@media (min-width: 761px) { .hero { grid-template-columns: 0.9fr 1.1fr; } }

footer.site h2::before { display: none; }
footer.site .note a { text-decoration: underline; }

/* Phones: the header stays on one row (brand left, language icon and planner button right) */
@media (max-width: 600px) {
  header.site .wrap { flex-wrap: nowrap; gap: 8px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
  header.site nav { flex-wrap: nowrap; gap: 8px; flex: 0 0 auto; }
  .brand { font-size: 18px; gap: 8px; min-width: 0; }
  .langmenu summary { padding: 0 10px; }
  .langmenu summary span { display: none; }
  header.site nav .btn { padding: 0 12px; font-size: 15px; white-space: nowrap; }
}
@media (max-width: 380px) {
  .brand { font-size: 17px; gap: 6px; }
  .brand img { width: 24px; height: 24px; }
  .langmenu summary { padding: 0 9px; }
  .langmenu summary::after { display: none; }
  header.site nav .btn { padding: 0 10px; font-size: 14px; }
}
@media (max-width: 340px) {
  .brand { font-size: 16px; }
  header.site nav .btn { padding: 0 8px; font-size: 13px; }
}
