/* =============================================================================
   PITCH CITY — Design System
   Team of Silicons · multiplayer pitch-training game
   Editorial / premium B2B sales-deck aesthetic on warm cream.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* -----------------------------------------------------------------------------
   1. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --bg: #EDE8E0;            /* page background, warm cream */
  --ink: #181818;          /* primary text, near-black */
  --surface: #F4F0E9;      /* card surface, lighter cream */
  --surface-2: #FBF9F5;    /* brightest cream for inputs */
  --border: #DAD3C7;       /* card hairline border */
  --rule: #D8D1C4;         /* hairline rules between rows */

  --amber: #E9B949;        /* highlight / accent / primary buttons */
  --amber-hover: #D9A832;  /* darker amber on hover */
  --muted: #8C8675;        /* small uppercase tracked labels, taupe/olive */
  --green: #5A6E3F;        /* success / positive / "contains" */
  --maroon: #9B4A2F;       /* danger / negative / contamination */

  /* Tinted derivatives (faint backgrounds for pills/flashes) */
  --amber-tint: #F6E6BC;
  --green-tint: #DFE4D2;
  --maroon-tint: #EAD7CE;
  --ink-08: rgba(24, 24, 24, .08);
  --ink-12: rgba(24, 24, 24, .12);

  /* Radius */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;

  /* Shadow (elevated cards / modals only) */
  --shadow: 0 1px 2px rgba(24, 24, 24, .06), 0 8px 24px rgba(24, 24, 24, .05);
  --shadow-pop: 0 4px 12px rgba(24, 24, 24, .10), 0 24px 48px rgba(24, 24, 24, .14);

  /* Fonts */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Spacing scale */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-6: 24px;
  --sp-8: 32px;
}

/* -----------------------------------------------------------------------------
   2. RESET / BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background-color: var(--bg);
  /* faint editorial texture — barely perceptible diagonal grain */
  background-image:
    repeating-linear-gradient(
      135deg,
      rgba(24, 24, 24, .012) 0,
      rgba(24, 24, 24, .012) 1px,
      transparent 1px,
      transparent 4px
    );
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

[x-cloak] { display: none !important; }

::selection { background: var(--amber); color: var(--ink); }

/* -----------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; letter-spacing: -0.01em; }
h6 { font-size: 0.95rem; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

strong, b { font-weight: 600; }

.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(2.6rem, 6vw, 4.5rem);
}

/* Tiny section labels */
.eyebrow,
.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: inline-block;
}

.kicker {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.muted { color: var(--muted); }

.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }

/* Big faded ordinals for numbered lists */
.ordinal {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #C9C0B0; /* muted tan */
  font-feature-settings: "tnum";
}

/* Inline highlight markers */
.hl,
.hl-ink {
  display: inline;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding: 0.02em 0.22em;
  border-radius: var(--r-xs);
  font-weight: inherit;
}
.hl { background: var(--amber); color: var(--ink); }
.hl-ink { background: var(--ink); color: var(--bg); }

/* -----------------------------------------------------------------------------
   4. LAYOUT — shell, topbar, footer
   -------------------------------------------------------------------------- */
.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--sp-8) var(--sp-6);
  width: 100%;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  padding: var(--sp-4) var(--sp-6);
  background: rgba(237, 232, 224, .88);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.topbar .nav {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.topbar .nav a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
}
.topbar .nav a:hover { color: var(--maroon); text-decoration: none; }

.brandmark {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brandmark:hover { text-decoration: none; }

.brandmark .logo {
  width: 30px;
  height: 30px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.04em;
}

/* Footer — playbook section-tab style */
.footer {
  margin-top: var(--sp-8);
  border-top: 1px solid var(--border);
  padding: var(--sp-6);
}

.footnav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  align-items: center;
}

.footnav-item {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
}
.footnav-item:hover { color: var(--ink); text-decoration: none; }
.footnav-item.active,
.footnav-item[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--ink);
}

