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

/* CSS Custom Properties */
:root {
  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Period Colors */
  --period-1-color: #4285f4;
  --period-2-color: #34a853;
  --period-3-color: #fbbc04;
  --period-4-color: #ea4335;
  --period-5-color: #9c27b0;
  --period-6-color: #00bcd4;
  --period-7-color: #ff9800;
  --period-8-color: #e91e63;
}

/* Base Typography */
body {
  font-family: var(--font-body);
  color: #1a1a1a;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* Footer Styles */
footer {
  background: #f8f8f8;
  border-top: 1px solid #e0e0e0;
  padding: 40px 20px;
  margin-top: 80px;
  text-align: center;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
}

.footer-tagline {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.6;
}

.footer-tagline a {
  color: #4285f4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-tagline a:hover {
  color: #3367d6;
  text-decoration: underline;
}

.footer-links {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 15px;
  font-size: 0.85rem;
}

.footer-links a {
  color: #888;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #4285f4;
}

/* Footer Button */
.footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: #4285f4;
  color: white !important;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
  transition: all 0.3s ease;
}

.footer-btn:hover {
  background: #3367d6;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.4);
  text-decoration: none !important;
}

.footer-btn .arrow {
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.footer-btn:hover .arrow {
  transform: translateX(3px);
}

/* ========================================
   Callout Components
   ======================================== */

/* Base callout styling with paper-like texture */
.callout {
  position: relative;
  margin: 2.5rem 0;
  padding: 1.5rem 1.5rem 1.5rem 3rem;
  border-radius: 2px;
  font-size: 0.875rem;
  line-height: 1.6;
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.06),
    0 4px 12px rgba(0, 0, 0, 0.04);
  isolation: isolate;
}

/* Paper-like texture overlay using gradients */
.callout::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px;
  opacity: 0.4;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.01) 2px,
      rgba(0, 0, 0, 0.01) 4px
    );
  z-index: 1;
}

.callout > * {
  position: relative;
  z-index: 2;
}

/* Emoji indicator - asymmetric placement */
.callout-icon {
  position: absolute;
  top: -8px;
  left: -8px;
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  z-index: 3;
}

/* Warning callout - warm archival amber */
.callout-warning {
  background:
    linear-gradient(135deg,
      #fdf6e3 0%,
      #fef8e7 50%,
      #fdf5e1 100%
    );
  border-left: 6px solid #d97706;
}

.callout-warning::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(
    180deg,
    #ea580c 0%,
    #d97706 50%,
    #b45309 100%
  );
  box-shadow: 2px 0 8px rgba(217, 119, 6, 0.3);
}

/* Info callout - cool archival slate */
.callout-info {
  background:
    linear-gradient(135deg,
      #f8f9fa 0%,
      #f1f3f5 50%,
      #f4f6f8 100%
    );
  border-left: 4px dashed #64748b;
}

.callout-info::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 4px;
  background:
    repeating-linear-gradient(
      180deg,
      #64748b,
      #64748b 8px,
      transparent 8px,
      transparent 16px
    );
  opacity: 0.6;
}

/* Optional: callout with title/label */
.callout-label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.75rem;
  opacity: 0.7;
}

.callout-warning .callout-label {
  color: #92400e;
}

.callout-info .callout-label {
  color: #475569;
}

/* Callout paragraphs */
.callout p {
  margin-bottom: 0.75rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

/* Callout strong text */
.callout strong {
  font-weight: 600;
  color: inherit;
}
