
/* ==================================================
   POLYMATH LEARNING CENTER
   https://www.mykindlebooks.net/polymath/
   Shared stylesheet
   ================================================== */

:root {
  --bg: #0b1424;
  --bg-soft: #111f35;
  --panel: #172840;
  --panel-hover: #1d3350;
  --gold: #e8bd68;
  --gold-light: #f7dfa3;
  --text: #f2f5fa;
  --muted: #bbc7d7;
  --border: #34465f;
  --success: #8cdeb0;
  --radius: 14px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3 {
  line-height: 1.3;
  color: var(--gold-light);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

h3 {
  font-size: 1.2rem;
}

p {
  margin: 0 0 1.2rem;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(92%, var(--max-width));
  margin: 0 auto;
}

/* Header and navigation */

.site-header {
  background: #09111f;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px 0;
}

.site-logo {
  color: var(--gold);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.site-logo:hover {
  text-decoration: none;
}

.site-tagline {
  color: var(--muted);
  font-size: .85rem;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

nav a {
  color: var(--text);
  font-size: .95rem;
  font-weight: 600;
}

nav a:hover,
nav a[aria-current="page"] {
  color: var(--gold);
}

/* Hero */

.hero {
  padding: 75px 0 65px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, #243b5d, transparent 70%),
    var(--bg);
}

.hero h1 {
  margin: 0 auto 20px;
  max-width: 850px;
}

.hero p {
  max-width: 780px;
  margin: 0 auto 25px;
  color: var(--muted);
  font-size: 1.15rem;
}

.eyebrow {
  color: var(--gold);
  font-size: .85rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-buttons,
.button-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 25px;
}

/* Buttons */

.btn,
button.btn {
  display: inline-block;
  padding: 12px 22px;
  border: 1px solid var(--gold);
  border-radius: 9px;
  background: var(--gold);
  color: #142033;
  font: inherit;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.btn:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--gold-light);
}

.btn-secondary:hover {
  background: var(--panel);
}

button:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

/* Main content */

main {
  min-height: 55vh;
}

.section {
  padding: 55px 0;
}

.section-alt {
  background: var(--bg-soft);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 35px;
  text-align: center;
}

.section-heading p {
  color: var(--muted);
}

.content {
  max-width: 850px;
  margin: 45px auto;
}

.page-title {
  margin-bottom: 15px;
}

.page-intro {
  color: var(--muted);
  font-size: 1.12rem;
}

/* Cards and grids */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  padding: 26px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.card h2,
.card h3 {
  margin-top: 0;
}

.card p {
  color: var(--muted);
}

.card:hover {
  border-color: #806a43;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.card .btn {
  margin-top: 10px;
}

/* Highlighted messages */

.highlight-box,
.callout {
  margin: 30px 0;
  padding: 25px;
  border-left: 4px solid var(--gold);
  border-radius: 0 12px 12px 0;
  background: var(--bg-soft);
}

.highlight-box p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.quote {
  max-width: 850px;
  margin: 40px auto;
  padding: 25px;
  border-left: 4px solid var(--gold);
  font-size: 1.2rem;
  font-style: italic;
}

.muted {
  color: var(--muted);
}

.text-center {
  text-align: center;
}

/* SI prompt cards */

.prompt-card {
  margin-bottom: 24px;
  padding: 25px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.prompt-card h3 {
  margin-top: 0;
}

.prompt-text {
  padding: 18px;
  background: #0b192d;
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.copy-btn {
  margin-top: 15px;
}

.copy-message {
  display: inline-block;
  margin-left: 12px;
  color: var(--success);
  font-size: .9rem;
}

.category-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-size: .85rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* 30-day challenge */

.challenge-day {
  margin-bottom: 18px;
  padding: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.challenge-day.completed {
  border-color: var(--success);
}

.challenge-day h3 {
  margin-top: 0;
}

.challenge-day label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.challenge-day input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--gold);
}

.progress-wrap {
  margin: 25px 0;
}

.progress-bar {
  height: 18px;
  background: #30415a;
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: var(--gold);
  border-radius: 99px;
  transition: width .3s ease;
}

.progress-text {
  margin-top: 10px;
  color: var(--muted);
  font-weight: bold;
}

/* Interactive discovery questionnaire */

.quiz-container {
  max-width: 800px;
  margin: 35px auto;
  padding: 30px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.question {
  margin-bottom: 30px;
}

.question h3,
.question legend {
  margin-bottom: 15px;
  color: var(--gold-light);
  font-size: 1.1rem;
  font-weight: bold;
}

fieldset.question {
  border: 0;
  padding: 0;
}

.option {
  display: block;
  margin: 10px 0;
  padding: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
}

.option:hover {
  border-color: var(--gold);
}

.option input {
  margin-right: 10px;
  accent-color: var(--gold);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #0b192d;
  color: var(--text);
  font: inherit;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.results-box {
  margin-top: 30px;
  padding: 25px;
  background: var(--bg-soft);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
}

.results-box[hidden] {
  display: none;
}

/* Book promotion */

.book-feature {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 35px;
  align-items: center;
  padding: 35px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.book-cover {
  width: 100%;
  border-radius: 7px;
  box-shadow: 0 12px 35px #0007;
}

/* Footer */

.site-footer {
  margin-top: 55px;
  padding: 35px 0;
  background: #09111f;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 18px;
}

/* Responsive layout */

@media (max-width: 800px) {
  .card-grid,
  .card-grid.two-col {
    grid-template-columns: 1fr;
  }

  .book-feature {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .book-cover {
    max-width: 240px;
    margin: 0 auto;
  }

  .header-inner {
    justify-content: center;
    text-align: center;
  }

  nav {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  body {
    font-size: 16px;
  }

  .hero {
    padding: 50px 0;
  }

  .section {
    padding: 35px 0;
  }

  .card,
  .prompt-card,
  .quiz-container {
    padding: 20px;
  }

  .btn {
    width: 100%;
  }

  .hero-buttons,
  .button-row {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
