:root {
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ink: #111111;
  --paper: #f3ede3;
  --gold: #e9b640;
  --header: 76px;
}

html[lang="zh-Hant"] {
  --serif: "Noto Serif TC", "Newsreader", serif;
  --sans: "Noto Sans TC", "Hanken Grotesk", sans-serif;
}

html[lang="zh-Hant"] [data-it] { font-style: normal !important; }
html[lang="zh-Hant"] [data-up] { letter-spacing: 0.08em !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

*, *::before, *::after { box-sizing: border-box; }

img { max-width: 100%; height: auto; }
svg { max-width: 100%; }

a { color: inherit; }
button, input, select, textarea {
  font: inherit;
  color: inherit;
  max-width: 100%;
}
input, select, textarea { width: 100%; }

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

::selection {
  background: var(--gold);
  color: var(--ink);
}

#app {
  overflow-x: clip;
  min-height: 100vh;
  min-height: 100svh;
}

#app :where(p, h1, h2, h3, li) {
  overflow-wrap: break-word;
}

.skip-link:focus {
  top: 12px !important;
}

.scroll-cue {
  width: 1px;
  height: 36px;
  background: currentColor;
  display: block;
  animation: ohanaCue 2.4s ease-in-out infinite;
}

.flavor-rail {
  overscroll-behavior-x: contain;
  scroll-padding-inline: 4px;
  padding-block: 6px 4px;
}

.flavor-arch {
  position: relative;
  height: 260px;
  width: 100%;
  border-radius: 999px 999px 6px 6px;
  background: #fbf8f3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.4s ease;
}

.flavor-arch img {
  max-height: 78%;
  max-width: 70%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.flavor-arch::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 36px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%) scaleX(0.25);
  opacity: 0;
  transition: transform 0.45s ease, opacity 0.35s ease;
}

.flavor-card[data-on="true"] .flavor-arch {
  background: #fff;
}

.flavor-card[data-on="true"] .flavor-arch::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

.flavor-name {
  position: relative;
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.15;
}

.flavor-name::before {
  content: "";
  position: absolute;
  left: 0;
  top: -9px;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.35s ease;
}

.flavor-card[data-on="true"] .flavor-name::before {
  transform: scaleX(1);
  opacity: 1;
}

.flavor-meta {
  font-size: 13px;
  opacity: 0.75;
}

@keyframes ohanaCue {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(10px); opacity: 1; }
}

.visit {
  scroll-margin-top: 76px;
  background: #e6daca;
  padding: clamp(88px, 11vw, 160px) 0;
}

.visit-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.visit-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
}

.visit-path {
  list-style: none;
  counter-reset: visit;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 48px;
  margin: clamp(56px, 7vw, 96px) 0 0;
  padding: clamp(28px, 3vw, 36px) 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.14);
}

.visit-path li {
  counter-increment: visit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-family: var(--serif);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
}

.visit-path li::before {
  content: counter(visit, decimal-leading-zero);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #8a5534;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: clamp(40px, 5vw, 64px);
}

.visit-note {
  flex-basis: 100%;
  margin: 4px 0 0;
  font-size: 13px;
  color: #5c564e;
}

.visit-day {
  scroll-margin-top: 96px;
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: #111111;
  color: #f3ede3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 40px;
  align-items: center;
}

.visit-day-copy {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.visit-day-cta {
  justify-self: end;
}

.visit-events,
.visit-empty {
  grid-column: 1 / -1;
  margin: 4px 0 0;
}

.visit-events {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.visit-events li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(243, 237, 227, 0.15);
}

.visit-empty {
  font-size: 14px;
  color: rgba(243, 237, 227, 0.65);
}

@media (max-width: 900px) {
  .visit-head,
  .visit-day {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .visit-path {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }

  .visit-day {
    border-radius: 20px;
  }

  .visit-day-cta {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .visit-path {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 0;
  }

  .visit-path li {
    padding: 16px 0;
    border-bottom: 1px solid rgba(17, 17, 17, 0.14);
  }
}

.award-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px clamp(20px, 4vw, 48px);
  align-items: center;
}

.award-year { white-space: nowrap; }

.award-seal {
  justify-self: end;
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.seal-sebrae {
  width: min(220px, 42vw);
  height: auto;
  display: block;
}

.seal-medal {
  width: 132px;
  height: auto;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(17, 17, 17, 0.16));
}

.hero-badge .seal-medal {
  width: 52px;
  height: auto;
  flex-shrink: 0;
  filter: none;
}

.seal-medal-dark {
  width: clamp(108px, 12vw, 148px);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.45));
}

