/* Hoskinson Family — shared styles. Plain CSS, no JavaScript needed for layout or navigation. */
:root {
  --cream: #fdf6ec;
  --paper: #fffdf8;
  --ink: #3d2b1f;
  --ink-soft: #6b5546;
  --rust: #b4551e;
  --rust-dark: #8a3d12;
  --pumpkin: #e07b2a;
  --gold: #d9a441;
  --sage: #5f7350;
  --pine: #2f4f3e;
  --berry: #93333a;
  --line: #e8d9c3;
  --shadow: 0 2px 10px rgba(90, 55, 20, 0.10);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rust-dark); }
a:hover { color: var(--rust); }

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 3px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 10;
}
.site-header .wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}
.brand {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand small { display: block; font-size: 0.78rem; font-weight: normal; color: var(--ink-soft); letter-spacing: 0.04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 6px; font-size: 0.95rem; }
.site-nav a { text-decoration: none; padding: 6px 12px; border-radius: 999px; color: var(--ink); }
.site-nav a:hover { background: #f3e3c8; color: var(--ink); text-decoration: none; }
.site-nav a.here { background: var(--rust); color: #fff; font-weight: bold; }
.site-nav a.here:hover { background: var(--rust); color: #fff; }

/* Layout */
.wrap-main { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; }

.hero {
  text-align: center;
  padding: 34px 16px 8px;
}
.chip {
  display: inline-block;
  background: var(--rust);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.chip.pine { background: var(--pine); }
.chip.berry { background: var(--berry); }
.chip.gold { background: var(--gold); color: var(--ink); }
.chip.sage { background: var(--sage); }
.hero h1 { font-size: 2.4rem; margin: 4px 0 8px; line-height: 1.15; }
.hero .lede { font-size: 1.12rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 6px; }
.hero .hosted { font-style: italic; color: var(--ink-soft); }

section { margin-top: 34px; }
section > h2 {
  font-size: 1.55rem;
  margin: 0 0 6px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
section > .section-note { color: var(--ink-soft); margin-top: 0; }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-top: 14px;
}
.card h3 { margin-top: 0; }

.basics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 14px; }
.basic {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.basic .label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--rust); font-weight: bold; }
.basic .value { font-size: 1.05rem; margin-top: 3px; }
.basic .sub { color: var(--ink-soft); font-size: 0.92rem; }

/* Forecast */
.forecast { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.hour {
  background: #fdf1dc;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 12px 14px;
  text-align: center;
}
.hour .time { font-weight: bold; }
.hour .temp { font-size: 1.9rem; color: var(--rust-dark); }
.hour .cond { color: var(--ink-soft); font-size: 0.92rem; }

/* Route steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin-top: 14px; counter-reset: step; }
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--pumpkin);
  border-radius: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow);
}
.step h3 { margin: 0 0 4px; font-size: 1.02rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }

.map-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  margin-top: 14px;
}
.map-box svg { width: 100%; height: auto; display: block; }

/* Photos */
.photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 14px; }
.photo { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo img { width: 100%; }
.photo figcaption { padding: 10px 14px; font-size: 0.95rem; color: var(--ink-soft); }
.photo-placeholder {
  border: 2px dashed var(--gold);
  border-radius: var(--radius);
  padding: 26px 16px;
  text-align: center;
  color: var(--ink-soft);
  background: #fdf1dc;
}

/* Event cards & calendar */
.event-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; margin-top: 14px; }
.event-card {
  display: block;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
}
.event-card:hover { border-color: var(--pumpkin); color: var(--ink); }
.event-card .date { font-size: 0.85rem; color: var(--rust); font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; }
.event-card h3 { margin: 4px 0 6px; font-size: 1.2rem; }
.event-card p { margin: 0 0 8px; color: var(--ink-soft); font-size: 0.95rem; }
.event-card .go { color: var(--rust-dark); font-weight: bold; }

.calendar-list { list-style: none; margin: 14px 0 0; padding: 0; }
.calendar-list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
}
.calendar-list a {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 14px;
  align-items: baseline;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ink);
}
.calendar-list a:hover .cal-name { color: var(--rust); }
.cal-date { font-weight: bold; min-width: 168px; }
.cal-name { font-size: 1.05rem; }
.cal-note { color: var(--ink-soft); font-size: 0.9rem; margin-left: auto; }
.cal-current { color: var(--ink-soft); padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 2px 14px; align-items: baseline; }

/* Menu */
.menu-list { list-style: none; margin: 10px 0 0; padding: 0; columns: 2; column-gap: 34px; }
.menu-list li { padding: 7px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; }
@media (max-width: 620px) { .menu-list { columns: 1; } }

/* Updates */
.update { border-left: 4px solid var(--gold); padding: 2px 0 2px 14px; margin-top: 16px; }
.update .when { font-size: 0.85rem; color: var(--rust); font-weight: bold; text-transform: uppercase; letter-spacing: 0.05em; }
.update h3 { margin: 2px 0 4px; }
.update p { margin: 0; color: var(--ink-soft); }

/* How it works */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 14px; }
.how .card { margin-top: 0; }
.how .num {
  display: inline-block; width: 30px; height: 30px; line-height: 30px; text-align: center;
  background: var(--gold); color: var(--ink); border-radius: 50%; font-weight: bold; margin-bottom: 6px;
}

