/*
Theme Name: Palate & Passage
Theme URI: https://saantayopunta.com/
Author: Saan Tayo Punta
Author URI: https://saantayopunta.com/
Description: A refined, image-forward editorial theme for discerning travel and food storytellers.
Version: 1.9.4
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: palate-passage
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&family=Libre+Franklin:ital,wght@0,400;0,500;0,600;1,400&display=swap');

:root {
  --brand: #3f70c8;
  --brand-dark: #17345f;
  --brand-light: #9db9ec;
  --brand-soft: #eaf0fb;
  --ink: #14243f;
  --paper: #fbfcff;
  --white: #fff;
  --line: rgba(20, 36, 63, .16);
  --muted: #5f6c80;
  --display: 'DM Serif Display', Georgia, serif;
  --body: 'Libre Franklin', Arial, sans-serif;
  --ui: 'DM Sans', Arial, sans-serif;
  --wrap: 1280px;
  --pad: clamp(24px, 2.8vw, 48px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; }
body.menu-open, body.search-open { overflow: hidden; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.site-wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad); }
.eyebrow { margin: 0 0 12px; color: var(--brand); font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .18em; line-height: 1.2; text-transform: uppercase; }
.arrow-link { display: inline-flex; gap: 12px; align-items: center; padding-bottom: 5px; border-bottom: 1px solid currentColor; font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
a.arrow-link::after { content: ""; display: block; flex: 0 0 15px; width: 15px; height: 15px; background-color: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M6%206h12v12%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M6%2018%2018%206M6%206h12v12%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; transition: transform .25s ease; }
.arrow-link:hover::after { transform: translate(3px, -3px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.masthead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 132px; padding: 20px var(--pad) 14px; max-width: var(--wrap); margin: auto; }
.brand { justify-self: center; font-family: var(--display); font-size: clamp(42px, 5vw, 70px); letter-spacing: -.055em; line-height: .9; }
.brand__text, .brand .custom-logo-link { display: block; }
.brand .custom-logo { width: clamp(220px, 32vw, 220px); max-width: 100%; height: auto; object-fit: contain; }
.brand small { display: block; margin-top: 9px; font-family: var(--ui); font-size: 9px; font-weight: 600; letter-spacing: .34em; text-align: center; text-transform: uppercase; }
.utility { display: flex; gap: 17px; align-items: center; font-family: var(--ui); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.utility-tagline { max-width: 325px; font-size: 12px; line-height: 1.5; }
.utility.right { justify-content: flex-end; }
.header-search-inline { position: relative; width: min(264px, 100%); }
.icon-button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.icon-button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.menu-toggle { display: none; }
.menu-toggle__icon { position: relative; display: block; width: 24px; height: 16px; }
.menu-toggle__icon span { position: absolute; left: 1px; display: block; width: 22px; height: 1.5px; background: currentColor; transform-origin: center; transition: top .28s ease, opacity .2s ease, transform .28s ease; }
.menu-toggle__icon span:nth-child(1) { top: 1px; }
.menu-toggle__icon span:nth-child(2) { top: 7px; }
.menu-toggle__icon span:nth-child(3) { top: 13px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(1) { top: 7px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
.primary-nav { border-top: 1px solid var(--line); }
.primary-nav .menu, .primary-nav > ul { display: flex; justify-content: center; gap: clamp(22px, 4vw, 54px); margin: 0; padding: 17px var(--pad); list-style: none; }
.primary-nav a { position: relative; font-family: var(--ui); font-size: 12px; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.primary-nav a::after { content: ''; position: absolute; right: 0; bottom: -7px; left: 0; height: 1px; background: var(--brand); transform: scaleX(0); transition: transform .25s ease; }
.primary-nav a:hover::after, .primary-nav .current-menu-item a::after { transform: scaleX(1); }
.search-toggle { display: none; }
.search-panel { display: none; }
.search-panel.is-open { display: block; }
.search-panel__header { display: flex; justify-content: space-between; align-items: center; }
.search-panel__header h2 { margin: 0; font-family: var(--ui); font-size: 28px; font-weight: 600; line-height: 1.2; }
.search-close { display: none; }
.search-form { display: flex; align-items: center; width: 100%; height: 40px; margin: 0; padding-left: 14px; border: 1px solid transparent; border-radius: 2px; background: var(--brand-soft); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.search-form:focus-within { border-color: transparent; background: var(--white); box-shadow: none; }
.search-field { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 14px/1 var(--ui); letter-spacing: 0; text-transform: none; }
.search-field:focus-visible { outline: 0; }
.search-field::-webkit-search-cancel-button { opacity: .55; }
.search-field::placeholder { color: #6d7d94; opacity: 1; }
.search-submit { display: inline-grid; flex: 0 0 44px; place-items: center; align-self: stretch; padding: 0; border: 0; background: transparent; color: var(--brand-dark); cursor: pointer; transition: color .2s ease, transform .2s ease; }
.search-submit:hover { color: var(--brand); }
.search-submit:active { transform: scale(.94); }
.search-submit svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.search-panel .search-form { max-width: 760px; height: 52px; margin: auto; }
.search-panel .search-field { font-size: 16px; }
.search-quick-results { position: absolute; z-index: 1000; top: calc(100% + 10px); right: 0; width: min(440px, calc(100vw - 32px)); padding: 18px; visibility: hidden; opacity: 0; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 45px rgba(17, 41, 78, .14); pointer-events: none; transform: translateY(-10px); transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s; }
.search-quick-results.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
.search-quick-results.is-loading { opacity: .65; }
.search-quick-results__heading { margin-bottom: 10px; color: var(--muted); font: 600 10px/1.2 var(--ui); letter-spacing: .14em; text-transform: uppercase; }
.search-quick-results__list { display: grid; }
.search-quick-result { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.search-quick-result__image { width: 64px; height: 64px; object-fit: cover; }
.search-quick-result__copy { min-width: 0; }
.search-quick-result__category { display: block; margin-bottom: 4px; color: var(--brand); font: 600 9px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; }
.search-quick-result__title { display: block; font: 20px/1.12 var(--display); text-transform: none; }
.search-quick-results__empty { margin: 8px 0 2px; color: var(--muted); font-size: 13px; text-transform: none; }

/* Home */
.home-hero { padding: clamp(24px, 2.2vw, 32px) var(--pad) clamp(52px, 6vw, 76px); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(30px, 4vw, 52px); }
.hero-media { position: relative; overflow: hidden; aspect-ratio: 16 / 9; background: #dce5f6; }
.hero-media img { height: 100%; object-fit: cover; transition: transform .8s ease; }
.hero-media:hover img { transform: scale(1.015); }
.hero-copy { max-width: 940px; padding-bottom: 0; }
.hero-copy h1 { margin: 0 0 24px; font: clamp(36px, 4.2vw, 64px)/1.02 var(--display); letter-spacing: -.02em; }
.hero-copy .dek { margin: 0 0 30px; color: #4c5a70; font-size: 15px; line-height: 1.75; }
.issue-mark { position: absolute; right: 14px; bottom: 12px; padding: 7px 10px; background: var(--paper); font-family: var(--ui); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; }

.section { padding: clamp(52px, 6vw, 88px) 0; }
.section-heading { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; margin-bottom: 42px; }
.section-heading h2 { margin: 0; font: clamp(38px, 5vw, 68px)/1 var(--display); letter-spacing: -.025em; }
.section-intro { max-width: 460px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(20px, 2.5vw, 38px); }
.story-card { grid-column: span 4; }
.story-card.featured { grid-column: span 7; }
.story-card.offset { grid-column: 9 / span 4; margin-top: 14%; }
.story-card__image { overflow: hidden; margin-bottom: 20px; aspect-ratio: 4 / 5; background: #dfe6f2; }
.story-card.featured .story-card__image { aspect-ratio: 16 / 10; }
.story-card__image img { height: 100%; object-fit: cover; transition: transform .65s ease; }
.story-card:hover .story-card__image img { transform: scale(1.025); }
.story-card h3 { margin: 0; font: clamp(26px, 2.3vw, 40px)/1.08 var(--display); letter-spacing: -.015em; }
.story-card:not(.featured) h3 { font-size: clamp(24px, 2vw, 32px); }
.story-card .excerpt { margin: 13px 0 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.story-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; font-family: var(--ui); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.story-meta .category { color: var(--brand); }
.story-meta .date::before { content: ''; display: inline-block; width: 18px; height: 1px; margin: 0 11px 3px 0; background: var(--line); }

/* Category showcases */
.taxonomy-showcase { padding: clamp(52px, 6vw, 88px) 0; }
#food.taxonomy-showcase { padding-top: clamp(28px, 3vw, 44px); }
.taxonomy-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; margin-bottom: clamp(38px, 5vw, 64px); }
.taxonomy-heading h2 { margin: 0; color: var(--brand-dark); font: clamp(42px, 5.5vw, 76px)/.95 var(--display); letter-spacing: -.03em; }
.taxonomy-heading .section-intro { max-width: 560px; }
.taxonomy-link--footer { display: none; }
.taxonomy-layout { display: grid; gap: clamp(30px, 4vw, 64px); align-items: start; }
.taxonomy-feature__media, .taxonomy-card__media { display: block; overflow: hidden; background: #dfe6f2; }
.taxonomy-feature__media { aspect-ratio: 16 / 10; }
.taxonomy-feature__media img, .taxonomy-card__media img { height: 100%; object-fit: cover; transition: transform .65s ease; }
.taxonomy-feature:hover img, .taxonomy-card:hover img { transform: scale(1.025); }
.taxonomy-feature__copy { padding-top: 24px; }
.taxonomy-feature__copy h3 { max-width: 820px; margin: 0; font: clamp(30px, 3.4vw, 50px)/1.05 var(--display); letter-spacing: -.018em; }
.taxonomy-feature__copy > p { max-width: 680px; margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.75; }
.taxonomy-rail { display: grid; gap: 24px; min-width: 0; }
.taxonomy-card { min-width: 0; padding-top: 0; }
.taxonomy-card__media { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.taxonomy-card h3 { margin: 0; font: clamp(22px, 2vw, 30px)/1.12 var(--display); }
.taxonomy-card .story-meta { margin-bottom: 10px; }

/* Layout 1: dominant feature beside a vertical story column. */
.taxonomy-showcase--split .taxonomy-layout { grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); }
.taxonomy-showcase--split .taxonomy-card { display: grid; grid-template-columns: minmax(100px, .42fr) minmax(0, .58fr); gap: 18px; }
.taxonomy-showcase--split .taxonomy-card__media { aspect-ratio: 1 / 1; margin: 0; }
.taxonomy-showcase--split .taxonomy-card h3 { font-size: clamp(19px, 1.55vw, 25px); }
.taxonomy-showcase--split .taxonomy-card .date { display: none; }

/* Layout 2: a wide feature row followed by an even story row. */
.taxonomy-showcase--rows { background: var(--brand-soft); }
.taxonomy-showcase--rows .taxonomy-layout { display: block; }
.taxonomy-showcase--rows .taxonomy-feature { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); background: var(--paper); }
.taxonomy-showcase--rows .taxonomy-feature__media { aspect-ratio: 16 / 9; }
.taxonomy-showcase--rows .taxonomy-feature__copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(30px, 5vw, 70px); }
.taxonomy-showcase--rows .taxonomy-feature__copy h3 { font-size: clamp(30px, 3.2vw, 48px); }
.taxonomy-showcase--rows .taxonomy-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 38px; }

/* Layout 3: a feature balanced by a compact editorial grid. */
.taxonomy-showcase--reverse .taxonomy-layout { grid-template-columns: minmax(320px, .72fr) minmax(0, 1.28fr); grid-template-areas: 'rail feature'; }
.taxonomy-showcase--reverse .taxonomy-feature { grid-area: feature; }
.taxonomy-showcase--reverse .taxonomy-rail { grid-area: rail; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.taxonomy-showcase--reverse .taxonomy-card h3 { font-size: clamp(19px, 1.65vw, 25px); }

.editors-picks { background: var(--brand-dark); color: var(--paper); border: 0; }
.editors-picks .section-intro { color: #c7d4ea; }
.picks-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(35px, 6vw, 90px); }
.pick-feature img { aspect-ratio: 16/10; object-fit: cover; }
.pick-feature h3 { max-width: 820px; margin: 25px 0 0; font: clamp(30px, 3.5vw, 52px)/1.05 var(--display); }
.pick-list { border-top: 1px solid rgba(255,255,255,.25); }
.pick-list article { display: grid; grid-template-columns: 36px 1fr; gap: 18px; padding: 23px 0; border-bottom: 1px solid rgba(255,255,255,.25); }
.pick-list .number { color: var(--brand-light); font: 20px var(--display); }
.pick-list h3 { margin: 0; font: 23px/1.15 var(--display); }

.destinations { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(35px, 7vw, 100px); align-items: center; }
.destinations-copy h2 { margin: 0 0 22px; font: clamp(40px, 5.5vw, 72px)/.96 var(--display); }
.destinations-copy p { max-width: 430px; margin: 0 0 30px; color: var(--muted); }
.destination-collage { display: grid; grid-template-columns: .9fr 1.1fr; gap: 18px; align-items: end; }
.destination-collage img:first-child { aspect-ratio: 4/5; object-fit: cover; }
.destination-collage img:last-child { aspect-ratio: 1/1; object-fit: cover; margin-bottom: 18%; }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: clamp(48px, 7vw, 96px); background: var(--brand-soft); }
.newsletter h2 { margin: 0; font: clamp(36px, 4.5vw, 58px)/1 var(--display); }
.newsletter p { max-width: 560px; margin-top: 0; color: #4c5f7c; }
.newsletter-form { display: flex; margin-top: 28px; border-bottom: 1px solid var(--ink); }
.newsletter-form input { flex: 1; min-width: 0; padding: 15px 2px; border: 0; background: transparent; font: 14px var(--body); }
.newsletter-form button { border: 0; background: transparent; font: 600 11px var(--ui); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }

/* Archives and posts */
.archive-wrap:not(.archive-wrap--editorial) { padding-top: clamp(48px, 6vw, 84px); padding-bottom: clamp(100px, 12vw, 180px); }
.archive-header { max-width: 820px; margin-bottom: clamp(36px, 5vw, 64px); }
.archive-header h1 { margin: 0 0 18px; font: clamp(42px, 5.5vw, 72px)/.98 var(--display); letter-spacing: -.025em; }
.archive-header > p:last-child { max-width: 620px; margin: 0; color: var(--muted); }
.site-wrap.archive-wrap--editorial { padding-bottom: clamp(140px, 14vw, 220px); }
.archive-latest { padding-top: clamp(52px, 7vw, 96px); }
.archive-latest__heading { margin-bottom: 38px; }
.archive-latest__heading h2 { margin: 0; font: clamp(36px, 4.3vw, 56px)/1.02 var(--display); }
.archive-latest__intro { max-width: 620px; margin-top: 16px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.archive-latest__intro p { margin: 0; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px 26px; padding: 0; }
.archive-grid .story-card { grid-column: auto; }
.archive-grid .story-card__image { display: block; margin-bottom: 32px; aspect-ratio: 1 / 1; }
.archive-grid .story-card h3 { max-width: 620px; font-size: clamp(25px, 2.2vw, 34px); }
.archive-grid .story-card .excerpt { margin-top: 14px; }
.archive-empty { min-height: 35vh; }
.pagination { grid-column: 1 / -1; margin-top: 30px; font-family: var(--ui); }
.nav-links { display: flex; gap: 10px; }
.page-numbers { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--line); }
.page-numbers.current { background: var(--ink); color: white; }

.article-header { max-width: 1080px; margin: auto; padding: clamp(36px, 5vw, 72px) var(--pad) 48px; text-align: center; }
.article-header h1 { margin: 12px 0 24px; font: clamp(44px, 6vw, 72px)/.98 var(--display); letter-spacing: -.025em; }
.article-dek { max-width: 750px; margin: auto; color: var(--muted); font-size: 16px; }
.byline { margin-top: 28px; font: 10px var(--ui); letter-spacing: .15em; text-transform: uppercase; }
.article-hero { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.article-hero img { max-height: 820px; object-fit: cover; }
.article-body { max-width: 900px; margin: 70px auto 110px; padding: 0 var(--pad); font-size: 17px; line-height: 1.9; }
.single-post .article-body > p:first-child::first-letter { float: left; margin: .06em .12em 0 0; font: 5.5em/.75 var(--display); color: var(--brand); }
.article-body h2 { margin: 2em 0 .6em; font: 46px/1 var(--display); }
.article-body h3 { margin: 1.8em 0 .6em; font: 32px/1.1 var(--display); }
.article-body h4 { margin: 1.6em 0 .6em; font-size: 24px; line-height: 1.35; }
.article-body blockquote { margin: 2.5em 0; padding: 28px 0; border-block: 1px solid var(--line); font: 26px/1.35 var(--display); text-align: center; }
.article-body .wp-block-image { width: auto; margin: 45px 0; }
.article-body .wp-block-image img { width: 100% !important; max-width: 100%; height: auto !important; margin: 0; }
.article-body .wp-block-image figcaption { margin: 12px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.page-content { min-height: 55vh; }
.page-content > .article-header { padding-bottom: 28px; }
.page-content > .article-body { margin-top: 32px; }

/* Footer */
.site-footer { padding: 72px var(--pad) 28px; background: #11294e; color: #f5f8ff; }
.footer-inner { max-width: var(--wrap); margin: auto; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); grid-template-areas: 'brand navigation'; gap: clamp(56px, 8vw, 130px); padding-bottom: 64px; }
.footer-content { grid-area: brand; min-width: 0; }
.footer-brand { letter-spacing: -.04em; }
.footer-logo { display: inline-block; max-width: min(190px, 100%); }
.footer-logo img { width: auto; max-width: 100%; height: auto; max-height: 80px; object-fit: contain; object-position: left center; }
.footer-logo span { font: clamp(48px, 6vw, 86px)/.9 var(--display); }
.footer-brand p { max-width: 430px; margin: 24px 0 0; color: #bac8dd; font: 13px/1.7 var(--body); letter-spacing: 0; }
.footer-connect { grid-area: navigation; min-width: 0; }
.footer-social { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.footer-social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.28); border-radius: 50%; color: var(--brand-light); transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.footer-social a:hover { border-color: var(--brand-light); background: var(--brand-light); color: var(--brand-dark); transform: translateY(-2px); }
.footer-social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.footer-social .icon-fill { fill: currentColor; stroke: none; }
.footer-menus { display: grid; grid-template-columns: repeat(2, minmax(130px, 190px)); gap: 28px 48px; margin-top: 0; }
.footer-col h3 { margin: 0 0 18px; color: var(--brand-light); font: 10px var(--ui); letter-spacing: .16em; text-transform: uppercase; }
.footer-col ul { margin: 0; padding: 0; list-style: none; }
.footer-col li { margin-bottom: 13px; font: 14px var(--body); }
.footer-col a { transition: color .2s ease; }
.footer-col a:hover { color: #fff; }
.footer-bottom { padding-top: 25px; border-top: 1px solid rgba(255,255,255,.2); color: #93a5c0; font: 10px var(--ui); letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 900px) {
  body.menu-open { overflow: hidden; }
  .menu-toggle { display: inline-grid; }
  .header-search-inline { display: none; }
  .search-toggle { display: inline-grid; }
  .search-panel { position: fixed; z-index: 100000; inset: 0; overflow-y: auto; padding: 20px 16px; border: 0; background: var(--paper); }
  .search-panel__inner { width: 100%; max-width: 620px; margin: 0 auto; }
  .search-panel__header { margin-bottom: 18px; }
  .search-panel__header h2 { font-size: 27px; }
  .search-close { display: inline-grid; margin-right: -8px; }
  .search-close svg { width: 20px; height: 20px; }
  .search-panel .search-form, .search-panel .search-form:focus-within { width: 100%; height: 42px; padding-left: 12px; border: 1px solid var(--ink); border-radius: 0; background: var(--white); box-shadow: none; }
  .search-panel .search-field { font-size: 14px; font-weight: 500; }
  .search-panel .search-submit { flex-basis: 42px; color: var(--ink); }
  .search-panel .search-experience { position: relative; }
  .search-panel .search-quick-results { position: static; width: 100%; margin-top: 18px; padding: 4px 0 0; border: 0; background: transparent; box-shadow: none; transform: translateY(-8px); }
  .search-panel .search-quick-results.is-open { transform: translateY(0); }
  .masthead { min-height: 95px; }
  .masthead .utility > span { display: none; }
  .primary-nav { position: absolute; top: 95px; right: 0; left: 0; height: calc(100dvh - 95px); overflow-y: auto; visibility: hidden; opacity: 0; pointer-events: none; background: var(--paper); transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s; }
  .primary-nav.is-open { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: 0s; }
  .primary-nav .menu, .primary-nav > ul { flex-direction: column; gap: 34px; align-items: center; padding: 70px 30px; }
  .primary-nav li { opacity: 0; transform: translateY(18px); transition: opacity .35s ease, transform .35s ease; }
  .primary-nav.is-open li { opacity: 1; transform: translateY(0); }
  .primary-nav.is-open li:nth-child(1) { transition-delay: .08s; }
  .primary-nav.is-open li:nth-child(2) { transition-delay: .14s; }
  .primary-nav.is-open li:nth-child(3) { transition-delay: .2s; }
  .primary-nav a { display: flex; flex-direction: column; align-items: center; font: 34px/1 var(--display); letter-spacing: 0; text-transform: none; }
  .primary-nav a::after { display: none; }
  .hero-grid, .picks-grid, .destinations, .newsletter { grid-template-columns: 1fr; }
  .hero-copy { max-width: 680px; }
  .story-card, .story-card.featured, .story-card.offset { grid-column: span 6; margin-top: 0; }
  .story-card.featured { grid-column: 1 / -1; }
  .newsletter { gap: 30px; }
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer { padding-top: 60px; }
  .footer-top { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; padding-bottom: 56px; }
  .footer-logo { max-width: 250px; }
  .taxonomy-showcase--split .taxonomy-layout, .taxonomy-showcase--reverse .taxonomy-layout { grid-template-columns: 1fr; grid-template-areas: none; }
  .taxonomy-showcase--reverse .taxonomy-feature, .taxonomy-showcase--reverse .taxonomy-rail { grid-area: auto; }
  .taxonomy-showcase--reverse .taxonomy-feature { order: -1; }
  .taxonomy-showcase--rows .taxonomy-feature { grid-template-columns: 1fr; }
  .taxonomy-showcase--rows .taxonomy-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-header h1 { font-size: 58px; }
  .article-body h2 { font-size: 36px; }
  .article-body h3 { font-size: 28px; }
  .article-body h4 { font-size: 22px; }
  .article-body blockquote { font-size: 24px; }
  .article-body blockquote, .article-body .wp-block-image { width: 100%; margin-inline: 0; }
}

@media (max-width: 600px) {
  .masthead { grid-template-columns: 44px 1fr 44px; padding-inline: 12px; }
  .masthead .utility a { display: none; }
  .brand { font-size: 43px; }
  .brand .custom-logo { width: min(58vw, 250px); }
  .home-hero { padding-top: 0; padding-inline: 0; }
  .brand small { font-size: 7px; }
  .hero-grid { gap: 28px; }
  .hero-media { aspect-ratio: 16/9; }
  .hero-copy { margin-inline: var(--pad); }
  .section-heading { grid-template-columns: 1fr; align-items: start; }
  .story-grid { display: block; }
  .story-card { margin-bottom: 48px !important; }
  .story-card__image, .story-card.featured .story-card__image { aspect-ratio: 4/5; }
  .destination-collage { gap: 10px; }
  .newsletter { margin-inline: 0; padding: 48px 24px; }
  .archive-grid { grid-template-columns: 1fr; }
  .archive-wrap:not(.archive-wrap--editorial) { padding-top: 40px; }
  .archive-header h1 { font-size: 40px; }
  .archive-latest { padding-top: 40px; }
  .archive-latest__heading { margin-bottom: 28px; }
  .archive-latest__heading h2 { font-size: 36px; }
  .archive-grid { gap: 46px; }
  .archive-grid .story-card__image { margin-bottom: 28px; aspect-ratio: 1 / 1; }
  .archive-grid .story-card h3 { font-size: 26px; }
  .site-footer { padding-top: 52px; padding-bottom: 22px; }
  .footer-top { grid-template-columns: 1fr; grid-template-areas: 'brand' 'navigation'; gap: 38px; padding-bottom: 48px; }
  .footer-logo { max-width: min(240px, 75vw); }
  .footer-brand p { max-width: 330px; margin-top: 18px; }
  .footer-social { margin-top: 24px; }
  .footer-social a { width: 42px; height: 42px; }
  .footer-menus { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 22px; margin-top: 0; }
  .footer-col li { margin-bottom: 12px; font-size: 13px; line-height: 1.4; }
  .article-header h1 { font-size: 38px; line-height: 1; }
  .article-body { font-size: 16px; line-height: 1.8; }
  .article-body h2 { font-size: 34px; line-height: 1.05; }
  .article-body h3 { font-size: 27px; }
  .article-body h4 { font-size: 21px; }
  .article-body blockquote { padding-block: 24px; font-size: 22px; }
  .article-body blockquote, .article-body .wp-block-image { width: 100%; margin-inline: 0; }
  .taxonomy-showcase { padding: 52px 0; }
  #food.taxonomy-showcase { padding-top: 12px; }
  .taxonomy-heading { grid-template-columns: 1fr; align-items: start; margin-bottom: 34px; }
  .taxonomy-heading h2 { font-size: clamp(38px, 13vw, 56px); }
  .taxonomy-link--header { display: none; }
  .taxonomy-link--footer { display: inline-flex; margin-top: 32px; }
  .taxonomy-feature__media { aspect-ratio: 4 / 3; }
  .taxonomy-feature__copy { padding-top: 20px; }
  .taxonomy-feature__copy h3, .taxonomy-showcase--rows .taxonomy-feature__copy h3 { font-size: clamp(28px, 8.5vw, 38px); }
  .taxonomy-showcase--rows .taxonomy-feature { display: block; }
  .taxonomy-showcase--rows .taxonomy-feature__copy { padding: 24px; }
  .taxonomy-rail, .taxonomy-showcase--rows .taxonomy-rail, .taxonomy-showcase--reverse .taxonomy-rail { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(235px, 76vw); gap: 18px; overflow-x: auto; margin-top: 32px; margin-right: calc(var(--pad) * -1); padding: 0 var(--pad) 14px 0; scroll-padding-left: 0; scroll-snap-type: x mandatory; overscroll-behavior-inline: contain; }
  .taxonomy-card, .taxonomy-showcase--split .taxonomy-card { display: block; padding-top: 0; border: 0; scroll-snap-align: start; }
  .taxonomy-showcase--split .taxonomy-card__media, .taxonomy-card__media { aspect-ratio: 4 / 3; margin-bottom: 16px; }
  .taxonomy-card h3, .taxonomy-showcase--split .taxonomy-card h3, .taxonomy-showcase--reverse .taxonomy-card h3 { font-size: 24px; }
  .taxonomy-showcase--split .taxonomy-card .date { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Match the footer logo to the final header logo sizes. */
.site-footer .footer-logo { width: 190px; max-width: 40vw; }
.site-footer .footer-logo img { width: 100%; max-width: 100%; height: auto; max-height: none !important; }
@media (max-width: 600px) {
  .site-footer .footer-logo { width: 120px; max-width: calc(100vw - 112px); }
}

/* Larger featured Travel headline on the homepage. */
.home #travel .taxonomy-feature__copy h3 { font-size: clamp(42px, 4.4vw, 66px); }
@media (max-width: 600px) {
  .home #travel .taxonomy-feature__copy h3 { font-size: clamp(36px, 10.5vw, 46px); }
}

/* Tighter spacing around the featured Travel headline. */
.home #travel .taxonomy-feature__copy { padding: clamp(24px, 3vw, 42px) clamp(16px, 1.5vw, 24px); }
@media (max-width: 600px) {
  .home #travel .taxonomy-feature__copy { padding: 20px 16px; }
}
