/* =====================================================================
   FIONA DATES — DESIGN TOKENS
   Palette and type derived from the brand mark: a blue concentric-ring
   ("target") favicon and a bold geometric wordmark with an upward arrow.
   ===================================================================== */

:root {
  /* Color — ink & surfaces */
  --ink: #12142B;
  --ink-soft: #4A4F6A;
  --ink-faint: #8489A3;
  --bg: #FFFFFF;
  --bg-soft: #F5F7FC;
  --bg-band: #EEF1FA;
  --border: #E3E7F1;
  --border-strong: #C7CEE3;

  /* Color — brand */
  --brand: #4A6CF7;
  --brand-dark: #2C43C4;
  --brand-darker: #1E2E8C;
  --brand-pale: #EAF0FF;
  --brand-pale-strong: #D7E2FF;

  /* Color — accent (featured / premium) */
  --amber: #F5A623;
  --amber-dark: #C97F0C;
  --amber-pale: #FFF4E0;

  /* Color — semantic */
  --success: #1FAA6E;
  --success-pale: #E4F7EE;
  --danger: #E5484D;
  --danger-pale: #FDEBEC;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SFMono-Regular', Consolas, monospace;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(18, 20, 43, 0.06);
  --shadow-md: 0 8px 24px rgba(18, 20, 43, 0.08);
  --shadow-lg: 0 20px 48px rgba(18, 20, 43, 0.14);

  /* Layout */
  --container: 1280px;
  --header-h: 76px;
}

/* =====================================================================
   RESET
   ===================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/*
 * Base icon size. Every icon on the site is an inline <svg class="icon">
 * with a viewBox but no width/height attributes, so without a rule here
 * it has no intrinsic size at all — browsers fall back to their own
 * default replaced-element sizing for unconstrained SVG, which differs
 * a lot between browsers (Firefox in particular renders it far larger
 * than Chrome). This single rule is what most icons across the site
 * actually rely on; the more specific `.parent .icon { ... }` rules
 * below and in pages.css/admin.css override it for special cases
 * (buttons, badges, category tiles, etc.) and continue to win on
 * specificity as before — nothing about those changes.
 */
.icon { width: 20px; height: 20px; flex-shrink: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.15; }
p { margin: 0 0 1em; }
input, textarea, select { font: inherit; color: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:focus-visible {
  outline: 2.5px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* =====================================================================
   TYPE SCALE
   ===================================================================== */
.h1, h1 { font-size: clamp(2.1rem, 1.6rem + 2vw, 3.4rem); letter-spacing: -0.02em; }
.h2, h2 { font-size: clamp(1.65rem, 1.4rem + 1vw, 2.4rem); letter-spacing: -0.015em; }
.h3, h3 { font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.7rem); letter-spacing: -0.01em; }
.h4, h4 { font-size: 1.15rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  font-weight: 600;
}
.lede { font-size: 1.15rem; color: var(--ink-soft); }
.text-soft { color: var(--ink-soft); }
.text-faint { color: var(--ink-faint); }
.text-mono { font-family: var(--font-mono); }

/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 40px 0; }
.section--band { background: var(--bg-soft); }
.grid { display: grid; gap: 24px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.stack { display: flex; flex-direction: column; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.96rem;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--bg-band); }
.btn-amber { background: var(--amber); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-amber:hover { background: var(--amber-dark); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-block { width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #C93438; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* =====================================================================
   CARDS
   ===================================================================== */
.card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.card--hover:hover { border-color: var(--brand); box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* =====================================================================
   BADGES / PILLS
   ===================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  text-transform: uppercase;
}
.badge .icon { width: 13px; height: 13px; }
.badge-featured { background: var(--amber-pale); color: var(--amber-dark); }
.badge-success { background: var(--success-pale); color: var(--success); }
.badge-brand { background: var(--brand-pale); color: var(--brand-dark); }
.badge-pending { background: var(--bg-band); color: var(--ink-soft); }
.badge-danger { background: var(--danger-pale); color: var(--danger); }

/* =====================================================================
   FORMS
   ===================================================================== */
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 7px;
}
.field .hint { font-size: 0.82rem; color: var(--ink-faint); margin-top: 6px; }
.field .error { font-size: 0.82rem; color: var(--danger); margin-top: 6px; font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.96rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-pale);
  outline: none;
}
.input.has-error, .select.has-error, .textarea.has-error { border-color: var(--danger); }
.textarea { resize: vertical; min-height: 120px; }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex-shrink: 0; }
.file-drop {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-md);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.file-drop:hover { border-color: var(--brand); background: var(--brand-pale); }

/* =====================================================================
   ALERTS / FLASH MESSAGES
   ===================================================================== */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 18px;
  border-radius: var(--r-md);
  font-size: 0.92rem;
  margin-bottom: 20px;
  border: 1.5px solid transparent;
}
.alert .icon { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: var(--success-pale); color: #12633F; border-color: #BFE9D5; }
.alert-error { background: var(--danger-pale); color: #92262A; border-color: #F5C6C8; }
.alert-info { background: var(--brand-pale); color: var(--brand-darker); border-color: var(--brand-pale-strong); }

/* =====================================================================
   TARGET-RING SIGNATURE MOTIF
   Recurring visual signature drawn from the favicon: concentric rings,
   used sparingly (hero, featured badge glyph, section divider, loader).
   ===================================================================== */
.ring-decoration {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--brand-pale-strong);
  pointer-events: none;
}
.ring-loader {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 4px solid var(--brand-pale);
  border-top-color: var(--brand);
  animation: ring-spin 0.8s linear infinite;
}
@keyframes ring-spin { to { transform: rotate(360deg); } }

/* =====================================================================
   HEADER
   ===================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1.5px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.brand img { height: 34px; width: auto; }
.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a { font-weight: 600; font-size: 0.94rem; color: var(--ink-soft); transition: color 0.15s ease; }
.main-nav a:hover, .main-nav a.is-active { color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.mobile-menu-btn { display: flex; background: none; border: none; padding: 8px; }
.mobile-menu-btn .icon { width: 24px; height: 24px; }

@media (min-width: 960px) {
  .main-nav { display: flex; }
  .mobile-menu-btn { display: none; }
}

.announcement-bar {
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 9px 16px;
}
.announcement-bar a { text-decoration: underline; }

.mobile-drawer {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(18,20,43,0.4);
  display: none;
}
.mobile-drawer.is-open { display: block; }
.mobile-drawer__panel {
  background: #fff;
  width: min(320px, 84vw);
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.mobile-drawer__panel a { display: block; padding: 13px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--ink); color: rgba(255,255,255,0.72); padding: 64px 0 28px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,0.68); transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 48px; }
.site-footer li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.14); padding-top: 24px; font-size: 0.82rem; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; }
.social-row .icon { width: 17px; height: 17px; }
.newsletter-form { display: flex; gap: 8px; margin-top: 14px; }
.newsletter-form input { flex: 1; padding: 11px 14px; border-radius: var(--r-sm); border: 1.5px solid rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; }

@media (min-width: 640px) { .site-footer .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .site-footer .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* =====================================================================
   MISC COMPONENTS reused across pages
   ===================================================================== */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1.5px solid var(--border); font-weight: 600; font-size: 0.9rem; }
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--brand); color: #fff; border-color: var(--brand); }

.breadcrumbs { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--ink-faint); flex-wrap: wrap; margin-bottom: 24px; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs .icon { width: 14px; height: 14px; }

.empty-state { text-align: center; padding: 64px 24px; color: var(--ink-soft); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto 16px; color: var(--brand-pale-strong); }
