/*
Theme Name: TravelPod
Theme URI: https://example.com/travelpod
Author: TravelPod
Description: A travel and overland journal theme. Posts are framed in arch-shaped images, like a tent door or camper window. Clean reading layout, category "pods", custom logo, two menus, two widget areas and a Customizer accent colour.
Version: 1.0.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: travelpod
Tags: blog, news, travel, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

:root {
  --tarmac: #20292b;
  --salt: #eef1ee;
  --pan: #d9e3e2;
  --fynbos: #2f6b4f;
  --accent: #f2b705;
  --muted: #5b6a6c;
  --line: #c7d2d1;
  --font-head: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --wrap: 1200px;
  --logo-h: 64px;
  --read: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--tarmac);
  font: 400 1.125rem/1.75 var(--font-body);
}
img, video, iframe { max-width: 100%; height: auto; display: block; }
a { color: var(--fynbos); text-underline-offset: .18em; }
a:hover { color: var(--tarmac); }
:focus-visible { outline: 3px solid var(--tarmac); outline-offset: 3px; box-shadow: 0 0 0 6px var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1.2em; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; z-index: 100; clip: auto; width: auto; height: auto; background: var(--accent); color: var(--tarmac); padding: .6rem 1rem; }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--salt); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; }
.site-title { font: 800 1.7rem/1 var(--font-head); letter-spacing: -.03em; margin: 0; }
.site-title a { color: var(--tarmac); text-decoration: none; }
.site-description { margin: .25rem 0 0; font-size: .9rem; color: var(--muted); line-height: 1.3; }
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: block; line-height: 0; }
.custom-logo { height: var(--logo-h); width: auto; max-width: min(100%, 360px); object-fit: contain; }

.nav-toggle { display: none; background: var(--tarmac); color: var(--salt); border: 0; border-radius: 999px; padding: .55rem 1.1rem; font: 600 1rem var(--font-head); cursor: pointer; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.4rem; }
.primary-nav a { font: 600 1rem var(--font-head); color: var(--tarmac); text-decoration: none; padding: .4rem 0; border-bottom: 2px solid transparent; }
.primary-nav a:hover, .primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { border-bottom-color: var(--accent); }
.primary-nav .sub-menu { display: none; }

/* Meta */
.meta { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font: 500 .9rem/1.5 var(--font-head); color: var(--muted); }
.meta a { color: inherit; }
.pod { display: inline-block; background: var(--accent); color: var(--tarmac); border-radius: 999px; padding: .15rem .8rem; font: 600 .85rem/1.6 var(--font-head); text-decoration: none; }
a.pod:hover { background: var(--tarmac); color: var(--salt); }

/* Arch images: the theme's one signature */
.arch { display: block; overflow: hidden; background: var(--pan); border-radius: 999px 999px 10px 10px; aspect-ratio: 4 / 5; }
.arch img { width: 100%; height: 100%; object-fit: cover; }
.card__placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(180deg, var(--pan), #b8cbc9); }

/* Hero */
.hero { padding: clamp(2rem, 6vw, 4.5rem) 0; }
.hero__grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.hero__title a { color: var(--tarmac); text-decoration: none; }
.hero__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .12em; }
.hero__excerpt { font-size: 1.25rem; max-width: 36rem; }
.hero__media { max-width: 440px; width: 100%; justify-self: end; }
.btn { display: inline-block; background: var(--accent); color: var(--tarmac); border: 0; border-radius: 999px; padding: .7rem 1.5rem; font: 700 1rem var(--font-head); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--tarmac); color: var(--salt); }

/* Category pods strip */
.pods { border-block: 1px solid var(--line); padding: 1rem 0; }
.pods ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.pods a { display: inline-block; border: 1.5px solid var(--tarmac); border-radius: 999px; padding: .3rem 1rem; font: 600 .95rem var(--font-head); color: var(--tarmac); text-decoration: none; }
.pods a:hover { background: var(--tarmac); color: var(--salt); }
.pods small { color: var(--muted); font-weight: 500; margin-left: .3rem; }

