/* Lingua Mixta — Vacation newspaper skin.
   Loaded AFTER main.css, only when settings.VACATION_MODE is on
   (see templates/base.html). A daily-rotating Mexico photo fills the
   viewport; the entire UI — navbar included — sits on one floating cream
   "newspaper page", like doing the crossword on a hotel balcony.
   Reference: design_handoff_vacation_backdrop (README + mockup). */

/* ----- Newsprint tokens (one palette; theme is forced light while the
   skin is active, but override both to be safe) ----- */
html[data-theme="light"],
html[data-theme="dark"] {
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;

  --bg:         #FDF7E8;
  --card-bg:    #FFFCF4;
  --band-bg:    #F7EBD2;
  --bg-elev:    var(--card-bg);
  --bg-elev-2:  var(--band-bg);
  --ink:        #2A1A0E;
  --ink-soft:   #7A5A3A;
  --fg:         var(--ink);
  --fg-muted:   var(--ink-soft);
  --line:       rgba(120, 80, 40, 0.28);
  --border:     var(--line);
  --accent:     #C44A2C;
  --accent-fg:  #FDF6E6;
  --brand-accent: #2A7A3A;
  --nav-bg:     transparent;
  --motif-opacity: 0;
  --success:    #2A7A3A;
  --danger:     #C8392B;
  --hover:      #F7EBD2;

  /* Newspaper corners are square. Pills stay pills. */
  --radius: 3px;
  --radius-sm: 2px;
  --radius-card: 3px;
}

html { background: #1a120a; }
body { background: none; }

/* The diamond band belongs to the Mercado look, not the newspaper. */
.diamond-band { display: none; }

/* ----- Full-bleed photo backdrop (fixed, behind everything) ----- */
.vac-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  /* inline style carries the destination's fallback gradient */
}
.vac-backdrop img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* warm tone — sun through curtains */
.vac-warm {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(255, 228, 180, 0.21) 0%,
    rgba(255, 180, 120, 0.09) 50%,
    rgba(120, 60, 30, 0.15) 100%);
  mix-blend-mode: multiply;
}
/* legibility scrim — darker toward the edges */
.vac-scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 30%,
    rgba(20, 15, 10, 0) 0%,
    rgba(20, 15, 10, 0.30) 100%);
}
.vac-vignette {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 240px 40px rgba(20, 15, 10, 0.55);
  pointer-events: none;
}

/* ----- Destination credit, bottom-right over the photo ----- */
.vac-credit {
  position: fixed;
  bottom: 10px;
  right: 16px;
  z-index: 5;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 245, 225, 0.75);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

/* ----- The paper page ----- */
.page-stage {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  padding: 30px 18px 70px;
}
@media (max-width: 640px) {
  .page-stage { padding: 12px 6px 56px; }
}

/* Activity pages: the site navbar leaves the paper and sits directly on
   the backdrop photo — one slim dark-glass bar, side edges aligned with
   the paper sheet below, light ink for contrast. */
.page-stage-navfloat {
  flex-direction: column;
  align-items: center;
  /* bar is sucked flush to the top of the screen */
  padding: 0 0 70px;
}
.nav-float {
  width: min(1200px, 95%);
  margin-bottom: 14px;
}
.nav-float .site-header {
  background: rgba(26, 18, 10, 0.40);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  border: 1px solid rgba(255, 248, 235, 0.16);
  border-top: none;
  border-bottom: none;
  border-radius: 0 0 10px 10px;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 -1px 0 rgba(255, 255, 255, 0.08);
}
.nav-float .nav { max-width: none; padding: 9px 22px; }
.nav-float .brand { font-size: 19px; gap: 9px; }
.nav-float .brand-mark { height: 24px; }
.nav-float .brand-text { color: #FDF3DE; }
.nav-float .brand-text .mixta { color: #8FD8A8; }
.nav-float .nav-links a,
.nav-float .nav-links .link-button,
.nav-float .nav-ask-btn,
.nav-float .nav-sound {
  font-size: 13px;
  color: rgba(253, 243, 222, 0.85);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.nav-float .nav-links a:hover,
.nav-float .nav-links .link-button:hover,
.nav-float .nav-ask-btn:hover { color: #FFFDF6; }
.nav-float .nav-links a.active { color: #FFC230; }
.nav-float .nav-links a.active::after { background: #FFC230; }
.nav-float .nav-divider { background: rgba(253, 243, 222, 0.30); }
/* Fullscreen = the activity owns the whole screen: the site navbar
   disappears (its music/sound/Ask/Exit live in the .lg-fs-utils
   cluster, top right — see main.css + activity-fullscreen.js). */
html:fullscreen .nav-float { display: none; }

.page-sheet {
  position: relative;
  width: min(1200px, 95%);
  background: rgba(253, 247, 232, 0.96);
  border-radius: 2px;
  padding: 0 44px;
  box-shadow:
    0 30px 40px rgba(0, 0, 0, 0.35),
    0 6px 10px rgba(0, 0, 0, 0.18),
    inset 0 0 80px rgba(180, 140, 90, 0.06);
  /* newsprint grain */
  background-image:
    radial-gradient(circle at 20% 30%, rgba(180, 140, 90, 0.06) 0%, transparent 35%),
    radial-gradient(circle at 80% 70%, rgba(180, 140, 90, 0.05) 0%, transparent 40%),
    repeating-linear-gradient(0deg, rgba(120, 80, 40, 0.012) 0 1px, transparent 1px 3px);
}
@media (max-width: 1024px) {
  .page-sheet { padding: 0 22px; }
}
@media (max-width: 640px) {
  .page-sheet { padding: 0 12px; }
}
/* ----- Masthead: the navbar lives ON the paper ----- */
.site-header {
  position: static;
  background: transparent;
  border-bottom: 2px solid rgba(120, 80, 40, 0.30);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.nav {
  max-width: none;
  padding: 22px 0 14px;
}
.brand {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav-links a, .nav-links .link-button { font-size: 14.5px; }
.nav-links a.active::after { border-radius: 0; }

/* ----- Dateline strip under the masthead ----- */
.vac-dateline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9A6A3A;
}
.vac-dateline strong { color: #2A1A0E; font-weight: 700; }
.vac-dateline-sub { font-style: italic; text-transform: none; letter-spacing: 0.02em; }
@media (max-width: 640px) {
  .vac-dateline-sub { display: none; }
}

/* ----- Content sits inside the sheet's own margins ----- */
.container {
  max-width: none;
  padding: 26px 0 40px;
}
@media (max-width: 1024px) {
  .container { padding: 18px 0 28px; }
}

/* ----- Footer as a newspaper colophon ----- */
.site-footer {
  background: transparent;
  border-top: 1px solid var(--line);
}
.site-footer .site-footer-inner {
  max-width: none;
  padding: 14px 0 22px;
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 13px;
  color: var(--ink-soft);
}
