/* ==========================================================================
   theme.css — CSS Custom Properties & Base Styles
   ========================================================================== */

:root {
  /* --- Color Palette --- */
  --color-parchment:       #f4e8c1;
  --color-parchment-dark:  #d4c69a;
  --color-ink:             #2c1810;
  --color-ink-light:       #5c4033;
  --color-ink-faded:       #8b7355;
  --color-gold:            #b8860b;
  --color-gold-light:      #e0b94a;
  --color-red:             #8b0000;
  --color-divider:         #a08060;
  --color-shadow:          rgba(44, 24, 16, 0.3);
  --color-ink-deep:        #1c0f08;
  --color-highlight:       rgba(244, 232, 193, 0.7);

  /* --- Typography --- */
  --font-gothic:  'UnifrakturMaguntia', 'Old English Text MT', cursive;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body:    'EB Garamond', 'Palatino Linotype', Palatino, Georgia, serif;

  /* --- Spacing --- */
  --card-padding:    1.5rem;
  --card-max-width:  700px;
  --section-gap:     1.25rem;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background-color: #2c1810;
  color: var(--color-ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-ink);
  text-decoration: underline;
  text-decoration-color: var(--color-ink-faded);
  text-underline-offset: 2px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-red);
  text-decoration-color: var(--color-red);
}

/* --- Print Fallback --- */
@media print {
  body {
    background: #fff;
    color: #000;
  }

  .prophet-vignette {
    display: none;
  }

  .prophet-card {
    box-shadow: none;
    border: 1px solid #ccc;
    background-image: none !important;
    background-color: #fff;
  }
}
