/* ============================================
   GeoGuessr Strategy Guide — Website Styles
   Color scheme: Augusta Masters — deep green, warm gold, cream
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --green-dark: #0c3823;
  --green-mid: #14542e;
  --green-light: #1a6b38;
  --gold: #c8a951;
  --gold-light: #dac06e;
  --gold-dark: #a68a2e;
  --white: #ffffff;
  --off-white: #faf8f3;
  --cream: #f5f1e8;
  --gray-light: #e6e2d9;
  --gray-mid: #8a8577;
  --gray-dark: #4a4740;
  --text-dark: #1a1a18;
  --text-body: #3a3835;
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: 'Georgia', 'Times New Roman', serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  --max-width: 1100px;
  --content-width: 740px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-body);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.01em;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green-dark);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover {
  color: var(--gold-dark);
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.content-narrow {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- Site Header / Nav --- */
.site-header {
  background: var(--green-dark);
  border-bottom: 2px solid var(--gold);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-logo {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  text-decoration: none;
  letter-spacing: 0.04em;
}

.site-logo:hover {
  color: var(--gold-light);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 400;
  padding: 0.25rem 0;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--gold);
  color: var(--gold);
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.8rem 2.25rem;
  font-size: 0.9rem;
  font-weight: 400;
  font-family: var(--font-heading);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.1s;
  text-align: center;
  line-height: 1.3;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: var(--green-dark);
  border-color: var(--gold);
}

.btn-primary:hover {
  background: var(--gold-light);
  color: var(--green-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-secondary:hover {
  background: var(--white);
  color: var(--green-dark);
}

.btn-outline {
  background: transparent;
  color: var(--green-dark);
  border-color: var(--green-dark);
}

.btn-outline:hover {
  background: var(--green-dark);
  color: var(--white);
}

.btn-small {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
}

/* --- Hero Section --- */
.hero {
  background: var(--green-dark);
  color: var(--white);
  padding: 5rem 0 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(200, 169, 81, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero > * {
  position: relative;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--white);
  font-weight: 400;
  letter-spacing: 0.02em;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--gold);
  font-weight: 400;
  margin-bottom: 0.75rem;
  font-family: var(--font-heading);
  font-style: italic;
  letter-spacing: 0.03em;
}

.hero .tagline {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-style: italic;
}

.hero-covers {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.cover-img {
  width: 200px;
  height: auto;
  border-radius: 2px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(200, 169, 81, 0.3);
  transition: transform 0.3s;
}

.cover-img:hover {
  transform: translateY(-3px);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Sections --- */
.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: var(--off-white);
  border-top: 1px solid var(--gray-light);
  border-bottom: 1px solid var(--gray-light);
}

.section-dark {
  background: var(--green-dark);
  color: var(--white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--gold);
}

.section-dark p {
  color: rgba(255, 255, 255, 0.9);
}

.section-dark a {
  color: var(--gold-light);
}

.section h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section h2 + .section-lead {
  text-align: center;
  font-size: 1.1rem;
  color: var(--gray-mid);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

/* --- Feature Grid --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  border-top: 2px solid var(--gold);
  padding: 2rem 1.75rem;
  transition: box-shadow 0.3s;
}

.feature-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
  font-weight: 400;
  font-style: italic;
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.7;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.7;
}

/* --- Table of Contents --- */
.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.toc-part {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  padding: 1.75rem;
  border-top: 2px solid var(--gold);
}

.toc-part h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--gray-light);
}

.toc-part ol {
  list-style: none;
  counter-reset: chapter-counter;
  padding: 0;
}

.toc-part ol li {
  counter-increment: chapter-counter;
  padding: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.toc-part ol li:last-child {
  border-bottom: none;
}

.toc-part ol li strong {
  color: var(--green-dark);
  font-weight: 600;
}

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.testimonial {
  background: var(--white);
  border-left: 2px solid var(--gold);
  border-radius: 0 2px 2px 0;
  padding: 1.75rem 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.testimonial blockquote {
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1rem;
}

.testimonial .attribution {
  font-size: 0.88rem;
  color: var(--gray-mid);
  font-weight: 600;
}

.testimonial .placeholder-note {
  font-size: 0.78rem;
  color: #c0392b;
  margin-top: 0.25rem;
}

/* --- Audience (Who Is This For) --- */
.audience-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.audience-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: 2px;
  border: 1px solid var(--gray-light);
  border-left: 2px solid var(--gold);
}

.audience-item .icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green-dark);
  color: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.audience-item h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.audience-item p {
  font-size: 0.92rem;
  color: var(--text-body);
}

/* --- CTA Banner --- */
.cta-banner {
  background: var(--green-dark);
  color: var(--white);
  padding: 4.5rem 0;
  text-align: center;
  border-top: 2px solid var(--gold);
}

.cta-banner h2 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.cta-banner p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.cta-banner .hero-buttons {
  margin-top: 1.5rem;
}

/* --- Email Signup Form --- */
.signup-box {
  background: var(--white);
  border: 1px solid var(--gold);
  border-radius: 2px;
  padding: 2.5rem;
  max-width: 520px;
  margin: 2rem auto 0;
  text-align: center;
}

.signup-box h3 {
  font-family: var(--font-heading);
  color: var(--green-dark);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.signup-box p {
  font-size: 0.95rem;
  color: var(--gray-mid);
  margin-bottom: 1.25rem;
}

.signup-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1 1 250px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 6px;
  font-family: var(--font-body);
  transition: border-color 0.2s;
}

.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--gold);
}