/* -----------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--ink);
  --btn-bd: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.005em;
  padding: 11px 18px;
  border-radius: var(--r-xs);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  user-select: none;
  transition: transform .06s ease, background-color .14s ease, box-shadow .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(233, 185, 73, .55);
}
.btn:disabled,
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary {
  --btn-bg: var(--amber);
  --btn-fg: var(--ink);
  --btn-bd: transparent;
  font-weight: 700;
  border-radius: var(--r-xs);
}
.btn-primary:hover { --btn-bg: var(--amber-hover); }

.btn-ink {
  --btn-bg: var(--ink);
  --btn-fg: var(--bg);
  --btn-bd: var(--ink);
}
.btn-ink:hover { --btn-bg: #000; }

.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--ink);
}
.btn-ghost:hover { --btn-bg: rgba(24, 24, 24, .05); }

.btn-danger {
  --btn-bg: var(--maroon);
  --btn-fg: #F7EFE9;
  --btn-bd: transparent;
  font-weight: 700;
}
.btn-danger:hover { --btn-bg: #84381F; }

.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 7px 12px; font-size: 0.825rem; }

.btn-block { width: 100%; }

/* -----------------------------------------------------------------------------
   6. CARDS
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-6);
}
.card.elevated { box-shadow: var(--shadow); }

.card-tight { padding: var(--sp-4); }

.card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule);
}
.card-row:last-child { border-bottom: 0; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}

/* -----------------------------------------------------------------------------
   7. FORMS / INPUTS
   -------------------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}
.field > label,
.field .label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.input,
.textarea,
.select {
  font-family: var(--font-body);
  font-size: 0.975rem;
  color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .14s ease, box-shadow .14s ease;
}
.input::placeholder,
.textarea::placeholder { color: #ABA493; }

.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 2px),
    calc(100% - 13px) calc(50% - 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(233, 185, 73, .35);
}

.input.is-error,
.textarea.is-error { border-color: var(--maroon); }

.field-hint { font-size: 0.8rem; color: var(--muted); }

/* -----------------------------------------------------------------------------
   8. PILLS / BADGES
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.pill-amber  { background: var(--amber-tint); color: #6F5410; border-color: #E3CE92; }
.pill-green  { background: var(--green-tint); color: var(--green); border-color: #BDC7A6; }
.pill-maroon { background: var(--maroon-tint); color: var(--maroon); border-color: #D2B0A2; }
.pill-ink    { background: var(--ink); color: var(--bg); }
.pill-muted  { background: transparent; color: var(--muted); border-color: var(--border); }

/* -----------------------------------------------------------------------------
   9. SCORES / STATS
   -------------------------------------------------------------------------- */
.score-big {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.score-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* -----------------------------------------------------------------------------
   10. TIMER
   -------------------------------------------------------------------------- */
.timer {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
  color: var(--ink);
}
.timer-danger { color: var(--maroon); }

/* -----------------------------------------------------------------------------
   11. RANGE INPUTS / METERS (rubric scoring)
   -------------------------------------------------------------------------- */
input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
}
/* Track */
input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  background: var(--ink);
  border-radius: 999px;
}
input[type=range]::-moz-range-track {
  height: 4px;
  background: var(--ink);
  border-radius: 999px;
}
/* Thumb */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--ink);
  box-shadow: 0 1px 2px rgba(24, 24, 24, .25);
}
input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid var(--ink);
}
input[type=range]:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(233, 185, 73, .45);
}

.meter {
  width: 100%;
  height: 10px;
  background: var(--ink-08);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: var(--amber);
  border-radius: 999px;
  transition: width .35s ease;
}

/* -----------------------------------------------------------------------------
   12. REVEAL PANEL (signature dark full-bleed moment)
   -------------------------------------------------------------------------- */
