/* legalkiwicasinos.com
   A civic notice board: one plain statement of where the law stands, a timeline that shows where we are,
   then dated news. Cool paper, harbour ink, pounamu green for links, kowhai yellow only for "now". */

:root {
  --paper: #f5f8f7;
  --surface: #ffffff;
  --ink: #13232e;
  --muted: #4c5c66;
  --rule: #d3dcd9;
  --pounamu: #1b6a56;
  --pounamu-deep: #0e3a30;
  --kowhai: #e3b23c;
  --wash: #e6efeb;
  --sans: "Atkinson Hyperlegible", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --measure: 40rem;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: 2.375rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1a20;
    --surface: #15232b;
    --ink: #e4ecea;
    --muted: #a3b3b0;
    --rule: #2a3c44;
    --pounamu: #6cc3a8;
    --pounamu-deep: #0a2a23;
    --kowhai: #f0c75e;
    --wash: #16302a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--step-0)/1.7 var(--serif);
  font-optical-sizing: auto;
}
.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 48rem) { .wrap { padding: 0 2rem; } }

a { color: var(--pounamu); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--kowhai); outline-offset: 2px; border-radius: 2px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 10; }

h1, h2, h3, .wordmark, nav, .tagline, .dates, .crumb, time, .small, .toc, .checked, .here, table {
  font-family: var(--sans);
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: var(--step-3); margin: 0 0 0.75rem; }
h2 { font-size: var(--step-2); margin: 2.5rem 0 0.75rem; }
h3 { font-size: var(--step-1); margin: 2rem 0 0.5rem; }
.small { font-size: var(--step--1); color: var(--muted); }

/* masthead */
.masthead { border-bottom: 1px solid var(--rule); background: var(--surface); }
.masthead-inner { display: grid; gap: 0.25rem 2rem; padding-top: 1rem; padding-bottom: 0.75rem;
  grid-template-columns: 1fr; align-items: baseline; }
