/* Basic reset and font */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #050816;
    color: #f5f5f5;
    scroll-behavior: smooth; /* smooth scrolling for anchor links */
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(10px);
    background: rgba(5, 8, 22, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-size: 0.95rem;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    border: 1px solid rgb(255, 165, 0, 0.9);
    font-size: 0.9rem;
}

.logo-text {
    color: #ffb347;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.main-nav a {
    color: #e5e5e5;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s ease, color 0.15s ease;
}

.main-nav a:hover {
    opacity: 1;
    color: #ffffff;
}

/* Hero section */
.hero h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
}

.hero-subtitle {
    margin: 0 0 1.5rem;
    color: #c0c0c0;
    max-width: 32rem;
}


/* Reset native button look (especially iOS Safari) */
button,
button:disabled,
input[type="button"],
input[type="submit"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: none;
  background: none;
  border-radius: 999px;
  font: inherit;
}



.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(248, 181, 0, 0.35);
  transition: transform 0.08s ease, box-shadow 0.08s ease, opacity 0.08s ease;
}

.primary-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(248, 181, 0, 0.45);
}

.primary-button:active:not(:disabled) {
  transform: translateY(1px);
  box-shadow: 0 8px 20px rgba(248, 181, 0, 0.3);
}

/* Disabled state: keep shape, just dim it */
.primary-button:disabled {
  background: #1f2937;
  color: #9ca3af;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.9; /* don’t let iOS fade it too much */
}

/* Back button style */
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: transparent;
  color: #e5e7eb;
  font-weight: 500;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.08s ease, color 0.08s ease, border-color 0.08s ease;
}

.secondary-button:hover:not(:disabled) {
  background: #111827;
  border-color: #9ca3af;
}

.secondary-button:disabled {
  border-color: #374151;
  color: #6b7280;
  cursor: not-allowed;
}

/* Generic sections */
.section {
    max-width: 960px;
    margin: 2.5rem auto;
    padding: 0 1.5rem 1rem;
}

.section h2 {
    margin: 0 0 0.75rem;
    font-size: 1.4rem;
}

.section p {
    margin: 0.25rem 0 0.5rem;
    color: #d0d0d0;
}

/* Quiz card */
.quiz-card {
    margin-top: 0.75rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #0b1024;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}

.quiz-progress {
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.quiz-question {
    margin: 0 0 1rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.quiz-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.75rem;
    background: rgb(255, 255, 255, 0.02);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.quiz-option input {
    margin-top: 0.2rem;
}

.quiz-option span {
    font-size: 0.95rem;
}

.quiz-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.quiz-button {
    margin-top: 0.25rem;
}

.quiz-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #9ca3af;
}

/* Quiz result box */
.quiz-result {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  border-radius: 1rem;
  background: #060b1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}

.quiz-result h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.quiz-result p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: #d0d0d0;
}

.quiz-result ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.quiz-result li {
  font-size: 0.9rem;
  color: #d0d0d0;
}

/* Utility: hidden */
.hidden {
  display: none;
}

.donation-list {
  list-style: none;
  padding-left: 0;
  margin: 0.75rem 0 0;
}

.donation-list li {
  margin-bottom: 0.5rem;
}

.donation-list code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.9rem;
  /*background: #f3f4f6;*/
  padding: 0.15rem 0.35rem;
  border-radius: 0.25rem;
}


/* Type grid layout */
.type-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.type-card {
  padding: 1rem 1.1rem 1.1rem;
  border-radius: 0.9rem;
  background: #090f22;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.type-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.type-card h3 a {
  color: inherit;
  text-decoration: none;
}

.type-card h3 a:hover {
  text-decoration: underline;
}

.type-tagline {
  margin: 0 0 0.45rem;
  font-size: 0.85rem;
  color: #fbbf77;
  font-style: italic;
}

.type-blurb {
  margin: 0;
  font-size: 0.9rem;
  color: #d0d0d0;
}

/* Type detail page */
.type-detail-card {
  padding: 1.5rem 1.6rem;
  border-radius: 1rem;
  background: #0b1024;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

.type-detail-card h2 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
}

.type-detail-card p {
  margin: 0.35rem 0;
  font-size: 0.9rem;
  color: #d0d0d0;
}

/* === Visual polish: global layout & typography overrides === */

/* Global body + background */
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.6;
  color: #e5e7eb;
  background:
    radial-gradient(circle at top, #1f2937 0, #020617 55%, #000000 100%);
}

/* Constrain main content width & padding */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 5.5rem 1.75rem 3rem;
}

/* Header polish */
.site-header {
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(14px);
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.7rem 1.75rem;
}

/* Logo & nav tweaks */
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #facc15, #f97316);
  color: #020617;
  font-weight: 800;
  font-size: 1rem;
}

.logo-text {
  margin-left: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: #e5e7eb;
}

.main-nav a {
  font-size: 0.9rem;
  color: #e5e7eb;
  opacity: 0.8;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: opacity 0.12s ease, border-color 0.12s ease;
}

.main-nav a:hover {
  opacity: 1;
  border-color: #f97316;
}

/* Hero section */
.hero {
  margin-bottom: 2.5rem;
  text-align: left;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  letter-spacing: 0.03em;
}

