/* SWFL Scavenger Hunts. From the business card and the Facebook post cards: a parchment map with a thin ink frame,
   sea-teal dashed trail, a red wax seal with a gold X, ink-brown type. Forest green from the "HUNT HOST" tee for the
   planning band and footer. Pirata One for display, Lora to read. */
:root {
  --parch: #ead7a8;
  --parch-light: #f6edd3;
  --ink: #3b240f;
  --ink2: #5a3a1a;
  --teal: #1f6f6b;
  --teal-ink: #165450;
  --red: #b3261e;
  --forest: #2f4a35;
  --forest-dark: #233a29;
  --cream: #f1e3bd;
  --foil: #d9b65e;
  --display: "Pirata One", "Old English Text MT", Georgia, serif;
  --body: "Lora", Georgia, serif;
  --wrap: 74rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--parch); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.7; }
a { color: var(--teal-ink); text-underline-offset: .2em; }
a:hover { color: var(--red); }
a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-weight: 400; line-height: 1.05; text-wrap: balance; }
h2 { font-family: var(--display); font-size: clamp(2.2rem, 4.6vw, 3.3rem); color: var(--ink); }
h3 { font-family: var(--body); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
p { margin: 0 0 1rem; max-width: 38rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.25rem;
  background: var(--teal-ink); color: #fff; border: 2px solid var(--teal-ink); border-radius: 999px;
  font-family: var(--body); font-weight: 600; text-decoration: none;
}
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink2); }
.btn.ghost:hover { background: var(--ink); color: var(--parch-light); }
.btn.light { background: var(--cream); color: var(--forest-dark); border-color: var(--cream); }
.btn.light:hover { background: #fff; border-color: #fff; color: var(--forest-dark); }
.btn.ghost.light { background: transparent; color: var(--cream); border-color: var(--cream); }
.btn.ghost.light:hover { background: var(--cream); color: var(--forest-dark); }
.btn:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.25rem; }

/* header */
.top { background: var(--parch-light); border-bottom: 2px dashed rgba(90, 58, 26, .45); }
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 4.25rem; }
.brand { font-family: var(--display); font-size: 1.75rem; color: var(--ink); text-decoration: none; white-space: nowrap; line-height: 1; }
.brand .swfl, .foot-brand .swfl { color: var(--teal); }
nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
nav a { color: var(--ink); font-weight: 600; text-decoration: none; }
nav a:hover { color: var(--red); text-decoration: underline; }

/* hero: the map */
.hero { padding: 2rem 0 3rem; }
.map {
  position: relative; border: 4px solid var(--ink2); border-radius: 30px; padding: clamp(1.5rem, 4vw, 3.25rem);
  background:
    radial-gradient(circle at 16% 10%, rgba(255, 250, 230, .8), transparent 46%),
    radial-gradient(circle at 92% 96%, rgba(120, 80, 30, .28), transparent 52%),
    radial-gradient(circle at 4% 98%, rgba(120, 80, 30, .2), transparent 40%),
    var(--parch);
}
.map::after { content: ""; position: absolute; inset: 10px; border: 3px dashed rgba(90, 58, 26, .5); border-radius: 21px; pointer-events: none; }
.swfl-big { font-family: var(--display); color: var(--teal); font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1; margin: 0; }
.hero h1 { font-family: var(--display); font-size: clamp(3rem, 12.5vw, 8.5rem); line-height: .95; color: var(--ink); margin-top: .1em; }
.tag { font-size: clamp(1.15rem, 2.5vw, 1.7rem); font-weight: 600; color: var(--ink2); margin: .6rem 0 0; max-width: none; }

