:root {
  color-scheme: light dark;
  --background: #f6f3ee;
  --card: #4b4c4e;
  --title-text: #4b4c4e;
  --text: #fffaf3; 
  --muted: #db1c82;
  --empty-card: #4b4c4e;
  --time-text: #fffaf3;
  --border: #4b4c4e;
  /* --shadow: 0 18px 45px rgba(31, 26, 23, 0.08); /* is this used anywhere? */ 
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--background);
  background-repeat: repeat;
  background-size: auto;
  background-position: top left;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.site-header {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 18px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--title-text);
   text-shadow:
    0 0px 6px rgb(251, 245, 239), 
    0 0px 6px rgb(251, 245, 239), 
    0 0px 6px rgb(251, 245, 239), 
    0 0px 6px rgb(251, 245, 239), 
    0 0px 6px rgb(251, 245, 239), 
    0 0px 6px rgb(251, 245, 239), 
    0 0px 6px rgb(251, 245, 239),
    0 0px 10px rgb(251, 245, 239), 
    0 0px 14px rgb(251, 245, 239);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #352d28;
  text-shadow:
    0 0px 6px rgba(251, 245, 239, 1.0),
    0 0px 10px rgba(251, 245, 239, 1.0),
    0 0px 10px rgba(251, 245, 239, 1.0),
    0 0px 10px rgba(251, 245, 239, 1.0),
    0 0px 10px rgba(251, 245, 239, 1.0),
    0 0px 10px rgba(251, 245, 239, 1.0),
    0 0px 10px rgba(251, 245, 239, 1.0),
    0 0px 14px rgba(251, 245, 239, 1.0);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.feed {
  display: grid;
  gap: 28px;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 72px;
}

.photo-card {
  overflow: hidden;
  background: var(--card);
  border: 5px solid var(--border);
  border-radius: 28px;
  /* box-shadow: var(--shadow); */
}

figure {
  margin: 0;
}

img {
  display: block;
  width: 100%;
  max-height: 82vh;
  object-fit: cover;
  background: rgba(128, 128, 128, 0.12);
}

figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 20px;
  align-items: baseline;
}

.tagline {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  font-weight: 650;
  letter-spacing: -0.02em;
}

time {
  flex: 0 0 auto;
  color: var(--time-text);
  font-size: 0.94rem;
}

.empty-state {
  margin: 16px 0;
  color: var(--empty-card);
  font-size: 1.05rem;
}

code {
  padding: 0.12em 0.34em;
  border-radius: 0.35em;
  background: rgba(128, 128, 128, 0.16);
}

@media (max-width: 640px) {
  .site-header {
    padding-top: 34px;
  }

  .feed {
    gap: 20px;
  }

  .photo-card {
    border-radius: 22px;
  }

  figcaption {
    display: block;
  }

  time {
    display: block;
    margin-top: 8px;
  }
}


.quiz-intro {
  margin: 18px 0 0;
  color: #352d28;
  font-size: 1.1rem;
  font-weight: 650;
  text-shadow: 0 2px 8px rgba(251, 245, 239, 0.9);
}

.nav-link {
  margin: 14px 0 0;
}

.nav-link a {
  color: #352d28;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 8px rgba(251, 245, 239, 0.9);
}

.nav-link a:hover {
  text-decoration: underline;
}



.header-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}

.header-link {
  color: #352d28;
  font-size: clamp(1.125rem, 3vw, 2.25rem);
  font-weight: 800;
  text-decoration: none;
  text-shadow:
    0 1px 2px rgba(251, 245, 239, 1),
    0 3px 10px rgba(251, 245, 239, 0.65);
}

.header-link:hover {
  text-decoration: underline;
}

.header-link:first-child {
  justify-self: start;
}

.header-link:last-child {
  justify-self: end;
}

.music-player {
  width: min(100%, 360px);
}



/* ---------------------------------------------- QUIZ */

body.wrong-flash {
  animation: wrong-flash 3.0s ease-in-out;
}

@keyframes wrong-flash {
  0%,
  50% {
    filter: invert(0);
  }

  25% {
    filter: invert(1);
  }
  75% {
    filter: invert(1);
  }
  100% {
    filter: invert(0);
  }
}

.quiz-feed {
  gap: 22px;
}

.quiz-card {
  padding: 22px;
}

.quiz-card h2 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.7rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.quiz-choices {
  display: grid;
  gap: 12px;
}

.quiz-choice {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fffaf3;
  color: #352d28;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.quiz-choice:hover {
  transform: translateY(-1px);
}

.quiz-choice:disabled {
  cursor: default;
}

.quiz-choice.correct {
  background: #d7f5d0;
  color: #1f4d1e;
}

.quiz-choice.wrong {
  background: #ffd6d1;
  color: #6b1f19;
}

.quiz-result {
  margin: 16px 0 0;
  color: var(--text);
  font-weight: 800;
}

/* ---------------------------------------------- CONTACT */

.contact-card {
  padding: 24px;
}

.contact-card h2 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.contact-card p {
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-line {
  margin: 18px 0 0;
}

.contact-card a {
  color: #fffaf3;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}