/* ROCTheNet — rocmesh.net. One stylesheet, system fonts, nothing fetched. */

:root {
  --bg: #fbf9f5;
  --surface: #ffffff;
  --sunk: #f3efe9;
  --ink: #1d1b26;
  --muted: #5b5768;
  --line: #e6e0ea;
  --accent: #6b46a8;          /* lilac, for the Flower City */
  --accent-strong: #52338a;
  --accent-soft: #f0e9fa;
  --deep: #221f3f;
  --deep-ink: #f4f1fb;
  --ok: #2f7a4f;
  --work: #9a5b00;
  --open: #6b46a8;
  --wait: #5b5768;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(29 27 38 / 6%), 0 8px 24px rgb(29 27 38 / 6%);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131219;
    --surface: #1c1a24;
    --sunk: #17151e;
    --ink: #eeeaf6;
    --muted: #aaa4bb;
    --line: #2d2a38;
    --accent: #b89af0;
    --accent-strong: #cdb7f6;
    --accent-soft: #29223d;
    --deep: #0e0d14;
    --deep-ink: #eeeaf6;
    --ok: #6fce97;
    --work: #f0b35c;
    --open: #b89af0;
    --wait: #aaa4bb;
    --shadow: 0 1px 2px rgb(0 0 0 / 40%), 0 8px 24px rgb(0 0 0 / 30%);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-strong); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 700; }
small { font-size: 0.875rem; }

.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.prose { max-width: 68ch; }
.muted { color: var(--muted); }
.spaced { margin-top: 2.5rem; }
.actions.flush { margin: 0; }

.skip {
  position: absolute; left: 1rem; top: -3rem; z-index: 10;
  background: var(--accent); color: #fff; padding: 0.5rem 0.9rem; border-radius: 8px;
}
.skip:focus { top: 1rem; }

/* --- header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 1.5rem; min-height: 4rem; flex-wrap: wrap; padding-block: 0.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; }
.mark { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.mark .wave { stroke: var(--ink); opacity: 0.75; }
.site-nav { display: flex; gap: 0.25rem 1.25rem; flex-wrap: wrap; margin-left: auto; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 0.97rem; padding-block: 0.35rem; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

@media (max-width: 760px) {
  .bar { gap: 0.6rem 1rem; }
  .site-nav { order: 3; width: 100%; margin-left: 0; gap: 0.1rem 1rem; padding-bottom: 0.25rem; }
  .site-nav a { white-space: nowrap; font-size: 0.93rem; }
  .bar .button { margin-left: auto; }
}

/* --- buttons ------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 650;
  padding: 0.8rem 1.25rem; border-radius: 999px; border: 2px solid var(--accent);
  transition: background 0.15s, border-color 0.15s;
}
@media (prefers-color-scheme: dark) { .button { color: #17131f; } }
.button:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
@media (prefers-color-scheme: dark) { .button:hover { color: #17131f; } }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--accent); color: var(--ink); }
.button.small { padding: 0.45rem 0.95rem; font-size: 0.92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }

/* --- sections ------------------------------------------------------------ */
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
section[id] { scroll-margin-top: 4.5rem; }
section.tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
section.sunk { background: var(--sunk); border-block: 1px solid var(--line); }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; font-weight: 750; color: var(--accent); margin-bottom: 0.9rem; }
.lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--muted); max-width: 60ch; }
.section-head { max-width: 62ch; margin-bottom: 2.5rem; }

/* --- hero ------------------------------------------------------------ */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { max-width: 16ch; }
.page-hero { padding-block: clamp(3rem, 7vw, 5rem) clamp(1.5rem, 3vw, 2.5rem); }
.page-hero h1 { max-width: 20ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .skyline { max-width: 520px; } }

