/* Wander Siam Tours (Kadence). Idea: refero.design "Kinfolk — collected objects, printed voices" (design-refs/tour.md):
   white printed spread, regular serif headlines, tiny sans annotations, 2px black rules, grey-green band, black closing panel,
   actions as typographic punctuation (text links / 1px outlined 2px-corner rectangles). */
body {
  --global-palette1: #000; --global-palette2: #333; --global-palette3: #000; --global-palette4: #1f1f1f;
  --global-palette5: #4d4d4d; --global-palette6: #8a8a8a; --global-palette7: #dbded5; --global-palette8: #f3f4ef; --global-palette9: #fff;
  --t-serif: "Libre Caslon Display", "Taviraj", Georgia, serif;
  --t-sans: "Arimo", "Noto Sans Thai", Arial, sans-serif;
  --global-heading-font-family: var(--t-serif);
  --global-body-font-family: var(--t-sans);
  background: #fff; color: #1f1f1f; font-family: var(--t-sans); line-height: 1.7;
}
body a { color: #000; text-underline-offset: 3px; }
body :focus-visible { outline: 2px solid #000; outline-offset: 3px; }

/* paired voices: regular serif, never bold */
body h1, body h2, body h3, body .entry-title { font-family: var(--t-serif); font-weight: 400 !important; letter-spacing: 0; line-height: 1.3; color: #000; }
body h2.wp-block-heading { font-size: clamp(1.9rem, 3.4vw, 2.6rem); border-bottom: 2px solid #000; padding-bottom: 18px; margin-bottom: 28px; }
/* card titles: small sans annotations */
body .wp-block-column h3, body h4 { font-family: var(--t-sans); font-weight: 600 !important; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; }
body .wp-block-column p { font-size: 15px; color: #333; }

/* header: plain white bar, serif name, small sans navigation, 2px rule */
body #masthead, body .site-header-row-container-inner { background: #fff !important; }
body #masthead { border-bottom: 2px solid #000; }
body .site-branding .site-title { font-family: var(--t-serif); font-weight: 400; font-size: 1.6rem; letter-spacing: .02em; }
body .main-navigation .primary-menu-container > ul > li.menu-item > a { font-family: var(--t-sans); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: #000; }
body .main-navigation .primary-menu-container > ul > li.menu-item > a:hover, body .main-navigation .current-menu-item > a { text-decoration: underline; }
body .header-navigation .header-menu-container ul ul { background: #fff; border: 1px solid #000; box-shadow: none; }
body .header-navigation .header-menu-container ul ul li.menu-item > a { color: #000; }

/* opening photograph: full-bleed, lighter scrim, regular serif statement */
body .wp-block-cover.alignfull { min-height: 82vh !important; }
body .wp-block-cover .wp-block-cover__background { background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%) !important; opacity: 1 !important; }
body .wp-block-cover .wp-block-cover__inner-container { align-self: flex-end; text-align: left; max-width: 1180px; padding-bottom: 32px; }
body .wp-block-cover h1, body .wp-block-cover h2 { font-size: clamp(2.2rem, 5vw, 4rem) !important; border: 0; text-align: left !important; }
body .wp-block-cover p { text-align: left !important; max-width: 36rem; font-size: 1rem; }
body .wp-block-cover .wp-block-buttons { justify-content: flex-start !important; }

/* actions: 1px outlined rectangles with 2px corners; filled = black */
body .wp-block-button__link { border-radius: 2px !important; padding: 8px 16px !important; font-family: var(--t-sans); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; background: #000 !important; color: #fff !important; border: 1px solid #000 !important; box-shadow: none !important; }
body .is-style-outline .wp-block-button__link { background: transparent !important; color: #000 !important; border: 1px solid #000 !important; }
body .wp-block-cover .wp-block-button__link, body .has-background[style*="000"] .wp-block-button__link { background: transparent !important; color: #fff !important; border-color: #fff !important; }
body .wp-block-button__link:hover { opacity: .7; }

/* collected objects: no rounded corners, no shadows, unequal image scale */
body .wp-block-image img, body img.wp-post-image, body .post-thumbnail img { border-radius: 0 !important; box-shadow: none !important; }
body .wp-block-columns { gap: 20px; }
body .wp-block-column { border: 0 !important; box-shadow: none !important; background: none !important; }

/* grey-green preview band replaces the light group backgrounds */
body .has-background { background: #dbded5 !important; }

/* lists, tables, accordions as printed annotations */
body table, body th, body td { border-color: #000 !important; }
body th { font-family: var(--t-sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
body details { border-top: 1px solid #000; padding: 14px 0; }
body details:last-of-type { border-bottom: 1px solid #000; }
body summary { cursor: pointer; font-family: var(--t-serif); font-size: 1.2rem; }
body blockquote, body .wp-block-quote { border-left: 0; border-top: 2px solid #000; padding-top: 16px; font-family: var(--t-serif); font-size: 1.4rem; }
body input, body textarea, body select { border: 1px solid #000 !important; border-radius: 2px !important; }

/* blog cards */
body .loop-entry, body .entry.loop-entry { box-shadow: none !important; border-radius: 0 !important; border-top: 2px solid #000; }
body .entry-meta, body .entry-taxonomies a { font-family: var(--t-sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }

/* inverted closing: black footer with a 2px white rule */
body #colophon, body .site-footer-row-container-inner { background: #000 !important; color: #fff; }
body #colophon .site-bottom-footer-inner-wrap { border-top: 2px solid #fff; }
body #colophon a { color: #fff; }

/* editorial container: 34px side margins, equal 4:3 trip pictures */
body .entry-content > .wp-block-columns, body .entry-content > h2.wp-block-heading, body .entry-content > .wp-block-latest-posts { margin-inline: max(34px, calc((100vw - 1372px) / 2)) !important; }
body .wp-block-column .wp-block-image img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
@media (max-width: 600px) { body .entry-content > .wp-block-columns, body .entry-content > h2.wp-block-heading, body .entry-content > .wp-block-latest-posts { margin-inline: 20px !important; } }

/* opening statement: balanced lines, no orphan word */
body .wp-block-cover h1, body .wp-block-cover h2 { text-wrap: balance; max-width: 20ch; }
body { --wpm-accent: #000; }
