/* CSS Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Libre Baskerville', 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.7;
  color: #3a3a3a;
  background: linear-gradient(135deg, #FDF8F3 0%, #F5F2EB 100%);
  background-attachment: fixed;
}

/* CSS Custom Properties */
:root {
  --cream-light: #FDF8F3;
  --cream-dark: #F5F2EB;
  --rust: #a0522d;
  --forest-green: #2d5016;
  --dark-brown: #3a3a3a;
  --gold: #d4af37;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-heavy: rgba(0, 0, 0, 0.2);
  --border-ornate: #8b7355;
}

/* Vintage Border Container */
.vintage-border {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--cream-light);
  border: 3px double var(--border-ornate);
  box-shadow: 0 8px 24px var(--shadow-heavy), inset 0 0 20px rgba(212, 175, 55, 0.1);
  position: relative;
}

.vintage-border::before,
.vintage-border::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border: 2px solid var(--gold);
}

.vintage-border::before {
  top: -2px;
  left: -2px;
  border-right: none;
  border-bottom: none;
}

.vintage-border::after {
  bottom: -2px;
  right: -2px;
  border-left: none;
  border-top: none;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 4rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  background: linear-gradient(to bottom, transparent 0%, var(--cream-dark) 100%);
}

.ornamental-top,
.ornamental-bottom {
  height: 30px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--rust),
    var(--rust) 10px,
    transparent 10px,
    transparent 20px
  );
  opacity: 0.3;
  margin: 0 auto 2rem;
  max-width: 600px;
}

.ornamental-bottom {
  margin: 2rem auto 0;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--forest-green);
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px var(--shadow);
  letter-spacing: 0.5px;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--rust);
  font-weight: 400;
  font-style: italic;
  margin-bottom: 2rem;
}

.decorative-divider {
  width: 200px;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  margin: 2rem auto;
  position: relative;
}

.decorative-divider::before {
  content: '\2766';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--cream-light);
  color: var(--gold);
  font-size: 1.5rem;
  padding: 0 1rem;
}

/* Article Content */
.article-content {
  max-width: 900px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.article-intro {
  font-size: 1.15rem;
  color: var(--dark-brown);
  margin-bottom: 3rem;
  padding: 2rem;
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--rust);
  border-right: 4px solid var(--rust);
}

.article-section {
  margin-bottom: 3rem;
}

.article-section h2 {
  font-size: 2rem;
  color: var(--forest-green);
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--gold);
  position: relative;
}

.article-section h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100px;
  height: 2px;
  background: var(--rust);
}

.article-section h3 {
  font-size: 1.5rem;
  color: var(--rust);
  margin: 2rem 0 1rem;
}

.article-section p {
  margin-bottom: 1.25rem;
  text-align: justify;
}

.article-section strong {
  color: var(--forest-green);
  font-weight: 700;
}

.article-section ul,
.article-section ol {
  margin: 1.5rem 0 1.5rem 2rem;
}

.article-section li {
  margin-bottom: 0.75rem;
}

blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: var(--cream-dark);
  border-left: 5px solid var(--rust);
  font-style: italic;
  color: var(--dark-brown);
  box-shadow: 3px 3px 8px var(--shadow);
}

code {
  font-family: 'Courier New', Courier, monospace;
  background: rgba(45, 80, 22, 0.08);
  padding: 0.2rem 0.4rem;
  border-radius: 3px;
  font-size: 0.9em;
}

pre {
  background: var(--dark-brown);
  color: var(--cream-light);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 2px solid var(--border-ornate);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

pre code {
  background: none;
  padding: 0;
  color: var(--cream-light);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: var(--cream-light);
  border: 2px solid var(--border-ornate);
}

th,
td {
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border-ornate);
}

th {
  background: var(--forest-green);
  color: var(--cream-light);
  font-weight: 700;
}

