/* PinRead's three pages (privacy, terms, support).
 *
 * Billet's STRUCTURE, PinRead's look. The structure is Billet's: one header bar
 * (Lemonium mark + word, linking /), a breadcrumb, the app's icon with the page
 * title and a "last updated" line, a Privacy | Terms | Support pill, a readable
 * prose column, and one footer. The look is PinRead's own, and this file is the
 * only stylesheet the pages load — the site's site.css is NOT linked, because it
 * is Inter and the site's palette, and these pages must read as PinRead:
 *
 *   · teal #08706B (light) / #3CC4BC (dark) for links and the current tab only;
 *   · neutral greys for everything else; the system font, never a webfont;
 *   · the monospace face for anything the user can copy (a host name, a coordinate);
 *   · light and dark from prefers-color-scheme, one set of rules;
 *   · every text colour measured against its own background at >= 4.5:1
 *     (ratios in the round's report).
 *
 * THE COLUMN: 42em, the same readable measure Billet's prose column takes from
 * site.css (about 70 characters to the line at 17 px). Nothing here is a copy of
 * Billet's rules; the widths and rhythm were re-chosen for this file.
 */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --card: #f5f6f6;
  --ink: #1a1d1f;
  --muted: #5a6166;
  --line: #d8dcde;
  --teal: #08706b;
  --teal-soft: #e6f2f1;
  --focus: #08706b;

  --radius: 10px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121517;
    --card: #1a1e20;
    --ink: #f2f4f4;
    --muted: #a9b3b5;
    --line: #2a3134;
    --teal: #3cc4bc;
    --teal-soft: #12292a;
    --focus: #3cc4bc;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 20px;
}

a {
  color: var(--teal);
  text-underline-offset: 2px;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 10;
}
.skip:focus {
  left: 0;
}

/* the site's bar, as on lemonium.app: the mark and the word, nothing else */
header {
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
.brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}
.brand:hover {
  color: var(--teal);
}

/* breadcrumb: Home › PinRead › <page>, the middle one plain text (no /pinread/ page yet) */
.hero {
  padding: 26px 0 6px;
}
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  color: var(--muted);
}
.crumbs li + li::before {
  content: '›';
  margin-right: 8px;
  color: var(--muted);
}
.crumbs li[aria-current] {
  color: var(--ink);
}

/* the app icon beside the page title, with the app's name and the date under it.
 * GPSAPP-4d-1 ADD-ON: the icon row is Billet's — 56 px, radius 14, a hairline
 * border on the card colour, 18 px gap — with PinRead's own Logo A. The light
 * file is the teal tile; the dark one is the transparent teal mark, drawn only
 * in dark mode (both are 256 px for a 56 px slot). */
.lm-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0 0 24px;
}
.lm-app {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--card);
}
.lm-app-dark {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .lm-app-light {
    display: none;
  }
  .lm-app-dark {
    display: block;
  }
}
.lm-title h1 {
  margin: 0 0 4px;
  font-size: 1.85rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.lm-title .sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  text-wrap: pretty;
}
.lm-app-name {
  color: var(--ink);
  font-weight: 600;
}

/* Privacy | Terms | Support — one pill, the current one raised and unlinked */
.lm-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  width: fit-content;
  max-width: 100%;
  margin: 0;
  overflow-x: auto;
}
.lm-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.lm-tab:hover {
  color: var(--teal);
}
.lm-tab[aria-current] {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* the readable column.
 * GPSAPP-4d-1 ADD-ON (B80): this element ALSO carries .wrap, so it takes the
 * page's own column and its 20 px side padding. It used to set `padding: 8px 0
 * 40px`, which wiped that padding — at 390 px the prose sat at x = 0 while the
 * h1 sat at 20 — and it also set `max-width: 42em`, which at 1440 px centred a
 * column 10.5 px narrower than the hero above it. One column, one inset: the
 * block padding is all this rule adds. */
.prose {
  padding-block: 8px 40px;
}
.prose h2 {
  font-size: 1.12rem;
  line-height: 1.35;
  margin: 2.1em 0 0.5em;
}
.prose h2:first-child {
  margin-top: 1.2em;
}
.prose p,
.prose li {
  margin: 0 0 0.9em;
}
.prose ul,
.prose ol {
  padding-left: 1.25em;
  margin: 0 0 1.1em;
}
.prose li {
  margin-bottom: 0.55em;
}
.prose strong {
  font-weight: 600;
}

/* the promise and the contact block: a quiet card, not a shout */
.promise {
  border-left: 3px solid var(--teal);
  background: var(--card);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  font-weight: 600;
}
.box {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin: 1.6em 0;
}
/* the box carries its own heading (Who we are / Contact) — no prose gap above it */
.box h2 {
  margin: 0 0 0.4em;
  font-size: 1.05rem;
}
.box p:last-child {
  margin-bottom: 0;
}

/* anything the reader can copy: a host name, a coordinate, an example */
code,
.coord {
  font-family: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 0.92em;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* a question in the support FAQ */
.q {
  margin: 1.6em 0 0.3em;
  font-weight: 600;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}
/* the footer sits on the same column as everything else: block padding only
 * (GPSAPP-4d-1 ADD-ON — `padding: 22px 0 44px` wiped .wrap's 20 px side padding,
 * so the copyright line touched the screen edge on every page). */
.foot {
  padding-block: 22px 44px;
}
.foot p {
  margin: 0 0 10px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.foot a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

@media (max-width: 420px) {
  .lm-title h1 {
    font-size: 1.6rem;
  }
}
