@import "tailwindcss";

:root {
  --ink: #17324d;
  --coral: #f26752;
  --sky: #5eb7e8;
  --sage: #7f9b88;
  --paper: #fff9f0;
  --sand: #e8d6b5;
  --line: rgba(23, 50, 77, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Noto Sans SC", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header { height: 96px; padding: 0 clamp(24px, 4vw, 64px); display: flex; align-items: center; gap: 32px; border-bottom: 1px solid var(--line); position: relative; z-index: 20; background: rgba(255,249,240,.94); }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; font: 600 clamp(25px, 2.4vw, 39px)/1 Georgia, serif; }
.brand-mark { display: grid; place-items: center; width: 52px; height: 52px; border: 2px solid var(--sky); border-radius: 50%; color: #1877ba; transform: rotate(-8deg); }
nav { display: flex; gap: clamp(22px, 3vw, 52px); }
nav a { font-weight: 600; text-align: center; }
nav a span, .outline-button span { display: block; font-size: 13px; font-weight: 500; margin-top: 5px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.language { border: 1px solid #1877ba; border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
.outline-button { border: 2px solid var(--coral); border-radius: 999px; color: #e94f39; padding: 9px 24px; text-align: center; white-space: nowrap; }

.hero { min-height: 580px; display: grid; grid-template-columns: minmax(390px, 40%) 1fr; align-items: center; padding: 34px clamp(24px, 4vw, 64px) 40px; overflow: hidden; }
.hero-copy { position: relative; z-index: 2; padding: 24px 0; }
.eyebrow, .section-kicker, .place-meta { text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 700; color: #66816f; }
h1, h2, h3 { font-family: Georgia, "Noto Serif SC", serif; }
h1 { font-size: clamp(62px, 6.3vw, 98px); line-height: .97; letter-spacing: -.045em; margin: 14px 0 12px; font-weight: 500; }
.hero-zh { font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(34px, 3.8vw, 57px); font-weight: 600; margin: 0; letter-spacing: .05em; }
.scribble { width: 80%; height: 16px; margin: 8px 0 10px; border-top: 5px solid var(--coral); border-radius: 50%; transform: rotate(-1deg); }
.promise { color: var(--sage); font-size: 18px; letter-spacing: .18em; font-weight: 700; margin: 18px 0 24px; }
.primary-button { display: inline-flex; align-items: center; justify-content: space-between; min-width: 280px; padding: 15px 22px; color: white; background: linear-gradient(135deg, #ff735e, #f25341); border-radius: 15px; box-shadow: 0 14px 30px rgba(242,103,82,.22); font-weight: 700; transition: .25s ease; }
.primary-button small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; }
.primary-button b { font-size: 27px; transition: transform .25s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(242,103,82,.3); }
.primary-button:hover b { transform: translateX(4px); }
.hand-note { font: 500 18px/1.2 "Comic Sans MS", cursive; color: #597863; transform: rotate(-5deg); margin: 18px 0 0 54%; }

.postcard-stage { min-height: 500px; position: relative; }
.postcard { position: absolute; width: 38%; padding: 9px; background: white; border-radius: 20px; box-shadow: 0 16px 28px rgba(39,46,48,.2); transition: transform .35s ease; }
.postcard img { aspect-ratio: 3/4; object-fit: cover; border-radius: 13px; }
.postcard:hover { z-index: 10; }
.postcard.kyoto { left: 2%; top: 40px; transform: rotate(-5deg); }
.postcard.lisbon { left: 32%; top: 65px; transform: rotate(3deg); z-index: 3; }
.postcard.yunnan { left: 61%; top: 92px; transform: rotate(4deg); }
.postcard.kyoto:hover { transform: rotate(-2deg) scale(1.015); }
.postcard.lisbon:hover, .postcard.yunnan:hover { transform: rotate(1deg) scale(1.015); }
.tape { position: absolute; z-index: 2; left: 23%; top: -19px; min-width: 55%; padding: 8px 12px; background: var(--sand); text-align: center; font: 20px "Comic Sans MS", cursive; transform: rotate(2deg); box-shadow: 0 2px 3px rgba(0,0,0,.08); }
.lisbon .tape { background: #c7eafb; transform: rotate(-2deg); }
.yunnan .tape { background: #c7d2bf; }
.stamp { position: absolute; z-index: 8; left: 42%; bottom: -4px; display: grid; place-items: center; width: 85px; height: 85px; border: 3px double #2c6ca0; border-radius: 50%; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-align: center; transform: rotate(12deg); color: #2c6ca0; background: rgba(255,249,240,.72); }

.section { padding: 80px clamp(24px, 4vw, 64px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading h2 { font-size: clamp(39px, 4vw, 62px); margin: 5px 0 0; font-weight: 500; letter-spacing: -.03em; }
.section-heading h2 span { font: 600 .42em Arial, sans-serif; margin-left: 8px; letter-spacing: .04em; }
.section-heading > a { color: #1877ba; font-weight: 700; }
.destination-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.destination-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); padding: 12px; display: grid; grid-template-columns: 42% 1fr; gap: 18px; transition: .25s ease; }
.destination-card:hover { transform: translateY(-3px); border-color: var(--sky); box-shadow: 0 13px 30px rgba(23,50,77,.08); }
.destination-card img { height: 100%; min-height: 200px; object-fit: cover; border-radius: 12px; }
.destination-card h3 { font-size: 29px; margin: 3px 0 8px; }
.destination-card p { font-size: 14px; line-height: 1.45; margin: 5px 0; }
.destination-card .card-link { grid-column: 1 / -1; color: #d94e39; font-size: 13px; font-weight: 700; padding: 2px 4px 5px; }
.zh-copy { color: #68747b; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.tags span { background: #e8f3fa; color: #2679aa; border-radius: 5px; padding: 5px 7px; font-size: 11px; }

.notes { background: #edf5f2; }
.notes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.note-card { position: relative; min-height: 330px; padding: 30px; background: #fffdf8; border: 1px solid var(--line); border-radius: 4px 22px 4px 22px; }
.note-number { position: absolute; right: 20px; top: 10px; font: 44px Georgia, serif; color: rgba(94,183,232,.25); }
.note-card h3 { font-size: 30px; line-height: 1.1; margin: 18px 0 6px; }
.note-card h4 { font-size: 17px; margin: 0 0 18px; }
.note-card > p:not(.note-number):not(.place-meta) { color: #536171; line-height: 1.7; }
.read-link { position: absolute; left: 30px; bottom: 28px; color: #d94e39; font-weight: 700; }

.planner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; background: var(--ink); color: white; }
.planner h2 { font-size: clamp(42px, 5vw, 72px); line-height: 1.06; margin: 10px 0; font-weight: 500; }
.planner h2 span { color: #b9d7cc; }
.planner-copy { max-width: 600px; }
.planner-copy > p { font-size: 17px; line-height: 1.75; color: #dbe5eb; }
.planner .primary-button { margin-top: 18px; }

footer { padding: 50px clamp(24px, 4vw, 64px) 28px; display: grid; grid-template-columns: 1fr auto; gap: 35px; border-top: 1px solid var(--line); }
.footer-brand strong { font: 600 28px Georgia, serif; }
.footer-brand p { color: #65717a; line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 30px; align-content: start; }
.copyright { grid-column: 1/-1; padding-top: 22px; border-top: 1px solid var(--line); color: #7b858d; font-size: 12px; }

.legal { max-width: 920px; margin: 0 auto; padding: 70px 24px 100px; }
.legal h1 { font-size: clamp(48px, 7vw, 80px); }
.legal h2 { font-size: 29px; margin-top: 42px; }
.legal p, .legal li { font-size: 16px; line-height: 1.8; color: #435465; }
.legal .back { color: #d94e39; font-weight: 700; }

.guide { padding-bottom: 90px; }
.guide-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 6vw, 90px); align-items: center; padding: 70px clamp(24px, 6vw, 90px); }
.guide-hero h1 { margin: 12px 0 24px; }
.guide-hero h1 span { color: var(--sage); font-size: .62em; letter-spacing: .08em; }
.guide-deck { max-width: 720px; font: 19px/1.75 Georgia, "Noto Serif SC", serif; }
.byline { margin-top: 24px; color: #7a8791; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.guide-hero figure { margin: 0; padding: 12px; border-radius: 24px; background: white; box-shadow: 0 18px 45px rgba(23,50,77,.15); transform: rotate(1.5deg); }
.guide-hero figure img { aspect-ratio: 4/3; object-fit: cover; border-radius: 16px; }
.guide-hero figcaption { padding: 12px 5px 3px; color: #77828b; font-size: 12px; }
.fact-strip { margin: 0 clamp(24px, 6vw, 90px); display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.fact-strip div { padding: 24px; border-right: 1px solid var(--line); }
.fact-strip div:last-child { border: 0; }
.fact-strip span { display: block; margin-bottom: 9px; color: #718077; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.fact-strip strong { font: 600 18px Georgia, serif; }
.guide-layout { max-width: 1240px; margin: 80px auto 0; padding: 0 24px; display: grid; grid-template-columns: 230px minmax(0,1fr); gap: 70px; }
.guide-nav { position: sticky; top: 25px; height: max-content; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: #fffdf8; }
.guide-nav p { margin-top: 0; font-weight: 700; }
.guide-nav a { display: block; padding: 9px 0; color: #60717d; font-size: 13px; }
.guide-nav a:hover { color: var(--coral); }
.guide-content > section { padding-bottom: 75px; scroll-margin-top: 30px; }
.guide-content h2 { font: 500 clamp(36px, 4vw, 57px)/1.05 Georgia, serif; margin: 10px 0 28px; }
.guide-content h2 span { display: block; margin-top: 9px; color: var(--sage); font: 600 .42em Arial, sans-serif; letter-spacing: .04em; }
.guide-content h3 { font-size: 23px; margin: 0 0 10px; }
.guide-content p, .guide-list li { color: #4d5e6d; line-height: 1.72; }
.season-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.season-grid > div, .stay-grid > div { padding: 24px; background: #fffdf8; border: 1px solid var(--line); border-radius: 16px; }
.timeline > div { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.timeline b { color: var(--coral); text-transform: uppercase; letter-spacing: .1em; }
.timeline p { margin: 0; }
.stay-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.guide-list { list-style: none; padding: 0; }
.guide-list li { margin: 0 0 14px; padding: 18px 22px 18px 54px; border-radius: 12px; background: #eaf3f7; position: relative; }
.guide-list li::before { content: "↗"; position: absolute; left: 20px; top: 18px; color: #1b7aaa; font-weight: 800; }
.guide-list.coral li { background: #fff0eb; }
.guide-list.coral li::before { color: var(--coral); }
.sources { padding: 35px !important; border-radius: 20px; background: var(--ink); color: white; }
.sources h2 { font-size: 35px; }
.sources p { color: #cfdbe3; }
.sources a { display: block; padding: 11px 0; color: #8ed2f4; border-top: 1px solid rgba(255,255,255,.12); }
.next-guides { padding-top: 20px; border-top: 1px solid var(--line); }
.next-guides p { color: #718077; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.next-guides a { display: inline-block; margin: 0 18px 10px 0; color: #d94e39; font-weight: 700; }

@media (max-width: 1050px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; }
  .postcard-stage { margin-top: 10px; }
  .destination-grid { grid-template-columns: 1fr; }
  .destination-card { grid-template-columns: 210px 1fr; }
  .guide-hero { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-nav { display: none; }
  .stay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .site-header { height: 76px; padding: 0 18px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand { font-size: 22px; }
  .language { display: none; }
  .outline-button { padding: 7px 12px; font-size: 12px; }
  .hero { padding: 25px 20px; }
  h1 { font-size: 56px; }
  .postcard-stage { min-height: 360px; }
  .postcard { width: 45%; }
  .postcard.kyoto { left: 0; }
  .postcard.lisbon { left: 28%; top: 65px; }
  .postcard.yunnan { left: 55%; top: 80px; }
  .stamp { display: none; }
  .section { padding: 58px 20px; }
  .destination-card { grid-template-columns: 1fr; }
  .destination-card img { max-height: 240px; }
  .notes-grid, .planner { grid-template-columns: 1fr; }
  .planner { gap: 28px; }
  footer { grid-template-columns: 1fr; }
  .fact-strip { grid-template-columns: 1fr; }
  .fact-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .season-grid { grid-template-columns: 1fr; }
  .timeline > div { grid-template-columns: 1fr; gap: 8px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise .55s both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .postcard { animation: settle .7s both; }
  .lisbon { animation-delay: .08s; }
  .yunnan { animation-delay: .16s; }
  @keyframes rise { from { opacity: 0; transform: translateY(12px); } }
  @keyframes settle { from { opacity: 0; translate: 0 18px; } }
}
