/* SITE-1: getreshi.com. Light colours are the panel's warm paper default (apps/extension/sidebar.css :root);
   dark colours are the panel's nightfall theme (apps/extension/src/themes.ts). No web fonts are loaded:
   Nunito is used only when it is already installed, as in the panel's font stack. */
:root {
  color-scheme: light dark;
  --page: #f2ece3;
  --panel: #e9dfd0;
  --ink: #40372f;
  --muted: #695a4b;
  --line: #cfc1ac;
  --accent: #65415e;
  --dot: #aa725c;
  --folder1: #dadfc5;
  --folder2: #e6dcc6;
  --folder3: #dfd2df;
  --person1: #7b3853;
  --person2: #355d59;
  --on-accent: #f2ece3;
  font: 450 17px/1.6 Nunito, 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--page);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #22252b;
    --panel: #2d3139;
    --ink: #ece5dc;
    --muted: #b7b4b6;
    --line: #50545f;
    --accent: #d3c3e1;
    --dot: #d2a18a;
    --folder1: #394a49;
    --folder2: #504442;
    --folder3: #454254;
    --person1: #dbb5c8;
    --person2: #a9ccc4;
    --on-accent: #22252b;
  }
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }

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

/* Links and focus */
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; padding: .5rem .8rem; background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: 8px; z-index: 10; }
.skip-link:focus { top: 1rem; }

/* Draft banner (draft builds only) */
.draft-banner { margin: 0; padding: .7rem 1.25rem; text-align: center; font-weight: 650; color: var(--ink); background: var(--folder2); border-bottom: 3px solid var(--person1); }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--panel); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem; padding-top: .5rem; padding-bottom: .5rem; }
.brand { display: inline-flex; align-items: center; }
.brand img { display: block; width: 94px; height: 59px; }
.site-nav ul, .site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.nav-link { font-weight: 650; text-decoration: none; padding: .25rem 0; }
.nav-link:hover { text-decoration: underline; }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--dot); text-decoration-thickness: 3px; }

/* Content */
.page { padding-top: 2rem; padding-bottom: 3rem; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); overflow-wrap: anywhere; }
h1 { font-size: 2.1rem; font-weight: 700; letter-spacing: -.02em; margin: .5rem 0 1rem; }
h2 { font-size: 1.35rem; font-weight: 700; margin: 2.5rem 0 .75rem; }
h3 { font-size: 1.1rem; font-weight: 700; margin: 1.75rem 0 .5rem; }
p, li, td, th { overflow-wrap: anywhere; }
li { margin: .3rem 0; }
.effective { color: var(--muted); }
.lead { font-size: 1.15rem; }
.aside { color: var(--muted); font-style: italic; }
code { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: .9em; padding: .1em .3em; background: var(--folder3); border-radius: 4px; }

.hero { padding: 1rem 0 1.5rem; }
.hero h1 { font-size: 2.5rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; margin: 1.5rem 0; }
.button { display: inline-block; padding: .65rem 1.2rem; font-weight: 700; text-decoration: none; color: var(--on-accent); background: var(--accent); border-radius: 10px; }
.button:hover { text-decoration: underline; }

.cta { margin-top: 3rem; padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.cta h2 { margin-top: 0; }

/* Tables scroll inside their own region on narrow screens */
.table-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: .55rem .75rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
thead th { background: var(--panel); font-weight: 700; }
td.num, th.num { text-align: right; white-space: nowrap; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--panel); padding: 1.25rem 0; font-size: .95rem; }
.copyright { margin: .75rem 0 0; color: var(--muted); }

@media (max-width: 34rem) {
  :root { font-size: 16px; }
  h1, .hero h1 { font-size: 1.8rem; }
  .header-row { justify-content: flex-start; }
}
