/*
Theme Name: jetsetjordy
Theme URI: https://jetsetjordy.com
Author: Jordy
Description: Custom travel-journal theme for jetsetjordy.com: luggage-tag logo, postage-stamp photo, boarding-pass "Ask Jordy" form, tip boxes, built-in SEO, AdSense and a TikTok section.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: jetsetjordy
*/

/* ---------- Basics ---------- */
:root {
  --ink: #1f2433; --text: #3a3f4d; --muted: #7d7a74;
  --blue: #5f76a8; --blue-dark: #3f4c6e; --powder: #d6e2ef; --powder-light: #edf2f8;
  --sand: #e6d9c7; --sand-light: #f6f0e7; --paper: #fcfaf7; --line: #e6e1d8; --gold: #d9b45a;
  --display: "Fraunces", Georgia, serif; --body: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
.wp-site-blocks > * + * { margin-block-start: 0; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); margin-inline: auto; }
.script { font-family: var(--display); font-style: italic; font-size: 1.2rem; color: var(--blue); margin: 0 0 4px; }
.label, .wp-block-post-terms.label { font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* Any grid built from blocks: no stray top margins on its items */
.hero-grid > *, .article-layout > *, .post-grid > *, .sidebar > *, .masthead > *, .pass > *, .section-title > * { margin-block-start: 0 !important; }

/* ---------- Header ---------- */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 86px; padding: 10px 0; }
.jsj-logo { display: inline-flex; line-height: 0; text-decoration: none; }
.jsj-logo svg { display: block; height: 78px; width: auto; }
.site-footer .jsj-logo svg { height: 84px; }
.site-nav { font-size: .93rem; font-weight: 500; gap: 4px 24px; }
.site-nav .wp-block-navigation-item__content { color: var(--ink); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.site-nav .wp-block-navigation-item__content:hover,
.site-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--blue); border-bottom-color: var(--powder); }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--paper); padding: 24px; }
@media (max-width: 900px) { .masthead { min-height: 72px; } .jsj-logo svg { height: 64px; } }

/* ---------- Buttons ---------- */
.wp-block-button.is-style-outline > .wp-block-button__link { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); padding: 12px 27px; }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--blue); color: #fff; }

/* ---------- Hero ---------- */
.hero { background: var(--powder-light); padding: 70px 0 80px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.3rem); margin: 6px 0 20px; }
.hero h1 em { font-weight: 400; color: var(--blue); }
.hero-text > p:not(.script) { font-size: 1.1rem; max-width: 32em; margin: 0 0 30px; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Postage-stamp photo with postmark */
.pstamp-wrap { position: relative; padding: 34px 44px 30px 10px; }
.pstamp { position: relative; aspect-ratio: 1; transform: rotate(2.5deg); background: url(assets/stamp-frame.svg) center / 100% 100% no-repeat; filter: drop-shadow(0 16px 30px rgba(31, 36, 51, .14)); }
.pstamp .photo { position: absolute; inset: 6.5%; background: var(--sand-light); overflow: hidden; }
.pstamp .photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.postmark { position: absolute; right: -6px; top: 0; width: 46%; max-width: 210px; z-index: 2; transform: rotate(-8deg); }
@media (max-width: 860px) { .pstamp-wrap { width: 100%; max-width: 460px; margin: 0 auto; } }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--blue); padding: 10px; }

/* ---------- Sections ---------- */
.home-section { padding: 84px 0; }
.band-light { background: var(--sand-light); }
.section-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.section-title h2 { font-size: clamp(2rem, 4vw, 2.7rem); margin: 0; }
.section-title p { color: var(--muted); margin: 6px 0 0; }
.flight { display: block; width: 120px; height: 14px; margin-top: 10px; }

