/* Corporate Gravity -- site styles.
   A straight-faced parody of a polished corporate intranet: clean modern
   product UI (cards, status badges, a KPI ticker) carrying absurd content.
   The sticky note uses the hand-lettering font the balloons use, served
   from this site (CSP 'self' only; no inline scripts or styles).
   /assets/ComicNeue-Bold-3e7e5fccfd.ttf is replaced with the hashed font URL at build time. */

@font-face {
  font-family: "Lettering";
  src: url("/assets/ComicNeue-Bold-3e7e5fccfd.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #eef1f7;
  --ink: #101828;
  --ink-2: #344054;
  --muted: #5d6779;            /* 5.6:1 on --bg */
  --line: #e2e6ee;
  --primary: #3651d4;          /* corporate blue, 6.1:1 on white */
  --primary-ink: #ffffff;
  --primary-soft: #e8ecfd;
  --ok: #0b7a52;  --ok-soft: #e3f6ee;
  --warn: #9a5b00; --warn-soft: #fff3d6;
  --down: #c0352b;
  --note: #ffe66d; --note-ink: #2b2100;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lift: 0 2px 4px rgba(16, 24, 40, 0.06), 0 16px 36px rgba(16, 24, 40, 0.1);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --letter: "Lettering", "Comic Neue", "Chalkboard SE", "Comic Sans MS", cursive;
}
/* Light is the default whatever the OS prefers (ADR-018). Dark applies only
   when the reader picks it with the header toggle (theme.js sets data-theme). */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d1220;
  --surface: #151c2e;
  --surface-2: #1c2438;
  --ink: #eef1f8;
  --ink-2: #c9d0de;
  --muted: #98a2b6;
  --line: #273149;
  --primary: #8ea2ff;
  --primary-ink: #0d1220;
  --primary-soft: #1f2a4d;
  --ok: #5fd6a4;  --ok-soft: #12352a;
  --warn: #f6c35b; --warn-soft: #3a2c0d;
  --down: #ff8a80;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.35), 0 16px 36px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans);
}
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--note); color: var(--note-ink); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; flex: 1 0 auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 8px 12px; }

/* --- memo bar ---------------------------------------------------------- */
.memo-bar { background: var(--ink); color: #e9edf5; font-size: 0.82rem; }
[data-theme="dark"] .memo-bar { background: #05080f; }
.memo-bar .wrap { padding-top: 7px; padding-bottom: 7px; display: flex; align-items: baseline; gap: 0; }
/* Rotating notices: one shown at a time (site.js picks and rotates them). */
.memos { display: inline; margin: 0; padding: 0; list-style: none; transition: opacity 0.4s ease; }
.memos li { display: none; }
.memos li.on { display: inline; }
.memos.fading { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .memos { transition: none; } }
.memo-bar .tag { flex-shrink: 0;
  display: inline-block; margin-right: 8px; padding: 1px 8px; border-radius: 999px;
  background: var(--note); color: var(--note-ink); font-weight: 700; font-size: 0.72rem;
  letter-spacing: 0.06em; text-transform: uppercase;
}

/* --- header ------------------------------------------------------------ */
.site-header {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
}
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px;
  padding-top: 12px; padding-bottom: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 42px; height: 42px; display: block; }
.wordmark { display: block; font-weight: 800; font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.15; }
.tagline { display: block; font-size: 0.78rem; color: var(--muted); }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-left: auto; }
.site-nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { background: var(--surface-2); color: var(--ink); }
.site-nav a.cta { background: var(--primary); color: var(--primary-ink); padding: 8px 16px; margin-left: 4px; }
.site-nav a.cta:hover { filter: brightness(1.08); }
@media (max-width: 640px) {
  .site-header { position: static; }
  .tagline { display: none; }
  .site-nav { margin-left: 0; width: 100%; justify-content: space-between; }
  .site-nav a { padding: 7px 10px; }
}

