:root {
  --ink: #2a2118;
  --muted: #5c5348;
  --paper: #f4ead6;
  --card: #fff8ea;
  --line: #d7c8a8;
  --sea: #2f6f6a;
  --sea-dark: #1d4a47;
  --rust: #8b3a2a;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  background:
    radial-gradient(900px 400px at 80% -10%, #e7d7b0 0%, transparent 60%),
    var(--paper);
  line-height: 1.6;
}

.sand {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/treasure/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/treasure/%3E%3C/svg%3E");
}

.hero, .card, .map-wrap, .split, footer {
  position: relative;
  width: min(760px, calc(100% - 2rem));
  margin-left: auto;
  margin-right: auto;
}

.hero { padding: 3.2rem 0 1.2rem; }

.eyebrow {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--sea);
  font-weight: 600;
  margin: 0 0 0.6rem;
}

h1, h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  line-height: 0.95;
  margin: 0 0 1rem;
}

h2 { font-size: 1.7rem; margin: 0 0 0.7rem; }

.blurb { font-size: 1.08rem; color: var(--muted); max-width: 38rem; }

.map-wrap, .still { margin: 0 auto 1.4rem; }
.map-wrap img, .still img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(60, 40, 20, 0.14);
}
figcaption, .fine {
  font-size: 0.86rem;
  color: var(--muted);
  margin-top: 0.45rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.45rem;
  margin-bottom: 1.3rem;
  box-shadow: 0 10px 28px rgba(60, 40, 20, 0.06);
}

.riddle {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.45;
}

.hints {
  margin: 0.8rem 0 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1rem;
  margin-bottom: 1.3rem;
  align-items: stretch;
}
.split .card { margin: 0; }
.split .still { margin: 0; }

label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.35rem; }

.row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

input {
  flex: 1;
  min-width: 8rem;
  font: inherit;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

button {
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.95rem;
  background: var(--sea);
  color: #f7f3ea;
  cursor: pointer;
}
button:hover { background: var(--sea-dark); }

.msg { color: var(--rust); font-weight: 600; margin: 0.6rem 0 0; }

blockquote {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--sea);
  background: #efe4c9;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.15rem;
}

footer {
  padding: 0.4rem 0 3rem;
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; }
  .hero { padding-top: 2rem; }
}

/* ===== Additions for the hub + multi-stop hunts (keeps original palette/type) ===== */
a { color: var(--sea-dark); }
.wrap { position: relative; width: min(960px, calc(100% - 2rem)); margin: 0 auto; }
.topnav { position: relative; width: min(960px, calc(100% - 2rem)); margin: 0 auto; display: flex; gap: 1.1rem; align-items: center; padding: 1rem 0 0; font-size: .92rem; flex-wrap: wrap; }
.topnav .brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.35rem; font-weight: 600; color: var(--ink); text-decoration: none; margin-right: auto; }
.topnav a { text-decoration: none; font-weight: 600; }
.preview-flag { background: var(--rust); color: #fff8ea; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; text-align: center; padding: .35rem; position: relative; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0 0 1.2rem; }
.filters fieldset { border: 0; padding: 0; margin: 0; display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.filters legend { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sea); font-weight: 600; margin-right: .3rem; float: left; padding-top: .35rem; }
.chip { font: inherit; font-size: .85rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--sea); color: #f7f3ea; border-color: var(--sea); }
.chip:hover { background: #efe4c9; } .chip[aria-pressed="true"]:hover { background: var(--sea-dark); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.hunt-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 10px 28px rgba(60,40,20,.06); }
.hunt-card img { width: 100%; height: 150px; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.hunt-card .body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.hunt-card h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; margin: 0; line-height: 1.1; }
.hunt-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.hunt-card .cta { margin-top: auto; padding-top: .6rem; }
.hunt-card.soon { opacity: .78; } .hunt-card.soon .ph { height: 150px; background: repeating-linear-gradient(135deg,#efe4c9 0 12px,#f4ead6 12px 24px); border-bottom: 1px solid var(--line); display:flex; align-items:center; justify-content:center; font-family:"Cormorant Garamond",serif; font-size:1.3rem; color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag { font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; background: #efe4c9; color: var(--sea-dark); }
.tag.live { background: var(--sea); color: #f7f3ea; } .tag.event { background: var(--rust); color: #fff8ea; }
.btn { display: inline-block; font-weight: 600; text-decoration: none; border-radius: 10px; padding: .55rem .9rem; background: var(--sea); color: #f7f3ea; }
.btn:hover { background: var(--sea-dark); } .btn.ghost { background: transparent; color: var(--sea-dark); border: 1px solid var(--line); }
.empty { color: var(--muted); font-style: italic; }
.drivebar { position: sticky; top: 0; z-index: 5; background: var(--sea-dark); color: #f7f3ea; font-size: .9rem; padding: .55rem 1rem; text-align: center; }
.progress { display: flex; gap: .35rem; justify-content: center; margin: .2rem 0 1rem; flex-wrap: wrap; }
.progress span { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--line); background: var(--card); font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 1.2rem; color: var(--muted); }
.progress span.got { border: 1px solid var(--sea); background: var(--sea); color: #f7f3ea; }
.progress span.here { border: 2px solid var(--rust); }
.meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .4rem 1rem; font-size: .92rem; margin: .6rem 0 .2rem; padding: 0; list-style: none; }
.meta li b { display: block; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--sea); }
.safety { border-left: 4px solid var(--rust); background: #f6e3d6; padding: .7rem .9rem; border-radius: 8px; font-size: .93rem; margin: .8rem 0; }
.safety ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.hintbox { margin-top: .7rem; } .hintbox button { background: transparent; color: var(--sea-dark); border: 1px solid var(--line); font-size: .88rem; padding: .4rem .7rem; }
.hintbox p { margin: .5rem 0 0; color: var(--muted); }
.ok { color: var(--sea-dark); font-weight: 600; margin: .6rem 0 0; }
.letter { font-family: "Cormorant Garamond", serif; font-size: 3rem; line-height: 1; color: var(--rust); }
.parked { display: flex; gap: .5rem; align-items: center; font-weight: 600; margin: .6rem 0; }
.parked input { flex: 0 0 auto; min-width: 0; width: 1.2rem; height: 1.2rem; }
.done-stop { opacity: .9; } .done-stop .riddle { opacity: .7; }
.tiles { display:flex; gap:.4rem; flex-wrap:wrap; justify-content:center; margin: .6rem 0 1rem; }
.tiles span { width: 2.6rem; height: 2.6rem; display:grid; place-items:center; background:#efe4c9; border:1px solid var(--line); border-radius:8px; font-family:"Cormorant Garamond",serif; font-size:1.6rem; font-weight:600; }
.small { font-size: .86rem; color: var(--muted); }
.reset { background: transparent; color: var(--rust); border: 1px solid var(--line); font-size: .85rem; }
.hidden { display: none !important; }

.home-extras { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.home-extras article { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.1rem 1.2rem 1.25rem; box-shadow: 0 10px 28px rgba(60,40,20,.06); display: flex; flex-direction: column; gap: .4rem; }
.home-extras h3 { font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.5rem; margin: 0; line-height: 1.1; }
.home-extras p { margin: 0; color: var(--muted); font-size: .95rem; }
.home-extras .cta { margin-top: auto; padding-top: .6rem; }
