/* ==========================================================================
   Lila Away - editorial travel-journal styling
   Inspired by print newspapers: cream paper, bold serif headlines,
   monospace meta, hard black borders + offset shadows, flat colour.
   Accent colour: lila / purple.
   ========================================================================== */

:root {
  --paper: #faf8f5;
  --paper-2: #efede7;
  --ink: #2a2230;
  --ink-soft: #6b6472;
  --rule: #e4dcec;
  --line: #d9cfe6;

  --lila-200: #e9d5ff;
  --lila-300: #d8b4fe;
  --lila-400: #c084fc;
  --lila-500: #a855f7;
  --lila-600: #9333ea;
  --lila-700: #7e22ce;
  --lila-800: #6b21a8;

  /* flat editorial accents */
  --accent-red: #c0432f;
  --accent-blue: #4860a0;
  --accent-green: #3a8a5a;
  --accent-yellow: #e7bf4b;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--paper);
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---- Typography --------------------------------------------------------- */
.font-serif,
h1, h2, h3, h4 {
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  letter-spacing: -0.005em;
}

.mono {
  font-family: "Space Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

.meta {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

/* article body reads as print */
.prose {
  font-family: "Source Serif 4", Georgia, serif;
  color: #222;
  font-size: 1.08rem;
  line-height: 1.75;
}
.prose :where(a) { color: var(--lila-700); text-underline-offset: 2px; }
.prose :where(p) { margin: 0.9em 0; }

/* ---- Masthead / header -------------------------------------------------- */
.site-header {
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: saturate(150%) blur(8px);
  -webkit-backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand-mark {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.7rem;
  background: var(--lila-400);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.brand-mark img { width: 1.3rem; height: 1.3rem; }

.brand-name {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 800;
  color: var(--ink);
}
/* "Away" simply tinted lila - no block */
.brand-name .hl {
  color: var(--lila-600);
}

.nav-link {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-link:hover { color: var(--lila-700); border-color: var(--lila-400); }

/* ---- Soft cards --------------------------------------------------------- */
.block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 1rem;
}
.shadow-hard { box-shadow: 0 18px 40px -24px rgba(74, 42, 104, 0.4); }
.shadow-hard-sm { box-shadow: 0 10px 26px -18px rgba(74, 42, 104, 0.32); }

.block-hover { transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.block-hover:hover {
  transform: translateY(-3px);
  border-color: var(--lila-300);
  box-shadow: 0 26px 50px -26px rgba(74, 42, 104, 0.45);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn-ink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--ink);
  color: var(--paper);
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-ink:hover { transform: translateY(-2px); box-shadow: 0 14px 26px -12px rgba(42, 34, 48, 0.6); }

.btn-lila {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--lila-500);
  color: #fff;
  border: none;
  border-radius: 9999px;
  padding: 0.65rem 1.4rem;
  box-shadow: 0 12px 26px -12px rgba(147, 51, 234, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.btn-lila:hover { transform: translateY(-2px); box-shadow: 0 18px 32px -12px rgba(147, 51, 234, 0.8); }

/* ---- Category badge (soft pill) ----------------------------------------- */
.tag {
  display: inline-block;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 0.74rem;
  color: var(--lila-700);
  background: var(--lila-100, #f3e8ff);
  border: 1px solid var(--lila-200);
  border-radius: 9999px;
  padding: 0.22rem 0.7rem;
}
.tag-red { background: #fbe6e1; border-color: #f0c4ba; color: #a8351f; }
.tag-blue { background: #e3e8f5; border-color: #c3cdec; color: #36487e; }
.tag-green { background: #e0f0e7; border-color: #bcdfc9; color: #2c6c46; }
.tag-yellow { background: #faf0d2; border-color: #ecd99a; color: #8a6d18; }

/* ---- Section heading with rule ------------------------------------------ */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.6rem;
  margin-bottom: 1.5rem;
}
.section-kicker {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--lila-600);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Inter", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--lila-700);
  transition: gap 0.15s ease, color 0.15s ease;
}
.link-arrow:hover { gap: 0.65rem; color: var(--lila-600); }

/* ---- Datelines & dividers ---------------------------------------------- */
.dateline {
  font-family: "Inter", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.rule-thick { border-top: 1px solid var(--line); }

/* ---- Map & calendar ----------------------------------------------------- */
#map, #calendar { height: 440px; border-radius: 1rem; border: 1px solid var(--line); }
.leaflet-container { background: var(--paper-2); border-radius: 1rem; }
.fc { font-family: "Inter", sans-serif; }
.fc .fc-toolbar.fc-header-toolbar { margin-bottom: 1rem; }
.fc .fc-toolbar-title { font-family: "Playfair Display", serif; }
.fc .fc-button-primary {
  background: var(--lila-600);
  border-color: var(--lila-600);
  border-radius: 0.55rem;
  font-size: 0.78rem;
}
.fc .fc-button-primary:hover { background: var(--lila-700); border-color: var(--lila-700); }
.fc .fc-button-primary:not(:disabled).fc-button-active { background: var(--lila-800); border-color: var(--lila-800); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--lila-900, #3a1d52);
  color: var(--paper);
  border-top: none;
}
.site-footer .brand-mark { background: var(--lila-500); }

/* ---- Image frames ------------------------------------------------------- */
.framed { border-radius: 1rem; border: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .block-hover:hover, .btn-ink:hover, .btn-lila:hover { transform: none; }
}
