/* Country Impressions -- fully-colored yellow/red/blue palette, requested by
   the site owner (no white/cream canvas anywhere). Reason for the banding:
   with three saturated primaries and no neutral base to rest the eye on,
   the only way to keep it readable is to never let two of them touch
   without a clear boundary, so each section is a solid full-bleed band of
   ONE color, and every band picks its own text/link/button treatment for
   contrast rather than sharing one global text color. Deep blue is the
   binding color (header/footer) so every page has one constant anchor.
   Reason for serif headings: an editorial, printed-photo-book feel rather
   than a default UI sans. */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@500;700&family=Noto+Sans+TC:wght@400;500&display=swap');

:root {
  --blue: #1b4d8f;
  --blue-deep: #0d2c54;
  --yellow: #f2b705;
  --red: #8f1c12;
  --red-bright: #c72a1d;
  --cream: #fdf6e0;
  --ink-dark: #1a1206;
  --radius: 3px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--blue-deep);
  color: var(--cream);
  font-family: 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
  font-size: 17px;
  line-height: 1.85;
}

h1, h2, h3 {
  font-family: 'Noto Serif TC', 'PingFang TC', serif;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 0.6em;
}

a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Bands: every section is one solid full-bleed color ---------- */
.band { padding: 48px 0; }

.band-blue { background: var(--blue); color: var(--cream); }
.band-blue h1, .band-blue h2, .band-blue h3 { color: var(--cream); }
.band-blue a { color: var(--yellow); }
.band-blue a:hover { color: var(--cream); }
.band-blue .lede, .band-blue .guestbook-meta { color: #cfe0f5; }
.band-blue section > h2 { border-bottom: 1px solid rgba(253,246,224,0.3); }

.band-yellow { background: var(--yellow); color: var(--ink-dark); }
.band-yellow h1, .band-yellow h2, .band-yellow h3 { color: var(--ink-dark); }
.band-yellow a { color: var(--blue-deep); }
.band-yellow a:hover { color: var(--red); }
.band-yellow .lede, .band-yellow .guestbook-meta { color: #5a4a06; }
.band-yellow section > h2 { border-bottom: 1px solid rgba(26,18,6,0.25); }

.band-red { background: var(--red); color: var(--cream); }
.band-red h1, .band-red h2, .band-red h3 { color: var(--cream); }
.band-red a { color: var(--yellow); }
.band-red a:hover { color: var(--cream); }
.band-red .lede, .band-red .guestbook-meta { color: #f3cfc9; }
.band-red section > h2 { border-bottom: 1px solid rgba(253,246,224,0.3); }

section { margin: 0; }
section > h2 { font-size: 22px; padding-bottom: 10px; margin-bottom: 22px; }
.lede { max-width: 68ch; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 2px;
}
.band-yellow a:focus-visible { outline-color: var(--blue-deep); }

/* ---------- Header / nav (the constant binding color) ---------- */
.site-header { background: var(--blue-deep); padding: 22px 0 18px; }
.brand { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.brand-name {
  font-family: 'Noto Serif TC', serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--cream);
  text-decoration: none;
}
.brand-name small {
  display: block;
  font-family: 'Noto Sans TC', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: #b9c9de;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
nav.mainnav { margin-top: 16px; }
nav.mainnav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 0; }
nav.mainnav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius);
  color: var(--cream);
  text-decoration: none;
  font-size: 15px;
  min-height: 44px;
  line-height: 28px;
}
nav.mainnav a:hover { background: rgba(253,246,224,0.12); }
nav.mainnav a[aria-current="page"] { background: var(--yellow); color: var(--ink-dark); }

.nav-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(253,246,224,0.4);
  background: transparent;
  color: var(--cream);
  border-radius: var(--radius);
  font-size: 22px;
  cursor: pointer;
}

/* ---------- Hero (the loudest moment on the page -> red) ---------- */
.hero { position: relative; margin: 0; }
.hero img { width: 100%; height: min(60vh, 520px); object-fit: cover; }
.hero-caption { background: var(--red); color: var(--cream); padding: 28px 24px 32px; }
.hero-caption h1 { font-size: 30px; max-width: 46ch; color: var(--cream); }
.hero-caption p { color: #f3cfc9; max-width: 60ch; margin: 0; }

main { padding-bottom: 0; }

/* ---------- Photo grid ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.photo-grid figcaption { margin-top: 6px; font-size: 13px; }
.photo-grid .feature { grid-column: span 2; grid-row: span 2; }
.photo-grid .feature img { aspect-ratio: 4/3; height: 100%; }

.category-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; list-style: none; padding: 0; margin: 0; }
.category-list li { padding: 10px 0; border-bottom: 1px dashed rgba(253,246,224,0.3); }
.band-yellow .category-list li { border-bottom-color: rgba(26,18,6,0.25); }

.notice {
  background: rgba(0,0,0,0.15);
  border-left: 3px solid var(--yellow);
  padding: 14px 18px;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}
.band-yellow .notice { background: rgba(255,255,255,0.35); border-left-color: var(--red); }

/* ---------- Buttons: always the color the surrounding band is NOT ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  min-height: 44px;
  background: var(--yellow);
  color: var(--ink-dark);
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 500;
  border: none;
  cursor: pointer;
  font-size: 15px;
}
.btn:hover { background: #d9a300; }
.band-yellow .btn { background: var(--blue-deep); color: var(--cream); }
.band-yellow .btn:hover { background: #0a2242; }
.band-red .btn { background: var(--yellow); color: var(--ink-dark); }

.btn-secondary { background: transparent; border: 1px solid currentColor; color: inherit; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }
.band-yellow .btn-secondary:hover { background: rgba(0,0,0,0.08); }

/* ---------- Guestbook: translucent cards, alternating accent bar ---------- */
.guestbook-entry {
  padding: 18px 18px 18px 20px;
  margin-bottom: 14px;
  background: rgba(253,246,224,0.08);
  border-left: 3px solid var(--yellow);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.guestbook-entry:nth-of-type(even) { border-left-color: var(--cream); }
.guestbook-entry h3 { font-size: 18px; margin-bottom: 4px; }
.guestbook-meta { font-size: 13px; margin-bottom: 8px; }
.guestbook-entry p { margin: 0.4em 0; }

/* ---------- Contact ---------- */
.contact-card {
  background: rgba(0,0,0,0.18);
  padding: 28px;
  border-radius: var(--radius);
  max-width: 46ch;
}
.band-yellow .contact-card { background: rgba(255,255,255,0.4); }
.contact-card p { margin: 0 0 18px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--blue-deep);
  padding: 28px 0 40px;
  color: #b9c9de;
  font-size: 14px;
}
footer.site-footer a { color: var(--yellow); }
footer.site-footer p { margin: 0.3em 0; }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .band { padding: 36px 0; }
  .hero-caption h1 { font-size: 24px; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .photo-grid .feature { grid-column: span 2; grid-row: span 1; }
  .category-list { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav.mainnav { display: none; }
  nav.mainnav.open { display: block; }
  nav.mainnav ul { flex-direction: column; }
  nav.mainnav a { display: block; }
}

@media (max-width: 420px) {
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
