/* Extremely Neutral: shared look for every page.
   Layout idea: a sidebar on the left (logo, serif nav with little icons, an outlined button),
   a full-bleed vertical gradient behind everything (each section gets its own "paint" colour),
   and big rounded tiles with serif labels and sticker-style art. */

:root {
  --chip: #d4b489;        /* Loud Beige, the logo's paint chip */
  --chip-ink: #3a2c1e;    /* the logo's brown */
  --paper: #efe6d6;
  --cream: #fbf4e8;
  --cream-dim: #e3d3bd;
  --tile: #221811;        /* dark tile fill */
  --tile-2: #2e2219;
  --tile-line: rgba(251, 244, 232, .14);
  --on: #b9d3a3;          /* "on air" green */
  --err: #f1a184;
  --radius: 26px;
  /* the page gradient; each section overrides these two */
  --top: #9b6a44;         /* toasted oat */
  --bottom: #2c2018;      /* espresso */
  /* text that sits straight on the page background (not in a tile) */
  --fg: var(--cream); --fg-dim: var(--cream-dim); --accent: var(--chip); --pill: rgba(0,0,0,.18);
  --serif: "Platypi", Georgia, "Times New Roman", serif;
  --mono: "Space Mono", ui-monospace, monospace;
}
body.lab   { --top: #5d6b58; --bottom: #1f241d; }  /* lab greige */
body.hosts { --top: #7f5864; --bottom: #261a20; }  /* dusty mauve */
body.legal { --top: #6d5a49; --bottom: #231a14; }  /* cocoa */

/* Background variants, picked by data-bg on <html>. Without it, the gradients above. */
html[data-bg="white"], html[data-bg="clipart"], html[data-bg="white"] body, html[data-bg="clipart"] body {
  --top: #fdfcf9; --bottom: #fdfcf9; --fg: #2a1f16; --fg-dim: #6b5a47; --accent: #8a6337; --pill: #f1e8da;
  /* softer, milk-chocolate tiles: the espresso ones were too stark on white */
  --tile: #7d6653; --tile-2: #8e7764; --tile-line: rgba(251, 244, 232, .22); --cream-dim: #f0e4d2; }
html[data-bg="color"] body.news  { --top: #e8673f; --bottom: #5a2f86; }  /* tangerine to grape */
html[data-bg="color"] body.lab   { --top: #1f9e8f; --bottom: #233a7a; }  /* teal to navy */
html[data-bg="color"] body.hosts { --top: #d9477a; --bottom: #4b2266; }  /* raspberry to plum */
html[data-bg="color"] body.legal { --top: #3f7fc4; --bottom: #3a2a72; }  /* blue to indigo */
html[data-bg="color"] body { --accent: #ffd27a; }
/* scattered tech clip art behind everything */
html[data-bg="clipart"] body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: url(clipart.svg) 120px 40px / 1500px auto repeat; opacity: .28; }
html[data-bg="white"] .tile, html[data-bg="clipart"] .tile, html[data-bg="white"] .card, html[data-bg="clipart"] .card {
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 14px 30px rgba(58,44,30,.14); }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bottom); }
body { margin: 0; min-height: 100vh; color: var(--fg); font-family: var(--mono); font-size: 14px; line-height: 1.55; }
body::before { content: ""; position: fixed; inset: 0; z-index: -2;
               background: linear-gradient(180deg, var(--top) 0%, var(--bottom) 100%); }
a { color: inherit; font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-color: var(--chip); }
:focus-visible { outline: 3px solid var(--chip); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button { font: inherit; color: inherit; }

/* ---------- shell: sidebar + stage ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); position: relative; z-index: 0; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; padding: 30px 26px 26px 34px; display: flex; flex-direction: column; gap: 34px; }
.brand { display: flex; align-items: center; gap: 18px; text-decoration: none; }
.brand img { width: 64px; height: 64px; border-radius: 10px; transform: rotate(-6deg);
             box-shadow: 0 0 0 4px var(--cream), 4px 6px 0 4px rgba(0,0,0,.25); }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 21px; line-height: 1.05; color: var(--fg); }
.brand small { display: block; font-family: var(--mono); font-weight: 400; font-size: 10px; letter-spacing: .14em;
               text-transform: uppercase; color: var(--accent); margin-top: 4px; }
.nav { display: flex; flex-direction: column; gap: 6px; }
.nav .gap { height: 16px; }
.nav a { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 20px;
         text-decoration: none; padding: 4px 0; color: var(--fg); }
.nav a svg { flex: none; width: 20px; height: 20px; }
.nav a:hover span, .nav a[aria-current="page"] span { text-decoration: underline; text-decoration-color: var(--chip);
         text-decoration-thickness: 3px; text-underline-offset: 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 16px; }
.outline { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; border: 2px solid var(--accent);
           color: var(--accent); padding: 9px 16px; font-family: var(--mono); font-size: 12px; font-weight: 700;
           letter-spacing: .12em; text-transform: uppercase; text-decoration: none; border-radius: 4px; }
.outline:hover { background: var(--chip); color: var(--chip-ink); }
.outline svg { width: 14px; height: 14px; }
.legal-links { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-dim); }
.legal-links a { font-weight: 400; color: var(--fg-dim); }

.stage { position: relative; padding: 32px 34px 48px 8px; max-width: 1240px; width: 100%; }

/* little hand-drawn marks floating on the background */
.doodle { position: absolute; z-index: -1; color: var(--accent); opacity: .75; pointer-events: none; }

/* ---------- tiles ---------- */
.tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tile); color: var(--cream);
        text-decoration: none; display: block; min-height: 220px; isolation: isolate; }
.tile .art { position: absolute; inset: 0; z-index: -1; transition: transform .35s ease; }
a.tile:hover .art { transform: scale(1.035); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
               background: linear-gradient(180deg, transparent 45%, rgba(18, 12, 8, .72) 100%); }
.tile-label { position: absolute; left: 24px; right: 24px; bottom: 20px; margin: 0; font-family: var(--serif);
              font-weight: 600; font-size: 28px; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,.35); }
.tile-label small { display: block; font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .02em;
                    margin-top: 6px; color: var(--cream-dim); text-shadow: none; }

/* stickers: anything with a cream die-cut border and a tilt */
.sticker { position: absolute; border: 5px solid var(--cream); border-radius: 12px; background: var(--paper);
           box-shadow: 3px 5px 0 rgba(0,0,0,.22), 0 12px 24px rgba(0,0,0,.18); object-fit: cover; }
.sticker.round { border-radius: 50%; }
.tape { position: absolute; padding: 6px 12px; background: var(--chip); color: var(--chip-ink); font-family: var(--mono);
        font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
        box-shadow: 2px 3px 0 rgba(0,0,0,.2); }

/* plain content cards (dark, same radius as the tiles) */
.card { background: var(--tile); color: var(--cream); border-radius: var(--radius); padding: 24px 26px; }
.card h2, .page h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0; }
.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--chip); margin: 0; }

/* text pages (hosts, privacy, terms) */
.page h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 6vw, 58px); line-height: 1; margin: 6px 0 10px; }
.page .lede { color: var(--fg-dim); margin: 0 0 28px; font-size: 15px; line-height: 1.6; max-width: 640px; }
.page .card { margin-bottom: 18px; max-width: 860px; }
.page .card p, .page .card li { font-size: 14px; line-height: 1.7; }
.page .card p { margin: 0 0 10px; }
.page .card h2 { margin-bottom: 10px; }
.page .card p:last-child, .page .card ul:last-child { margin-bottom: 0; }
.page ul { padding-left: 20px; margin: 0 0 10px; }
.page li { margin-bottom: 6px; }
.page .note { font-size: 12px; color: var(--fg-dim); line-height: 1.6; margin-top: 26px; max-width: 860px; }

