/* EvidentlySo site chrome: tokens, fonts, header and footer.
   Loaded on every page. New pages add site.css; pages carried over from the
   old site add legacy.css (their own content styles) before this file. */

@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 400; font-style: italic; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

/* Layout: one 1120px column; white, soft grey and one navy band per page.
   The "exhibit" idea: page labels, message numbers and fingerprints are set
   in mono, the way they appear in the PDF itself. */
:root {
  --ink: #1B2A41;          /* navy: text, headings, dark band */
  --ink-2: #2E3D55;        /* outgoing bubbles, hover on navy */
  --teal: #117E68;         /* links, primary buttons, labels */
  --teal-hover: #0E6E5B;
  --teal-light: #5FD3B8;   /* on navy only */
  --mint: #E3F4EF;
  --muted: #4A586D;
  --paper: #FFFFFF;
  --soft: #F5F7F9;
  --bubble: #EEF1F5;
  --line: #E1E6EC;
  --line-strong: #CBD3DD;
  --field: #8A96A8;
  --on-ink: #D3DAE3;
  --problem: #B42318;      /* only inside "what's wrong with screenshots" graphics */
  --problem-wash: #FDECEA;

  --f-body: "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --f-head: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, Menlo, monospace;

  --wrap: 1120px;
  --r-btn: 8px;
  --r-card: 12px;
  color-scheme: light;
}

.x-wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 600px) {
  .x-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}

.x-skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: var(--r-btn); }
.x-skip:focus { left: 16px; }

/* Header */
.x-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  font-family: var(--f-body);
}
.x-header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.x-brand { display: inline-flex; flex: none; align-items: center; gap: 8px; text-decoration: none; }
/* Site-wide beta notice (M-2026-10-30-192/-194), with the footer line. */
.x-beta { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1; color: var(--teal); border: 1px solid var(--teal); border-radius: 999px; padding: 3px 7px; }
.x-brand img { width: 168px; height: auto; display: block; }
.x-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.x-nav > a, .x-drop > summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px;
  color: var(--ink); text-decoration: none; font-size: 16px; border-radius: var(--r-btn); cursor: pointer;
}
.x-nav > a:hover, .x-drop > summary:hover { color: var(--teal); }
.x-nav > a[aria-current="page"] { color: var(--teal); font-weight: 700; }
.x-drop { position: relative; }
.x-drop > summary { list-style: none; }
.x-drop > summary::-webkit-details-marker { display: none; }
.x-drop > summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.x-drop[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.x-drop-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 260px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: 0 12px 32px rgba(27, 42, 65, .14); padding: 8px; display: grid;
}
.x-drop-panel a { display: block; padding: 10px 12px; border-radius: var(--r-btn); color: var(--ink); text-decoration: none; }
.x-drop-panel a small { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.x-drop-panel a:hover { background: var(--mint); }
.x-download {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px;
  background: var(--teal); color: #fff; text-decoration: none; font-weight: 700; font-size: 15px;
  border-radius: var(--r-btn); flex: none;
}
.x-download:hover { background: var(--teal-hover); }
.x-menu { display: none; margin-left: auto; }
.x-menu > summary {
  list-style: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 2px solid var(--ink); border-radius: var(--r-btn); font-weight: 700; color: var(--ink); cursor: pointer;
}
.x-menu > summary::-webkit-details-marker { display: none; }
.x-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper); border-bottom: 1px solid var(--line);
  padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px));
  display: grid; gap: 2px; box-shadow: 0 16px 32px rgba(27, 42, 65, .12);
}
.x-menu-panel a { display: block; padding: 12px 4px; color: var(--ink); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
.x-menu-panel .x-group { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 16px 4px 4px; }
@media (max-width: 960px) {
  .x-nav { display: none; }
  .x-menu { display: block; }
  .x-header-inner { gap: 12px; }
}
/* Fits a 360px phone with the Beta tag (no sideways scroll). */
@media (max-width: 420px) {
  .x-header-inner { gap: 8px; }
  .x-brand { gap: 6px; }
  .x-brand img { width: 116px; }
  .x-beta { font-size: 10px; padding: 3px 5px; }
  .x-menu > summary { padding: 0 10px; }
  .x-download { padding: 0 10px; font-size: 14px; }
}

/* Focus */
.x-header a:focus-visible, .x-header summary:focus-visible, .x-footer a:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}

/* Footer */
.x-footer { background: var(--ink); color: var(--on-ink); font-family: var(--f-body); margin-top: 0; }
.x-footer a { color: #fff; text-decoration: none; }
.x-footer a:hover { text-decoration: underline; }
.x-footer-top { display: grid; grid-template-columns: 1.2fr 3fr; gap: 48px; padding-block: 64px 40px; }
.x-footer-brand img { width: 180px; height: auto; display: block; }
.x-footer-brand p { margin: 16px 0 0; font-size: 15px; line-height: 1.5; }
.x-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.x-footer-cols h2 {
  margin: 0 0 12px; font-family: var(--f-mono); font-weight: 500; font-size: 12px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal-light);
}
.x-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.x-footer-cols .x-soon { color: var(--on-ink); font-size: 13px; }
.x-footer-bottom { border-top: 1px solid rgba(211, 218, 227, .25); padding-block: 24px 40px; font-size: 14px; line-height: 1.55; display: grid; gap: 8px; }
.x-footer-bottom p { margin: 0; max-width: 760px; }
@media (max-width: 860px) {
  .x-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .x-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Current section, and guards against the old stylesheet on carried-over pages */
.x-drop > summary[data-current] { color: var(--teal); font-weight: 700; }
.x-header ul, .x-footer ul { margin: 0; }
.x-footer li { margin: 0; }
.x-header a, .x-footer a { text-decoration-thickness: auto; }

/* Preview builds only */
.x-preview { background: #FFF4D6; color: #5C4400; font: 500 13px/1.4 var(--f-mono); text-align: center; padding: 8px 16px; }

/* Sale banner under the header (layout/header.html); the Worker shows it only
   during the sale (data-live-from/-until). */
.x-sale { background: var(--mint); color: var(--ink); border-bottom: 1px solid var(--line); }
.x-sale p { margin: 0; padding: 10px 20px; text-align: center; }
.x-sale a { color: var(--teal); }
