/* Stone Guest ToolKit — information pages. One stylesheet, no fonts to download, no scripts.
   Palette from the logo (navy ink, mint); text colours meet WCAG AA. Works from 320 px. */

:root {
  --paper: #f4f3ee;
  --card: #fbfbf8;
  --ink: #1c3446;
  --muted: #4c5e6a;
  --rule: #d6d9d3;
  --accent: #2a7060;
  --mint: #6fbfa5;
  --mint-soft: #dcefe7;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Avenir Next", "Segoe UI Variable Text", "Segoe UI", "Helvetica Neue", "Noto Sans",
    Arial, sans-serif;
  --measure: 40rem;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0f1b24;
    --card: #152733;
    --ink: #e4ece9;
    --muted: #a9b8b4;
    --rule: #263b48;
    --accent: #7fd1b6;
    --mint-soft: #1b3a36;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.65 var(--sans);
}
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

.skip {
  position: absolute; left: -999px; top: 0; padding: 0.5rem 1rem;
  background: var(--card); color: var(--ink);
}
.skip:focus { left: 1rem; }

.wrap { max-width: 62rem; margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); background: var(--card); }
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-top: 0.75rem; padding-bottom: 0.75rem;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none;
  font-family: var(--serif); font-size: 1.2rem; line-height: 1.2;
}
.brand img { width: 44px; height: 44px; }
.brand small { display: block; font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.1rem; }
nav a { color: var(--ink); text-decoration: none; font-size: 0.95rem; padding: 0.2rem 0; border-bottom: 2px solid transparent; }
nav li + li { margin-top: 0; }
nav a:hover { color: var(--accent); }
nav a[aria-current="page"] { border-bottom-color: var(--mint); }

/* Body text */
main { padding: 2.5rem 0 3.5rem; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 0 0 1rem; max-width: 26ch; }
h2 { font-size: 1.55rem; margin: 2.75rem 0 0.75rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.4rem; }
p, ul, ol, dl { max-width: var(--measure); }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 36rem; }
.muted { color: var(--muted); }
li + li { margin-top: 0.3rem; }

/* Opening of the home page: text beside the logo, stacked on phones */
.opening { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: center; }
.opening img { width: 220px; justify-self: start; }
@media (min-width: 46rem) {
  .opening { grid-template-columns: 1fr 260px; }
  .opening img { width: 260px; justify-self: end; }
}

/* A plain numbered route through a study */
ol.route { list-style: none; padding: 0; counter-reset: step; max-width: 44rem; }
ol.route > li {
  counter-increment: step; position: relative; padding: 0 0 1.4rem 3.25rem;
  border-left: 2px solid var(--rule); margin: 0 0 0 1.1rem;
}
ol.route > li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.route > li::before {
  content: counter(step); position: absolute; left: -1.15rem; top: -0.1rem;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--card); border: 2px solid var(--mint);
  font: 600 1rem/2rem var(--serif); text-align: center; color: var(--ink);
}
ol.route h3 { margin-top: 0; }
ol.route p { margin: 0.25rem 0 0; }

/* Two columns of short sections where there is room */
.columns { display: grid; gap: 0 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .columns { grid-template-columns: 1fr 1fr; } }
.columns section h3 { margin-top: 1.5rem; }

/* A quiet aside */
.note {
  max-width: var(--measure); background: var(--mint-soft); border-left: 4px solid var(--mint);
  padding: 0.9rem 1.1rem; margin: 1.5rem 0;
}
.note p { margin: 0.3rem 0; }

/* Glossary */
dl.terms dt { font-weight: 600; margin-top: 1.1rem; }
dl.terms dd { margin: 0.2rem 0 0; color: var(--ink); }
.letters { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; padding: 0; list-style: none; }

/* Tables */
.table-scroll { overflow-x: auto; max-width: 48rem; }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 0.5rem 0.75rem 0.5rem 0; border-bottom: 1px solid var(--rule); }
th { font-weight: 600; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 1.5rem 0 2.5rem; font-size: 0.9rem; color: var(--muted); }
.site-foot p { margin: 0.25rem 0; max-width: none; }

/* 404 */
.lost { text-align: left; padding: 2rem 0; }
.lost img { width: 140px; }

@media print {
  .site-head nav, .skip { display: none; }
  body { background: #fff; color: #000; }
}