/* ---------- Post cards ---------- */
.wp-block-post-template.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 46px 30px; list-style: none; padding: 0; margin: 0; }
@media (max-width: 960px) { .wp-block-post-template.post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .wp-block-post-template.post-grid { grid-template-columns: 1fr; gap: 40px; } }
.post-card { display: flex; flex-direction: column; height: 100%; }
.post-card > * + * { margin-block-start: 0; }
.post-card .cover { margin: 0; border-radius: 14px; overflow: hidden; background: var(--powder-light); }
.post-card .cover img { transition: transform .6s ease; }
.post-card:hover .cover img { transform: scale(1.03); }
.post-card:not(:has(.cover))::before { content: "jetsetjordy"; display: grid; place-items: center; aspect-ratio: 3 / 2; border-radius: 14px; background: var(--powder-light); font-family: var(--display); font-style: italic; font-size: 1.5rem; color: var(--blue); }
.post-card .body { padding-top: 18px; }
.post-card .body > * { margin: 0; }
.post-card .wp-block-post-terms a, .pill a, .article-head .wp-block-post-terms a { color: var(--blue-dark); background: var(--powder); padding: 3px 10px; border-radius: 999px; text-decoration: none; letter-spacing: .08em; font-size: .72rem; font-weight: 500; text-transform: uppercase; }
.post-card .wp-block-post-terms a:hover { background: var(--blue); color: #fff; }
.post-card .wp-block-post-title { font-size: 1.5rem; margin: 12px 0 10px; }
.post-card .wp-block-post-title a { color: var(--ink); text-decoration: none; }
.post-card .wp-block-post-title a:hover { color: var(--blue); }
.post-card .wp-block-post-excerpt__excerpt { margin: 0 0 12px; font-size: .97rem; line-height: 1.65; }
.post-card .wp-block-read-more { font-size: .92rem; font-weight: 600; text-decoration: none; color: var(--blue); }
.post-card .wp-block-read-more::after { content: " \2192"; }
/* Newest post on the home page is shown wide */
.home-latest .post-grid > li:first-child { grid-column: 1 / -1; }
.home-latest .post-grid > li:first-child .post-card { display: grid; grid-template-columns: 1.25fr 1fr; gap: 46px; align-items: center; background: #fff; border-radius: 20px; padding: 18px; box-shadow: 0 10px 30px rgba(31, 36, 51, .06); }
.home-latest .post-grid > li:first-child .body { padding: 10px 20px 10px 0; }
.home-latest .post-grid > li:first-child .wp-block-post-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 500; }
@media (max-width: 800px) { .home-latest .post-grid > li:first-child .post-card { grid-template-columns: 1fr; gap: 16px; } .home-latest .post-grid > li:first-child .body { padding: 0 6px 6px; } }

/* ---------- Topic pills, search, page heads ---------- */
.topics { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.topics a { display: inline-block; font-weight: 500; font-size: .9rem; padding: 7px 18px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; }
.topics a:hover { border-color: var(--blue); }
.topics a.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.jsj-search { max-width: 460px; margin: 0 auto 50px; }
.jsj-search .wp-block-search__inside-wrapper { border: 1.5px solid var(--line); border-radius: 999px; background: #fff; padding: 4px; }
.jsj-search input { border: 0; background: transparent; padding: 8px 16px; font: inherit; }
.jsj-search .wp-block-search__button { border-radius: 999px; margin: 0; }
.page-head { text-align: center; padding: 64px 0 40px; }
.page-head h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); margin: 0 0 10px; }
.page-head p, .page-head .wp-block-term-description { color: var(--muted); max-width: 36em; margin: 0 auto; }
.listing { padding: 20px 0 84px; }
.wp-block-query-pagination { margin-top: 50px; justify-content: center; gap: 14px; font-weight: 500; }

/* ---------- Article ---------- */
.article-head { text-align: center; padding: 60px 0 30px; }
.article-head > * { margin-inline: auto; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 17em; margin: 18px auto 16px; }
.byline { font-size: .9rem; color: var(--muted); }
.article-photo { width: min(720px, 100% - 40px); margin: 0 auto 10px !important; }
.article-photo img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 18px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; padding: 30px 0 90px; }
@media (max-width: 980px) { .article-layout { grid-template-columns: 1fr; gap: 50px; } }

/* Post text */
.prose { max-width: 720px; }
.prose .entry > * + * { margin-block-start: 1.3em; }
.prose .entry h2 { font-size: 2rem; margin-block-start: 1.7em; }
.prose .entry h3 { font-size: 1.4rem; margin-block-start: 1.5em; }
.prose .entry .lead, .prose .entry > p:first-child { font-size: 1.2rem; color: var(--ink); }
.prose .entry img { border-radius: 14px; }