.reveal {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: clamp(2rem, 6vw, 4.5rem);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.reveal::before {
  /* faint grain on the dark panel */
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, .015) 0,
    rgba(255, 255, 255, .015) 1px,
    transparent 1px,
    transparent 5px
  );
  pointer-events: none;
}
.reveal > * { position: relative; }
.reveal h1, .reveal h2, .reveal h3 { color: var(--bg); }
.reveal .eyebrow,
.reveal .label,
.reveal .score-label { color: #B8B2A2; }
.reveal .muted { color: #9C9685; }
.reveal .amber { color: var(--amber); }
.reveal .hl { background: var(--amber); color: var(--ink); }
.reveal-value {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(3.5rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
}

/* -----------------------------------------------------------------------------
   13. PRIMITIVES — hairline, stack, row, spread
   -------------------------------------------------------------------------- */
.hairline,
hr.hairline {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: var(--sp-6) 0;
  height: 0;
}

.stack { display: flex; flex-direction: column; gap: var(--sp-4); }
.stack-sm { gap: var(--sp-2); }
.stack-lg { gap: var(--sp-6); }

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}
.row-wrap { flex-wrap: wrap; }

.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

/* color/text helpers */
.amber  { color: var(--amber-hover); }
.green  { color: var(--green); }
.maroon { color: var(--maroon); }

/* "contains" / "never contains" rubric lists */
.list-contains,
.list-never { list-style: none; padding: 0; margin: 0; }
.list-contains li,
.list-never li {
  position: relative;
  padding: 6px 0 6px 22px;
  border-bottom: 1px solid var(--rule);
}
.list-contains li:last-child,
.list-never li:last-child { border-bottom: 0; }
.list-contains li::before {
  content: "+";
  position: absolute; left: 0;
  font-weight: 700; color: var(--green);
}
.list-never li::before {
  content: "\00d7";
  position: absolute; left: 0;
  font-weight: 700; color: var(--maroon);
}

/* -----------------------------------------------------------------------------
   14. FLASH / TOAST
   -------------------------------------------------------------------------- */
.flash {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 500;
  font-size: 0.95rem;
}
.flash-ok {
  background: var(--green-tint);
  border-color: #BDC7A6;
  color: var(--green);
}
.flash-error {
  background: var(--maroon-tint);
  border-color: #D2B0A2;
  color: var(--maroon);
}
.flash-amber {
  background: var(--amber-tint);
  border-color: #E3CE92;
  color: #6F5410;
}

/* -----------------------------------------------------------------------------
   15. MAP DISTRICT TILES
   -------------------------------------------------------------------------- */
.district-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--sp-4);
}
.district {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-4);
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: var(--sp-4);
  transition: transform .1s ease, box-shadow .14s ease, border-color .14s ease;
}
.district:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: #CBC2B2;
  text-decoration: none;
}
.district-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}
.district.is-locked { opacity: .6; }
.district.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* -----------------------------------------------------------------------------
   16. MODAL (confirmation dialogs — archive / reset)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(24, 24, 24, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-6);
}
.modal {
  width: 100%;
  max-width: 460px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: var(--sp-6);
}
.modal h3 { margin-bottom: var(--sp-2); }
.modal .modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-3);
  margin-top: var(--sp-6);
}

/* -----------------------------------------------------------------------------
   17. UTILITIES
   -------------------------------------------------------------------------- */
/* margin top/bottom */
.mt-4 { margin-top: var(--sp-1); }   .mb-4 { margin-bottom: var(--sp-1); }
.mt-8 { margin-top: var(--sp-2); }   .mb-8 { margin-bottom: var(--sp-2); }
.mt-12 { margin-top: var(--sp-3); }  .mb-12 { margin-bottom: var(--sp-3); }
.mt-16 { margin-top: var(--sp-4); }  .mb-16 { margin-bottom: var(--sp-4); }
.mt-24 { margin-top: var(--sp-6); }  .mb-24 { margin-bottom: var(--sp-6); }
.mt-32 { margin-top: var(--sp-8); }  .mb-32 { margin-bottom: var(--sp-8); }
.mt-0 { margin-top: 0; }             .mb-0 { margin-bottom: 0; }

/* gap utilities */
.gap-4 { gap: var(--sp-1); }
.gap-8 { gap: var(--sp-2); }
.gap-12 { gap: var(--sp-3); }
.gap-16 { gap: var(--sp-4); }
.gap-24 { gap: var(--sp-6); }
.gap-32 { gap: var(--sp-8); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.flex-1 { flex: 1 1 0%; }

.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.hidden { display: none !important; }
.block { display: block; }
.inline-block { display: inline-block; }

.relative { position: relative; }
.rounded { border-radius: var(--r-sm); }
.shadow { box-shadow: var(--shadow); }
.uppercase { text-transform: uppercase; letter-spacing: 0.14em; }
.nowrap { white-space: nowrap; }

/* -----------------------------------------------------------------------------
   18. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 720px) {
  .shell { padding: var(--sp-6) var(--sp-4); }

  .grid-2,
  .grid-3,
  .card-grid,
  .district-grid {
    grid-template-columns: 1fr;
  }

  .topbar { padding: var(--sp-3) var(--sp-4); }
  .topbar .nav { gap: var(--sp-4); }

  .footnav { gap: var(--sp-4); }

  .spread { flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .topbar .nav a { font-size: 0.85rem; }
  .btn-lg { padding: 13px 20px; font-size: 1rem; }
}