.signup-form button {
  font-family: var(--font-body);
}

/* --- Author Section --- */
.author-section {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  max-width: var(--content-width);
  margin: 0 auto;
}

.author-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--gray-light);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-mid);
  font-size: 0.85rem;
  text-align: center;
  border: 3px solid var(--gold);
}

.author-bio h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.author-bio p {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

/* --- Footer --- */
.site-footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 2.5rem 0;
  font-size: 0.82rem;
  border-top: 2px solid var(--gold);
  letter-spacing: 0.02em;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-disclaimer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  width: 100%;
}

/* --- Chapter / Article Content --- */
.article-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 3.5rem 0 3rem;
  text-align: center;
  border-bottom: 2px solid var(--gold);
}

.article-header h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.article-header .chapter-label {
  font-size: 0.95rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.article-header .article-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
}

.article-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.article-content h2 {
  font-family: var(--font-heading);
  font-size: 1.65rem;
  color: var(--green-dark);
  margin: 2.5rem 0 1rem;
  text-align: left;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--gold);
}

.article-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-dark);
  margin: 2rem 0 0.75rem;
}

.article-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--green-mid);
  margin: 1.5rem 0 0.5rem;
}

.article-content p {
  margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
  margin: 0.75rem 0 1.5rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

.article-content strong {
  color: var(--text-dark);
}

.article-content blockquote {
  border-left: 4px solid var(--gold);
  margin: 1.5rem 0;
  padding: 1rem 1.5rem;
  background: var(--off-white);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--text-body);
}

.article-content hr {
  border: none;
  border-top: 2px solid var(--gray-light);
  margin: 3rem 0;
}

.article-content .callout {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-left: 4px solid var(--green-dark);
  border-radius: 0 8px 8px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.article-content .callout strong {
  color: var(--green-dark);
}

/* Inline book CTA */
.inline-cta {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: var(--white);
  border-radius: 10px;
  padding: 2rem 2.25rem;
  margin: 2.5rem 0;
  text-align: center;
}

.inline-cta p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.inline-cta strong {
  color: var(--gold);
}

/* --- Cheat Sheet Page --- */
.cheat-sheet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.cheat-card {
  background: var(--white);
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  padding: 2rem;
  border-top: 2px solid var(--gold);
}

.cheat-card h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

.cheat-card p {
  font-size: 0.92rem;
  margin-bottom: 0.75rem;
  color: var(--text-body);
}

.cheat-card .tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.cheat-card .tag {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--green-dark);
  font-weight: 600;
}