.hero-subtitle {
  margin: 0 0 1.25rem;
  max-width: 40rem;
  color: #9ca3af;
  font-size: 0.98rem;
}

/* Sections */
.section {
  margin-top: 2.25rem;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.section p,
.section li {
  font-size: 0.95rem;
}

/* Buttons */
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #111827;
  box-shadow: 0 14px 35px rgba(249, 115, 22, 0.4);
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    filter 0.12s ease, opacity 0.12s ease;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 45px rgba(249, 115, 22, 0.55);
  filter: brightness(1.03);
}

.primary-button:active {
  transform: translateY(0);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.9);
}

/* Keep disabled quiz button visibly different */
.primary-button[disabled] {
  opacity: 0.6;
  cursor: default;
  box-shadow: none;
  filter: none;
}

/* Card polish: quiz + type cards align visually */
.quiz-card,
.type-card,
.type-detail-card,
.quiz-result {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

/* Slightly tighter grid gap on wide screens */
@media (min-width: 900px) {
  .type-grid {
    gap: 1.15rem;
  }
}

/* === Visual polish #2: quiz & result === */

/* Quiz card layout */
.quiz-card {
  margin-top: 1rem;
  padding: 1.5rem 1.6rem;
  background: radial-gradient(circle at top left, #111827 0, #020617 60%);
}

/* Progress & question */
.quiz-progress {
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #9ca3af;
}

.quiz-question {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 600;
}

/* Quiz options layout */
.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.quiz-option {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-radius: 0.85rem;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  cursor: pointer;
  transition: border-color 0.12s ease, background-color 0.12s ease,
    box-shadow 0.12s ease, transform 0.08s ease;
}

.quiz-option:hover {
  border-color: #f97316;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.8);
  transform: translateY(-1px);
}

.quiz-option input[type="radio"] {
  margin-top: 0.18rem;
  accent-color: #f97316;
}

.quiz-option span {
  font-size: 0.92rem;
}

/* Quiz button + hint */
.quiz-button {
  margin-top: 0.2rem;
}

.quiz-hint {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

/* Quiz result card tweak to match quiz card */
.quiz-result {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
}

/* === Visual polish #3: type grid & type detail === */

/* Types page hero tighter spacing */
body #top .hero h1 {
  letter-spacing: 0.05em;
}

/* Type grid spacing within section */
.section .type-grid {
  margin-top: 1.4rem;
}

/* Type cards refinement */
.type-card {
  background: radial-gradient(circle at top left, #0b1024 0, #020617 65%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  padding: 1rem 1.2rem 1.15rem;
}

.type-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.98rem;
}

.type-card h3 a {
  color: #e5e7eb;
  text-decoration: none;
}

.type-card h3 a:hover {
  text-decoration: underline;
}

.type-tagline {
  margin: 0 0 0.4rem;
  font-size: 0.83rem;
  color: #fbbf77;
  font-style: italic;
}

.type-blurb {
  font-size: 0.88rem;
  color: #d1d5db;
}

/* Slight hover feedback on cards */
.type-card {
  transition: transform 0.12s ease, box-shadow 0.12s ease,
    border-color 0.12s ease;
}

.type-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.9);
  border-color: rgba(249, 115, 22, 0.7);
}

/* Type detail card alignment with quiz card style */
.type-detail-card {
  background: radial-gradient(circle at top left, #020617 0, #020617 55%);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.type-detail-card h2 {
  font-size: 1.35rem;
}

.type-detail-card p {
  font-size: 0.95rem;
}

/* Make inline primary-button in type detail look tidy */
.type-detail-card .primary-button {
  margin-top: 0.25rem;
}

/* =========================================
   Footer / copyright
   ========================================= */

.site-footer {
  margin-top: 2rem;
  padding: 1.5rem 1rem;
  /*border-top: 1px solid #e5e7eb;
  background: #f9fafb;*/
  color: #6b7280;
  font-size: 0.85rem;
}

.site-footer .footer-text {
  margin: 0;
  font-weight: 500;
}

.site-footer .footer-usage {
  margin: 0.35rem 0 0;
  max-width: 720px;
}

/* =========================================
   Mobile polish
   ========================================= */

@media (max-width: 768px) {
  body {
    font-size: 16px;
  }

  main {
    padding: 0;
  }

  .container {
    padding: 1.25rem 1rem;
    max-width: 100%;
  }

  .hero {
    padding: 3rem 0 2.25rem;
  }

  .hero-title {
    font-size: clamp(1.75rem, 6vw, 2.4rem);
    line-height: 1.2;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section {
    padding: 2rem 0;
  }

  .card,
  .quiz-card {
    padding: 1.25rem 1rem;
  }

  .quiz-option {
    display: block;
    padding: 0.75rem 0.85rem;
  }

  /* Make nav wrap nicely and not feel cramped */
  .main-nav {
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.9rem;
  }

  /* Make buttons easy to tap on small screens */
  .quiz-button-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .quiz-button-row button,
  .primary-button {
    width: 100%;
    text-align: center;
  }

  /* If you have a type grid, make it single-column on mobile */
  .type-grid {
    grid-template-columns: 1fr;
  }
}