/* It's 5:00 Somewhere -- full-bleed fixed photo + overlay content */

:root {
  --cream: #f6f0e6;
  --cream-dark: #ebe3d4;
  --paper: #fffaf3;
  --charcoal: #1f1a17;
  --ink: #2c2622;
  --muted: #6b625a;
  --terracotta: #c45c3e;
  --terracotta-deep: #9e3f28;
  --teal: #1f6a6a;
  --teal-soft: #2a8585;
  --gold: #c9a227;
  --shadow: rgba(31, 26, 23, 0.18);
  --radius: 14px;
  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--charcoal);
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--terracotta-deep);
}

.bg-fixed {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--charcoal);
}

.bg-fixed.has-fallback {
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(201, 162, 39, 0.22), transparent 55%),
    linear-gradient(145deg, #163d3d 0%, #1f1a17 46%, #5c2e22 100%);
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.03);
  transition: opacity 0.55s ease, transform 10s ease;
  opacity: 0;
}

.bg-fixed.is-ready .bg-image {
  opacity: 1;
  transform: scale(1);
}

.bg-fixed.is-ready.is-missing-photo .bg-image {
  opacity: 0;
}

.bg-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(14, 10, 8, 0.55) 0%,
      rgba(14, 10, 8, 0.28) 28%,
      rgba(14, 10, 8, 0.35) 55%,
      rgba(14, 10, 8, 0.72) 100%
    ),
    linear-gradient(90deg, rgba(14, 10, 8, 0.4) 0%, transparent 50%);
}

.page {
  position: relative;
  z-index: 1;
}

.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding:
    max(1.25rem, var(--safe-top))
    clamp(1rem, 4vw, 2rem)
    max(1.5rem, var(--safe-bottom));
  color: #fffaf3;
}

.masthead {
  text-align: center;
  padding: 0.75rem 0 0;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.eyebrow,
.panel-label {
  margin: 0 0 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.masthead .eyebrow {
  color: #f0c9a8;
}

.site-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #fffaf3;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

.tagline {
  margin: 0.75rem auto 0;
  max-width: 32rem;
  color: rgba(255, 250, 243, 0.82);
  font-size: clamp(0.95rem, 2.5vw, 1.05rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}

.hero-copy {
  width: min(100%, var(--max));
  max-width: 40rem;
  margin: auto auto 0;
  padding: 1rem 0 0.5rem;
  align-self: flex-start;
}

.hero-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0c9a8;
}

.hero-place {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.4);
}

.hero-region {
  margin: 0.4rem 0 0;
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: rgba(255, 250, 243, 0.88);
}

.hero-local-time {
  margin: 0.85rem 0 0;
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.12);
  border: 1px solid rgba(255, 250, 243, 0.28);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero-drink {
  margin: 0.85rem 0 0;
  max-width: 32rem;
  color: rgba(255, 250, 243, 0.92);
  font-size: 0.98rem;
  line-height: 1.45;
}

.hero-drink strong {
  font-family: var(--font-display);
  font-size: 1.15em;
  font-weight: 600;
  color: #f0c9a8;
}

.recipe-panel {
  margin: 0.95rem 0 0;
  max-width: 32rem;
  background: rgba(14, 10, 8, 0.58);
  border: 1px solid rgba(255, 250, 243, 0.2);
  border-radius: var(--radius);
  color: #fffaf3;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.recipe-panel[hidden] {
  display: none;
}

.recipe-summary {
  cursor: pointer;
  list-style: none;
  padding: 0.7rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0c9a8;
}

.recipe-summary::-webkit-details-marker {
  display: none;
}

.recipe-summary::after {
  content: "▾";
  float: right;
  color: rgba(255, 250, 243, 0.55);
  font-size: 0.85rem;
}

.recipe-panel[open] .recipe-summary::after {
  content: "▴";
}

.recipe-summary:hover,
.recipe-summary:focus-visible {
  color: #fffaf3;
  outline: none;
}

.recipe-body {
  padding: 0 1rem 1rem;
}

.recipe-meta {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(240, 201, 168, 0.88);
}

.recipe-ingredients {
  margin: 0;
  padding: 0 0 0 1.1rem;
  color: rgba(255, 250, 243, 0.94);
  font-size: 0.92rem;
  line-height: 1.45;
}

.recipe-ingredients li + li {
  margin-top: 0.18rem;
}

.recipe-method {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: rgba(255, 250, 243, 0.9);
}

.recipe-twist {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.4;
  color: #c9e4e0;
}

.recipe-twist[hidden] {
  display: none;
}

.hero-blurb {
  margin: 1.1rem 0 0;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  line-height: 1.55;
  color: rgba(255, 250, 243, 0.94);
  max-width: 34rem;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35);
}