/* Photo captions and credits: small, light italic line under the photo */
.prose .wp-block-image figcaption, .prose .wp-element-caption, .article-photo .photo-caption,
.editor-styles-wrapper .wp-block-image figcaption {
  font-size: .78rem; font-style: italic; color: var(--muted); text-align: center; line-height: 1.5; margin: 6px 0 0;
}
.prose .entry figure { margin-inline: 0; }
.prose .entry ul { list-style: none; padding: 0; }
.prose .entry ul li { padding-left: 32px; position: relative; margin-bottom: .5em; }
.prose .entry ul li::before { content: "\2713"; position: absolute; left: 0; top: .2em; width: 21px; height: 21px; border-radius: 50%; background: var(--powder); color: var(--blue-dark); font-size: .75rem; font-weight: 700; display: grid; place-items: center; }

/* Quotes and the three tip-box styles (choose them in the block's Styles panel) */
.prose .wp-block-quote { margin-inline: 0; padding: 0 0 0 26px; border-left: 4px solid var(--powder); font-family: var(--display); font-style: italic; font-size: 1.45rem; line-height: 1.4; color: var(--ink); }
.prose .wp-block-quote.is-style-tip, .prose .wp-block-quote.is-style-note, .prose .wp-block-quote.is-style-read-next,
.editor-styles-wrapper .wp-block-quote.is-style-tip, .editor-styles-wrapper .wp-block-quote.is-style-note, .editor-styles-wrapper .wp-block-quote.is-style-read-next {
  font-family: var(--body); font-style: normal; font-size: 1rem; line-height: 1.7; color: var(--text);
  padding: 22px 26px; border-radius: 14px; border: 1.5px dashed var(--sand); background: var(--sand-light);
}
.wp-block-quote.is-style-tip::before, .wp-block-quote.is-style-note::before, .wp-block-quote.is-style-read-next::before {
  display: block; font-size: .74rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 4px;
}
.wp-block-quote.is-style-tip::before { content: "Jordy\2019s tip"; }
.prose .wp-block-quote.is-style-note, .editor-styles-wrapper .wp-block-quote.is-style-note { background: var(--powder-light); border-color: var(--powder); }
.wp-block-quote.is-style-note::before { content: "Good to know"; }
.prose .wp-block-quote.is-style-read-next, .editor-styles-wrapper .wp-block-quote.is-style-read-next { background: #fff; border: 1.5px solid var(--powder); }
.wp-block-quote.is-style-read-next::before { content: "Read next"; color: var(--blue); }
.wp-block-quote.is-style-read-next a { font-family: var(--display); font-size: 1.2rem; font-weight: 500; text-decoration: none; }
.wp-block-quote.is-style-read-next a::after { content: " \2192"; }
.wp-block-quote p:last-child { margin-bottom: 0; }

/* Tables */
.prose .wp-block-table { border: 1.5px solid var(--line); border-radius: 14px; overflow-x: auto; }
.prose .wp-block-table table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
.prose .wp-block-table th, .prose .wp-block-table td { padding: 13px 16px; text-align: left; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose .wp-block-table tr:last-child td { border-bottom: 0; }
.prose .wp-block-table thead, .prose .wp-block-table th { background: var(--powder-light); color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }

/* TikTok videos inside posts */
.prose .wp-block-embed-tiktok .wp-block-embed__wrapper { display: flex; justify-content: center; }

/* Author box */
.author-box { display: flex; gap: 20px; align-items: center; padding: 26px; margin-top: 50px; background: #fff; border: 1.5px solid var(--line); border-radius: 18px; }
.author-box > * { margin: 0; }
.author-box strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.author-box p { margin: 2px 0 0; font-size: .93rem; line-height: 1.6; }
.avatar { flex: none; width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: var(--powder); display: grid; place-items: center; font-family: var(--display); font-size: 2rem; color: var(--blue-dark); overflow: hidden; }
.avatar.is-large { width: 120px; height: 120px; font-size: 2.8rem; margin: 0 auto 14px; }

/* Sidebar */
.sidebar { display: flex; flex-direction: column; gap: 40px; }
.sidebar .box > * { margin-block: 0; }
.sidebar h4 { font-family: var(--display); font-size: 1.25rem; font-weight: 500; padding-bottom: 10px; margin-bottom: 8px !important; border-bottom: 1.5px dashed var(--sand); }
.sidebar .about-mini { text-align: center; background: var(--powder-light); border-radius: 18px; padding: 26px 22px; }
.sidebar .about-mini h4 { border: 0; padding: 0; }
.sidebar .about-mini p { font-size: .93rem; line-height: 1.6; margin-top: 6px; }
.sidebar .wp-block-latest-posts { padding: 0; margin: 0; }
.sidebar .wp-block-latest-posts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.sidebar .wp-block-latest-posts a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; line-height: 1.4; }
.sidebar .wp-block-latest-posts a:hover { color: var(--blue); }
.sidebar .ask-mini { padding: 26px 22px; background: var(--sand-light); border-radius: 18px; text-align: center; }
.sidebar .ask-mini h4 { border: 0; padding: 0; }
.sidebar .ask-mini p { font-size: .92rem; margin: 6px 0 16px !important; }
.sidebar .ask-mini .wp-block-buttons { justify-content: center; }

/* ---------- Ask Jordy: boarding pass ---------- */
.ask-section { padding: 84px 0; }
.pass { display: grid; grid-template-columns: 1fr 260px; background: #fff; border-radius: 22px; box-shadow: 0 14px 40px rgba(31, 36, 51, .10); overflow: hidden; max-width: 920px; margin: 0 auto; }
.pass-main { padding: 40px 44px; }
.pass-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.pass-top .label { color: var(--blue); }
.pass-top svg { width: 40px; height: 26px; }
.pass h2 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); margin: 0 0 8px; }
.pass p { margin: 0 0 22px; }
.ask-form { display: grid; gap: 10px; }
.ask-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 560px) { .ask-row { grid-template-columns: 1fr; } }
.ask-form input, .ask-form select, .ask-form textarea { padding: 12px 18px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 400 1rem var(--body); border-radius: 999px; width: 100%; box-sizing: border-box; }
.ask-form textarea { border-radius: 16px; resize: vertical; min-height: 110px; }
.ask-form input:focus, .ask-form select:focus, .ask-form textarea:focus { outline: none; border-color: var(--blue); }
.ask-form .hp { position: absolute; left: -9999px; }
.ask-form button { justify-self: start; font: 500 .95rem var(--body); padding: 13px 28px; border-radius: 999px; border: 0; background: var(--blue); color: #fff; cursor: pointer; }
.ask-form button:hover { background: var(--blue-dark); }
.pass .thanks { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--blue); margin: 0; }
.pass .ask-error { color: #a5483a; margin: 0 0 10px; }
.pass-stub { position: relative; background: var(--powder); padding: 40px 30px; border-left: 2px dashed #fff; display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -14px; width: 26px; height: 26px; border-radius: 50%; background: var(--paper); }
.pass-stub::before { top: -13px; }
.pass-stub::after { bottom: -13px; }
.pass-stub .label { color: var(--blue-dark); font-size: .66rem; display: block; }
.pass-stub b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.2; color: var(--ink); }
@media (max-width: 720px) {
  .pass { grid-template-columns: 1fr; }
  .pass-main { padding: 30px 24px; }
  .pass-stub { border-left: 0; border-top: 2px dashed #fff; flex-direction: row; flex-wrap: wrap; justify-content: space-between; padding: 24px; }
  .pass-stub::before, .pass-stub::after { display: none; }
}

/* ---------- TikTok latest videos ---------- */
.tiktok-embed-wrap { display: flex; justify-content: center; min-height: 200px; }
.tiktok-embed-wrap blockquote.tiktok-embed { margin: 0 auto; width: 100%; max-width: 780px; min-width: 288px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-dark); color: #fff; padding: 60px 0 30px; font-size: .93rem; }
.site-footer .wrap > * { margin-block: 0; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 30px !important; }
.footer-top p { color: rgba(255,255,255,.8); max-width: 30em; margin: 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 !important; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); }
.footer-nav a { color: #fff; font-size: .9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--powder); }
.fine { font-size: .78rem; line-height: 1.6; color: rgba(255,255,255,.6); max-width: 60em; margin-top: 22px !important; }

/* ---------- Pages (Privacy, etc.) ---------- */
.page-body { padding: 0 0 84px; }