/* Grid + cards */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1.8rem; gap: 1rem; }
.section__head h2 { margin: 0; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; }
.card__media { margin-bottom: 1rem; }
.card__title { font-size: 1.4rem; margin: .5rem 0 .4rem; }
.card__title a { color: var(--tarmac); text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: .12em; }
.card__excerpt { font-size: 1rem; line-height: 1.6; margin: 0 0 .7rem; color: #33403f; }

.page-head { padding: clamp(2rem, 5vw, 3.5rem) 0 0; max-width: var(--read); }
.page-head p { color: var(--muted); }

/* Single */
.entry { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.entry__head { width: min(100% - 2.5rem, 52rem); margin: 0 auto 2rem; }
.entry__head h1 { margin: .6rem 0 .8rem; }
.entry__hero { width: min(100% - 2.5rem, 62rem); margin: 0 auto 2.5rem; }
.entry__hero img { width: 100%; border-radius: 10px; aspect-ratio: 16 / 9; object-fit: cover; }
.entry__content { width: min(100% - 2.5rem, var(--read)); margin-inline: auto; }
.entry__content > .alignwide { width: min(100vw - 2.5rem, 62rem); margin-left: 50%; transform: translateX(-50%); }
.entry__content > .alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.entry__content h2 { margin-top: 2em; }
.entry__content h3 { margin-top: 1.6em; }
.entry__content blockquote { margin: 1.8em 0; padding: .2em 0 .2em 1.3em; border-left: 5px solid var(--accent); font-size: 1.25rem; }
.entry__content figure { margin: 1.8em 0; }
.entry__content figcaption, .wp-caption-text { font: 500 .88rem var(--font-head); color: var(--muted); margin-top: .5rem; }
.entry__content .alignleft { float: left; margin: .3em 1.5em 1em 0; }
.entry__content .alignright { float: right; margin: .3em 0 1em 1.5em; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.entry__content th, .entry__content td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); }
.entry__content pre { overflow-x: auto; background: var(--tarmac); color: var(--salt); padding: 1rem; border-radius: 8px; font-size: .95rem; }
.entry__foot { width: min(100% - 2.5rem, var(--read)); margin: 2.5rem auto 0; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.tags a { display: inline-block; margin: 0 .4rem .4rem 0; border: 1.5px solid var(--line); border-radius: 999px; padding: .1rem .8rem; font: 500 .9rem var(--font-head); text-decoration: none; }
.post-nav { display: flex; justify-content: space-between; gap: 1.5rem; margin-top: 2rem; font: 600 1rem var(--font-head); }
.page-links { font: 600 1rem var(--font-head); }

/* Comments */
.comments { width: min(100% - 2.5rem, var(--read)); margin: 3rem auto 0; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.5rem; }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
.comment-meta { font: 500 .88rem var(--font-head); color: var(--muted); }
.comment-form label { display: block; font: 600 .95rem var(--font-head); margin-bottom: .25rem; }
input[type=text], input[type=email], input[type=url], input[type=search], textarea {
  width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--tarmac); border-radius: 8px; background: #fff; font: inherit; font-size: 1rem;
}
.search-form { display: flex; gap: .5rem; max-width: 28rem; }
.search-form input[type=search] { border-radius: 999px; }

/* Pagination */
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.pagination .page-numbers { border: 1.5px solid var(--tarmac); border-radius: 999px; padding: .3rem 1rem; font: 600 1rem var(--font-head); text-decoration: none; color: var(--tarmac); }
.pagination .current, .pagination a.page-numbers:hover { background: var(--tarmac); color: var(--salt); }

/* Footer */
.site-footer { background: var(--tarmac); color: #d3dddc; margin-top: 3rem; padding: 3rem 0 2rem; font-size: 1rem; line-height: 1.6; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent); }
.site-footer :focus-visible { outline-color: #fff; box-shadow: none; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1.1rem; }
.footer-widgets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; padding-bottom: 2rem; }
.footer-widgets ul, .footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid #3b4749; padding-top: 1.5rem; font-size: .92rem; }
.footer-nav ul { display: flex; gap: 1.2rem; flex-wrap: wrap; }

/* Sidebar-less page layout helpers */
.widget { margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { justify-self: start; max-width: 360px; order: -1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .footer-widgets { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .custom-logo { height: calc(var(--logo-h) * .75); max-width: 60vw; }
  .nav-toggle { display: inline-block; }
  .primary-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--salt); border-bottom: 1px solid var(--line); padding: .5rem 1.25rem 1rem; }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; gap: .2rem; }
  .grid { grid-template-columns: 1fr; }
  .entry__content .alignleft, .entry__content .alignright { float: none; margin: 1em 0; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
