/* ============================================================
   CUSTOM FONT
============================================================ */
@font-face {
  font-family: 'CloisterBlack';
  src: url('../fonts/CloisterBlack.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   CSS VARIABLES
============================================================ */
:root {
  --forest: #1a2e1a;
  --bark: #2c1a0e;
  --amber: #c8860a;
  --gold: #e8a820;
  --goldlit: #f5c842;
  --cream: #f5ead4;
  --parchment: #ede0c0;
  --tan: #d4b896;
  --rust: #8b3a0f;
  --sage: #4a6741;
  --white: #fdf8ef;
  --shadow: rgba(28, 12, 4, 0.6);

  --font-display: 'UnifrakturMaguntia', cursive;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;
}

/* ============================================================
   RESET
============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bark);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  min-height: 100vh;
  background-image:
    repeating-linear-gradient(90deg,
      transparent,
      transparent 80px,
      rgba(255, 255, 255, 0.012) 80px,
      rgba(255, 255, 255, 0.012) 81px),
    repeating-linear-gradient(180deg,
      transparent,
      transparent 4px,
      rgba(0, 0, 0, 0.08) 4px,
      rgba(0, 0, 0, 0.08) 5px);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

/* ============================================================
   ANIMATIONS
============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeUp 0.7s ease both;
}