tr:nth-child(even) {
  background: var(--cream-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border: 5px solid var(--cream-light);
  box-shadow: 0 4px 12px var(--shadow);
}

/* Call-to-Action Section */
.cta-section {
  max-width: 800px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.cta-border {
  background: linear-gradient(135deg, var(--cream-dark) 0%, var(--cream-light) 100%);
  border: 4px double var(--rust);
  padding: 3rem;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 24px var(--shadow-heavy);
}

.cta-border::before,
.cta-border::after {
  content: '\2767';
  position: absolute;
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.5;
}

.cta-border::before {
  top: 1rem;
  left: 1rem;
}

.cta-border::after {
  bottom: 1rem;
  right: 1rem;
}

.vintage-badge {
  display: inline-block;
  background: var(--forest-green);
  color: var(--cream-light);
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  border: 2px solid var(--gold);
  box-shadow: 0 4px 8px var(--shadow);
}

.cta-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  margin: 0 auto 2rem;
  border: 6px solid var(--gold);
  box-shadow: 0 6px 16px var(--shadow-heavy);
  object-fit: cover;
}

.cta-heading {
  font-size: 2.5rem;
  color: var(--forest-green);
  margin-bottom: 1rem;
  font-weight: 700;
}

.cta-description {
  font-size: 1.1rem;
  color: var(--dark-brown);
  margin-bottom: 2rem;
  line-height: 1.8;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-button {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--rust);
  color: var(--cream-light);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  border: 3px solid var(--forest-green);
  box-shadow: 0 6px 16px var(--shadow-heavy);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: var(--forest-green);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease;
  z-index: 0;
}

.cta-button:hover::before {
  width: 300px;
  height: 300px;
}

.cta-button:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--shadow-heavy);
}

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

.cta-ornament {
  margin-top: 2rem;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 3rem 2rem 2rem;
  border-top: 3px double var(--border-ornate);
  margin-top: 4rem;
}

.footer-ornament {
  width: 150px;
  height: 20px;
  margin: 0 auto 1.5rem;
  background-image: repeating-linear-gradient(
    90deg,
    var(--forest-green),
    var(--forest-green) 5px,
    transparent 5px,
    transparent 15px
  );
  opacity: 0.4;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--dark-brown);
  font-style: italic;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .vintage-border {
    margin: 1rem;
    padding: 1.5rem;
  }

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

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

  .article-section h2 {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .vintage-border {
    margin: 0.5rem;
    padding: 1rem;
    border-width: 2px;
  }

  .vintage-border::before,
  .vintage-border::after {
    width: 30px;
    height: 30px;
  }

  .hero {
    padding: 3rem 1rem;
  }

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

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

  .article-content {
    padding: 0 1rem;
  }

  .article-intro {
    padding: 1.5rem;
    font-size: 1.05rem;
  }

  .article-section h2 {
    font-size: 1.5rem;
  }

  .article-section h3 {
    font-size: 1.25rem;
  }

  .article-section p {
    text-align: left;
  }

  .cta-section {
    padding: 0 1rem;
  }

  .cta-border {
    padding: 2rem 1.5rem;
  }

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

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

  .cta-description {
    font-size: 1rem;
  }

  .cta-button {
    padding: 0.875rem 2rem;
    font-size: 1.1rem;
  }

  blockquote {
    padding: 1rem 1.5rem;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

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

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

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

  .cta-border::before,
  .cta-border::after {
    display: none;
  }

  .cta-button {
    width: 100%;
    padding: 1rem;
  }
}

/* Print Styles */
@media print {
  body {
    background: white;
    color: black;
  }

  .vintage-border {
    border: 1px solid black;
    box-shadow: none;
    margin: 0;
    padding: 1rem;
  }

  .vintage-border::before,
  .vintage-border::after {
    display: none;
  }

  .ornamental-top,
  .ornamental-bottom,
  .decorative-divider,
  .footer-ornament {
    display: none;
  }

  .cta-button {
    border: 2px solid black;
    color: black;
    background: white;
  }

  .hero {
    background: none;
  }

  a {
    text-decoration: underline;
    color: black;
  }

  a[href]:after {
    content: " (" attr(href) ")";
  }
}