/* --- Preview Table (cheat sheets) --- */
.preview-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.preview-table thead {
  background: var(--green-dark);
  color: var(--white);
}

.preview-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.preview-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--gray-light);
}

.preview-table tbody tr:hover {
  background: var(--off-white);
}

.preview-table tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.015);
}

/* --- Blog Post Specific --- */
.blog-meta {
  font-size: 0.9rem;
  color: var(--gray-mid);
  margin-bottom: 2rem;
}

.tip-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  background: var(--green-dark);
  color: var(--gold);
  border-radius: 50%;
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.75rem;
  flex-shrink: 0;
  vertical-align: middle;
}

.article-content .tip-heading {
  display: flex;
  align-items: center;
  margin: 2.5rem 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--green-dark);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1.1rem;
  }

  .section {
    padding: 3rem 0;
  }

  .section h2 {
    font-size: 1.65rem;
  }

  .toc-grid {
    grid-template-columns: 1fr;
  }

  .author-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .article-header h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  html {
    font-size: 15px;
  }

  .hero {
    padding: 3rem 0 2.5rem;
  }

  .hero h1 {
    font-size: 1.85rem;
  }

  .hero .tagline {
    font-size: 0.95rem;
  }

  .hero-covers {
    gap: 1rem;
  }

  .cover-img {
    width: 140px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .site-header .container {
    flex-direction: column;
    text-align: center;
  }

  .site-nav {
    justify-content: center;
  }

  .section {
    padding: 2.5rem 0;
  }

  .feature-grid,
  .cheat-sheet-grid {
    grid-template-columns: 1fr;
  }

  .signup-form {
    flex-direction: column;
  }

  .signup-form input[type="email"] {
    flex-basis: auto;
  }

  .site-footer .container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }

  .article-header h1 {
    font-size: 1.5rem;
  }

  .article-content h2 {
    font-size: 1.35rem;
  }

  .preview-table {
    font-size: 0.82rem;
  }

  .preview-table th,
  .preview-table td {
    padding: 0.5rem 0.6rem;
  }
}

/* --- Correction Form --- */
.correction-form-box {
  background: var(--off-white);
  border: 1px solid var(--gray-light);
  border-radius: 2px;
  padding: 2rem;
  margin: 1.5rem 0;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: var(--font-body);
  border: 2px solid var(--gray-light);
  border-radius: 6px;
  transition: border-color 0.2s;
  background: var(--white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-group textarea {
  resize: vertical;
}

/* --- Print Styles --- */
@media print {
  .site-header,
  .site-footer,
  .cta-banner,
  .inline-cta,
  .signup-box,
  .hero-buttons,
  .site-nav {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
    font-size: 11pt;
    line-height: 1.5;
  }

  .hero {
    background: none;
    color: #000;
    padding: 1rem 0;
  }

  .hero h1 {
    color: #000;
    font-size: 24pt;
  }

  .hero .subtitle {
    color: #333;
  }

  .section-dark {
    background: none;
    color: #000;
  }

  .section-dark h2,
  .section-dark h3 {
    color: #000;
  }

  .section-dark p {
    color: #333;
  }

  .article-header {
    background: none;
    color: #000;
    padding: 1rem 0;
  }

  .article-header h1 {
    color: #000;
  }

  .article-header .chapter-label {
    color: #333;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .preview-table thead {
    background: #eee;
    color: #000;
  }

  .feature-card,
  .cheat-card,
  .toc-part,
  .testimonial {
    break-inside: avoid;
    border: 1px solid #ccc;
    box-shadow: none;
  }
}
