/* Oxford blue and old gilt, on the bones of seedgen.uk and dmnr.uk: one
   640px column, 44px controls, light and dark from the system. */
:root {
  --bg: #F5F3EE;
  --surface: #FFFFFF;
  --ink: #141B2A;
  --muted: #5B6273;
  --line: #E1DDD3;
  --accent: #14315C;
  --gilt: #8A6A1F;
  --tint: #E8EDF6;
  --radius: 14px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0C1220; --surface: #141C2E; --ink: #ECEEF3; --muted: #9AA3B5; --line: #243049;
    --accent: #9DB8EC; --gilt: #D9B865; --tint: #16233D;
  }
}
:root[data-theme="dark"] {
  --bg: #0C1220; --surface: #141C2E; --ink: #ECEEF3; --muted: #9AA3B5; --line: #243049;
  --accent: #9DB8EC; --gilt: #D9B865; --tint: #16233D;
}

* { box-sizing: border-box; }
.sprite { display: none; }
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .4rem; }
h1 { font-size: 1.7rem; letter-spacing: -.01em; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 .8rem; }
a { color: var(--accent); }
.lede { color: var(--muted); font-size: 1.05rem; }
main { max-width: 640px; margin: 0 auto; padding: 0 16px; }

.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 640px; margin: 0 auto;
  padding: calc(6px + env(safe-area-inset-top)) 16px 6px;
}
.mark { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; letter-spacing: .04em; font-size: 1.1rem; color: var(--accent); text-decoration: none; }
.mark img { width: 28px; height: 28px; border-radius: 7px; }
.bar-link { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-size: .9rem; font-weight: 600; color: var(--muted); text-decoration: none; white-space: nowrap; }
.bar-link:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* A card is one link: the whole card is the target, and it does not
   underline on hover (DESIGN.md). */
.cards { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 10px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; color: inherit; text-decoration: none; }
.card:hover { border-color: var(--accent); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.card h3 { color: var(--accent); margin: 0; }
.host { font-size: .85rem; font-weight: 600; color: var(--gilt); white-space: nowrap; }
.card p { margin: .35rem 0 0; color: var(--muted); }

.news { list-style: none; margin: .5rem 0 0; padding: 0; }
.news li { padding: 12px 0; border-top: 1px solid var(--line); }
.news li:first-child { border-top: 0; }
.news time { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--gilt); }
.news a { font-weight: 700; text-decoration: none; }
.news a:hover { text-decoration: underline; }
.news p { margin: .2rem 0 0; color: var(--muted); }
.feed { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }

.foot { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; }
