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

/* CSS Custom Properties */
:root {
  /* Colors - Retro/Nostalgic Palette */
  --cream-light: #FDF8F3;
  --cream-medium: #F5F2EB;
  --cream-dark: #E8E4DC;
  --rust: #A0522D;
  --rust-dark: #7B3F00;
  --forest-green: #2F4F4F;
  --forest-green-light: #3A5F5F;
  --charcoal: #3B3B3B;
  --gold: #B8860B;
  --sepia: #704214;

  /* Typography */
  --font-serif: 'Libre Baskerville', 'Georgia', 'Times New Roman', serif;
  --font-display: 'Playfair Display', 'Georgia', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-xxl: 4rem;

  /* Layout */
  --container-max-width: 900px;
  --content-max-width: 720px;

  /* Borders */
  --border-width: 3px;
  --border-ornate: 8px;
}

/* Base Typography */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--charcoal);
  background-color: var(--cream-light);
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(184, 134, 11, 0.02) 2px,
      rgba(184, 134, 11, 0.02) 4px
    );
}

/* Decorative Borders */
.decorative-border-top,
.decorative-border-bottom {
  height: var(--border-ornate);
  background: linear-gradient(
    90deg,
    var(--rust) 0%,
    var(--gold) 25%,
    var(--forest-green) 50%,
    var(--gold) 75%,
    var(--rust) 100%
  );
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.decorative-border-bottom {
  position: relative;
  margin-top: var(--spacing-xxl);
}

/* Container */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--cream-medium);
  background-image: radial-gradient(circle at 20% 50%, rgba(184, 134, 11, 0.05) 0%, transparent 50%);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  border-bottom: var(--border-width) double var(--rust);
  box-shadow: inset 0 -20px 30px -20px rgba(160, 82, 45, 0.1);
}

.ornament-top,
.ornament-bottom {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto var(--spacing-md);
}

.ornament-bottom {
  margin: var(--spacing-md) auto 0;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--forest-green);
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
  letter-spacing: 0.02em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--rust);
  font-style: italic;
  font-weight: 400;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.5;
}

.hero-flourish {
  width: 150px;
  height: 40px;
  margin: var(--spacing-lg) auto 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 40'%3E%3Cpath d='M0,20 Q37.5,5 75,20 T150,20' stroke='%23B8860B' stroke-width='1.5' fill='none' opacity='0.6'/%3E%3Cpath d='M0,20 Q37.5,35 75,20 T150,20' stroke='%23B8860B' stroke-width='1.5' fill='none' opacity='0.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Article Content */
.article-content {
  padding: var(--spacing-xxl) 0;
}

.content-wrapper {
  max-width: var(--content-max-width);
  margin: 0 auto;
  background-color: rgba(255, 255, 255, 0.6);
  padding: var(--spacing-xl);
  border: 1px solid var(--cream-dark);
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    inset 0 0 20px rgba(184, 134, 11, 0.03);
  border-radius: 2px;
}

.lead-paragraph {
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--sepia);
  margin-bottom: var(--spacing-lg);
  padding-left: var(--spacing-md);
  border-left: 4px solid var(--gold);
}

/* Typography Elements */
h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-top: var(--spacing-xl);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-xs);
  border-bottom: 2px solid var(--cream-dark);
  line-height: 1.3;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--rust);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  line-height: 1.4;
}

p {
  margin-bottom: var(--spacing-md);
  text-align: justify;
  hyphens: auto;
}

strong {
  color: var(--forest-green);
  font-weight: 600;
}

/* Lists */
ul,
ol {
  margin-bottom: var(--spacing-md);
  padding-left: var(--spacing-xl);
}

ul li,
ol li {
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

ul li::marker {
  color: var(--rust);
}

ol li::marker {
  color: var(--rust);
  font-weight: 600;
}

/* Blockquotes */
blockquote {
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md) var(--spacing-lg);
  background-color: var(--cream-medium);
  border-left: 6px solid var(--rust);
  border-right: 1px solid var(--cream-dark);
  border-top: 1px solid var(--cream-dark);
  border-bottom: 1px solid var(--cream-dark);
  font-style: italic;
  position: relative;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

blockquote::before {
  content: '\201C';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: 10px;
  line-height: 1;
}

blockquote p {
  margin-bottom: 0;
  color: var(--sepia);
  font-size: 1.1rem;
}

/* Call-to-Action Section */
.cta-section {
  background-color: var(--cream-medium);
  background-image:
    linear-gradient(135deg, var(--cream-medium) 0%, var(--cream-dark) 100%),
    radial-gradient(circle at 50% 50%, rgba(184, 134, 11, 0.05) 0%, transparent 70%);
  padding: var(--spacing-xxl) 0;
  margin-top: var(--spacing-xxl);
  border-top: var(--border-width) double var(--rust);
  border-bottom: var(--border-width) double var(--rust);
  box-shadow:
    inset 0 20px 30px -20px rgba(160, 82, 45, 0.1),
    inset 0 -20px 30px -20px rgba(160, 82, 45, 0.1);
}

.cta-ornament-top,
.cta-ornament-bottom {
  width: 200px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rust), var(--gold), var(--rust), transparent);
  margin: 0 auto var(--spacing-lg);
}

