@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces/Fraunces-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces/Fraunces-Italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Sketch Serif";
  src: url("/fonts/sketchserif/SketchSerif-latin.woff2") format("woff2");
  unicode-range: U+0020-007F, U+2019;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Merienda";
  src: url("/fonts/merienda/merienda-v19-latin-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --page-bg: #f8f6f1;
  --text: #1f1f1f;
  --text-secondary: #5a5752;
  --heading-font: "Fraunces", Georgia, serif;
  --body-font:
    system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --content-width: 60rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background: var(--page-bg);
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.5;
}

.site-header,
main,
.site-footer {
  width: min(var(--content-width), 100% - 2rem);
  margin-inline: auto;
}

main {
  flex: 1 0 auto;
}

.site-header {
  padding: 4rem 0 2.5rem;
  text-align: center;
  text-wrap: balance;
}

.site-title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 600;
  line-height: 1.1;
}

.tagline {
  margin: 0.5rem 0 0;
  color: var(--text-secondary);
  font-family: var(--heading-font);
  font-size: 1.125rem;
  font-style: italic;
}

.hunts {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hunt {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: var(--card-bg);
  color: var(--card-fg);
  text-decoration: none;
  transition: transform 150ms ease-out;
}

.hunt:hover {
  transform: translateY(-3px);
}

.hunt:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}

.hunt-2025 {
  --card-bg: #253237;
  --card-fg: #eaeff1;
  --card-muted: #9ed0e6;
  --card-title-font: "Sketch Serif", Georgia, serif;
  --card-title-weight: 400;
}

.hunt-2024 {
  --card-bg: #bd4749;
  --card-fg: #f6e5e5;
  --card-muted: #f6e5e5;
  --card-title-font: "Merienda", "Brush Script MT", cursive;
  --card-title-weight: 700;
}

.hunt-art {
  display: block;
  aspect-ratio: 1.618;
  padding: 1.25rem 1.25rem 0;
}

.hunt-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Oval fade matching the 2025 home page splash */
.hunt-art-masked img {
  object-fit: cover;
  mask-image: radial-gradient(ellipse closest-side, black 88%, transparent 98%);
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
}

.hunt-text {
  padding: 1rem 1.5rem 1.5rem;
  text-align: center;
}

.hunt-title {
  margin: 0;
  font-family: var(--card-title-font);
  font-size: clamp(1.625rem, 6vw, 2rem);
  font-weight: var(--card-title-weight);
  line-height: 1.2;
}

.hunt-subtitle {
  margin: 0.125rem 0 0;
  font-family: var(--card-title-font);
  font-size: clamp(1.25rem, 4.5vw, 1.5rem);
  font-weight: var(--card-title-weight);
  line-height: 1.2;
}

.hunt-dates {
  margin: 0.5rem 0 0;
  color: var(--card-muted);
  font-size: 0.9375rem;
}

.hunt-external {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: var(--card-fg);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

@media (min-width: 48rem) {
  .hunt {
    display: grid;
    grid-template-columns: 55% 1fr;
    align-items: center;
  }

  .hunt-art {
    padding: 1.25rem 0 1.25rem 1.25rem;
  }

  .hunt-text {
    padding: 2rem 2.5rem 2rem 1.5rem;
  }
}

.site-footer {
  padding: 3rem 0 2rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hunt {
    transition: none;
  }
}