.hero-others {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  color: rgba(255, 250, 243, 0.8);
}

.hero-actions {
  margin: 1.1rem 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.share-btn {
  appearance: none;
  border: 1px solid rgba(255, 250, 243, 0.35);
  background: rgba(255, 250, 243, 0.12);
  color: #fffaf3;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.share-btn:hover,
.share-btn:focus-visible {
  background: rgba(255, 250, 243, 0.22);
  outline: 2px solid rgba(240, 201, 168, 0.7);
  outline-offset: 2px;
}

.share-status {
  font-size: 0.82rem;
  color: rgba(255, 250, 243, 0.78);
}

.scroll-hint {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 250, 243, 0.55);
}

.scroll-hint span {
  display: inline-block;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(255, 250, 243, 0.25);
}

.content-stack {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: 0 0 calc(2.5rem + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.countdown-panel {
  background: var(--paper);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 14px 40px var(--shadow);
}

.countdown-inner {
  padding: clamp(1.4rem, 3vw, 2rem);
  text-align: center;
}

.countdown-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  font-weight: 600;
  color: var(--charcoal);
}

.local-meta {
  margin: 0.4rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.timer {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.timer-block {
  min-width: 4.6rem;
  padding: 0.85rem 0.7rem 0.7rem;
  background: linear-gradient(180deg, #fff, var(--cream));
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.timer-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.timer-unit {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.timer-sep {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: var(--terracotta);
  padding-bottom: 0.9rem;
}

.countdown-note {
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.countdown-panel.is-happy .timer-value {
  color: var(--terracotta);
}

.celebration {
  background: linear-gradient(135deg, #1f6a6a 0%, #163d3d 48%, #5c2e22 100%);
  color: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(31, 106, 106, 0.28);
}

.celebration[hidden] {
  display: none;
}

.celebration-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  align-items: stretch;
}

.celebration-copy {
  padding: clamp(1.5rem, 3.5vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.celebration-copy .panel-label {
  color: #f0c9a8;
}

.celebration-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  color: #fffaf3;
}

.celebration-copy p:last-child {
  margin: 0.9rem 0 0;
  color: rgba(246, 240, 230, 0.9);
  max-width: 32rem;
}

.celebration-media {
  margin: 0;
  position: relative;
  min-height: 260px;
}

.celebration-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.celebration-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.65rem 0.9rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: rgba(255, 250, 243, 0.9);
  font-size: 0.85rem;
}

.world-map-panel {
  background: rgba(246, 240, 230, 0.96);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 14px 40px var(--shadow);
}

.map-wrap {
  margin: 0 auto;
  max-width: 720px;
}

.world-map {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  background:
    radial-gradient(ellipse at 28% 18%, rgba(255, 255, 255, 0.16), transparent 48%),
    linear-gradient(180deg, #6eb3d4 0%, #3d8fb5 52%, #2f7aa0 100%);
  border: 1px solid rgba(31, 26, 23, 0.08);
}

.world-map .land {
  fill: #7d9a4a;
  stroke: #3a4a24;
  stroke-width: 0.35;
  stroke-linejoin: round;
}

.world-map .graticule {
  fill: none;
  stroke: rgba(255, 255, 255, 0.16);
  stroke-width: 0.18;
}

.world-map .city-dot {
  fill: #2c2622;
  stroke: #fffaf3;
  stroke-width: 0.7;
  cursor: pointer;
  pointer-events: none;
}

.world-map .city-dot:hover,
.world-map .city-dot:focus {
  fill: var(--teal);
  outline: none;
}

.world-map .city-dot.is-five {
  fill: var(--gold);
}

.world-map .city-dot.is-featured {
  fill: #f3e3b0;
  stroke: var(--terracotta-deep);
  stroke-width: 1.1;
}

.world-map .city-hit {
  fill: rgba(0, 0, 0, 0.001);
  cursor: pointer;
}

.world-clocks {
  background: rgba(246, 240, 230, 0.96);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 14px 40px var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.section-head {
  text-align: center;
  margin-bottom: 1.35rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--charcoal);
}

.section-sub {
  margin: 0.45rem auto 0;
  max-width: 32rem;
  color: var(--muted);
}

.clock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.clock-card {
  background: var(--paper);
  border: 1px solid rgba(31, 26, 23, 0.08);
  border-radius: 12px;
  padding: 0.95rem 0.85rem 1rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.clock-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px var(--shadow);
}

.clock-card:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

.clock-card.is-five {
  border-color: rgba(196, 92, 62, 0.45);
  background: linear-gradient(180deg, #fffaf3, #f8e8df);
  box-shadow: 0 8px 22px rgba(196, 92, 62, 0.15);
}

.clock-card.is-featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(31, 106, 106, 0.28), 0 10px 24px var(--shadow);
}

.clock-card.is-featured.is-five {
  border-color: var(--terracotta-deep);
  box-shadow: 0 0 0 2px rgba(196, 92, 62, 0.35), 0 10px 24px var(--shadow);
}

.clock-city {
  margin: 0;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--charcoal);
}

.clock-region {
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}

.clock-time {
  margin: 0.65rem 0 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  line-height: 1;
}

.clock-card.is-five .clock-time {
  color: var(--terracotta-deep);
}

.clock-badge {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--terracotta);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  text-align: center;
  color: rgba(255, 250, 243, 0.78);
  font-size: 0.92rem;
  padding: 0.5rem 0.75rem 0.25rem;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.4);
}

.site-footer a {
  color: #f0c9a8;
}

.site-footer a:hover {
  color: #fffaf3;
}

.site-footer p {
  margin: 0;
}

.site-footer code {
  font-size: 0.88em;
  color: #f0c9a8;
}

.footer-fine {
  margin-top: 0.4rem !important;
  font-size: 0.85rem;
  opacity: 0.9;
}

@media (max-width: 760px) {
  .hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .hero-copy {
    padding-top: 0.5rem;
  }

  .recipe-panel {
    max-width: 100%;
  }

  .recipe-body {
    padding: 0 0.85rem 0.9rem;
  }

  .recipe-summary {
    padding: 0.65rem 0.85rem;
  }

  .content-stack {
    width: min(100% - 1rem, var(--max));
    gap: 1rem;
  }

  .celebration-grid {
    grid-template-columns: 1fr;
  }

  .celebration-media {
    order: -1;
  }

  .celebration-media img {
    min-height: 200px;
    max-height: 240px;
  }

  .timer-block {
    min-width: 4rem;
  }

  .clock-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-height: 620px) and (orientation: landscape) {
  .hero {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 1.25rem;
  }

  .site-title {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .hero-place {
    font-size: clamp(1.8rem, 5vw, 2.6rem);
  }

  .hero-blurb {
    font-size: 0.95rem;
  }

  .scroll-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bg-image,
  .clock-card {
    transition: none;
  }

  .bg-fixed.is-ready .bg-image {
    transform: none;
  }
}

.clock-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.28rem;
  margin-top: 0.7rem;
}

.clock-chip {
  appearance: none;
  margin: 0;
  border: 1px solid rgba(31, 26, 23, 0.12);
  background: var(--cream);
  color: var(--charcoal);
  border-radius: 999px;
  padding: 0.18rem 0.52rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.clock-chip:hover,
.clock-chip:focus-visible {
  border-color: var(--teal);
  outline: 2px solid rgba(31, 106, 106, 0.35);
  outline-offset: 1px;
}

.clock-chip.is-featured {
  background: var(--teal);
  color: #fffaf3;
  border-color: var(--teal);
}

.clock-card.is-five .clock-chip.is-featured {
  background: var(--terracotta-deep);
  border-color: var(--terracotta-deep);
}
