:root {
  --limestone: #e9e1d2;
  --copper-patina: #6e8b83;
  --rail-navy: #21313f;
  --clock-red: #a64732;
  --paper-white: #f8f5ef;
  --bronze-shadow: #7a6248;
  --mist: rgba(33, 49, 63, 0.08);
  --line: rgba(33, 49, 63, 0.2);
  --shadow: 0 24px 60px rgba(33, 49, 63, 0.12);
  --max-width: 1200px;
  --radius: 28px;
  --radius-sm: 16px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --section-space: clamp(4rem, 8vw, 7rem);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Albert Sans", "Segoe UI", sans-serif;
  color: var(--rail-navy);
  background:
    radial-gradient(circle at top left, rgba(110, 139, 131, 0.18), transparent 38%),
    linear-gradient(180deg, var(--paper-white), var(--limestone));
  min-height: 100vh;
}

a {
  color: inherit;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
.button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid var(--clock-red);
  outline-offset: 3px;
}

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(20px);
  background: rgba(248, 245, 239, 0.78);
  border-bottom: 1px solid var(--line);
}

.topbar,
.section,
.footer-grid,
.language-gateway {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand-mark {
  text-decoration: none;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.85rem;
  row-gap: 0.15rem;
  align-items: center;
}

.brand-mark::before {
  content: "";
  width: 3.35rem;
  aspect-ratio: 1;
  grid-row: 1 / span 2;
  background: url("/assets/images/tmr-monogram.svg") center / contain no-repeat;
  filter: drop-shadow(0 10px 18px rgba(33, 49, 63, 0.18));
}

.brand-mark strong,
.hero-title,
.section-title,
.story-hero h1,
.language-card h2,
.tour-card h3,
.guide-card h3,
.contact-banner h2,
.booking-result h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
}

.brand-mark strong {
  grid-column: 2;
  font-size: 1.6rem;
  letter-spacing: 0.03em;
}

.brand-mark span,
.eyebrow,
.meta-pill,
.hero-rail span,
.stat-label,
.price-note,
.footer-small,
.language-switch,
.kicker,
.story-meta {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.brand-mark span {
  grid-column: 2;
  font-size: 0.82rem;
  color: var(--bronze-shadow);
}

.menu-button {
  display: none;
  border: 1px solid var(--rail-navy);
  background: transparent;
  border-radius: 999px;
  padding: 0.6rem 0.95rem;
}

.site-nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  padding: 0.45rem 0.2rem;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--clock-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.button,
.button-subtle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  text-decoration: none;
  border: 1px solid transparent;
}

.button {
  background: var(--rail-navy);
  color: var(--paper-white);
  box-shadow: var(--shadow);
}

.button:hover {
  background: #162028;
}

.button-subtle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.hero {
  padding: 2rem 0 1rem;
}

.hero-grid {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}

.hero-panel,
.hero-side,
.tour-card,
.story-card,
.guide-card,
.contact-card,
.booking-card,
.schedule-card,
.article-block,
.language-card,
.booking-result,
.ticket-panel,
.info-band {
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  display: grid;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 60%, rgba(166, 71, 50, 0.08) 60% 70%, transparent 70%),
    linear-gradient(180deg, rgba(110, 139, 131, 0.12), transparent 55%);
  pointer-events: none;
}

.eyebrow {
  font-size: 0.84rem;
  color: var(--clock-red);
}

.hero-title {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.9rem);
  line-height: 0.92;
  max-width: 11ch;
}

.hero-copy,
.section-copy,
.story-card p,
.guide-card p,
.article-block p,
.contact-card p,
.booking-card p,
.footer-small,
.ticket-panel p {
  line-height: 1.7;
  color: rgba(33, 49, 63, 0.84);
}

.hero-actions,
.button-row,
.language-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero-media-composition,
.gallery-ribbon,
.story-media-grid,
.media-slab {
  display: grid;
  gap: 1rem;
}

