@font-face {
  font-family: 'IDCHesperapisDeseret';
  src: url('../flashcards/css/IDCHesperapisDeseret.woff2') format('woff2'),
       url('../flashcards/css/IDCHesperapisDeseret.woff') format('woff'),
       url('../flashcards/css/IDCHesperapisDeseret.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AdamicBee';
  src: url('../flashcards/css/AdamicBee3_0.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-1: #7a9cb5;
  --bg-2: #d9a066;
  --text: #4a3728;
  --muted: #8a7358;
  --accent: #b5562f;
  --on-gradient: #3b2a1a;
  --card-bg: #272f1e;
  --card-bg-front: #453b2f;
  --glyph: #e5d7c2;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Special Elite", serif;
  font-weight: 400;
  font-style: normal;
  background: rgb(156, 144, 128);
  background-attachment: fixed;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 0 3rem;
}

.deseret {
  font-family: 'IDCHesperapisDeseret', 'HoneyInk', 'AdamicBee', 'Noto Sans Deseret', sans-serif;
  font-variant-ligatures: none;
  font-variant-alternates: normal;
  font-feature-settings: "salt" 0, "calt" 0, "liga" 0, "ss01" 0, "ss02" 0, "ss03" 0;
}

.site-header {
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3rem 1.5rem 2rem;
  color: var(--on-gradient);
  text-align: center;
}

.wordmark {
  font-size: 1.6rem;
  opacity: 0.85;
}

.site-header h1 {
  margin: 0.25rem 0 0;
  font-size: 2.1rem;
  font-weight: 700;
}

.tagline {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  max-width: 32rem;
}

.project-grid {
  width: 100%;
  max-width: 720px;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card-bg);
  border-radius: 24px;
  padding: 1.75rem;
  box-shadow: 0 12px 30px rgba(0,0,0,0.2);
  border: 2px solid #2f2211;
  text-decoration: none;
  color: var(--glyph);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.project-card:hover,
a.project-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(0,0,0,0.28);
}

.project-glyphs {
  display: flex;
  gap: 0.4rem;
}

.project-glyphs .deseret {
  font-size: 1.8rem;
  color: var(--glyph);
  opacity: 0.85;
}

.project-body h2 {
  margin: 0 0 0.4rem;
  font-size: 1.3rem;
  color: var(--glyph);
}

.project-body p {
  margin: 0;
  color: #c9bda6;
  font-size: 0.92rem;
  line-height: 1.5;
}

.project-cta {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--bg-2);
  font-weight: 700;
  font-size: 0.9rem;
}

.project-card-placeholder {
  justify-content: center;
  opacity: 0.55;
  border-style: dashed;
}

.project-card-placeholder h2 {
  color: var(--muted);
}

.project-card-placeholder p {
  color: var(--muted);
}

.film-grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.inline-link {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.newsletter-signup {
  margin-top: 2rem;
}

@media (max-width: 480px) {
  .site-header { padding-top: 2.25rem; }
  .site-header h1 { font-size: 1.75rem; }
}