/* ---------- phones and narrow windows: the sidebar becomes a header ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; min-width: 0; height: auto; padding: 18px 16px 6px; gap: 14px; }
  .brand img { width: 48px; height: 48px; box-shadow: 0 0 0 3px var(--cream), 3px 4px 0 3px rgba(0,0,0,.25); }
  .brand span { font-size: 19px; }
  .nav { flex-direction: row; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: none; }
  .nav::-webkit-scrollbar { display: none; }
  .nav .gap { display: none; }
  .nav a { flex: none; font-size: 15px; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--pill); }
  .nav a svg { width: 15px; height: 15px; }
  .nav a[aria-current="page"] { background: var(--chip); color: var(--chip-ink); }
  .nav a[aria-current="page"] span { text-decoration: none; }
  .side-foot { display: none; }
  .stage { padding: 12px 16px 40px; }
  .doodle { display: none; }
  .tile-label { font-size: 24px; left: 20px; bottom: 16px; }
  .card { padding: 20px 18px; border-radius: 20px; }
  .tile { border-radius: 20px; }
}
.mobile-foot { display: none; }
@media (max-width: 900px) {
  .mobile-foot { display: block; text-align: center; margin-top: 26px; font-size: 11px; letter-spacing: .1em;
                 text-transform: uppercase; color: var(--fg-dim); }
  .mobile-foot a { font-weight: 400; color: var(--fg-dim); }
}
@media (prefers-reduced-motion: reduce) { .tile .art { transition: none; } }
@media (max-width: 900px) {
  html[data-bg="clipart"] body::after { background-size: 1000px auto; opacity: .2; }
}

/* ---------- Subscribe pop-up (web/site.js) ---------- */
dialog.sub { width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; padding: 28px 28px 22px;
             border-radius: var(--radius); background: #fbf4e8; color: #2a1f16; box-shadow: 0 24px 60px rgba(30,20,12,.35);
             font-family: var(--mono); font-size: 14px; line-height: 1.55; }
dialog.sub::backdrop { background: rgba(42, 31, 22, .45); }
.sub-x { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent;
         font-size: 26px; line-height: 1; cursor: pointer; color: #6b5a47; }
.sub-x:hover { background: #efe3cf; }
.sub-kicker { margin: 0; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a6337; }
dialog.sub h2 { font-family: var(--serif); font-weight: 700; font-size: 28px; line-height: 1.1; margin: 4px 36px 8px 0; }
.sub-lede { margin: 0 0 14px; color: #5e4a36; }
.sub-url { display: flex; gap: 8px; }
dialog.sub .sub-url input[type=text] { flex: 1; min-width: 0; font: inherit; font-size: 13px; padding: 11px 14px; border: 2px solid var(--chip); border-radius: 999px;
                 background: #fff; color: #2a1f16; }
.sub-copy { border: 0; border-radius: 999px; padding: 11px 18px; background: var(--chip-ink); color: #fbf4e8; font-weight: 700; cursor: pointer; min-width: 92px; }
.sub-copy:hover { background: #5a4532; }
.sub-h { margin: 20px 0 8px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #8a6337; }
.sub-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.sub-apps a { text-decoration: none; padding: 8px 14px; border-radius: 999px; background: var(--chip); color: var(--chip-ink); font-size: 13px; }
.sub-apps a:hover { background: #e2c59d; }
.sub-steps { margin: 0; padding-left: 20px; color: #3a2c1e; }
.sub-steps li { margin-bottom: 4px; }
.sub-foot { margin: 16px 0 0; font-size: 12px; color: #6b5a47; }
.sub-foot a { font-weight: 400; }
