@font-face {
  font-family: "Italiana";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/italiana-regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/alegreya-sans-regular-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Alegreya Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/alegreya-sans-medium-latin.woff2") format("woff2");
}

:root {
  --font-editorial: "Italiana", Georgia, serif;
  --font-interface: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-reading: "Alegreya Sans", sans-serif;

  --editorial-paper: #f4f0e7;
  --editorial-ink: #282620;
  --editorial-stone: #777268;
  --editorial-rule: #bdb5a7;
  --editorial-accent: #a9694c;
  --ink: #1c2321;
  --muted: #4e5352;
  --paper: #fdfcf7;
  --surface: #fffefa;
  --line: rgba(28, 35, 33, 0.14);
  --brand-blue: #23506f;
  --brand-blue-dark: #183b52;
  --brand-blue-soft: #57788e;
  --brand-blue-pale: #e8eef1;
  --teal: var(--brand-blue);
  --teal-dark: var(--brand-blue-dark);
  --coral: #c5a880;
  --gold: #c5a880;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;

  --shadow: 0 12px 30px rgba(28, 35, 33, 0.07);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --container-wide: 76rem;
  --container-reading: 48rem;
}

/* The access screen remains untouched; editorial tokens belong to the book. */
.trip-view {
  --paper: var(--editorial-paper);
  --ink: var(--editorial-ink);
  --stone: var(--editorial-stone);
  --muted: #676259;
  --rule: var(--editorial-rule);
  --line: color-mix(in srgb, var(--rule) 65%, transparent);
  --accent: var(--editorial-accent);
  --surface: #faf7f0;
  --teal: var(--ink);
  --coral: var(--accent);
  --gold: var(--accent);
  --radius-sm: 2px;
  color: var(--ink);
  background: var(--paper);
}
.trip-view .button { border-radius: 0; }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.type-editorial {
  font-family: var(--font-editorial);
}

.type-interface {
  font-family: var(--font-interface);
}

.type-reading,
.text-reading {
  font-family: var(--font-reading);
  font-size: 1rem;
  line-height: 1.6;
}

.heading-display,
.heading-intro,
.heading-section,
.heading-page,
.heading-day {
  margin: 0;
  font-family: var(--font-editorial);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.heading-display {
  font-size: clamp(2.375rem, 10vw, 2.625rem);
  line-height: 1.08;
}

.heading-intro {
  font-size: clamp(2.25rem, 10vw, 4.2rem);
  line-height: 0.98;
}

.heading-section {
  font-size: clamp(2.25rem, 10vw, 4.4rem);
  line-height: 1;
}

.heading-page {
  font-size: clamp(2.35rem, 10vw, 3.4rem);
  line-height: 1;
}

.heading-day {
  font-size: 1.8125rem;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.meta-label {
  font-family: var(--font-interface);
  font-weight: 600;
  letter-spacing: 0.025em;
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--teal);
  font-family: var(--font-interface);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #d7e5ec;
}

.site-container {
  width: min(100%, var(--container-wide));
  margin-right: auto;
  margin-left: auto;
}

.reading-container {
  width: min(100%, var(--container-reading));
  margin-right: auto;
  margin-left: auto;
}

.surface-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: none;
}

.brand-motif {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.brand-motif::after {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: -0.5rem;
  width: min(18rem, 68vw);
  aspect-ratio: 6000 / 3374;
  content: "";
  background: url("../../travelopoli-logo.svg") center / contain no-repeat;
  clip-path: polygon(74% 0, 100% 0, 100% 100%, 74% 100%);
  opacity: 0.03;
  pointer-events: none;
}

.brand-motif > * {
  position: relative;
  z-index: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand__logo {
  display: block;
  width: clamp(8rem, 24vw, 10rem);
  height: auto;
  aspect-ratio: 6000 / 3374;
  object-fit: contain;
}

.brand--dark {
  color: var(--teal-dark);
}

.brand--light {
  padding: 0.15rem 0.35rem;
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
  background: rgba(253, 252, 247, 0.92);
}

.button {
  display: inline-flex;
  min-height: 2.75rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-interface);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.button--primary {
  color: white;
  background: var(--brand-blue);
}

.button--primary:hover {
  background: var(--brand-blue-dark);
  transform: translateY(-1px);
}

.button--outline {
  border-color: var(--ink);
  color: var(--ink);
  background: transparent;
}

.button--outline:hover {
  color: white;
  background: var(--ink);
}

.button--light {
  border-color: rgba(255, 255, 255, 0.42);
  color: white;
  background: rgba(35, 80, 111, 0.78);
}

.button--light:hover {
  background: var(--brand-blue-dark);
}

.button:focus-visible,
.brand:focus-visible {
  outline: 3px solid rgba(35, 80, 111, 0.2);
  outline-offset: 3px;
}

/* Shared document actions: text links, never structural dividers. */
.editorial-action,
.voucher-button,
.boarding-viewer__original {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-self: flex-start;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
  padding: 0.35rem 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  color: var(--ink);
  background: transparent;
  font-family: var(--font-interface);
  font-size: 0.78125rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
}
.editorial-action::before, .editorial-action::after,
.voucher-button::before, .voucher-button::after,
.boarding-viewer__original::before, .boarding-viewer__original::after { content: none; }
.editorial-action:hover,
.voucher-button:hover,
.boarding-viewer__original:hover { color: var(--ink); background: transparent; }
@media (hover: hover) and (pointer: fine) {
  .editorial-action:hover,
  .voucher-button:hover,
  .boarding-viewer__original:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
}
.editorial-action:focus-visible,
.voucher-button:focus-visible,
.boarding-viewer__original:focus-visible { outline: none; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .heading-day {
    font-size: 2.25rem;
  }

  .heading-display {
    font-size: clamp(3rem, 4.4vw, 3.5rem);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
