/*
Theme Name: Keep On Tripping — Heldor Redesign
Description: A lightweight, photo-led child theme draft for the Keep On Tripping journal.
Author: Far & Away Adventures
Template: the-thinker-lite
Version: 0.2.0
Text Domain: keep-on-tripping
*/

:root {
	--kot-ink: #20343c;
	--kot-muted: #5b6c70;
	--kot-paper: #fbfaf7;
	--kot-white: #fff;
	--kot-ocean: #176b78;
	--kot-ocean-dark: #124e59;
	--kot-sand: #e9dfcf;
	--kot-line: #dfe5e2;
	--kot-width: 1180px;
	--kot-reading: 760px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
	margin: 0;
	background: var(--kot-paper);
	color: var(--kot-ink);
	font: 17px/1.72 Georgia, "Times New Roman", serif;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--kot-ocean-dark); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover, a:focus-visible { color: var(--kot-ocean); }
a:focus-visible, button:focus-visible { outline: 3px solid #e49d54; outline-offset: 3px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus-within .screen-reader-text { width: auto; height: auto; clip: auto; padding: .7rem 1rem; margin: .5rem; z-index: 1001; background: #fff; }

.site-header { background: var(--kot-white); border-bottom: 1px solid var(--kot-line); }
.brand-bar { max-width: var(--kot-width); margin: 0 auto; padding: 1.45rem 1.5rem 1.2rem; text-align: center; }
.site-title { margin: 0; font: 700 clamp(1.65rem, 3vw, 2.35rem)/1.2 Georgia, "Times New Roman", serif; letter-spacing: .01em; }
.site-title a { color: var(--kot-ink); text-decoration: none; }
.site-description { margin: .32rem 0 0; color: var(--kot-muted); font: 600 .72rem/1.4 system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; }
.custom-logo-link { display: inline-flex; margin: 0 auto .55rem; }
.custom-logo { max-height: 72px; width: auto; }

#site-navigation { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-top: 1px solid var(--kot-line); border-bottom: 1px solid var(--kot-line); }
#site-navigation .nav-inner { max-width: var(--kot-width); min-height: 52px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: center; }
#site-navigation .menu-toggle { display: none; border: 0; border-radius: 3px; padding: .6rem .85rem; background: var(--kot-ocean-dark); color: #fff; font: 700 .9rem system-ui, sans-serif; cursor: pointer; }
#site-navigation .nav-menu, #site-navigation ul { display: flex; align-items: center; justify-content: center; gap: clamp(1.25rem, 3vw, 2.8rem); list-style: none; margin: 0; padding: 0; }
#site-navigation li { margin: 0; }
#site-navigation a { display: block; padding: .85rem 0; color: var(--kot-ink); font: 650 .82rem/1.2 system-ui, sans-serif; letter-spacing: .06em; text-decoration: none; }
#site-navigation a:hover, #site-navigation .current-menu-item > a { color: var(--kot-ocean); }

.page-wrap { width: min(var(--kot-width), calc(100% - 3rem)); margin: 0 auto; }
.home-hero { background: #d9edf0; }
.home-hero img { display: block; width: 100%; max-height: 470px; aspect-ratio: 16 / 5; object-fit: cover; object-position: center 55%; }
.home-intro { padding: clamp(2.2rem, 5vw, 4.5rem) 1.5rem; text-align: center; background: var(--kot-white); border-bottom: 1px solid var(--kot-line); }
.eyebrow { display: block; color: var(--kot-ocean); font: 700 .75rem/1.4 system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.home-intro h1 { margin: .35rem 0 .65rem; color: var(--kot-ink); font: 700 clamp(2.25rem, 5vw, 3.8rem)/1.08 Georgia, "Times New Roman", serif; }
.home-intro p { max-width: 660px; margin: .7rem auto 1.4rem; color: var(--kot-muted); font-size: 1.12rem; }
.button-link { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .72rem 1.2rem; border: 1px solid var(--kot-ocean-dark); border-radius: 2px; background: var(--kot-ocean-dark); color: #fff; font: 700 .9rem/1.2 system-ui, sans-serif; text-decoration: none; transition: background .18s ease, color .18s ease; }
.button-link:hover, .button-link:focus-visible { background: #fff; color: var(--kot-ocean-dark); }
.journeys { padding: clamp(2.8rem, 6vw, 5rem) 0; }
.section-heading { margin: 0 0 .6rem; text-align: center; font: 700 clamp(1.8rem, 3vw, 2.4rem)/1.2 Georgia, "Times New Roman", serif; }
.section-lede { max-width: 680px; margin: 0 auto 2.2rem; color: var(--kot-muted); text-align: center; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.story-card { min-width: 0; overflow: hidden; background: var(--kot-white); border: 1px solid var(--kot-line); box-shadow: 0 6px 24px rgba(32,52,60,.045); }
.story-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--kot-sand); }
.story-card__image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.story-card:hover .story-card__image img { transform: scale(1.025); }
.story-card__body { padding: 1.2rem 1.25rem 1.35rem; }
.story-date { display: block; color: var(--kot-muted); font: 650 .72rem/1.4 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.story-card h3 { margin: .48rem 0 .5rem; font: 700 1.35rem/1.28 Georgia, "Times New Roman", serif; }
.story-card h3 a { color: var(--kot-ink); text-decoration: none; }
.story-card p { margin: 0 0 .9rem; color: var(--kot-muted); font-size: .96rem; line-height: 1.62; }
.text-link { font: 700 .8rem/1.4 system-ui, sans-serif; letter-spacing: .035em; }
.journey-categories { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 0; }
.journey-categories a { padding: .65rem 1rem; border: 1px solid var(--kot-line); border-radius: 2px; background: var(--kot-white); font: 700 .82rem system-ui, sans-serif; text-decoration: none; }

.content-shell { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem, 5vw, 4rem); padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.content-shell--wide { display: block; max-width: var(--kot-reading); }
.entry-header { margin: 0 0 1.5rem; }
.entry-title, .page-title, .archive-title { margin: 0; color: var(--kot-ink); font: 700 clamp(2rem, 4vw, 3rem)/1.13 Georgia, "Times New Roman", serif; }
.entry-meta { margin: .65rem 0 0; color: var(--kot-muted); font: 650 .77rem/1.5 system-ui, sans-serif; letter-spacing: .04em; }
.entry-meta a { color: var(--kot-ocean-dark); }
.entry-content { color: #31434a; font-size: 1.08rem; line-height: 1.82; }
.entry-content p { margin: 0 0 1.35em; }
.entry-content h2 { margin: 2.1em 0 .55em; color: var(--kot-ink); font: 700 1.65rem/1.25 Georgia, "Times New Roman", serif; }
.entry-content h3 { margin: 1.8em 0 .45em; font: 700 1.3rem/1.3 Georgia, "Times New Roman", serif; }
.entry-content figure, .entry-content .wp-block-image { margin: 1.6rem 0; }
.entry-content figure img, .entry-content .wp-block-image img { display: block; max-width: 100%; height: auto; }
.entry-content .alignleft { float: left; width: min(42%, 320px); margin: .35rem 1.5rem 1rem 0; }
.entry-content .alignright { float: right; width: min(42%, 320px); margin: .35rem 0 1rem 1.5rem; }
.entry-content .aligncenter { display: block; margin-right: auto; margin-left: auto; }
.entry-content figcaption, .entry-content .wp-element-caption { margin-top: .55rem; color: var(--kot-muted); font: italic .83rem/1.5 Georgia, serif; text-align: center; }
.entry-content .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: .8rem; margin: 1.7rem 0; }
.entry-content .gallery-item { float: none !important; width: auto !important; margin: 0 !important; }
.entry-content .gallery-icon img { width: 100%; height: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-footer { margin-top: 2.5rem; padding-top: 1.1rem; border-top: 1px solid var(--kot-line); color: var(--kot-muted); font: .82rem/1.6 system-ui, sans-serif; }
.authorbox { margin-top: 2rem; padding: 1.2rem 1.35rem; background: #edf4f3; border-left: 3px solid var(--kot-ocean); }
.author-name { margin: 0 0 .4rem; font: 700 1.05rem system-ui, sans-serif; }
.author-description { margin: 0; color: var(--kot-muted); font-size: .94rem; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--kot-line); }
.post-navigation a { display: block; padding: .85rem 1rem; background: #f1f5f3; text-decoration: none; }
.post-navigation small { display: block; color: var(--kot-muted); font: 700 .7rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.post-navigation strong { display: block; margin-top: .3rem; }
.sidebar .widget { margin: 0 0 1.4rem; padding: 1.1rem; background: #f0f4f1; }
.sidebar .widget-title { margin: 0 0 .6rem; font: 700 1rem/1.3 system-ui, sans-serif; }
.sidebar ul { padding-left: 1.1rem; }

.archive-intro { padding: 2.5rem 0 1rem; text-align: center; }
.archive-intro p { max-width: 700px; margin: .75rem auto; color: var(--kot-muted); }
.archive-grid { padding: 1rem 0 4rem; }
.pagination { display: flex; justify-content: center; gap: .5rem; margin: 2.5rem 0; }
.pagination a, .pagination span { padding: .55rem .8rem; border: 1px solid var(--kot-line); background: #fff; text-decoration: none; }
.pagination .current { background: var(--kot-ocean-dark); color: #fff; }

.site-footer { margin-top: 2rem; padding: 2rem 1.5rem; background: #20343c; color: #e8efed; text-align: center; }
.footer-inner { max-width: var(--kot-width); margin: 0 auto; }
.footer-title { margin: 0; color: #fff; font: 700 1.1rem Georgia, serif; }
.footer-tagline { margin: .35rem 0 .8rem; color: #d0dfdc; font: .76rem system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.site-info { color: #d0dfdc; font: .76rem/1.5 system-ui, sans-serif; }
.site-info a { color: #fff; }

@media (max-width: 820px) {
	.story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.content-shell { grid-template-columns: minmax(0, 1fr); }
	.sidebar:empty { display: none; }
}
@media (max-width: 620px) {
	body { font-size: 16px; }
	.brand-bar { padding: 1rem 1rem .9rem; }
	#site-navigation .nav-inner { min-height: 0; justify-content: flex-start; padding: .55rem 1rem; }
	#site-navigation .menu-toggle { display: inline-flex; }
	#site-navigation .nav-menu, #site-navigation ul { display: none; width: 100%; align-items: stretch; flex-direction: column; gap: 0; padding: .45rem 0 .2rem; }
	#site-navigation .nav-menu.toggled-on, #site-navigation ul.toggled-on { display: flex; }
	#site-navigation .nav-inner { flex-wrap: wrap; }
	#site-navigation a { padding: .8rem .25rem; border-top: 1px solid var(--kot-line); }
	.home-hero img { min-height: 220px; aspect-ratio: 4 / 3; object-position: center; }
	.page-wrap { width: min(100% - 2rem, var(--kot-width)); }
	.story-grid { grid-template-columns: 1fr; gap: 1rem; }
	.story-card { display: grid; grid-template-columns: 38% minmax(0, 1fr); }
	.story-card__image { min-height: 100%; aspect-ratio: auto; }
	.story-card__body { padding: .85rem .9rem; }
	.story-card h3 { font-size: 1.15rem; }
	.story-card p { font-size: .88rem; }
	.entry-content .alignleft, .entry-content .alignright { float: none; display: block; width: min(100%, 560px); margin: 1.4rem auto; }
	.post-navigation { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Photo-led header: one compact row, bright full-width hero, usable sticky menu. */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--kot-ocean-dark); border: 0; color: #fff; transition: background .2s ease; }
.site-header--hero { margin-bottom: -96px; background: linear-gradient(180deg, rgba(17,46,56,.76), rgba(17,46,56,.22)); }
.site-header.is-scrolled, .site-header.menu-is-open { background: #143b47; box-shadow: 0 3px 18px rgba(0,0,0,.12); }
.admin-bar .site-header { top: 32px; }
.header-inner { max-width: 1360px; margin: auto; min-height: 96px; padding: 16px 36px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand-bar { margin: 0; padding: 0; text-align: left; flex-shrink: 0; }
.site-title { font-size: clamp(1.3rem, 2.1vw, 1.9rem); letter-spacing: -.025em; }
.site-title a, .site-title a:hover { color: #fff; }
.site-description { color: #e1eced; font-size: .62rem; letter-spacing: .14em; }
.custom-logo-link { display: none; }
#site-navigation { position: static; border: 0; background: transparent; }
#site-navigation .nav-inner { padding: 0; min-height: 0; }
#site-navigation .nav-menu { border: 1px solid rgba(255,255,255,.4); border-radius: 32px; padding: 0 22px; gap: 22px; }
#site-navigation a { color: #fff; padding: 14px 0; font-size: .77rem; letter-spacing: .035em; white-space: nowrap; }
#site-navigation a:hover, #site-navigation a:focus-visible { color: #f5dfaf; }
.home-hero { position: relative; min-height: 620px; height: min(86vh, 800px); isolation: isolate; }
.home-hero img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; aspect-ratio: auto; object-fit: cover; object-position: center 55%; }
.hero-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; height: 100%; padding-top: 96px; padding-bottom: 32px; }
.hero-copy::before { content: ''; position: absolute; z-index: -1; inset: 0 auto 0 calc((1180px - 100vw) / 2); width: 850px; max-width: 90vw; background: linear-gradient(90deg, rgba(13,39,47,.55), transparent); pointer-events: none; }
.hero-copy .eyebrow { color: #fff; text-shadow: 0 1px 6px #183a45; }
.hero-copy h1 { color: #fff; max-width: 720px; margin: 18px 0; font: 500 clamp(3rem, 6vw, 5.3rem)/1.05 Georgia, serif; letter-spacing: -.04em; text-shadow: 0 2px 10px rgba(0,0,0,.25); }
.hero-copy p { color: #fff; margin: 0 0 28px; font: 400 clamp(1.15rem, 2vw, 1.5rem)/1.5 system-ui, sans-serif; text-shadow: 0 1px 8px #143b47; }
.hero-copy .button-link { gap: 18px; background: #fff; color: #143b47; border: 0; border-radius: 32px; min-height: 54px; padding: 16px 26px; font-size: 1rem; font-weight: 800; }
.hero-copy .button-link:hover { background: #f5ead5; }
.home-intro { padding: 48px 24px; background: #f7f4ed; }
.home-intro h2 { margin: 12px 0; font: 500 clamp(1.9rem, 3vw, 2.8rem)/1.2 Georgia, serif; }
.home-intro p { font: 400 1.08rem/1.8 system-ui, sans-serif; margin-bottom: 0; }
.story-card { border-radius: 8px; box-shadow: 0 8px 30px rgba(22,54,65,.07); }
.story-card__image { aspect-ratio: 16 / 11; }
.story-card__body { padding: 24px; }
.story-card p { font-family: system-ui, sans-serif; }
@media (max-width: 980px) {
  .header-inner { min-height: 82px; padding: 15px 24px; flex-wrap: wrap; gap: 0; }
  .site-header--hero { margin-bottom: -82px; }
  #site-navigation .menu-toggle { display: inline-flex; border: 1px solid rgba(255,255,255,.55); background: transparent; border-radius: 24px; padding: 10px 18px; min-height: 44px; }
  #site-navigation .nav-menu, #site-navigation ul { display: none; }
  #site-navigation .nav-menu.toggled-on { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: #143b47; border: 0; border-radius: 0; padding: 12px 24px 20px; gap: 0; box-shadow: 0 10px 16px rgba(0,0,0,.12); }
  #site-navigation a { padding: 15px 0; font-size: .95rem; border-top: 1px solid rgba(255,255,255,.15); }
  .hero-copy { padding-top: 82px; }
  .hero-copy::before { left: -24px; width: 75vw; }
}
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 620px) {
  .header-inner { padding: 14px 16px; }
  .site-title { font-size: 1.35rem; }
  .site-description { font-size: .55rem; }
  .home-hero { height: 78svh; min-height: 540px; max-height: 700px; }
  .home-hero img { min-height: 0; object-position: 62% center; }
  .hero-copy { padding-bottom: 24px; }
  .hero-copy::before { left: -16px; width: 95vw; }
  .hero-copy h1 { font-size: clamp(2.9rem, 11vw, 4rem); max-width: 360px; }
  .hero-copy .eyebrow { font-size: .65rem; }
  .home-intro { padding: 36px 16px; }
  .story-card { display: block; }
  .story-card__image { min-height: 0; aspect-ratio: 16 / 10; }
  .story-card__body { padding: 20px; }
  .story-card h3 { font-size: 1.4rem; }
  .story-card p { font-size: .96rem; }
}
