@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Cinzel+Decorative:wght@400;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --black: #0c0908;
  --charcoal: #17120f;
  --charcoal-light: #241c17;
  --parchment: #ece0c4;
  --parchment-dim: #d8caa4;
  --crimson: #7c1520;
  --crimson-bright: #a3212e;
  --gold: #c9a24b;
  --gold-dim: #8f7638;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--parchment-dim);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.7;
  position: relative;
  overflow-x: hidden;
}

/* Parchment / grain texture overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(201, 162, 75, 0.05), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(124, 21, 32, 0.08), transparent 45%),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 3px);
  mix-blend-mode: overlay;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  letter-spacing: 0.03em;
  margin-top: 0;
}

.blackletter {
  font-family: 'UnifrakturMaguntia', cursive;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

a {
  color: var(--gold);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

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

.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Fog layers ---------- */
.fog-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0.5;
}

.fog-layer::before,
.fog-layer::after {
  content: "";
  position: absolute;
  bottom: -10%;
  width: 220%;
  height: 45%;
  background: radial-gradient(ellipse at center, rgba(230, 224, 200, 0.16), transparent 70%);
  filter: blur(6px);
}

.fog-layer::before {
  left: -60%;
  animation: driftFog 38s linear infinite;
}

.fog-layer::after {
  left: -20%;
  bottom: -5%;
  height: 35%;
  animation: driftFog 55s linear infinite reverse;
  opacity: 0.7;
}

@keyframes driftFog {
  from { transform: translateX(0); }
  to { transform: translateX(30%); }
}

@media (prefers-reduced-motion: reduce) {
  .fog-layer::before,
  .fog-layer::after {
    animation: none;
  }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: linear-gradient(to bottom, rgba(12, 9, 8, 0.96), rgba(12, 9, 8, 0.85));
  border-bottom: 1px solid var(--gold-dim);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  padding-right: 76px; /* keep clear of platform sound button */
  max-width: 980px;
  margin: 0 auto;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-brand {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 1.6rem;
  color: var(--gold);
  text-decoration: none;
  white-space: nowrap;
}

.site-brand span {
  color: var(--crimson-bright);
}

.site-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--parchment-dim);
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--gold);
  border-color: var(--gold-dim);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: url('img/hero-harbor-fog.webp') center/cover no-repeat;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 6, 5, 0.95) 5%, rgba(8, 6, 5, 0.35) 55%, rgba(8, 6, 5, 0.6));
  z-index: -1;
}

.hero-content {
  padding: 3rem 1.5rem 4rem;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  font-family: 'Cinzel Decorative', serif;
  color: var(--crimson-bright);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  margin: 0 0 0.75rem;
  text-shadow: 0 0 18px rgba(201, 162, 75, 0.35);
}

.hero p.lede {
  font-size: 1.35rem;
  max-width: 40em;
  color: var(--parchment);
  font-style: italic;
}

.hero-actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  font-family: 'Cinzel Decorative', serif;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold-dim);
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: linear-gradient(180deg, var(--crimson-bright), var(--crimson));
  color: var(--parchment);
  border-color: var(--crimson-bright);
}

.btn-primary:hover {
  box-shadow: 0 0 16px rgba(163, 33, 46, 0.6);
}

.btn-ghost {
  color: var(--gold);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(201, 162, 75, 0.1);
}

/* ---------- Sections ---------- */
main {
  position: relative;
  z-index: 3;
  background: var(--charcoal);
}

section {
  padding: 4.5rem 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.12);
}

section:last-of-type {
  border-bottom: none;
}

.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.section-heading .divider {
  width: 90px;
  height: 2px;
  margin: 0.9rem auto 0;
  background: linear-gradient(to right, transparent, var(--gold-dim), transparent);
}

.lede-center {
  max-width: 42em;
  margin: 0 auto 2.5rem;
  text-align: center;
  color: var(--parchment);
  font-size: 1.2rem;
}

/* candle flicker */
.flicker {
  animation: flicker 4.5s infinite ease-in-out;
}

@keyframes flicker {
  0%, 100% { opacity: 1; }
  8% { opacity: 0.85; }
  12% { opacity: 1; }
  20% { opacity: 0.9; }
  45% { opacity: 1; }
  60% { opacity: 0.82; }
  70% { opacity: 1; }
}