/* Language menu: a globe pill that opens a small list (<details>, no script). */
.lang-switch { position: relative; flex: none; }
.lang-switch summary {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 11px;
  border-radius: 999px; cursor: pointer; list-style: none;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary::after {            /* a small caret */
  content: ""; width: 6px; height: 6px; margin-left: 1px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.lang-switch[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.lang-switch summary:hover { color: var(--ink); background: var(--surface); }
.lang-switch summary svg { width: 16px; height: 16px; display: block; }
.lang-switch ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; min-width: 160px;
  margin: 0; padding: 6px; list-style: none;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-lift);
}
.lang-switch li a, .lang-switch li span {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.92rem;
  text-decoration: none; color: var(--ink-2); white-space: nowrap;
}
.lang-switch li a:hover { background: var(--surface-2); color: var(--ink); }
.lang-switch li span { color: var(--ink); font-weight: 700; background: var(--primary-soft); }
/* Theme toggle: shown only when theme.js runs (it removes `hidden`). It shows
   the moon on the light page and the sun on the dark one. */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 34px; height: 34px; padding: 0; border-radius: 999px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
}
.theme-toggle[hidden] { display: none; }
.theme-toggle:hover { color: var(--ink); background: var(--surface); }
.theme-toggle svg { width: 18px; height: 18px; display: block; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
@media (max-width: 640px) {
  /* Phone: name and switcher share the top row, the menu goes underneath. */
  .brand { flex: 1; min-width: 0; }
  .wordmark { font-size: 1.05rem; white-space: nowrap; }
  .lang-switch, .theme-toggle { order: 1; }
  /* Room for name, switcher and theme toggle on one 360px row. */
  .site-header .wrap { column-gap: 6px; }
  .brand { gap: 8px; }
  .brand img { width: 34px; height: 34px; }
  .theme-toggle { width: 30px; height: 30px; }
  .theme-toggle svg { width: 16px; height: 16px; }
  .site-nav { order: 2; }
  .lang-switch summary { height: 30px; padding: 0 9px; }
}
@media (max-width: 640px) {
  .site-nav a { font-size: 0.88rem; padding: 7px 8px; }
}

.preview-banner {
  margin: 0; padding: 8px 16px; text-align: center; font-weight: 700;
  background: var(--note); color: var(--note-ink);
}

/* --- KPI ticker --------------------------------------------------------- */
.ticker {
  overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line);
  font-size: 0.82rem; white-space: nowrap;
}
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; margin: 0; padding: 8px 0; list-style: none; }
.ticker li { padding: 0 22px; border-right: 1px solid var(--line); }
.ticker .k { color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }
.ticker .v { font-weight: 700; font-variant-numeric: tabular-nums; }
.ticker .v.up { color: var(--ok); }
.ticker .v.down { color: var(--down); }
.ticker .v.flat { color: var(--ink-2); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker ul[aria-hidden="true"] { display: none; }
}

/* --- a strip ----------------------------------------------------------- */
.strip { padding: 32px 0 16px; }
.strip-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px 24px; margin-bottom: 18px;
}
.strip-meta {
  margin: 0; color: var(--muted); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.strip h1 {
  margin: 4px 0 0; font-weight: 800; letter-spacing: -0.025em;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.1;
}
.strip .status { background: var(--note); color: var(--note-ink); padding: 0 6px; border-radius: 4px; }

.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.ok::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }

.art {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
}
.art img { display: block; width: 100%; height: auto; border-radius: 8px; }
.art { position: relative; }
.art::before {                     /* a paperclip holding the strip */
  content: ""; position: absolute; top: -16px; left: 28px; width: 18px; height: 46px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 46'%3E%3Cpath d='M5 30V8a4 4 0 0 1 8 0v26a6 6 0 0 1-12 0V12' fill='none' stroke='%238a94a6' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.art.panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
@media (max-width: 600px) { .art.panels { grid-template-columns: 1fr; } .art { padding: 8px; } }

/* Strip navigation: a segmented control. */
.strip-nav {
  display: flex; justify-content: center; width: max-content; max-width: 100%;
  margin: 22px auto 0; padding: 4px; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow);
}
.strip-nav a, .strip-nav span {
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 0.9rem; white-space: nowrap; color: var(--ink-2);
}
.strip-nav a:hover { background: var(--primary-soft); color: var(--primary); }
.strip-nav span { color: var(--muted); opacity: 0.6; }
@media (max-width: 600px) {
  .strip-nav { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; border-radius: 16px; }
  .strip-nav a, .strip-nav span { padding: 9px 2px; font-size: 0.82rem; text-align: center; border-radius: 12px; }
  .strip-nav > :nth-child(3) { order: 5; grid-column: 1 / -1; background: var(--surface-2); }
}

/* Under the strip: the distribution panel, then the desk -- a scorecard,
   a calendar invite and a post-it, like the things around a monitor. */
