/*
Theme Name: Jack's Travel Hacks
Description: Navy-and-gold editorial theme for Jack's Travel Hacks.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: jacks-travel-hacks
*/
:root {
    --navy: #17323c;
    --ink: #142b35;
    --paper: #fbf8ef;
    --sand: #efeade;
    --gold: #f1ba72;
    --line: #d7d3c5;
    --muted: #40545a;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 "DM Sans", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid #ae5a24; outline-offset: 4px; }
img { max-width: 100%; height: auto; }
figure { max-width: 100%; }
button, input, select { font: inherit; }
.shell { width: min(1200px, calc(100% - 84px)); margin-inline: auto; }
.skip { position: absolute; transform: translateY(-220%); background: white; padding: 12px; z-index: 5; }
.skip:focus { transform: translateY(0); }
.top { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.top nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 28px); flex-wrap: wrap; font-size: 14px; font-weight: 700; }
.top nav > a, .brand, .menu a { text-decoration: none; }
.top nav > a:hover, .menu a:hover { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 700; letter-spacing: -.04em; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.consult { padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; }
.menu { position: relative; }
.menu summary { cursor: pointer; }
.menu ul { list-style: none; position: absolute; top: 100%; left: 0; min-width: 210px; z-index: 4; padding: 8px 0; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; box-shadow: 0 10px 26px #142b3522; }
.menu a { display: block; padding: 7px 14px; }
.hero, .newsletter { background: var(--navy); color: #fff8e9; }
.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 36px; min-height: 490px; padding-block: 38px; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; line-height: 1.04; margin: 0; }
h1 { font-size: clamp(52px, 7.4vw, 104px); letter-spacing: -.04em; }
h2 { font-size: clamp(38px, 4.4vw, 62px); letter-spacing: -.025em; }
h3 { font-size: 30px; }
.hero em, .eyebrow { color: var(--gold); }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .17em; }
.hero-copy { max-width: 355px; margin: 20px 0 23px; }
.button { display: inline-flex; align-items: center; justify-content: center; padding: 11px 17px; background: var(--gold); color: var(--ink); border: 0; border-radius: 5px; min-height: 44px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #ffd294; }
.photo { display: grid; place-items: center; overflow: hidden; color: var(--muted); background: #e2dac8; border: 1px solid var(--line); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-hero { height: clamp(280px, 37vw, 430px); border: 1px solid #6d8891; color: #e4ece8; background: #283f49; border-radius: 48% 48% 5px 5px / 25% 25% 5px 5px; }
.photo-label { font-size: 13px; }
.routes { padding-block: 52px; }
.route-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); margin-top: 24px; }
.route-grid a { text-decoration: none; padding: 18px 16px; }
.route-grid a+a { border-left: 1px solid var(--line); }
.route-grid strong, .route-grid span { display: block; }
.route-grid span { font-size: 14px; color: var(--muted); }
.route-grid a:hover strong { text-decoration: underline; }
.reading { background: var(--sand); padding-block: 50px; }
.section-head { display: flex; gap: 18px; justify-content: space-between; align-items: end; margin-bottom: 24px; }
.article-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.article-card, .packages .article-grid > div { background: var(--paper); border: 1px solid var(--line); border-radius: 7px; overflow: hidden; }
.article-card a { display: block; height: 100%; text-decoration: none; }
.article-card a:hover .read-link { text-decoration: underline; }
.article-card a > div:last-child, .packages .article-grid > div { padding: 18px; }
.article-card .photo { aspect-ratio: 1.85; border: 0; }
.read-link { display: inline-block; color: #71390f; font-size: 14px; font-weight: 700; margin-top: 10px; }
.about { display: grid; grid-template-columns: minmax(0, 330px) minmax(0, 450px); align-items: center; justify-content: center; gap: 48px; padding-block: 65px; }
.photo-about { min-height: 240px; aspect-ratio: 1.05; border-radius: 48% 48% 5px 5px / 28% 28% 5px 5px; }
.newsletter { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 25px; padding: 30px; margin: 28px 0; border-radius: 7px; }
.newsletter h2 { font-size: 42px; }
.newsletter p { margin: 8px 0; }
.newsletter label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.email-row { display: flex; gap: 6px; }
.email-row input { min-width: 0; flex: 1; padding: 8px; border: 1px solid var(--line); border-radius: 5px; }
.honeypot { position: absolute; left: -5000px; }
.footer { display: flex; justify-content: space-between; gap: 15px; align-items: center; padding-block: 20px; border-top: 1px solid var(--line); }
.inner { padding-block: 36px; }
.page-head { max-width: 920px; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(46px, 6vw, 78px); }
.entry { max-width: 850px; margin-block: 28px; overflow-wrap: anywhere; }
.entry > h2, .entry > h3 { margin-top: 1.15em; }
.entry h2 { font-size: 40px; }
.entry h3 { font-size: 30px; }
.entry h4, .entry h5, .entry h6 { font-size: 1.15rem; }
.entry li + li { margin-top: .4em; }
.entry figure { margin-inline: 0; }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { padding: .5em; border: 1px solid var(--line); }
.entry .wp-block-table { overflow: auto; }
.inner article > .photo { aspect-ratio: 2.5; max-height: 400px; max-width: 850px; }
.inner article > .photo-about { aspect-ratio: 1.05; max-width: 320px; }
.packages h2, .guide-section h2 { margin-bottom: 16px; }
.packages strong { display: block; color: #71390f; margin-top: 8px; }
.service-note { font-size: 14px; max-width: 760px; }
.category-jump { padding: 14px; margin-block: 18px; background: var(--sand); border-radius: 5px; width: fit-content; }
.category-jump label { display: block; margin-bottom: 5px; font-weight: 700; }
.category-jump select { max-width: 100%; padding: 6px; }
.guide-section { margin-block: 28px 45px; }
@media (max-width: 850px) {
    .shell { width: calc(100% - 38px); }
    .top { align-items: start; flex-direction: column; gap: 8px; }
    .route-grid { grid-template-columns: repeat(2, 1fr); }
    .route-grid a:nth-child(3) { border-left: 0; }
    .route-grid a:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 620px) {
    .hero-grid, .about, .newsletter, .article-grid { grid-template-columns: 1fr; }
    .hero-grid, .about { gap: 24px; padding-block: 30px; }
    .photo-hero { height: clamp(220px, 60vw, 340px); }
    .routes, .reading { padding-block: 35px; }
    .section-head { display: block; }
    .newsletter { gap: 10px; padding: 20px; }
    .menu ul { left: auto; right: 0; }
    .footer .brand { font-size: 18px; }
}

.route-grid .photo { width: 100%; max-width: 128px; aspect-ratio: 1.65; border-radius: 5px; margin-bottom: 10px; }
.route-grid .photo-label { font-size: 12px; }
.jth-card-facts { margin-block: 0 10px; }
.jth-card-notice { border-left: 3px solid var(--gold); padding: 8px 12px; background: var(--sand); }
.jth-delta-options { margin-block: 30px; }
.jth-delta-options > h3 { margin-bottom: 16px; }
.jth-delta-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.jth-delta-grid article { border: 1px solid var(--line); border-radius: 6px; padding: 14px; }
.jth-delta-grid p { margin: 8px 0; }
@media (max-width: 480px) { .jth-delta-grid { grid-template-columns: 1fr; } }