.hero-media-composition {
  grid-template-columns: 1.25fr 0.75fr;
  align-items: stretch;
}

.media-frame,
.story-thumb,
.story-hero-visual,
.tour-media-frame,
.gallery-card {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) - 8px);
  background: rgba(33, 49, 63, 0.08);
}

.media-frame img,
.story-thumb img,
.story-hero-visual img,
.tour-media-frame img,
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame::after,
.story-thumb::after,
.story-hero-visual::after,
.tour-media-frame::after,
.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(33, 49, 63, 0.54));
  pointer-events: none;
}

.media-caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  color: var(--paper-white);
}

.media-caption strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.media-caption span,
.credit-note {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.media-frame.tall {
  min-height: 460px;
}

.media-frame.medium,
.tour-media-frame,
.story-hero-visual {
  min-height: 280px;
}

.hero-media-stack {
  display: grid;
  gap: 1rem;
}

.hero-media-stack .media-frame {
  min-height: 220px;
}

.hero-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}

.hero-rail {
  display: grid;
  gap: 0.8rem;
  padding-left: 1rem;
  border-left: 2px solid rgba(166, 71, 50, 0.28);
}

.hero-rail strong {
  font-size: 1.15rem;
}

.hero-side {
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
}

.hero-side .tour-media-frame {
  min-height: 260px;
}

.schedule-card,
.ticket-panel,
.language-card,
.info-band {
  padding: 1.4rem;
}

.schedule-card dl {
  margin: 0;
  display: grid;
  gap: 0.95rem;
}

.schedule-card dt,
.tour-meta span,
.story-meta,
.price-note,
.footer-small {
  color: var(--bronze-shadow);
}

.schedule-card dd {
  margin: 0.2rem 0 0;
  font-size: 1.05rem;
}

.section {
  padding: var(--section-space) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.8rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 0.95;
}

.section-grid,
.cards-3,
.cards-2,
.story-grid,
.guide-grid,
.contact-grid,
.language-grid {
  display: grid;
  gap: 1rem;
}

.cards-3,
.story-grid,
.guide-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-2,
.contact-grid,
.language-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tour-card,
.story-card,
.guide-card,
.contact-card,
.article-block {
  padding: 1.5rem;
}

.tour-card .tour-media-frame,
.story-card .story-thumb {
  margin-bottom: 1rem;
}

.tour-card.featured {
  background: linear-gradient(180deg, rgba(166, 71, 50, 0.94), rgba(122, 98, 72, 0.96));
  color: var(--paper-white);
}

.tour-card.featured .hero-copy,
.tour-card.featured .price-note,
.tour-card.featured li,
.tour-card.featured .tour-meta,
.tour-card.featured p {
  color: rgba(248, 245, 239, 0.86);
}

.tour-header,
.price-box,
.story-card-header,
.guide-card-header,
.contact-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
}

.tour-card h3,
.story-card h3,
.guide-card h3,
.contact-card h3 {
  margin: 0.15rem 0 0.5rem;
  font-size: 2rem;
}

.price-box strong {
  font-size: 2rem;
  line-height: 1;
}

.tour-meta,
.guide-tags,
.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.meta-pill,
.guide-tags span,
.stats span,
.story-tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-size: 0.85rem;
}

.tour-list,
.faq-list,
.story-links,
.article-list {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.tour-compare {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1rem;
}

.story-card {
  min-height: 100%;
}

.story-card.story-card--media {
  display: grid;
  align-content: start;
}

.guide-portrait {
  aspect-ratio: 4 / 4.2;
  border-radius: calc(var(--radius) - 10px);
  background:
    linear-gradient(145deg, rgba(110, 139, 131, 0.28), rgba(33, 49, 63, 0.1)),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(33, 49, 63, 0.06) 22px 23px);
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: rgba(33, 49, 63, 0.7);
}

.guide-portrait::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 38%),
    linear-gradient(180deg, transparent 52%, rgba(33, 49, 63, 0.26));
  pointer-events: none;
}

