/* Edimburgo 2026 — mobile-first */

:root {
  --bg: #f7f3ec;
  --bg-soft: #efe7d8;
  --ink: #1b1816;
  --ink-soft: #4a3f37;
  --accent: #6b1d1d;
  --accent-soft: #8c2e2e;
  --gold: #b78c2a;
  --thistle: #5f4373;
  --rule: #d4c8b1;
  --shadow: 0 4px 12px rgba(0,0,0,.08);
  --maxw: 720px;
  --serif: "Crimson Pro", "Iowan Old Style", "Palatino", Georgia, serif;
  --sans: -apple-system, "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14110f;
    --bg-soft: #1f1a16;
    --ink: #f1ead9;
    --ink-soft: #c9bda5;
    --accent: #e07a7a;
    --accent-soft: #f0a0a0;
    --gold: #d9b25a;
    --thistle: #b48ad3;
    --rule: #3a342d;
    --shadow: 0 4px 12px rgba(0,0,0,.4);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
}
a:hover { text-decoration-color: var(--accent); }

header.site {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--rule);
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(8px);
}

header.site .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

header.site a.brand {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

nav.site button {
  background: none;
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
}

nav.site .menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 10px;
  margin-top: 6px;
  font-family: var(--sans);
  font-size: 14px;
  min-width: 240px;
}
nav.site .menu.open { display: block; }
nav.site .menu a {
  display: block;
  padding: 6px 8px;
  text-decoration: none;
  border-radius: 4px;
  color: var(--ink);
}
nav.site .menu a:hover { background: var(--bg); color: var(--accent); }
nav.site .menu .group { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); padding: 8px 8px 4px; }

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px 16px 80px;
}

h1, h2, h3 {
  font-family: var(--serif);
  line-height: 1.2;
  color: var(--ink);
  margin: 1.8em 0 0.6em;
}

h1 {
  font-size: clamp(1.8em, 5vw, 2.6em);
  margin-top: 0.6em;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 .pretitle {
  display: block;
  font-family: var(--sans);
  font-size: 0.45em;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 8px;
}

h2 {
  font-size: 1.4em;
  border-bottom: 2px solid var(--rule);
  padding-bottom: 6px;
}

h3 { font-size: 1.15em; color: var(--accent); }

p, li { font-size: 1em; }

blockquote {
  margin: 1em 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 4px; }

img { max-width: 100%; height: auto; border-radius: 6px; box-shadow: var(--shadow); }

figure { margin: 1.2em 0; }
figcaption { font-size: 0.85em; color: var(--ink-soft); font-style: italic; margin-top: 6px; text-align: center; }

code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border-radius: 4px;
}
code { padding: 1px 5px; }
pre { padding: 12px; overflow-x: auto; }

hr { border: none; border-top: 1px solid var(--rule); margin: 2em 0; }

table { width: 100%; border-collapse: collapse; margin: 1em 0; font-size: 0.95em; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--rule); }
th { font-family: var(--sans); font-size: 0.85em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); }

/* Day badge banner at top of each day page */
.day-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.day-banner .date {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}
.day-banner .title {
  font-size: 1.5em;
  font-weight: 700;
  margin-top: 4px;
}
.day-banner .sub {
  font-style: italic;
  opacity: 0.9;
  margin-top: 6px;
}

/* Timeline */
.timeline {
  border-left: 3px solid var(--rule);
  padding-left: 18px;
  margin: 1em 0;
}
.timeline-event {
  margin-bottom: 18px;
  position: relative;
}
.timeline-event::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.timeline-event .when {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--ink);
  color: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 6px;
}

/* Tag pills */
.tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
}
.tag.esoterico { color: var(--thistle); border-color: var(--thistle); }
.tag.pub { color: var(--gold); border-color: var(--gold); }
.tag.museo, .tag.ciencia { color: var(--accent); border-color: var(--accent); }
.tag.comida { color: #2e6a3d; border-color: #2e6a3d; }
.tag.romantico { color: #b54a87; border-color: #b54a87; }
.tag.transporte { color: var(--ink-soft); border-color: var(--ink-soft); }
.tag.golf { color: #2a6b8c; border-color: #2a6b8c; }
.tag.correr { color: #c2660a; border-color: #c2660a; }

/* Cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 1em 0;
}
@media (min-width: 560px) { .cards { grid-template-columns: 1fr 1fr; } }

.card {
  background: var(--bg-soft);
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--rule);
}
.card h3 { margin: 0 0 6px; font-size: 1.05em; color: var(--accent); }
.card p { margin: 4px 0; font-size: 0.95em; }
.card .meta { font-family: var(--sans); font-size: 12px; color: var(--ink-soft); margin-top: 8px; }

/* Day grid on index */
.day-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 1em 0;
}
.day-grid > p, .cards > p { margin: 0; display: contents; }
.day-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg-soft);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--rule);
  transition: transform 0.15s, box-shadow 0.15s;
}
.day-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.day-card .date { font-family: var(--sans); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
.day-card .title { font-size: 1.1em; font-weight: 700; margin: 4px 0; line-height: 1.2; }
.day-card .desc { font-size: 0.9em; color: var(--ink-soft); margin: 0; display: block; }
.day-card .date { display: block; }
.day-card .title { display: block; }

/* Map container */
.map {
  width: 100%;
  height: 360px;
  border-radius: 8px;
  margin: 1.4em 0;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.map.tall { height: 480px; }

/* Embedded YouTube */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin: 1em 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: 0;
}

/* Footer */
footer.site {
  max-width: var(--maxw);
  margin: 40px auto 24px;
  padding: 20px 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
}

footer.site a { color: var(--ink-soft); }

/* Banner POR CONFIRMAR */
.confirm {
  background: #fef3c7;
  color: #92400e;
  padding: 10px 14px;
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 0.9em;
  border-left: 4px solid #d97706;
  margin: 1em 0;
}
@media (prefers-color-scheme: dark) {
  .confirm { background: #3a2c10; color: #fde68a; border-left-color: #d97706; }
}

/* Pro tip */
.tip {
  background: var(--bg-soft);
  border-left: 4px solid var(--gold);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  margin: 1em 0;
  font-size: 0.95em;
}
.tip strong { color: var(--gold); }

/* Print */
@media print {
  header.site, nav.site, footer.site, .map { display: none; }
  body { font-size: 11pt; color: #000; background: #fff; }
}
