/* ===== Design tokens (from Figma) ===== */
:root {
  --blue: #7a9bb0;      /* hero background */
  --light: #b6d4da;     /* footer logo / backdrop */
  --ink: #2a3c47;       /* text & footer background */

  --font-script: "american-scribe", "Pinyon Script", cursive;   /* Adobe Fonts */
  --font-serif: "Cardo", Georgia, "Times New Roman", serif;      /* Google Fonts */

  --pad-x: clamp(24px, 3.8vw, 55px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ===== Hero ===== */
.hero {
  position: relative;
  background: var(--blue);
  padding: 41px var(--pad-x) 64px;
  min-height: 844px;
  display: flex;
  flex-direction: column;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.logo {
  font-family: var(--font-script);
  font-size: clamp(30px, 2.5vw, 36px);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2vw, 26px);
  font-size: clamp(15px, 1.4vw, 20px);
  letter-spacing: -0.03em;
}
.nav-links a { padding-bottom: 2px; }
.nav-links a:hover { border-bottom: 1px solid var(--ink); }

.hero-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: clamp(48px, 9vw, 118px);
}

.eyebrow {
  font-size: clamp(15px, 1.2vw, 16px);
  letter-spacing: -0.02em;
}

.hero-title {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(52px, 8.6vw, 140px);
  line-height: 0.98;
  margin-top: clamp(20px, 3vw, 44px);
  max-width: min(940px, 96vw);
}
.hero-title span { display: block; }

.hero-note {
  margin-top: clamp(40px, 5.5vw, 72px);
  max-width: 468px;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* ===== Shared arrow link ===== */
.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  letter-spacing: -0.04em;
}
.link .arrow { transition: transform 0.2s ease; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }
.link:hover .arrow { transform: translateX(4px); }
.link--light { color: #fff; }

/* ===== Story ===== */
.story {
  position: relative;
  overflow: hidden;
  background: #d9d4c8 url("assets/paper.jpg") center / cover no-repeat;
  padding: clamp(64px, 9vw, 124px) var(--pad-x) clamp(72px, 8vw, 100px);
}

/* faint book excerpt behind the content */
.story-quote {
  position: absolute;
  inset: 36px 31px auto;
  margin: 0 auto;
  max-width: 1368px;
  font-size: clamp(15px, 1.6vw, 24px);
  line-height: 1.27;
  color: #000;
  opacity: 0.10;
  filter: blur(1.9px);
  pointer-events: none;
  user-select: none;
}

.story-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.story-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(44px, 5.6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.06em;
  max-width: 720px;
}

.portrait {
  margin-top: clamp(36px, 5vw, 52px);
  width: clamp(230px, 22vw, 312px);
  border: 4px solid #fff;
  box-shadow: -3px 3px 6px rgba(0, 0, 0, 0.25);
}
.portrait img {
  width: 100%;
  aspect-ratio: 312 / 416;
  object-fit: cover;
}

.story-inner .link { margin-top: clamp(40px, 6vw, 68px); }

/* ===== Travel & Things to Do (image with overlay) ===== */
.recommend {
  position: relative;
  overflow: hidden;
  min-height: clamp(520px, 59vw, 855px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
}
.recommend-bg {
  position: absolute;
  left: 0;
  top: -20%;
  width: 100%;
  height: 140%;             /* extra height so parallax never reveals an edge */
  object-fit: cover;
  object-position: center 58%;
  filter: blur(1px);        /* softened, but lighter than before for legibility */
  transform: scale(1.08) translate3d(0, 0, 0);
  will-change: transform;
}
.recommend::after {
  content: "";
  position: absolute;
  inset: 0;
  /* slightly stronger, top-to-bottom wash keeps the white text legible with less blur */
  background: linear-gradient(rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.44));
}
.recommend-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  padding: clamp(48px, 6vw, 80px) var(--pad-x);
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}
.recommend-heading {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.05em;
  max-width: 620px;
}
.recommend-inner .link { margin-top: clamp(36px, 5vw, 64px); }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(24px, 3vw, 64px);
}
.footer-logo {
  font-family: var(--font-script);
  font-size: 36px;
  color: var(--light);
}
.footer-date {
  font-size: 20px;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: 0.02em;
}

/* ===== Motion: scroll reveals ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 1s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
[data-reveal][data-delay="1"] { transition-delay: 0.12s; }
[data-reveal][data-delay="2"] { transition-delay: 0.26s; }

.portrait[data-reveal] { transform: translateY(24px) scale(0.97); }

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Respect users who prefer reduced motion — no reveals, no parallax drift */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .recommend-bg {
    transform: scale(1.04) !important;
  }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { min-height: auto; padding-bottom: 48px; }
  .nav { flex-wrap: wrap; gap: 14px; }
  .nav-links { width: 100%; justify-content: space-between; gap: 14px; }

  .story-quote { inset: 20px 16px auto; }
}

@media (max-width: 480px) {
  .nav-links { font-size: 13px; gap: 12px; }
}
