/* Pebble Paths coming soon. Token values come from scripts/build.py. */

:root {
  color-scheme: only light;
  --surface: #fbf8f3;
  --surface-alt: #f2ece3;
  --text: #2b2622;
  --text-muted: #5e5750;
  --border: #e4dbce;
  --path: #e8dfd2;
  --pebble-1: #7e9c83;
  --pebble-2: #c2957f;
  --pebble-3: #8da6bf;
  --pebble-4: #a89f93;
  --pebble-5: #cdb27a;
}

/* Site chrome: the page width, the header and the footer (doc 14,
   I:\My Drive\labs\planning_docs\14_site_chrome.md). This file is the same in saralearnlabs
   (templates/), tuitium (site/templates/) and pebble-paths/coming-soon (templates/); each site's
   checker warns when its copy differs from the others. Sizes and spacing live here only. A site's
   own stylesheet comes after this one and may change colours, never sizes or spacing.
   Colours use the five tokens every site has: --surface, --surface-alt, --text, --text-muted and
   --border. Light only. */

.wrap { width: 100%; max-width: 70rem; margin: 0 auto; padding: 0 1rem; }

@media (min-width: 48rem) {
  .wrap { padding: 0 2rem; }
}

/* Header: [logo] Site name on the left; the menu, then one or two action buttons, on the right.
   Phones: the menu wraps under the logo. No JavaScript, no hamburger. */

.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.brand svg { display: block; flex: none; width: 2.25rem; height: 2.25rem; }
.brand-name { font-size: 1.3rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.brand:hover .brand-name { text-decoration: underline; }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav li { margin: 0; }
.site-nav a:not(.button) {
  display: inline-block;
  padding: 0.3rem 0;
  border-bottom: 3px solid transparent;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}
.site-nav a:not(.button):hover { border-bottom-color: var(--border); }
.site-nav .nav-action .button { padding: 0.35rem 0.9rem; font-size: 0.95rem; line-height: 1.3; }
.site-nav li:not(.nav-action) + .nav-action { margin-left: 0.25rem; }

@media (max-width: 40rem) {
  .site-nav { width: 100%; }
  .site-nav li:not(.nav-action) + .nav-action { margin-left: 0; }
}

/* Footer: the site's links, the contact line, the company line, then the bottom bar with the
   copyright on the left and the version on the right (small and muted). Phones: the bottom bar
   stacks, copyright first. */

.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.site-footer p { margin: 0 0 0.75rem; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.footer-links li { margin: 0; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1.5rem;
  font-size: 0.875rem;
}
.footer-bottom:not(:first-child) { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.site-footer .footer-bottom p { margin: 0; }
.footer-bottom .copyright { color: var(--text); font-weight: 600; }
.footer-bottom .version { color: var(--text-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; }

@media (max-width: 40rem) {
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* Layout for the Pebble Paths coming-soon page. Colours come only from the tokens above.
   The page width, header and footer sizes are in chrome.css (above); this file only colours them. */

*, *::before, *::after { box-sizing: border-box; }

html { height: 100%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  overflow-wrap: break-word;
}

/* The header stays as quiet as the page: no line under it. */
.site-header { border-bottom-color: transparent; }

main {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 3rem;
  text-align: center;
}

.mark svg { display: block; width: min(16rem, 72vw); height: auto; }

h1 {
  margin: 1.75rem 0 0;
  font-size: clamp(2.2rem, 9vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.lost { margin: 1.5rem 0 0; }

a { color: var(--text); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; border-radius: 2px; }

/* The drawings: a few pebbles on a path, and the same on a small tile for the logo */

.d-bg { fill: var(--surface-alt); }
.d-path { fill: none; stroke: var(--path); stroke-width: 14; stroke-linecap: round; }
.d-logo-path { fill: none; stroke: var(--pebble-4); stroke-opacity: 0.35; stroke-width: 9; stroke-linecap: round; }
.d-p1 { fill: var(--pebble-1); }
.d-p2 { fill: var(--pebble-2); }
.d-p3 { fill: var(--pebble-3); }
.d-p4 { fill: var(--pebble-4); }
.d-p5 { fill: var(--pebble-5); }
