/* plumbnode.org. Brand tokens from the Plumb design handoff: red is the only brand color,
   parchment page, charcoal text, square corners, 1 px hairlines, no shadows. Light only, like
   the README banner. */
@font-face { font-family: "Plex Sans"; src: url("fonts/PlexSans-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Sans"; src: url("fonts/PlexSans-600.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("fonts/PlexMono-400.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cinzel Plumb"; src: url("fonts/Cinzel-600-plumb.woff") format("woff"); font-weight: 600; font-display: block; }

:root {
  --red: #C8102E; --red-shade: #8E0C21;
  --bg: #F4EFE6; --panel: #FBF8F2; --text: #1B1B1B; --muted: #5C5C5C; --line: #DDD5C6;
  --code-bg: #1B1B1B; --code-text: #F4EFE6; --link: #A50D26;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 "Plex Sans", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--red-shade); }
code, pre { font-family: "Plex Mono", "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88em; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

.top { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }
/* the lockup from the README banner: red mark and red PLUMB wordmark, in both themes */
.brand { display: flex; align-items: center; gap: .2em; margin: 0 0 26px; font-size: clamp(46px, 8.4vw, 92px); line-height: 1; }
.mark { width: 1.05em; height: 1.05em; flex: none; }
.mark g { fill: var(--red); }
.word { font-family: "Cinzel Plumb", "Cinzel", serif; font-weight: 600; letter-spacing: .26em; color: var(--red); }
nav { display: flex; gap: 18px; flex-wrap: wrap; }
nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; }
nav a:hover { color: var(--red); }

section { padding: 28px 0; border-bottom: 1px solid var(--line); }
section .wrap > :last-child { margin-bottom: 0; }
.hero { padding-top: 40px; }
.tagline { font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.15; margin: 0 0 18px; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.45rem; margin: 0 0 18px; font-weight: 600; }
.lede { font-size: 1.15rem; max-width: 760px; margin: 0 0 22px; }
.facts { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--panel); }
.facts li { padding: 16px 18px; border-left: 1px solid var(--line); font-size: .95rem; }
.facts li:first-child { border-left: 0; }
.facts b { display: block; margin-bottom: 4px; }
.release { margin: 0; color: var(--muted); }

.tw { overflow-x: auto; border: 1px solid var(--line); background: var(--panel); margin-bottom: 18px; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
td:first-child { white-space: nowrap; }
pre { background: var(--code-bg); color: var(--code-text); padding: 14px 16px; overflow-x: auto; margin: 0 0 18px; line-height: 1.5; }
pre code { font-size: .86rem; }
.fp { word-spacing: .1em; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--panel); }
.card { display: block; padding: 18px; border-left: 1px solid var(--line); text-decoration: none; color: var(--text); }
.card:first-child { border-left: 0; }
.card:hover { background: var(--bg); }
.card .host { display: block; font-weight: 600; color: var(--link); margin-bottom: 6px; }
.card .what { display: block; font-size: .93rem; color: var(--text); }

footer { padding: 22px 0 36px; color: var(--muted); font-size: .9rem; }
footer a { color: var(--muted); }
.foot { display: flex; flex-direction: column; gap: 12px; }
.discord { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; color: var(--text); font-weight: 600; text-decoration: none; }
.discord img { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.discord:hover span { text-decoration: underline; }

@media (max-width: 760px) {
  body { font-size: 16px; }
  .facts, .cards { grid-template-columns: 1fr; }
  .facts li, .card { border-left: 0; border-top: 1px solid var(--line); }
  .facts li:first-child, .card:first-child { border-top: 0; }
  nav { gap: 14px; }
  thead { display: none; }
  table, tbody, tr, td { display: block; width: 100%; }
  tr { border-bottom: 1px solid var(--line); padding: 10px 14px; }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 0; }
  td:first-child { font-weight: 600; margin-bottom: 4px; }
  td:last-child { margin-top: 4px; font-size: .88rem; }
}
