/* severin.io content hub — draft styles, continuing the current site's look:
   one calm column, system fonts, brick-red accent used sparingly, automatic dark mode.
   Pages are complete without JavaScript; visuals are images that scripts may animate. */
:root {
  --bg: #ffffff; --fg: #16181d; --muted: #626772; --line: #e6e8ec; --card: #fafbfc;
  --accent: #d13b2e; --accent-soft: rgba(209, 59, 46, 0.09);
  --font: -apple-system, system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #0f1115; --fg: #e9ecf1; --muted: #969ca8; --line: #23262d; --card: #161920; --accent: #ff6b5a; --accent-soft: rgba(255, 107, 90, 0.12); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #0f1115; --fg: #e9ecf1; --muted: #969ca8; --line: #23262d; --card: #161920; --accent: #ff6b5a; --accent-soft: rgba(255, 107, 90, 0.12); color-scheme: dark; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 var(--font); }
.wrap { max-width: 780px; margin: 0 auto; padding-inline: 20px; }
a { color: var(--fg); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

.site { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; justify-content: space-between; padding-block: 22px; border-bottom: 1px solid var(--line); }
.site .name { font-weight: 700; text-decoration: none; letter-spacing: -0.01em; }
.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
.site nav a { text-decoration: none; color: var(--muted); }
.site nav a:hover, .site nav a[aria-current] { color: var(--fg); }

main { padding-block: 36px 56px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.crumbs a { color: var(--muted); }
h1 { margin: 0 0 16px; font-size: clamp(28px, 5vw, 36px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.byline { font-size: 14px; color: var(--muted); margin: 0 0 32px; }
.byline a { color: var(--muted); }
h2 { margin: 44px 0 12px; font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; text-wrap: balance; }
h3 { margin: 28px 0 8px; font-size: 17px; }
p, ul, ol, table { margin: 0 0 16px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
main > .answer, .answer { font-size: 18px; line-height: 1.55; padding: 18px 20px; margin: 0 0 28px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.answer + ul { display: grid; gap: 10px; margin-bottom: 8px; }
.answer + ul li { margin: 0; }
.answer p { margin: 0; }
.table { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.table table { border-collapse: collapse; width: 100%; min-width: 560px; margin: 0; font-size: 14.5px; }
.table th, .table td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--card); }
/* phones: one block per row (level and name on top, description below) instead of sideways scrolling */
@media (max-width: 620px) {
  .table { overflow: visible; }
  .table table { min-width: 0; }
  .table thead { display: none; }
  .table tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table tr:last-child { border-bottom: 0; }
  .table td { display: block; padding: 0; border: 0; min-width: 0; }
  .table td:first-child { font-weight: 700; color: var(--accent); }
  .table td:nth-child(2) { font-weight: 600; }
  .table td:nth-child(n+3) { grid-column: 1 / -1; color: var(--muted); }
}
code { font: 0.92em var(--mono); background: var(--card); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
figure.vis { margin: 26px 0; }
figure.vis img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
figure.vis .aw { margin: 0; border: 1px solid var(--line); }
figure.vis:has(.aw) figcaption { display: none; }
figure.vis figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

.label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 44px 0 14px; }
.sources ol { font-size: 14px; color: var(--muted); }
.sources a { color: var(--muted); overflow-wrap: anywhere; }
.cite { font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.cite code { border: 0; background: none; padding: 0; overflow-wrap: anywhere; }
.meta-links { font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.meta-links a { color: var(--muted); }

.hero { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 18px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: 30px; }
.hero h1 { margin: 0; }
.hero p { margin: 4px 0 0; color: var(--muted); }
.home main ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.home main li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); margin: 0; }
.home main li a { font-weight: 700; }
@media (max-width: 620px) { .hero { grid-template-columns: 64px minmax(0, 1fr); } .avatar { width: 64px; height: 64px; font-size: 22px; } }

.repo-box { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 0 0 24px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 15px; }
.repo-box span:first-child { font-weight: 700; }
.repo-box a { font-weight: 600; overflow-wrap: anywhere; }
.repo-box .lic { color: var(--muted); font-size: 14px; }
.repo-end { margin-top: 40px; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.repo-end h2 { margin-top: 0; }
.repo-end a { font-weight: 700; overflow-wrap: anywhere; }

ul.posts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ul.posts li { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
ul.posts li > a { font-weight: 700; font-size: 18px; }
ul.posts .meta { font-size: 13px; color: var(--muted); }
ul.posts p { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 22px 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.foot a { color: var(--muted); }