@media (min-width: 60rem) { .masthead-inner { grid-template-columns: auto 1fr; } }
.wordmark { font-weight: 700; font-size: var(--step-1); color: var(--ink); text-decoration: none; }
.tagline { margin: 0; color: var(--muted); font-size: var(--step--1); }
nav ul { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
@media (min-width: 60rem) { nav { grid-column: 1 / -1; } }
nav a { color: var(--ink); text-decoration: none; font-size: var(--step--1); font-weight: 700; padding: 0.25rem 0;
  border-bottom: 2px solid transparent; }
nav a:hover, nav a[aria-current="page"] { border-bottom-color: var(--pounamu); }
.draft-banner { margin: 0; padding: 0.4rem 1rem; background: var(--kowhai); color: #13232e; font: 700 var(--step--1) var(--sans); text-align: center; }

/* the current position: the one bold element */
.position { background: var(--pounamu-deep); color: #f2f7f5; padding: 2.5rem 0 2rem; }
.position h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); max-width: 22ch; margin-bottom: 1.25rem; }
.position-facts { margin: 0; padding: 0; list-style: none; max-width: 46rem; display: grid; gap: 0.6rem; }
.position-facts li { padding-left: 1.1rem; border-left: 3px solid var(--kowhai); font-size: var(--step-1); line-height: 1.5; }
.position .cite { color: #bfe3d6; font: 400 var(--step--1) var(--sans); white-space: nowrap; }
.position .checked { margin: 1.25rem 0 0; font-size: var(--step--1); color: #bfd6ce; }

/* timeline: a real sequence, so it is numbered by its order */
.timeline { padding: 2rem 0 1rem; border-bottom: 1px solid var(--rule); }
.timeline h2 { margin-top: 0; font-size: var(--step-1); }
.rail { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 0; }
.rail li { position: relative; padding: 0 0 1.1rem 1.75rem; border-left: 2px solid var(--pounamu); margin-left: 0.4rem; }
.rail li::before { content: ""; position: absolute; left: -0.45rem; top: 0.35rem; width: 0.8rem; height: 0.8rem;
  border-radius: 50%; background: var(--pounamu); }
.rail li.next { border-left-style: dashed; border-left-color: var(--rule); }
.rail li.next::before { background: var(--paper); border: 2px solid var(--muted); }
.rail li.now::before { background: var(--kowhai); box-shadow: 0 0 0 4px color-mix(in srgb, var(--kowhai) 35%, transparent); }
.rail time { display: block; font-size: var(--step--1); font-weight: 700; color: var(--muted); }
.rail .what { display: block; line-height: 1.45; }
.rail .here { display: inline-block; margin-top: 0.25rem; font-size: var(--step--1); font-weight: 700;
  background: var(--kowhai); color: #13232e; padding: 0 0.5rem; border-radius: 2px; }
@media (min-width: 60rem) {
  .rail { grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0 1rem; }
  .rail li { border-left: 0; border-top: 2px solid var(--pounamu); margin: 0; padding: 1.25rem 0 0; }
  .rail li.next { border-top-style: dashed; border-top-color: var(--rule); }
  .rail li::before { left: 0; top: -0.5rem; }
}

/* home: news and essentials */
.home-grid { display: grid; gap: 1rem 3rem; padding-top: 1rem; }
@media (min-width: 60rem) { .home-grid { grid-template-columns: 3fr 2fr; } }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-list li { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.news-list time { display: block; font-size: var(--step--1); color: var(--muted); }
.news-list a { font: 700 var(--step-1)/1.3 var(--sans); color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--pounamu); text-decoration: underline; }
.news-list p { margin: 0.3rem 0 0; color: var(--muted); }
.guides ul { list-style: none; margin: 0; padding: 0; }
.guides li { padding: 1rem 1.1rem; margin-bottom: 0.75rem; background: var(--wash); border-radius: 4px; }
.guides a { font: 700 var(--step-0)/1.35 var(--sans); }
.guides p { margin: 0.3rem 0 0; font-size: var(--step--1); color: var(--muted); line-height: 1.5; }
.home-intro { border-top: 1px solid var(--rule); margin-top: 2rem; }

/* documents */
.doc { padding-top: 2rem; padding-bottom: 3rem; }
.doc-head, .prose, .sources, .toc, .notice, .news-list.full { max-width: var(--measure); }
.crumb { margin: 0 0 0.5rem; font-size: var(--step--1); font-weight: 700; }
.standfirst { font-size: var(--step-1); line-height: 1.5; color: var(--muted); margin: 0 0 1rem; }
.dates { font-size: var(--step--1); color: var(--muted); margin: 0 0 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.toc { background: var(--wash); padding: 0.75rem 1.25rem; border-radius: 4px; margin-bottom: 1.5rem; font-size: var(--step--1); }
.toc-title { font-weight: 700; margin: 0 0 0.25rem; }
.toc ul { margin: 0; padding-left: 1.1rem; }
.prose p, .prose li { max-width: var(--measure); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin: 0.3rem 0; }
.prose blockquote { margin: 1.5rem 0; padding: 0.25rem 1.25rem; border-left: 3px solid var(--pounamu); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: var(--step--1); }
@media (max-width: 40rem) { .prose table { display: block; overflow-x: auto; } }
.prose th, .prose td { text-align: left; padding: 0.55rem 0.75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { background: var(--wash); }
.notice { background: var(--wash); border-left: 3px solid var(--kowhai); padding: 0.75rem 1.25rem; margin-bottom: 1.5rem; }
.sources { margin-top: 3rem; padding-top: 1rem; border-top: 2px solid var(--ink); }
.sources h2 { margin-top: 0; font-size: var(--step-1); }
.sources ul { padding-left: 1.1rem; font-size: var(--step--1); }
mark.hole { background: var(--kowhai); color: #13232e; padding: 0 0.25rem; }

/* footer */
.colophon { margin-top: 3rem; padding: 2rem 0 3rem; background: var(--surface); border-top: 1px solid var(--rule);
  font-size: var(--step--1); }
.colophon .help { font: 700 var(--step-0)/1.5 var(--sans); max-width: 46rem; }
.footer-links { list-style: none; padding: 0; display: flex; gap: 1.5rem; flex-wrap: wrap; font-family: var(--sans); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
