/* Hereandaway site stylesheet.
 *
 * Same sensibility as the app (PRD §11): dense, quiet, text-first.
 * Hairline rules, squared corners, no shadows, no gradients, no
 * animation. One accent, used sparingly. Chrome tokens mirror
 * shared/src/palette.ts CHROME exactly (cool near-white / graphite
 * grounds, cool grays, one period blue). Underline means clickable;
 * bold means emphasis or state, never decoration. There is no
 * JavaScript anywhere on this site, on purpose.
 */

:root {
  --bg: #eef0f3;
  --bg-raised: #f7f8fa;
  --rule: #cfd4da;
  --text: #1b1e23;
  --text-2: #5a616b;
  --accent: #2f5faf;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191b1e;
    --bg-raised: #212429;
    --rule: #3a3f46;
    --text: #e3e6ea;
    --text-2: #9aa1ab;
    --accent: #82aade;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  /* Same family feel as the app's chrome (Tahoma-first), sized for reading. */
  font: 14px/1.45 Tahoma, Verdana, Geneva, "Lucida Grande", "Segoe UI",
    sans-serif;
  -webkit-text-size-adjust: 100%;
}

body {
  max-width: 38rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

/* ------------------------------------------------------------------ header */

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 2rem;
}

.wordmark {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.wordmark:hover {
  color: var(--accent);
}

nav {
  font-size: 0.85rem;
}

nav a {
  color: var(--text-2);
  margin-left: 1rem;
}

nav a:hover {
  color: var(--accent);
}

/* Bold = state: the page you are on. */
nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--text);
}

/* -------------------------------------------------------------------- text */

h1 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1rem;
}

/* Section headings as ambient labels: lowercase, quiet, hairline above. */
h2 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: lowercase;
  color: var(--text-2);
  margin: 2.25rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.35rem;
}

p {
  margin-bottom: 0.85rem;
}

p.lede {
  font-size: 1rem;
  color: var(--text);
}

.muted {
  color: var(--text-2);
}

small,
.small {
  font-size: 0.85rem;
}

/* Underline = clickable, always. Hover strengthens the color. */
a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--text);
}

strong {
  font-weight: 700;
}

/* ------------------------------------------------------------------- lists */

ul,
ol {
  margin: 0 0 0.85rem 1.2rem;
}

li {
  margin-bottom: 0.35rem;
}

/* "What it refuses to do": a bordered well on the raised ground, rows
   separated by hairlines, like a panel in the app window. */
dl.refusals {
  margin: 0 0 1rem;
  border: 1px solid var(--rule);
  background: var(--bg-raised);
}

dl.refusals > div {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--rule);
}

dl.refusals > div:last-child {
  border-bottom: none;
}

dl.refusals dt {
  font-weight: 700;
}

dl.refusals dd {
  color: var(--text-2);
  margin: 0.1rem 0 0;
}

/* ------------------------------------------------------------------- cards */

.cards {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0;
}

.card {
  border: 1px solid var(--rule);
  background: var(--bg-raised);
  padding: 0.85rem 1rem;
}

.card h3 {
  margin: 0 0 0.2rem;
}

.card .meta {
  color: var(--text-2);
  font-size: 0.85rem;
}

/* ------------------------------------------------------------------ footer */

footer {
  margin-top: 3rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  font-size: 0.85rem;
  color: var(--text-2);
}

footer a {
  color: var(--text-2);
}

footer a:hover {
  color: var(--accent);
}
