/* Rigbook site — light theme, mobile-friendly */

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

:root {
  --bg:          #f5f6f8;
  --surface:     #ffffff;
  --border:      #dde1e7;
  --text:        #1c1e21;
  --muted:       #5c6370;
  --primary:     #1a6496;
  --primary-dk:  #134e77;
  --accent:      #2e8b57;
  --tag-bg:      #e8f0fe;
  --tag-text:    #1a5276;
  --radius:      8px;
  --shadow:      0 1px 4px rgba(0,0,0,.10);
  --max-w:       900px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}

/* ── Nav ── */
header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .75rem 1.25rem;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
  text-decoration: none;
}

.nav-radio-icon {
  height: 28px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.nav-brand span.callsign {
  font-size: .8rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .05em;
}

nav a {
  color: var(--text);
  text-decoration: none;
  font-size: .95rem;
  padding: .3rem .5rem;
  border-radius: 4px;
  transition: background .15s;
}
nav a:hover, nav a.active {
  background: var(--tag-bg);
  color: var(--primary);
}

.nav-links { display: flex; gap: .25rem; flex-wrap: wrap; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dk) 100%);
  color: #fff;
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin-bottom: .5rem; }
.hero p  { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto 1.5rem; }

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: .25rem .75rem;
  font-size: .85rem;
  letter-spacing: .05em;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  background: #fff;
  color: var(--primary);
  font-weight: 600;
  padding: .65rem 1.4rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: .95rem;
  transition: opacity .15s;
}
.btn:hover { opacity: .88; }

/* ── Page wrapper ── */
.page {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 1.25rem 4rem;
}

/* ── Section headings ── */
.section-title {
  font-size: 1.5rem;
  color: var(--primary);
  margin: .25rem 0 1rem;
  padding-bottom: .4rem;
  border-bottom: 2px solid var(--border);
}

h2.page-title {
  font-size: 1.9rem;
  margin-bottom: .4rem;
  color: var(--primary);
}
.page-subtitle {
  color: var(--muted);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

.card-icon {
  font-size: 1.6rem;
  margin-bottom: .5rem;
  display: block;
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: .4rem;
  color: var(--primary);
}

.card p {
  font-size: .92rem;
  color: var(--muted);
}

/* ── Feature detail sections (home page) ── */
.feature-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow);
}

.feature-section h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.feature-section p {
  color: var(--muted);
  font-size: .95rem;
}

/* ── Installation page ── */
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.platform-card h3 {
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.platform-card ol, .platform-card ul {
  padding-left: 1.4rem;
  color: var(--muted);
  font-size: .95rem;
}

.platform-card li { margin-bottom: .4rem; }

pre {
  background: #1e2127;
  color: #abb2bf;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: .85rem;
  overflow-x: auto;
  margin: .75rem 0;
  line-height: 1.5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

code {
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 3px;
  padding: .1em .35em;
  font-size: .88em;
  font-family: "SFMono-Regular", Consolas, monospace;
}

pre code { background: none; color: inherit; padding: 0; }

.note {
  background: #fff8e1;
  border-left: 3px solid #f9a825;
  padding: .75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .9rem;
  color: #555;
  margin: .75rem 0;
}

/* ── Credits ── */
.credits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.credit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  text-align: center;
}

.credit-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .75rem;
  font-weight: 700;
}

.credit-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.credit-card .callsign-badge {
  display: inline-block;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 12px;
  padding: .15rem .65rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  margin-bottom: .5rem;
}
.credit-card p { font-size: .9rem; color: var(--muted); }

/* ── Demos ── */
.demo-placeholder {
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 4rem 2rem;
  text-align: center;
  color: var(--muted);
}

.demo-placeholder .big-icon { font-size: 3rem; display: block; margin-bottom: 1rem; }
.demo-placeholder h3 { font-size: 1.2rem; margin-bottom: .5rem; color: var(--text); }

/* ── Footer ── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 1.5rem 1.25rem;
  font-size: .85rem;
  color: var(--muted);
}

footer a { color: var(--primary); text-decoration: none; }
footer a:hover { text-decoration: underline; }

/* ── Mobile ── */
@media (max-width: 540px) {
  .nav-links { gap: 0; }
  nav a { font-size: .85rem; padding: .25rem .4rem; }
  .hero { padding: 2.5rem 1rem; }
  .card-grid { grid-template-columns: 1fr; }
  .credits-grid { grid-template-columns: 1fr; }
}