.distribution {
  position: relative; overflow: hidden;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px;
  margin: 26px auto 0; max-width: 820px;
  padding: 18px 20px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.distribution::after {             /* somebody's coffee ring */
  content: ""; position: absolute; right: -26px; bottom: -34px; width: 96px; height: 96px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, transparent 58%, rgba(140, 90, 40, 0.16) 61%, rgba(140, 90, 40, 0.07) 66%, transparent 70%);
}
.native-share { margin: 0; position: relative; z-index: 1; }
.share-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 0.93rem;
  background: var(--ok); color: #fff;
}
.share-btn[hidden] { display: none; }
.share-btn:hover { filter: brightness(1.08); }
.share-btn::before {               /* a small "share" arrow */
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l5 5h-3v7h-4V8H7zM5 14h2v5h10v-5h2v7H5z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3l5 5h-3v7h-4V8H7zM5 14h2v5h10v-5h2v7H5z'/%3E%3C/svg%3E") center / contain no-repeat;
}
[data-theme="dark"] .share-btn { color: #0d1220; }
@media (max-width: 600px) { .share-btn { width: 100%; justify-content: center; } }
.save { margin: 0; position: relative; z-index: 1; }
.save a {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 0.93rem;
  text-decoration: none;
}
.save a:hover { filter: brightness(1.08); }
.share { margin: 0; color: var(--ink-2); font-size: 0.93rem; position: relative; z-index: 1; }
.share .label { font-weight: 700; color: var(--ink); margin-right: 4px; }
.share a { margin: 0 6px; font-weight: 600; white-space: nowrap; }
@media (max-width: 600px) {
  .distribution { flex-direction: column; align-items: stretch; text-align: center; }
  .save a { display: block; }
  .share .label { display: block; margin: 0 0 4px; }
  .share a { display: inline-block; padding: 4px 2px; }
}

.desk {
  display: grid; grid-template-columns: 1.25fr 1fr 240px; gap: 24px; align-items: start;
  margin: 34px 0 8px;
}
@media (max-width: 960px) { .desk { grid-template-columns: 1fr 1fr; } .desk .sticky-note { grid-column: 1 / -1; } }
@media (max-width: 640px) { .desk { grid-template-columns: 1fr; } }
.desk h2 { margin: 0; font-size: 1rem; font-weight: 750; letter-spacing: -0.01em; line-height: 1.3; }

/* Scorecard: a RAG status table. */
.scorecard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.scorecard h2 {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface-2);
}
.scorecard h2 span { font-size: 0.75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.scorecard table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.scorecard th, .scorecard td { padding: 9px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scorecard th { font-weight: 600; color: var(--ink); }
.scorecard td:last-child { color: var(--muted); }
.scorecard td:nth-child(2) { padding: 9px 4px; white-space: nowrap; }
.rag { display: inline-flex; align-items: center; gap: 6px; font-size: 0.74rem; font-weight: 700; }
.rag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.rag.green { color: var(--ok); }
.rag.amber { color: var(--warn); }
.rag.red { color: var(--down); }
.sc-foot { margin: 0; padding: 11px 18px; font-size: 0.85rem; color: var(--ink-2); }
@media (max-width: 420px) { .scorecard td:last-child { display: none; } }

/* Calendar invite: the subscribe prompt. */
.invite {
  display: flex; gap: 14px; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.cal {
  flex-shrink: 0; width: 54px; text-align: center; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--line); background: var(--surface); align-self: flex-start;
}
.cal .mon { display: block; background: var(--down); color: #fff; font-size: 0.64rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 0; }
.cal .day { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.5; color: var(--ink); }
.invite dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin: 8px 0 12px; font-size: 0.85rem; }
.invite dt { color: var(--muted); }
.invite dd { margin: 0; color: var(--ink-2); }
.rsvp { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rsvp a, .rsvp span {
  padding: 6px 12px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; text-decoration: none;
  border: 1px solid var(--line);
}
.rsvp .accept { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }
.rsvp .tentative { color: var(--ink-2); background: var(--surface); }
.rsvp .decline { color: var(--muted); background: var(--surface-2); text-decoration: line-through; cursor: not-allowed; }
.invite .fine { margin: 6px 0 0; font-size: 0.75rem; color: var(--muted); font-style: italic; }

/* Post-its. */
.sticky-note {
  justify-self: center; align-self: center; max-width: 260px; margin: 8px 0; padding: 22px 20px 20px;
  background: var(--note); color: var(--note-ink);
  font-family: var(--letter); font-weight: 700; font-size: 1.08rem; line-height: 1.35;
  transform: rotate(-2.5deg); border-radius: 2px;
  box-shadow: 0 10px 18px rgba(16, 24, 40, 0.18);
  position: relative;
}
.sticky-note.blue { background: #bfe3ff; color: #0a2540; transform: rotate(2deg); }
.sticky-note.pink { background: #ffc9de; color: #3d0b20; transform: rotate(-1.5deg); }
.sticky-note::before {             /* a strip of tape */
  content: ""; position: absolute; top: -10px; left: 50%; width: 84px; height: 22px;
  transform: translateX(-50%) rotate(3deg);
  background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(0, 0, 0, 0.06);
}
[data-theme="dark"] .sticky-note::before { background: rgba(255, 255, 255, 0.25); }
.page-head.with-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.page-head.with-note .sticky-note { font-size: 0.98rem; max-width: 240px; }
.not-found .sticky-note { margin: 28px 0 0 8px; justify-self: start; }

/* --- page heads, archive ---------------------------------------------- */
.page-head { padding: 34px 0 10px; margin-bottom: 22px; }
.page-head h1, .prose h1, .empty h1 {
  font-weight: 800; letter-spacing: -0.025em; font-size: clamp(1.8rem, 1.3rem + 2vw, 2.7rem);
  margin: 0; line-height: 1.1;
}
.page-head p { margin: 8px 0 0; color: var(--muted); font-size: 1.05rem; }
.archive-list {
  list-style: none; padding: 0; margin: 0 0 40px;
  display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.archive-list a {
  display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px 12px 16px; box-shadow: var(--shadow); transition: transform 0.15s, box-shadow 0.15s;
}
.archive-list a:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.archive-list img {
  display: block; width: 100%; height: auto; border-radius: 8px;
  aspect-ratio: 3 / 1; object-fit: contain; background: var(--surface-2);
}
.card-tags { display: flex; gap: 6px; margin: 12px 4px 0; }
.card-tags .badge { font-size: 0.72rem; padding: 2px 9px; }
.archive-list .title { display: block; font-weight: 750; font-size: 1.1rem; letter-spacing: -0.01em; margin: 8px 4px 0; line-height: 1.25; }
.archive-list .meta { display: block; color: var(--muted); font-size: 0.8rem; margin: 4px 4px 0; }
@media (prefers-reduced-motion: reduce) { .archive-list a { transition: none; } .archive-list a:hover { transform: none; } }

/* --- About and other prose --------------------------------------------- */
.prose {
  max-width: 760px; margin: 34px 0 40px; padding: 32px 36px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.prose h1 { margin-bottom: 16px; }
.prose h2 { font-size: 1.25rem; letter-spacing: -0.01em; margin: 28px 0 6px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--ink-2); }
@media (max-width: 600px) { .prose { padding: 22px 18px; margin-top: 20px; } }
.empty { padding: 56px 0; color: var(--ink-2); }

.not-found { max-width: 760px; padding-bottom: 40px; }
.not-found > p { color: var(--ink-2); }

/* --- Subscribe -------------------------------------------------------- */
.subscribe .prose { margin-top: 0; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.button {
  display: inline-block; padding: 10px 18px; border-radius: 10px;
  background: var(--primary); color: var(--primary-ink); font-weight: 700; font-size: 0.93rem;
  text-decoration: none;
}
.button:hover { filter: brightness(1.08); }
@media (max-width: 600px) { .buttons .button { flex: 1 1 100%; text-align: center; } }
.feed-url code {
  display: block; padding: 12px 14px; overflow-wrap: anywhere;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
  font-size: 0.95rem; user-select: all;
}

/* --- footer ------------------------------------------------------------ */
.site-footer { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); font-size: 0.88rem; color: var(--muted); }
.site-footer .wrap { padding-top: 28px; padding-bottom: 28px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.footer-brand { margin: 0 0 4px; font-weight: 800; color: var(--ink); font-size: 1rem; letter-spacing: -0.01em; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.site-footer nav a:hover { color: var(--primary); }
.fineprint { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--line); font-size: 0.8rem; }
.subscribe .note { font-size: 0.9rem; color: var(--muted); }
