/* Ninety Revs website. System fonts only; no external resources. */
:root {
  color-scheme: light dark;
  --bg: #f6f7f7;
  --surface: #ffffff;
  --text: #0b1012;
  --muted: #4b575b;
  --line: #dde2e3;
  --link: #0b1012;
  --accent: #69777b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #070a0b;
    --surface: #11181b;
    --text: #f2f4f4;
    --muted: #a3afb2;
    --line: #243035;
    --link: #ffffff;
    --accent: #8d9a9e;
  }
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.wrap {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 max(1rem, env(safe-area-inset-left)) 0 max(1rem, env(safe-area-inset-right));
}

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

header.site a.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 600; }
header.site a.brand img { display: block; height: 22px; width: auto; }

nav.site { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; font-size: 0.95rem; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }

main { padding: 2rem 0 3rem; }

h1 { font-size: 2rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 0.75rem; }
h2 { font-size: 1.3rem; line-height: 1.3; margin: 2.25rem 0 0.5rem; }
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
p, ul, ol, dl { margin: 0 0 1rem; }
ul, ol { padding-left: 1.25rem; }
li { margin: 0.25rem 0; }

a { color: var(--link); text-underline-offset: 0.15em; }

.lead { font-size: 1.15rem; color: var(--muted); }
.meta { color: var(--muted); font-size: 0.95rem; }

.hero { text-align: center; padding: 2rem 0 1rem; }
.hero img.icon { width: 128px; height: 128px; border-radius: 28px; display: block; margin: 0 auto 1.5rem; box-shadow: 0 6px 24px rgb(0 0 0 / 0.18); }
.hero h1 { font-size: 2.4rem; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin: 2rem 0; }
.card { display: block; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--text); text-decoration: none; }
.card strong { display: block; font-size: 1.05rem; margin-bottom: 0.2rem; }
.card span { color: var(--muted); font-size: 0.95rem; }
.card:hover { border-color: var(--accent); }

.box { padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 1.5rem 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

details { border-top: 1px solid var(--line); padding: 0.75rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details > :not(summary) { margin-top: 0.5rem; }

footer.site { border-top: 1px solid var(--line); padding: 1.25rem 0 max(2rem, env(safe-area-inset-bottom)); color: var(--muted); font-size: 0.9rem; }
footer.site a { color: var(--muted); }
footer.site p { margin: 0.25rem 0; }

@media (max-width: 30rem) {
  h1 { font-size: 1.7rem; }
  .hero h1 { font-size: 2rem; }
  header.site { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