.guide-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.booking-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 1rem;
}

.booking-card,
.booking-result {
  padding: 1.5rem;
}

.booking-form,
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.field legend {
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(33, 49, 63, 0.18);
  border-radius: 16px;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.9);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 0.7rem;
  align-items: center;
}

.price-stack {
  display: grid;
  gap: 0.8rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.price-row.total {
  font-weight: 700;
  color: var(--clock-red);
}

.booking-result[hidden] {
  display: none;
}

.quote-banner,
.contact-banner,
.language-gateway {
  padding: var(--section-space) 0;
}

.contact-banner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto var(--section-space);
  padding: 2rem;
  border-radius: var(--radius);
  background: linear-gradient(120deg, var(--rail-navy), #2d4355);
  color: var(--paper-white);
  display: grid;
  gap: 0.8rem;
}

.contact-banner p {
  color: rgba(248, 245, 239, 0.82);
}

.gallery-ribbon {
  grid-template-columns: 1.15fr 0.85fr 0.8fr;
}

.gallery-card {
  min-height: 240px;
}

.gallery-card.illustration {
  background:
    linear-gradient(180deg, rgba(110, 139, 131, 0.16), rgba(33, 49, 63, 0.05)),
    rgba(255, 255, 255, 0.7);
}

.gallery-card.illustration::after {
  display: none;
}

.gallery-card.illustration img {
  object-fit: contain;
  padding: 1.2rem;
}

.article-hero {
  padding: clamp(4rem, 10vw, 7rem) 0 2rem;
}

.article-hero-grid,
.footer-grid {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.article-hero-grid {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
}

.article-hero-grid.media-rich {
  align-items: stretch;
}

.article-lead,
.language-card p {
  font-size: 1.08rem;
}

.story-hero h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.94;
}

.article-flow {
  width: min(calc(100% - 2rem), 920px);
  margin: 0 auto var(--section-space);
  display: grid;
  gap: 1rem;
}

.article-flow.media-rich {
  width: min(calc(100% - 2rem), var(--max-width));
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.article-block h2 {
  margin-top: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
}

.article-block.photo-block {
  padding: 0;
  overflow: hidden;
}

.article-block.photo-block img,
.article-block.photo-block svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-hero-visual {
  min-height: 360px;
}

.story-hero-visual img,
.story-hero-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.credit-note {
  margin-top: 0.85rem;
  color: var(--bronze-shadow);
}

.language-gateway {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 1.5rem;
}

.language-grid .language-card {
  padding: 2rem;
}

.language-card h2 {
  font-size: 2.4rem;
  margin: 0.3rem 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: var(--section-space);
  background: rgba(248, 245, 239, 0.74);
}

.footer-grid {
  grid-template-columns: 1.2fr 0.8fr;
  padding: 2rem 0;
}

.footer-links,
.mini-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 960px) {
  .hero-grid,
  .tour-compare,
  .booking-layout,
  .article-hero-grid,
  .footer-grid,
  .cards-3,
  .cards-2,
  .story-grid,
  .guide-grid,
  .contact-grid,
  .language-grid,
  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .menu-button {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 1rem;
    right: 1rem;
    background: rgba(248, 245, 239, 0.98);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 1rem;
    display: none;
    flex-direction: column;
    align-items: start;
  }

  .site-nav[data-open="true"] {
    display: flex;
  }

  .hero-media-composition,
  .gallery-ribbon,
  .article-flow.media-rich {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .brand-mark {
    column-gap: 0.65rem;
  }

  .brand-mark::before {
    width: 2.85rem;
  }

  .hero-title {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-foot,
  .section-heading,
  .price-row,
  .tour-header,
  .story-card-header,
  .guide-card-header,
  .contact-card-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar,
  .section,
  .footer-grid,
  .language-gateway {
    width: min(calc(100% - 1.2rem), var(--max-width));
  }

  .button,
  .button-subtle {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
