/* Toprock — toprockco.com */
:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --ink: #12212e;
  --text: #26333f;
  --muted: #64717d;
  --accent: #b4622f;
  --accent-soft: #f3e6dc;
  --line: #e4e0d9;
  --max: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10161c;
    --surface: #17202a;
    --ink: #f0ece5;
    --text: #cdd5dd;
    --muted: #8b98a5;
    --accent: #dd8a53;
    --accent-soft: #26201c;
    --line: #26313c;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 46rem; }
h1, h2, h3 { color: var(--ink); font-family: ui-serif, Georgia, "Times New Roman", serif; font-weight: 600; line-height: 1.2; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.5rem, 3.2vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; font-family: inherit; font-weight: 650; letter-spacing: 0; }
p { margin: 0 0 1.1rem; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

/* header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 10; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.5rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: ui-serif, Georgia, serif; font-size: 1.3rem; font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { display: block; }
nav.site a { color: var(--muted); text-decoration: none; font-size: .95rem; margin-left: 1.5rem; }
nav.site a:hover { color: var(--ink); }
@media (max-width: 34rem) { nav.site a { margin-left: 1rem; font-size: .875rem; } .brand span { display: none; } }

/* hero */
.hero { padding: clamp(3.5rem, 9vw, 6.5rem) 0 clamp(2.5rem, 6vw, 4rem); }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); font-weight: 650; margin: 0 0 1.25rem; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 40rem; }

/* sections */
section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; border-top: 1px solid var(--line); }
section.plain { border-top: 0; }

/* cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: .75rem; padding: 1.5rem; }
.card p { margin: 0; color: var(--muted); font-size: .975rem; }

/* buttons */
.btn { display: inline-block; background: var(--ink); color: var(--bg); padding: .7rem 1.4rem; border-radius: .5rem; text-decoration: none; font-weight: 600; font-size: .975rem; }
.btn:hover { background: var(--accent); color: #fff; }

/* legal pages */
.legal { padding: 3rem 0 4rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2.25rem; font-family: inherit; letter-spacing: 0; }
.legal h2:first-of-type { margin-top: 1.5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: .5rem; }
.updated { color: var(--muted); font-size: .9rem; border-left: 2px solid var(--accent); padding-left: .9rem; }

/* footer */
footer.site { border-top: 1px solid var(--line); padding: 2.5rem 0; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; justify-content: space-between; }
footer.site a { color: var(--muted); }

/* utility classes (replace inline styles so CSP can stay strict) */
.mt-lg { margin-top: 2rem; }
.contact-email { font-size: 1.15rem; }
.muted-sm { color: var(--muted); font-size: .95rem; }
.note { color: var(--muted); font-size: .95rem; border-left: 2px solid var(--line); padding-left: 1rem; margin-top: 2rem; }