.skyline { width: 100%; height: auto; color: var(--ink); }
.skyline .bldg { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.skyline .bldg.tall { fill: var(--accent-soft); stroke: var(--accent); stroke-opacity: 0.35; }
.skyline .win { fill: var(--line); }
.skyline .link { fill: none; stroke: var(--accent); stroke-width: 2.2; stroke-dasharray: 2 7; stroke-linecap: round; }
.skyline .dish { fill: var(--accent); }
.skyline .ground { stroke: var(--line); stroke-width: 2; }
.skyline .arc { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0.55; }

/* --- cards ------------------------------------------------------------ */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.25rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .cards.three { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.6rem 1.4rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card .more { margin-top: auto; font-weight: 650; text-decoration: none; }
.card .more::after { content: " →"; }
a.card { color: inherit; text-decoration: none; transition: border-color 0.15s, transform 0.15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { a.card:hover { transform: none; } }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 1.1rem; }
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- the dark band ---------------------------------------------------- */
.band { background: var(--deep); color: var(--deep-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(2rem, 5vw, 3.25rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.band h2 { color: #fff; }
.band p { color: rgb(244 241 251 / 78%); }
.band .eyebrow { color: #cdb7f6; }
.band .button { background: #cdb7f6; border-color: #cdb7f6; color: #17131f; }
.band .button:hover { background: #fff; border-color: #fff; color: #17131f; }
.band a:not(.button) { color: #cdb7f6; }
.band ul { margin: 0; padding-left: 1.1rem; color: rgb(244 241 251 / 85%); }
.band li { margin-bottom: 0.35rem; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* --- steps ------------------------------------------------------------ */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; counter-reset: step; }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem 1.4rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; margin-bottom: 0.8rem; }
@media (prefers-color-scheme: dark) { .steps li::before { color: #17131f; } }
.steps h3 { margin-bottom: 0.35rem; }
.steps p { color: var(--muted); margin: 0; }

/* --- figures ------------------------------------------------------------ */
.figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; }
.figure { border-top: 3px solid var(--accent); padding-top: 1.1rem; }
.figure .big { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.4rem; }
.figure p { color: var(--muted); }

/* --- two columns ------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.8rem; }
.checks li::before { content: ""; position: absolute; left: 0.1rem; top: 0.42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.checks li::after { content: ""; position: absolute; left: 0.45rem; top: 0.62em; width: 0.35rem; height: 0.55rem; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow); }
.panel h3 { margin-top: 0; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 1.1rem 1.3rem; }
.note p:last-child { margin-bottom: 0; }

/* --- status ------------------------------------------------------------ */
.status { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.status li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.status p { margin: 0; color: var(--muted); }
.status strong { color: var(--ink); display: block; }
.tag { font-size: 0.78rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.08em; }
.tag.done { color: var(--ok); }
.tag.doing { color: var(--work); }
.tag.open { color: var(--open); }
.tag.later { color: var(--wait); }
@media (max-width: 600px) { .status li { grid-template-columns: 1fr; gap: 0.25rem; } }

/* --- the deal ------------------------------------------------------------ */
.tenets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; counter-reset: tenet; }
.tenets li { counter-increment: tenet; }
.tenets li::before { content: "0" counter(tenet); display: block; font-weight: 800; color: var(--accent); font-size: 0.9rem; letter-spacing: 0.08em; margin-bottom: 0.4rem; }
.tenets p { color: var(--muted); margin: 0; }

/* --- questions ------------------------------------------------------------ */
.faq { max-width: 78ch; }
.faq details { border-bottom: 1px solid var(--line); padding-block: 1.05rem; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { color: var(--muted); padding-top: 0.75rem; }
.faq details > div p:last-child { margin-bottom: 0; }

/* --- footer ------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--line); background: var(--sunk); padding-block: 3rem 1.5rem; margin-top: 2rem; font-size: 0.95rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
.footer-name { color: var(--ink); font-weight: 800; font-size: 1.1rem; margin-bottom: 0.5rem; }
.footer-head { color: var(--ink); font-weight: 700; margin-bottom: 0.35rem; }
.footer-small { border-top: 1px solid var(--line); margin-top: 2rem; padding-top: 1.25rem; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* --- a node ------------------------------------------------------------ */
.node-meta { color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.35rem 0.6rem; align-items: baseline; }
.kit { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.7rem; }
.kit li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0.9rem 1.1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; align-items: baseline; }
.kit-role { font-weight: 750; min-width: 8.5rem; }
.kit-model { color: var(--ink); }
.kit-host { font: 0.85rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--muted); }
.kit-note { flex-basis: 100%; color: var(--muted); font-size: 0.93rem; }
table.addr { border-collapse: collapse; width: 100%; margin-bottom: 0.75rem; }
table.addr td { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
table.addr td:first-child { color: var(--muted); width: 5rem; }
table.addr td:last-child { font: 0.92rem ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.card .eyebrow .tag { margin-left: 0.4rem; }