.seal-biosphere {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  padding: 14px 12px 12px;
  border-radius: 18px;
  background: #111111;
  box-shadow: 0 14px 28px rgba(17, 17, 17, 0.14);
  flex-shrink: 0;
}

.seal-biosphere img {
  width: 84px;
  height: auto;
  display: block;
}

.nav-desk { display: none; }
.nav-mob { display: flex; align-items: center; }

@media (min-width: 1280px) {
  .nav-desk { display: contents; }
  .nav-mob { display: none; }
}

.gate-panel { container-type: inline-size; }

.gate-q {
  font-size: clamp(26px, 4.2vw, 34px);
  overflow-wrap: normal;
  text-wrap: balance;
}

@supports (width: 1cqi) {
  .gate-q { font-size: clamp(26px, 6.2cqi, 34px); }
}

.gate-resp {
  max-width: 48ch;
  font-size: 13px;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-copy { container-type: inline-size; }

.hero-title {
  font-size: clamp(42px, 5.2vw, 84px);
  overflow-wrap: normal;
}

@supports (width: 1cqi) {
  .hero-title { font-size: clamp(42px, 13cqi, 92px); }
}

.boot {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #f3ede3;
  padding: 24px;
  text-align: center;
}

.boot img { width: min(180px, 46vw); height: auto; }

.still-photo {
  width: min(100%, 460px);
  justify-self: end;
}

.place {
  scroll-margin-top: 76px;
  background: #26302A;
  color: #F3EDE3;
  padding: clamp(64px, 8vw, 104px) 0 clamp(72px, 9vw, 120px);
}

.place-wrap {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.place-land {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 2.35 / 1;
  max-height: 520px;
  box-shadow: 0 28px 60px rgba(0, 0, 0, .28);
}

.place-land > img:not(.place-window) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.place-land > img.place-window {
  position: absolute;
  left: clamp(16px, 2.4vw, 32px);
  bottom: clamp(16px, 2.4vw, 28px);
  width: min(30%, 280px);
  height: auto;
  aspect-ratio: 3 / 2;
  border-radius: 16px;
  border: 3px solid #F3EDE3;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .4);
  object-fit: cover;
  object-position: center;
}

.place-words {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 72px);
  align-items: end;
  margin-top: clamp(36px, 5vw, 64px);
}

@media (max-width: 1040px) {
  .still-photo { justify-self: center; }
}

@media (max-width: 860px) {
  #inicio { padding-bottom: 28px; }
  a.scroll-cue-link {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    max-width: calc(100% - 32px);
    text-align: center;
  }
}

@media (max-width: 800px) {
  .place-land { aspect-ratio: 4 / 3; border-radius: 20px; max-height: none; }
  .place-land > img.place-window { width: min(42%, 168px); left: 12px; bottom: 12px; border-width: 2px; border-radius: 12px; }
  .place-words { grid-template-columns: 1fr; gap: 22px; margin-top: 28px; align-items: start; }
}

@media (max-width: 700px) {
  .split-2 { grid-template-columns: 1fr !important; }
  .award-row { grid-template-columns: 1fr auto; }
  .award-year { grid-column: 1 / -1; }
  .award-copy { grid-column: auto !important; }
  .award-seal { justify-self: start !important; justify-content: flex-start; margin-top: 8px; }
  .award-seal:has(.seal-sebrae) { grid-column: 1 / -1; width: auto; }
  .seal-sebrae { width: min(240px, 86%); }
  .bio-card { align-items: flex-start; }
  .hero-badge {
    left: 12px !important;
    right: auto !important;
    bottom: 12px !important;
    max-width: calc(100% - 24px);
  }
  .bot-panel {
    min-height: 0 !important;
    padding: 72px 22px 32px !important;
  }
  .ohana-word { font-size: clamp(56px, 17vw, 280px) !important; }
  .poi-mark { font-size: clamp(72px, 28vw, 300px) !important; }
}

@media (max-width: 1280px) {
  .nav-desk nav a { white-space: normal; }
}

@supports (padding: env(safe-area-inset-left)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  header, .skip-link, .scroll-cue-link, [role="dialog"], [role="region"] {
    display: none !important;
  }
  main { display: block !important; }
  body { background: #fff; color: #000; }
}