/* Santa tracker */
.tracker {
  background: #1d2b45;
  color: #f3ecd9;
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 14px;
}
.tracker h3 { color: #ffd98a; margin-top: 0; }
.tracker .status-line { font-size: 1.25rem; font-weight: bold; color: #ffd98a; }
.tracker .controls { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.tracker button {
  font: inherit;
  background: var(--berry);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}
.tracker button.secondary { background: #41597e; }
.tracker button:hover { filter: brightness(1.12); }
.tracker-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin-top: 12px; }
.tracker-panel { background: #26375a; border: 1px solid #41597e; border-radius: 10px; padding: 14px 16px; }
.tracker-panel h4 { margin: 0 0 8px; color: #ffd98a; }
.tracker-panel ul { margin: 0; padding-left: 18px; }
.radar-rows { list-style: none; margin: 0; padding: 0; }
.radar-rows li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dotted #41597e; }
.radar-rows li:last-child { border-bottom: none; }
.ticker {
  background: #141f33; border: 1px solid #41597e; border-radius: 8px;
  padding: 10px 14px; margin-top: 12px; font-style: italic; min-height: 1.5em;
}
.arrival-input { font: inherit; padding: 6px 8px; border-radius: 6px; border: 1px solid #41597e; }
.nice-list { background: #fdf6ec; color: var(--ink); border: 2px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.nice-list h4 { color: var(--berry); margin: 0 0 6px; }
.tracker svg { width: 100%; height: auto; display: block; background: #16233c; border-radius: 10px; }

/* Invitation / RSVP preview */
.invite {
  border: 3px double var(--berry);
  border-radius: var(--radius);
  background: #fff8f0;
  padding: 22px;
  text-align: center;
  margin-top: 14px;
}
.rsvp-form { display: grid; gap: 10px; margin-top: 12px; max-width: 460px; }
.rsvp-form label { font-weight: bold; font-size: 0.95rem; }
.rsvp-form input, .rsvp-form select, .rsvp-form textarea {
  font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; width: 100%;
}
.preview-note {
  background: #fdf1dc; border: 1px solid var(--gold); border-radius: 8px;
  padding: 10px 14px; font-size: 0.93rem; color: var(--ink-soft);
}

/* Footer */
.site-footer {
  border-top: 3px solid var(--gold);
  background: var(--paper);
  margin-top: 44px;
}
.site-footer .wrap {
  max-width: 980px; margin: 0 auto; padding: 18px 16px 26px;
  color: var(--ink-soft); font-size: 0.95rem; text-align: center;
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero h1 { font-size: 1.9rem; }
  .cal-date { min-width: 0; }
  .cal-note { margin-left: 0; }
  .brand { margin-right: 0; }
}
@media print {
  .site-header, .site-footer, .no-print { display: none; }
  body { background: #fff; }
}

/* ---------- Page themes: each holiday gets its own colors ---------- */
body.theme-halloween { --rust: #9a4a0d; --rust-dark: #743606; --gold: #7b4b9e; --line: #e3d3ef; }
body.theme-halloween .site-header { border-bottom-color: #2e1a3d; }
body.theme-halloween .hero { background: linear-gradient(180deg, #f3eafd 0%, rgba(253,246,236,0) 90%); border-radius: 0 0 18px 18px; }
body.theme-christmas { --rust: #93333a; --rust-dark: #6d2429; }
body.theme-christmas .site-header { border-bottom-color: var(--berry); }
body.theme-birthday { --rust: #b04a7a; --rust-dark: #8c3460; --gold: #e5a13d; --line: #f0d7e4; }
body.theme-birthday .site-header { border-bottom-color: #b04a7a; }
body.theme-thanks .site-header { border-bottom-color: var(--rust); }

/* Blinking Christmas lights: a pure-CSS strand under the header on Christmas pages */
.lights {
  display: flex; justify-content: space-around; align-items: flex-start;
  background: #2f4f3e; padding: 7px 14px 9px; overflow: hidden;
}
.lights span {
  width: 11px; height: 11px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: bulb-blink 1.6s ease-in-out infinite;
}
.lights span:nth-child(4n+1) { background: #ff5a4e; box-shadow: 0 0 9px 2px rgba(255,90,78,.8); }
.lights span:nth-child(4n+2) { background: #ffd94d; box-shadow: 0 0 9px 2px rgba(255,217,77,.8); animation-delay: .4s; }
.lights span:nth-child(4n+3) { background: #57c96b; box-shadow: 0 0 9px 2px rgba(87,201,107,.8); animation-delay: .8s; }
.lights span:nth-child(4n) { background: #5aa2ff; box-shadow: 0 0 9px 2px rgba(90,162,255,.8); animation-delay: 1.2s; }
@keyframes bulb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Gentle floating decorations (Halloween hero) */
.hero { position: relative; }
.floaty { position: absolute; font-size: 1.7rem; pointer-events: none; animation: floaty 7s ease-in-out infinite; opacity: .85; }
.floaty.one { left: 6%; top: 22px; }
.floaty.two { right: 7%; top: 58px; animation-delay: 2.2s; font-size: 1.3rem; }
.floaty.three { left: 13%; top: 96px; animation-delay: 4s; font-size: 1.15rem; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-13px) rotate(5deg); } }

/* Mood photo: one wide decorative photo under a hero */
.mood { margin-top: 18px; }
.mood .photo img { width: 100%; }

/* ---------- Santa tracker: our own illustrated map (inline SVG, no tiles) ---------- */
.tracker-map-shell {
  position: relative; margin: 18px 0; border: 3px solid rgba(255, 217, 138, 0.75);
  border-radius: 18px; overflow: hidden; background: #20395f;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}
.santa-svg { width: 100%; height: auto; display: block; }
.santa-svg .land { fill: #e9dfc6; stroke: #c9b586; stroke-width: 2; }
.santa-svg .lake { fill: #274a73; }
.santa-svg .route-casing { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.santa-svg .route-line { fill: none; stroke: #d92323; stroke-width: 4; stroke-dasharray: 10 8; stroke-linecap: round; stroke-linejoin: round; }
.santa-svg .zoom-link { fill: none; stroke: #ffd98a; stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.santa-svg .stop .pill rect { fill: rgba(31, 54, 88, 0.9); }
.santa-svg .stop .pill text { fill: #fff; font-size: 13.5px; font-weight: 700; }
.santa-svg .stop .dot { fill: #fff8e7; stroke: #b4232a; stroke-width: 2.5; }
.santa-svg .stop .glyph { font-size: 20px; }
.santa-svg .stop.visited .dot { fill: #ffd98a; }
.santa-svg .stop.next .pill rect { fill: #b4232a; }
.santa-svg .present { opacity: 0; transition: opacity .5s ease; font-size: 26px; }
.santa-svg .present.on { opacity: 1; }
.santa-svg .bubble { fill: #fdf6ec; stroke: #d9a441; stroke-width: 3; }
.santa-svg .bubble-label { fill: #8a3d12; font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.santa-svg .bubble-city { fill: #3d2b1f; font-size: 13.5px; font-weight: 700; }
#sleigh { filter: drop-shadow(0 6px 6px rgba(0,0,0,.35)); }
#sleigh-bob { animation: sleigh-bob 1.8s ease-in-out infinite; transform-origin: 50% 55%; }

@media (prefers-reduced-motion: reduce) {
  .lights span, .floaty, #sleigh-bob { animation: none; }
  html { scroll-behavior: auto; }
}