.cta-ornament-bottom {
  margin: var(--spacing-lg) auto 0;
}

.cta-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.cta-badge {
  display: inline-block;
  margin-bottom: var(--spacing-md);
  padding: var(--spacing-xs) var(--spacing-md);
  background-color: var(--rust);
  color: var(--cream-light);
  border-radius: 2px;
  border: 2px solid var(--rust-dark);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-text {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.cta-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 6px solid var(--cream-light);
  box-shadow:
    0 0 0 3px var(--rust),
    0 8px 16px rgba(0, 0, 0, 0.15);
  margin-bottom: var(--spacing-md);
  object-fit: cover;
  filter: sepia(0.15) contrast(1.05);
}

.cta-heading {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: var(--spacing-xs);
  line-height: 1.2;
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--rust);
  font-style: italic;
  margin-bottom: var(--spacing-md);
}

.cta-description {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--charcoal);
  margin-bottom: var(--spacing-lg);
  text-align: center;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-xl);
  background: linear-gradient(180deg, var(--rust) 0%, var(--rust-dark) 100%);
  color: var(--cream-light);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  border: 3px solid var(--rust-dark);
  border-radius: 4px;
  transition: all 0.3s ease;
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 6px 12px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  background: linear-gradient(180deg, var(--rust-dark) 0%, var(--rust) 100%);
}

.cta-button:active {
  transform: translateY(0);
  box-shadow:
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.2);
}

.button-text {
  position: relative;
  z-index: 1;
}

.button-arrow {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.cta-button:hover .button-arrow {
  transform: translateX(4px);
}

/* Footer */
.site-footer {
  padding: var(--spacing-xl) 0 var(--spacing-lg);
  text-align: center;
  background-color: var(--cream-light);
}

.footer-flourish {
  width: 100px;
  height: 30px;
  margin: 0 auto var(--spacing-md);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 30'%3E%3Ccircle cx='50' cy='15' r='3' fill='%23B8860B' opacity='0.6'/%3E%3Ccircle cx='35' cy='15' r='2' fill='%23A0522D' opacity='0.5'/%3E%3Ccircle cx='65' cy='15' r='2' fill='%23A0522D' opacity='0.5'/%3E%3Ccircle cx='20' cy='15' r='1' fill='%232F4F4F' opacity='0.4'/%3E%3Ccircle cx='80' cy='15' r='1' fill='%232F4F4F' opacity='0.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.footer-text {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--forest-green);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 2rem;
    --spacing-xxl: 2.5rem;
  }

  html {
    font-size: 15px;
  }

  body {
    font-size: 1rem;
  }

  .hero-title {
    font-size: 2rem;
  }

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

  .content-wrapper {
    padding: var(--spacing-md);
  }

  .lead-paragraph {
    font-size: 1.1rem;
  }

  h2 {
    font-size: 1.625rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  p {
    text-align: left;
  }

  .cta-heading {
    font-size: 2rem;
  }

  .cta-photo {
    width: 150px;
    height: 150px;
  }

  .cta-button {
    font-size: 1.125rem;
    padding: var(--spacing-sm) var(--spacing-lg);
  }
}

@media (max-width: 480px) {
  :root {
    --spacing-md: 1rem;
    --spacing-lg: 1.25rem;
    --spacing-xl: 1.5rem;
    --spacing-xxl: 2rem;
  }

  html {
    font-size: 14px;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  .hero-title {
    font-size: 1.75rem;
  }

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

  .content-wrapper {
    padding: var(--spacing-sm);
  }

  .cta-heading {
    font-size: 1.75rem;
  }

  .cta-photo {
    width: 120px;
    height: 120px;
  }

  blockquote {
    padding: var(--spacing-sm);
  }

  blockquote::before {
    font-size: 3rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
    font-size: 12pt;
    line-height: 1.5;
  }

  .decorative-border-top,
  .decorative-border-bottom,
  .hero-flourish,
  .footer-flourish,
  .cta-ornament-top,
  .cta-ornament-bottom {
    display: none;
  }

  .hero {
    border-bottom: 2px solid black;
    box-shadow: none;
  }

  .cta-section {
    page-break-before: always;
    border-top: 2px solid black;
    border-bottom: 2px solid black;
  }

  .cta-button {
    display: inline-block;
    border: 2px solid black;
    padding: 8px 16px;
    color: black;
    background: white;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.9em;
  }

  .content-wrapper {
    box-shadow: none;
    border: 1px solid #ccc;
  }
}
