/* Sonnook site. Colours match the app (app/src/theme.ts). No fonts, scripts or images from outside. */
:root {
  --bg: #f3faf9;
  --card: #ffffff;
  --border: #4f8f90;
  --divider: #c9dedb;
  --text: #0a1a1f;
  --dim: #4a6468;
  --primary: #17666b;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a1a1f;
    --card: #11262c;
    --border: #5e8789;
    --divider: #24434b;
    --text: #effaf8;
    --dim: #9bb8b8;
    --primary: #a8e6df;
  }
}
* { box-sizing: border-box; }
html { font-size: 100%; -webkit-text-size-adjust: 100%; color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}
a { color: var(--primary); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--card); color: var(--text);
  border: 2px solid var(--primary); padding: 0.6rem 1rem; z-index: 10;
}
.skip:focus { top: 1rem; }

.site-header, .site-footer, main { padding-left: 1rem; padding-right: 1rem; }
.site-header {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem; padding-top: 1rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--divider);
}
.brand { margin: 0; font-size: 1.5rem; font-weight: 700; }
.brand a { color: var(--text); text-decoration: none; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
nav a { display: inline-block; padding: 0.35rem 0; }
nav a[aria-current="page"] { font-weight: 700; }

main { max-width: 46rem; margin: 0 auto; padding-top: 1.5rem; padding-bottom: 3rem; }
.site-header, .site-footer { max-width: 46rem; margin-left: auto; margin-right: auto; }
.site-footer { border-top: 1px solid var(--divider); padding-top: 1.25rem; padding-bottom: 2.5rem; color: var(--dim); }
.site-footer p { margin: 0 0 0.75rem; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0.5rem 0 1rem; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 2.2rem 0 0.75rem; }
h3 { font-size: 1.2rem; line-height: 1.3; margin: 1.6rem 0 0.5rem; }
h4 { font-size: 1.05rem; margin: 1.3rem 0 0.4rem; }
h1[id], h2[id], h3[id], h4[id] { scroll-margin-top: 1rem; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.6rem; }
li { margin-bottom: 0.4rem; }
.lead { font-size: 1.25rem; }
.soon {
  display: inline-block; margin: 0.5rem 0; padding: 0.6rem 1rem;
  background: var(--card); border: 1px solid var(--border); border-radius: 0.5rem; font-weight: 600;
}
.points li { margin-bottom: 0.8rem; }

.table-wrap { margin: 0 0 1.25rem; overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border: 1px solid var(--border); }
th { background: var(--divider); }
@media (max-width: 40rem) {
  table, thead, tbody, tr, th, td { display: block; width: 100%; }
  thead { position: absolute; left: -9999px; }
  tr { border: 1px solid var(--border); margin-bottom: 0.75rem; background: var(--card); }
  td { border: 0; border-bottom: 1px solid var(--divider); }
  td:last-child { border-bottom: 0; }
  td:empty { display: none; }
  td::before { content: attr(data-label); display: block; font-weight: 700; color: var(--dim); font-size: 0.9rem; }
}
@media print { .skip, nav { display: none; } body { background: #fff; color: #0a1a1f; } }