/* ---------- Stop teaser grid (index) ---------- */
.stop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stop-teaser {
  background: var(--charcoal-light);
  border: 1px solid rgba(201, 162, 75, 0.2);
  padding: 1.5rem;
  border-radius: 3px;
  text-align: center;
}

.stop-teaser .stop-number {
  font-family: 'UnifrakturMaguntia', cursive;
  font-size: 2.2rem;
  color: var(--crimson-bright);
  display: block;
  margin-bottom: 0.5rem;
}

.stop-teaser h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4rem;
}

.stop-teaser p {
  font-size: 1rem;
  margin: 0;
}

/* ---------- Tour times table ---------- */
.times-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--charcoal-light);
  border: 1px solid var(--gold-dim);
}

.times-table caption {
  caption-side: top;
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  padding-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.times-table th,
.times-table td {
  padding: 0.9rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(201, 162, 75, 0.18);
}

.times-table th {
  font-family: 'Cinzel Decorative', serif;
  color: var(--gold);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.times-table tr:last-child td {
  border-bottom: none;
}

.meta-note {
  margin-top: 1.5rem;
  font-style: italic;
  color: var(--parchment-dim);
  text-align: center;
}

/* ---------- Route page ---------- */
.map-frame {
  border: 1px solid var(--gold-dim);
  padding: 0.6rem;
  background: var(--charcoal-light);
  border-radius: 3px;
  margin-bottom: 3rem;
}

.map-frame img {
  border-radius: 2px;
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.route-list::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--gold-dim) 8%, var(--gold-dim) 92%, transparent);
}

.route-stop {
  position: relative;
  padding: 0 0 3rem 4.5rem;
}

.route-stop:last-child {
  padding-bottom: 0;
}

.route-stop .pin {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--crimson-bright), var(--crimson) 60%, #4a0d14 100%);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: 1.3rem;
  color: var(--parchment);
  box-shadow: 0 0 14px rgba(163, 33, 46, 0.5);
}

.route-stop-card {
  background: var(--charcoal-light);
  border: 1px solid rgba(201, 162, 75, 0.2);
  border-radius: 3px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

.route-stop-card.has-image {
  grid-template-columns: 1.1fr 1.4fr;
}

.route-stop-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.route-stop-body {
  padding: 1.5rem 1.75rem;
}

.route-stop-body h3 {
  margin-bottom: 0.3rem;
  font-size: 1.35rem;
}

.route-stop-tag {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 0.6rem;
}

@media (max-width: 640px) {
  .route-stop-card.has-image {
    grid-template-columns: 1fr;
  }
  .route-stop {
    padding-left: 3.5rem;
  }
  .route-list::before {
    left: 20px;
  }
  .route-stop .pin {
    width: 42px;
    height: 42px;
    font-size: 1.05rem;
  }
}

/* ---------- Guide page ---------- */
.guide-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 2.5rem;
  align-items: start;
}

.guide-portrait-frame {
  border: 1px solid var(--gold-dim);
  padding: 0.6rem;
  background: var(--charcoal-light);
}

.guide-portrait-frame img {
  filter: sepia(0.15) contrast(1.05);
}

.guide-name {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.2rem;
}

.guide-title {
  font-style: italic;
  color: var(--crimson-bright);
  margin-bottom: 1.25rem;
  display: block;
}

blockquote.gothic-quote {
  border-left: 3px solid var(--crimson-bright);
  margin: 2rem 0;
  padding: 0.25rem 0 0.25rem 1.5rem;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--parchment);
}

.credentials-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.credentials-list li {
  padding: 0.5rem 0;
  border-bottom: 1px dotted rgba(201, 162, 75, 0.25);
}

.credentials-list li::before {
  content: "\2726";
  color: var(--crimson-bright);
  margin-right: 0.6rem;
}

@media (max-width: 720px) {
  .guide-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  border-top: 1px solid var(--gold-dim);
  padding: 2.5rem 1.5rem 3rem;
  text-align: center;
  color: var(--parchment-dim);
  font-size: 0.95rem;
  position: relative;
  z-index: 3;
}

.site-footer .blackletter {
  font-size: 1.4rem;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.site-footer nav {
  margin: 1rem 0;
}

.site-footer nav a {
  color: var(--parchment-dim);
  text-decoration: none;
  margin: 0 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.site-footer nav a:hover {
  color: var(--gold);
}

.site-footer small {
  display: block;
  margin-top: 1rem;
  opacity: 0.7;
}