.route { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 30rem); align-items: start; gap: 0; margin-top: 1.5rem; }
.trail { width: 100%; height: auto; display: block; }
.trail-path { fill: none; stroke: var(--teal); stroke-width: 6; stroke-dasharray: 20 14; stroke-linecap: round; }
.draw-path { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 0; }
/* the one moment: the trail walks itself out to the X */
@media (prefers-reduced-motion: no-preference) {
  .draw-path { stroke-dashoffset: 1; animation: walk 2.2s ease-in-out .3s forwards; }
  .seal { animation: stamp .45s cubic-bezier(.3, 1.6, .5, 1) 2.35s both; }
}
@keyframes walk { to { stroke-dashoffset: 0; } }
@keyframes stamp { from { transform: scale(1.5) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }

.next { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.seal { width: clamp(5.5rem, 10vw, 8rem); height: auto; display: block; }
.seal-body { fill: var(--red); stroke: rgba(60, 10, 5, .35); stroke-width: 4; }
.seal-ring { fill: none; stroke: rgba(255, 235, 200, .35); stroke-width: 3; }
.seal-x path, .seal-x circle { fill: var(--foil); }
.next-copy h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
.next-copy p { margin-top: .6rem; }

/* the trail so far: a real sequence, drawn as stops on a dashed line */
.so-far { padding: 3.5rem 0; background: var(--parch-light); border-top: 2px dashed rgba(90, 58, 26, .35); border-bottom: 2px dashed rgba(90, 58, 26, .35); }
.so-far-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; }
.sec-lede { color: var(--ink2); margin-top: .75rem; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stop { position: relative; padding: 0 0 1.75rem 3.25rem; }
.stop:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: calc(.45rem + 26px); bottom: calc(-.45rem); border-left: 4px dashed var(--teal); }
.stop::before { content: ""; position: absolute; left: 2px; top: .45rem; width: 26px; height: 26px; border-radius: 50%; background: var(--parch-light); border: 4px solid var(--teal); box-sizing: border-box; }
.stop.x::before {
  border: 0; border-radius: 0; background: no-repeat center / 26px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 4 L22 22 M22 4 L4 22' stroke='%23b3261e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.stop .when { margin: 0; font-weight: 600; color: var(--teal-ink); }
.stop h3 { font-family: var(--display); font-weight: 400; font-size: 1.85rem; margin: .1rem 0 .3rem; }
.stop p:last-child { margin: 0; color: var(--ink2); }

/* how our hunts play */
.how { padding: 3.75rem 0; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem; margin-top: 2rem; }
.rule svg { width: 52px; height: 52px; display: block; margin-bottom: .75rem; }
.rule svg circle, .rule svg path { fill: none; stroke: var(--ink2); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.rule svg .fill { fill: var(--teal); stroke: none; }
.rule svg .fill-red { fill: var(--red); stroke: none; }
.rule svg .dot { fill: var(--ink2); stroke: none; }
.rule p { color: var(--ink2); margin-top: .5rem; }

/* plan your hunt: forest green, like the hunt host tee */
.plan { background: var(--forest); color: var(--cream); padding: 3.75rem 0; }
.plan h2 { color: var(--foil); }
.plan p { color: var(--cream); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 3rem; align-items: start; }
.plan-grid > div:first-child p:first-of-type { margin-top: 1rem; font-size: 1.15rem; }
.biz { border: 2px dashed rgba(241, 227, 189, .5); border-radius: 18px; padding: 1.5rem; }
.biz h3 { color: #fff; margin-bottom: .5rem; }
.biz a { color: #fff; font-weight: 600; }
.plan a:focus-visible, .plan .btn:focus-visible { outline-color: var(--foil); }

/* contact: the back of the card */
.contact { padding: 3.75rem 0 4rem; }
.card-back {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2rem; align-items: center;
  border: 4px solid var(--ink2); border-radius: 30px; padding: clamp(1.5rem, 4vw, 3rem); max-width: 56rem;
  background: radial-gradient(circle at 84% 10%, rgba(255, 250, 230, .8), transparent 46%), radial-gradient(circle at 8% 94%, rgba(120, 80, 30, .25), transparent 52%), var(--parch);
}
.card-back::after { content: ""; position: absolute; inset: 10px; border: 3px dashed rgba(90, 58, 26, .5); border-radius: 21px; pointer-events: none; }
.card-back h2 { color: var(--teal); }
.card-back .sub { font-style: italic; font-weight: 500; color: var(--ink2); margin: .4rem 0 1rem; }
.cb-rows { list-style: none; margin: 0; padding: 0 0 0 2.25rem; position: relative; }
.cb-rows::before { content: ""; position: absolute; left: 9px; top: 1.3rem; bottom: 1.6rem; border-left: 3px dashed var(--teal); }
.cb-rows li { position: relative; padding: .45rem 0; font-size: 1.2rem; font-weight: 600; overflow-wrap: anywhere; }
.cb-rows li::before { content: ""; position: absolute; left: -2.25rem; top: .85rem; width: 21px; height: 21px; border-radius: 50%; background: var(--parch); border: 3px solid var(--teal); box-sizing: border-box; }
.cb-rows li.x::before { border: 0; border-radius: 0; background: no-repeat center / 20px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26'%3E%3Cpath d='M4 4 L22 22 M22 4 L4 22' stroke='%23b3261e' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.cb-rows a { color: var(--ink); }
.cb-rows a:hover { color: var(--red); }
.cb-rows .k { color: var(--teal-ink); }
.compass { width: 13rem; height: auto; }
.compass .ring { fill: none; stroke: var(--ink2); stroke-width: 4; }
.compass .ring2 { fill: none; stroke: rgba(90, 58, 26, .6); stroke-width: 3; stroke-dasharray: 6 7; }
.compass .dk { fill: var(--ink2); }
.compass .lt { fill: #c9ab6e; }
.compass .rd { fill: var(--red); }
.compass .rdl { fill: #d9584e; }
.compass .teal { fill: var(--teal); }
.compass text { font-family: var(--display); font-size: 44px; fill: var(--ink); }

/* footer */
.foot { background: var(--forest-dark); color: var(--cream); padding: 1.75rem 0; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.foot p { margin: 0; }
.foot-brand { font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.foot .foot-brand .swfl { color: var(--foil); }
.foot a { color: #fff; }

/* 404 */
.lost { padding: 3rem 0 4rem; }

@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; }
  .trail { max-width: 26rem; }
  .so-far-grid, .plan-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .how-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  nav { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand { font-size: 1.45rem; }
  .map { border-radius: 22px; }
  .map::after { border-radius: 14px; inset: 7px; }
  .next { grid-template-columns: 1fr; gap: .75rem; }
  .cta-row .btn { flex: 1 1 100%; }
  .card-back { grid-template-columns: 1fr; }
  .compass { width: 9rem; justify-self: end; margin-top: -1rem; }
  .cb-rows li { font-size: 1rem; }
}
