/*
Theme Name: Jason Breckbill Journal
Theme URI: https://blog.jasonbreckbill.com/
Author: Jason Breckbill
Author URI: https://jasonbreckbill.com/
Description: A polished editorial WordPress theme for thoughtful articles on faith, technology, leadership, and civic life. Features responsive layouts, block editor support, dark mode, featured posts, reading-time metadata, and accessible navigation.
Version: 1.1.8
Requires at least: 6.4
Tested up to: 6.8
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: jason-breckbill-journal
Tags: blog, news, one-column, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks, editor-style, accessibility-ready
*/

:root {
  --jbj-navy: #14263d;
  --jbj-blue: #275d83;
  --jbj-gold: #c89538;
  --jbj-cream: #f7f3ea;
  --jbj-paper: #fffefb;
  --jbj-ink: #1d2732;
  --jbj-muted: #66717d;
  --jbj-line: #dfe4e8;
  --jbj-shadow: 0 18px 45px rgba(20, 38, 61, .10);
  --jbj-radius: 18px;
  --jbj-content: 760px;
  --jbj-wide: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--jbj-ink);
  background: var(--jbj-cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--jbj-blue); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--jbj-gold); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute !important; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus {
  background: #fff; clip: auto !important; clip-path: none; color: #111;
  display: block; font-size: 14px; height: auto; left: 8px; padding: 12px 16px;
  top: 8px; width: auto; z-index: 100000;
}

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 254, 251, .94);
  border-bottom: 1px solid rgba(20, 38, 61, .10);
  backdrop-filter: blur(14px);
}
.admin-bar .site-header { top: 32px; }
.header-inner {
  width: min(calc(100% - 40px), var(--jbj-wide)); margin: 0 auto;
  min-height: 84px; display: flex; align-items: center; gap: 28px;
}
.site-branding { display: flex; align-items: center; gap: 14px; min-width: 0; }
.custom-logo { max-height: 56px; width: auto; }
.brand-copy { min-width: 0; }
.site-title { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.5vw, 1.8rem); line-height: 1.05; }
.site-title a { color: var(--jbj-navy); text-decoration: none; }
.site-description { margin: .25rem 0 0; color: var(--jbj-muted); font-size: .78rem; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-navigation { margin-left: auto; }
.main-navigation ul { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a { color: var(--jbj-navy); font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-navigation a:hover, .main-navigation .current-menu-item > a, .main-navigation .current-menu-ancestor > a { color: var(--jbj-gold); }
.main-navigation .sub-menu {
  position: absolute; top: calc(100% + 14px); left: -18px; z-index: 100;
  display: block; min-width: 230px; padding: 10px; visibility: hidden; opacity: 0;
  transform: translateY(-6px); background: var(--jbj-paper); border: 1px solid var(--jbj-line);
  border-radius: 12px; box-shadow: 0 14px 34px rgba(16,28,45,.15);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.main-navigation .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 15px; }
.main-navigation .sub-menu .sub-menu { top: -10px; left: calc(100% + 10px); }
.main-navigation .sub-menu li { width: 100%; }
.main-navigation .sub-menu a { display: block; padding: 10px 12px; border-radius: 8px; white-space: nowrap; font-size: .9rem; }
.main-navigation .sub-menu a:hover, .main-navigation .sub-menu a:focus { background: rgba(194,139,37,.10); }
.main-navigation li:hover > .sub-menu, .main-navigation li:focus-within > .sub-menu, .main-navigation li.submenu-open > .sub-menu { visibility: visible; opacity: 1; transform: translateY(0); }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin-left: 3px; padding: 0; border: 0; background: transparent; color: var(--jbj-navy); cursor: pointer; vertical-align: middle; }
.submenu-toggle::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s ease; }
.submenu-open > .submenu-toggle::after { transform: translateY(2px) rotate(225deg); }
.menu-toggle { display: none; margin-left: auto; border: 1px solid var(--jbj-line); background: #fff; color: var(--jbj-navy); border-radius: 10px; padding: 9px 12px; }
.theme-toggle { border: 1px solid var(--jbj-line); background: transparent; color: var(--jbj-navy); border-radius: 999px; width: 42px; height: 42px; cursor: pointer; }


.hero {
  position: relative;
  overflow: hidden;
  background: #eef1f3;
  border-bottom: 1px solid rgba(20,38,61,.12);
}
.hero-inner {
  width: min(100%, 1500px);
  min-height: 640px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  align-items: stretch;
}
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(70px, 8vw, 120px) clamp(40px, 7vw, 105px);
  background: linear-gradient(90deg, #fffefb 0%, #fffdf8 78%, rgba(255,253,248,.94) 100%);
  box-shadow: 34px 0 60px rgba(14,30,50,.10);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #9d6916;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
}
.hero-kicker::before { content: ""; width: 36px; height: 2px; background: currentColor; }
.hero h1 {
  margin: 22px 0 20px;
  max-width: 780px;
  color: #101c2d;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5.6vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero p {
  max-width: 680px;
  margin: 0;
  color: #4f5965;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  padding: 12px 22px;
  background: #c89538;
  color: #101c2d;
  font-weight: 850;
  text-decoration: none;
  border: 2px solid #c89538;
  box-shadow: 0 7px 18px rgba(158,105,22,.18);
}
.button:hover { background: #ddb25e; border-color: #ddb25e; color: #101c2d; transform: translateY(-1px); }
.button-secondary { background: transparent; color: #101c2d; border-color: #101c2d; box-shadow: none; }
.button-secondary:hover { background: #101c2d; border-color: #101c2d; color: #fff; }
.hero-visual {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 66% 31%, rgba(255,226,156,.96) 0 4%, rgba(226,170,65,.58) 5% 15%, transparent 34%),
    linear-gradient(165deg, #ecdcae 0%, #9bb0bd 38%, #496b82 70%, #14263d 100%);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,253,248,.25), transparent 34%), linear-gradient(0deg, rgba(13,30,50,.42), transparent 58%);
}
.hero-sun {
  position: absolute;
  top: 26%; left: 64%;
  width: 88px; aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%,-50%);
  background: #fff6cf;
  box-shadow: 0 0 55px 26px rgba(255,218,121,.45);
}
.hero-ridge { position: absolute; left: -12%; right: -12%; bottom: -8%; height: 52%; border-radius: 50% 52% 0 0 / 42% 46% 0 0; transform: rotate(-4deg); }
.hero-ridge-back { bottom: 10%; background: rgba(57,85,103,.62); clip-path: polygon(0 62%, 18% 48%, 33% 57%, 52% 31%, 70% 50%, 83% 35%, 100% 55%, 100% 100%, 0 100%); }
.hero-ridge-front { background: #172c3c; clip-path: polygon(0 58%, 14% 42%, 27% 55%, 43% 29%, 61% 47%, 76% 24%, 100% 53%, 100% 100%, 0 100%); }
.hero-mark {
  position: absolute;
  right: clamp(28px, 7vw, 100px);
  bottom: clamp(34px, 7vw, 80px);
  width: 180px;
  aspect-ratio: 1;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 50%;
  display: grid;
  place-items: center;
  backdrop-filter: blur(5px);
  background: rgba(13,30,50,.16);
}
.hero-mark::before, .hero-mark::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.hero-mark::before { inset: 18px; }
.hero-mark::after { inset: 38px; }
.hero-mark span { position: relative; z-index: 1; color: #f4d58e; font-family: Georgia, serif; font-size: 3.3rem; }

.site-main { min-height: 50vh; }
.section { padding: 72px 0; }
.container { width: min(calc(100% - 40px), var(--jbj-wide)); margin: 0 auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.section-heading h2 { margin: 0; color: var(--jbj-navy); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.05; }
.section-heading p { max-width: 560px; margin: 0; color: var(--jbj-muted); }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.post-card { background: var(--jbj-paper); border: 1px solid rgba(20,38,61,.09); border-radius: var(--jbj-radius); overflow: hidden; box-shadow: 0 8px 28px rgba(20,38,61,.06); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--jbj-shadow); }
.post-thumbnail { display: block; aspect-ratio: 16 / 9; background: linear-gradient(145deg, #dfe9ef, #f4efe3); overflow: hidden; }
.post-thumbnail img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s ease; }
.post-card:hover .post-thumbnail img { transform: none; }
.post-card-body { padding: 25px; }
.entry-category { color: var(--jbj-gold); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 900; }
.post-card h2, .post-card h3 { margin: 10px 0 12px; font-family: Georgia, serif; line-height: 1.15; font-size: 1.48rem; }
.post-card h2 a, .post-card h3 a { color: var(--jbj-navy); text-decoration: none; }
.post-card p { margin: 0 0 18px; color: var(--jbj-muted); font-size: .94rem; }
.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; color: var(--jbj-muted); font-size: .76rem; }
.entry-meta span + span::before { content: "•"; margin-right: 9px; }

.featured-post { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 24px; overflow: hidden; background: var(--jbj-paper); box-shadow: var(--jbj-shadow); }
.featured-post .post-thumbnail { aspect-ratio: auto; min-height: 440px; }
.featured-copy { padding: clamp(34px, 6vw, 72px); display: flex; flex-direction: column; justify-content: center; }
.featured-copy h2 { margin: 12px 0 18px; color: var(--jbj-navy); font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.05; }
.featured-copy h2 a { color: inherit; text-decoration: none; }

.content-wrap { width: min(calc(100% - 40px), var(--jbj-wide)); margin: 0 auto; padding: 70px 0; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 58px; align-items: start; }
.content-wrap--full { grid-template-columns: minmax(0, 1fr); }
.content-primary { min-width: 0; }
.page-header, .archive-header { margin-bottom: 36px; }
.page-title { margin: 0; color: var(--jbj-navy); font-family: Georgia, serif; font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: 1; }
.archive-description { max-width: 760px; color: var(--jbj-muted); }

.single-article { background: var(--jbj-paper); border-radius: 24px; overflow: hidden; box-shadow: var(--jbj-shadow); }
.single-header { padding: clamp(36px, 7vw, 76px); border-bottom: 1px solid var(--jbj-line); }
.single-header h1 { margin: 14px 0 22px; color: var(--jbj-navy); font-family: Georgia, serif; font-size: clamp(2.35rem, 5.5vw, 5rem); line-height: 1.02; letter-spacing: -.035em; }
.single-featured { background: #f4f1ea; text-align: center; }
.single-featured img { width: auto; max-width: 100%; height: auto; max-height: none; object-fit: contain; display: block; margin: 0 auto; }
.entry-content { max-width: var(--jbj-content); margin: 0 auto; padding: clamp(36px, 7vw, 76px) 30px; }
.content-wrap--full .entry-content { max-width: 1000px; }
.entry-content > * { margin-top: 0; margin-bottom: 1.45em; }
.entry-content h2, .entry-content h3, .entry-content h4 { color: var(--jbj-navy); font-family: Georgia, serif; line-height: 1.2; margin-top: 1.8em; }
.entry-content h2 { font-size: 2rem; }
.entry-content h3 { font-size: 1.45rem; }
.entry-content blockquote { margin-left: 0; padding: 24px 28px; border-left: 5px solid var(--jbj-gold); background: var(--jbj-cream); color: #35414e; font-family: Georgia, serif; font-size: 1.2rem; }
.entry-content pre { overflow: auto; padding: 22px; border-radius: 12px; background: #111b27; color: #eff5f8; font-size: .84rem; }
.entry-content code { padding: .1em .35em; border-radius: 5px; background: #edf1f4; font-size: .88em; }
.entry-content pre code { padding: 0; background: transparent; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.entry-content th, .entry-content td { border: 1px solid var(--jbj-line); padding: 10px 12px; text-align: left; }
.entry-content .alignwide { width: min(100vw - 80px, 1080px); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-footer { max-width: var(--jbj-content); margin: 0 auto; padding: 0 30px 50px; color: var(--jbj-muted); font-size: .86rem; }

.sidebar { position: sticky; top: 120px; }
.widget { margin-bottom: 24px; padding: 24px; background: var(--jbj-paper); border: 1px solid rgba(20,38,61,.09); border-radius: 16px; }
.widget-title { margin: 0 0 16px; color: var(--jbj-navy); font-family: Georgia, serif; font-size: 1.25rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--jbj-line); }
.widget li:last-child { border-bottom: 0; }
.search-form { display: flex; }
.search-field { min-width: 0; width: 100%; border: 1px solid var(--jbj-line); border-radius: 10px 0 0 10px; padding: 10px 12px; }
.search-submit { border: 0; border-radius: 0 10px 10px 0; background: var(--jbj-navy); color: #fff; padding: 10px 14px; cursor: pointer; }

.author-box { display: grid; grid-template-columns: 90px 1fr; gap: 22px; align-items: center; margin-top: 34px; padding: 28px; border-radius: 18px; background: var(--jbj-paper); box-shadow: var(--jbj-shadow); }
.author-box img { border-radius: 50%; }
.author-box h2 { margin: 0 0 6px; font-family: Georgia, serif; color: var(--jbj-navy); }
.author-box p { margin: 0; color: var(--jbj-muted); }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 30px; }
.post-navigation a { display: block; padding: 22px; background: var(--jbj-paper); border-radius: 14px; text-decoration: none; box-shadow: 0 8px 24px rgba(20,38,61,.07); }
.nav-next { text-align: right; }

.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 42px; }
.page-numbers { min-width: 42px; padding: 8px 12px; text-align: center; border-radius: 9px; background: var(--jbj-paper); text-decoration: none; }
.page-numbers.current { background: var(--jbj-navy); color: #fff; }

.comments-area { margin-top: 36px; padding: 30px; background: var(--jbj-paper); border-radius: 18px; }
.comment-list { padding-left: 0; list-style: none; }
.comment-body { padding: 20px 0; border-bottom: 1px solid var(--jbj-line); }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; border: 1px solid var(--jbj-line); border-radius: 10px; padding: 11px 13px; }
.form-submit .submit { border: 0; border-radius: 999px; padding: 11px 20px; background: var(--jbj-navy); color: #fff; cursor: pointer; }

.site-footer { background: #0d1e32; color: #c7d2dc; padding: 62px 0 28px; }
.footer-grid { width: min(calc(100% - 40px), var(--jbj-wide)); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 50px; }
.footer-title { margin: 0 0 10px; font-family: Georgia, serif; color: #fff; font-size: 1.6rem; }
.site-footer a { color: #e8d29e; }
.footer-menu { list-style: none; padding: 0; margin: 0; }
.footer-menu li { margin-bottom: 8px; }
.site-info { width: min(calc(100% - 40px), var(--jbj-wide)); margin: 42px auto 0; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; display: flex; justify-content: space-between; gap: 20px; }

.not-found { text-align: center; padding: 110px 20px; }
.not-found .page-title { font-size: clamp(4rem, 14vw, 9rem); color: var(--jbj-gold); }

body.dark-mode { --jbj-cream: #0f1720; --jbj-paper: #16212d; --jbj-ink: #e7edf2; --jbj-muted: #aab6c1; --jbj-line: #2b3947; --jbj-navy: #e6edf4; --jbj-blue: #80b9df; }
body.dark-mode .site-header { background: rgba(15,23,32,.94); }
body.dark-mode .site-title a, body.dark-mode .main-navigation a, body.dark-mode .theme-toggle { color: #eef4f8; }
body.dark-mode .menu-toggle { background: #16212d; color: #fff; }
body.dark-mode .entry-content code { background: #253443; }
body.dark-mode .hero-copy { background: linear-gradient(90deg, #16212d 0%, #16212d 82%, rgba(22,33,45,.96) 100%); }
body.dark-mode .hero h1 { color: #f5f7f9; }
body.dark-mode .hero p { color: #c0cad3; }
body.dark-mode .button-secondary { color: #f5f7f9; border-color: #f5f7f9; }
body.dark-mode .button-secondary:hover { background: #f5f7f9; color: #101c2d; }

@media (max-width: 960px) {
  .hero-inner, .featured-post, .content-wrap { grid-template-columns: 1fr; }
  .hero-inner { min-height: auto; }
  .hero-visual { min-height: 360px; }
  .hero-copy { box-shadow: none; }
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-post .post-thumbnail { min-height: 320px; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .admin-bar .site-header { top: 46px; }
  .header-inner { min-height: 72px; }
  .site-description { display: none; }
  .menu-toggle { display: inline-flex; }
  .theme-toggle { margin-left: 0; }
  .main-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; background: var(--jbj-paper); border-bottom: 1px solid var(--jbj-line); padding: 18px 20px 24px; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .main-navigation li { width: 100%; }
  .main-navigation .menu-item-has-children { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; }
  .main-navigation .sub-menu { position: static; grid-column: 1 / -1; display: none; min-width: 0; width: 100%; margin: 8px 0 0; padding: 4px 0 4px 16px; visibility: visible; opacity: 1; transform: none; border: 0; border-left: 2px solid var(--jbj-line); border-radius: 0; box-shadow: none; background: transparent; }
  .main-navigation .submenu-open > .sub-menu { display: block; }
  .main-navigation .sub-menu .sub-menu { position: static; margin-left: 8px; }
  .main-navigation .sub-menu a { padding: 9px 10px; white-space: normal; }
  .submenu-toggle { width: 38px; height: 38px; }
  .hero-copy { padding: 62px 24px 58px; }
  .hero h1 { font-size: clamp(2.75rem, 13vw, 4.25rem); }
  .hero-visual { min-height: 290px; }
  .hero-mark { width: 120px; right: 24px; bottom: 24px; }
  .hero-mark span { font-size: 2.25rem; }
  .post-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-info { flex-direction: column; }
  .post-navigation { grid-template-columns: 1fr; }
  .nav-next { text-align: left; }
  .author-box { grid-template-columns: 1fr; text-align: center; }
  .author-box img { margin: auto; }
}


/* Homepage publication layout — v1.1.2 */
.header-inner { width: min(calc(100% - 56px), 1420px); min-height: 124px; }
.custom-logo-link { flex: 0 0 auto; display: inline-flex; padding: 8px; background: #fff; border-radius: 13px; box-shadow: 0 4px 18px rgba(16,28,45,.12); }
.custom-logo { display: block; max-height: 72px; max-width: 96px; }
.site-title { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
.site-description { font-size: .84rem; }
.main-navigation ul { gap: 42px; }
.main-navigation a { font-size: 1rem; }
.theme-toggle, .header-search { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid #e2e5e9; border-radius: 50%; color: #101c2d; background: #fff; text-decoration: none; font-size: 1.25rem; }
.header-search { border: 0; width: 36px; font-size: 1.6rem; }

.home-main { background: #fff; }
.hero { min-height: 410px; background: #f8f5ee url('assets/images/hero-mountains.jpg') center right / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,254,251,1) 0%, rgba(255,254,251,.98) 31%, rgba(255,254,251,.80) 47%, rgba(255,254,251,.18) 68%, rgba(255,254,251,0) 100%); }
.hero-inner { position: relative; z-index: 1; width: min(calc(100% - 56px), 1420px); min-height: 410px; display: flex; align-items: center; }
.hero-copy { width: min(58%, 680px); padding: 28px 0 30px; background: transparent; box-shadow: none; }
.hero-kicker { color: #c28b25; font-size: .72rem; letter-spacing: .085em; }
.hero h1 { max-width: 650px; margin: 12px 0 12px; font-size: clamp(2.45rem, 3.65vw, 3.65rem); line-height: 1.01; color: #0c1729; }
.hero p { max-width: 630px; color: #626a75; font-size: 1.14rem; line-height: 1.65; }
.hero-actions { margin-top: 18px; gap: 16px; }
.button { min-height: 54px; padding: 11px 24px; border-radius: 10px; gap: 12px; font-size: 1rem; background: #d7a23c; border-color: #d7a23c; box-shadow: none; }
.button-secondary { background: rgba(255,255,255,.82); border: 1px solid #101c2d; }

/* Featured homepage tool — v1.1.4 */
.tool-feature { padding: 28px 0; border-top: 1px solid #e9e6df; background: #f7f3ea; }
.tool-feature-inner { width: min(calc(100% - 56px), 1420px); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 24px 28px; border: 1px solid #e3dccf; border-radius: 14px; background: #fffefb; box-shadow: 0 8px 24px rgba(16,28,45,.07); }
.tool-feature-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%; background: #14263d; color: #fff; font-size: 1.55rem; font-weight: 700; }
.tool-feature-kicker { display: block; margin-bottom: 5px; color: #bd8420; font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.tool-feature-copy h2 { margin: 0 0 5px; color: #101c2d; font: 700 clamp(1.45rem,2.2vw,1.9rem)/1.1 Georgia,serif; }
.tool-feature-copy p { margin: 0; color: #626a75; font-size: .95rem; line-height: 1.55; }
.tool-feature-button { min-height: 50px; padding: 11px 20px; white-space: nowrap; }
body.dark-mode .tool-feature { background: #111a24; border-color: #293646; }
body.dark-mode .tool-feature-inner { background: #16212d; border-color: #293646; }
body.dark-mode .tool-feature-copy h2 { color: #f2f5f7; }
body.dark-mode .tool-feature-copy p { color: #b8c0c9; }

.latest-strip { padding: 32px 0 42px; border-top: 1px solid #e9e6df; background: #fff; }
.latest-container { width: min(calc(100% - 56px), 1420px); }
.latest-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.latest-heading h2 { margin: 0; color: #101c2d; font: 700 clamp(1.65rem, 2.6vw, 2.2rem)/1.1 Georgia, serif; }
.latest-heading > a { color: #bd8420; text-decoration: none; font-size: .9rem; font-weight: 700; }
.home-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.home-post-card { display: grid; grid-template-columns: 36% 64%; min-height: 178px; overflow: hidden; border: 1px solid #e8e6e1; border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(16,28,45,.08); }
.home-card-image { display: flex; align-items: center; justify-content: center; min-height: 178px; overflow: hidden; padding: 8px; background: #f4f1ea; }
.home-card-image img { width: 100%; height: 100%; object-fit: contain; display: block; }
.home-card-placeholder { display: block; width: 100%; height: 100%; background: linear-gradient(155deg,#e6c98f,#8ba0ad 55%,#314d63); }
.home-card-copy { padding: 24px 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.home-card-copy .entry-category { font-size: .68rem; margin-bottom: 9px; }
.home-card-copy h3 { margin: 0 0 19px; color: #101c2d; font: 400 1.12rem/1.27 Georgia, serif; }
.home-card-copy h3 a { color: inherit; text-decoration: none; }
.home-card-copy .entry-meta { margin-top: auto; font-size: .68rem; white-space: nowrap; gap: 7px; }
.home-card-copy .entry-meta span + span::before { margin-right: 7px; }

body.dark-mode .home-main, body.dark-mode .latest-strip { background: #101821; }
body.dark-mode .hero::before { background: linear-gradient(90deg, rgba(16,24,33,1) 0%, rgba(16,24,33,.98) 31%, rgba(16,24,33,.82) 48%, rgba(16,24,33,.20) 70%, transparent 100%); }
body.dark-mode .hero-copy { background: transparent; }
body.dark-mode .home-post-card { background: #16212d; border-color: #293646; }
body.dark-mode .latest-heading h2, body.dark-mode .home-card-copy h3 { color: #f2f5f7; }
body.dark-mode .button-secondary { background: rgba(16,24,33,.72); }
body.dark-mode .theme-toggle, body.dark-mode .header-search { background: #16212d; border-color: #2d3b48; color: #fff; }

@media (max-width: 1180px) {
  .home-post-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .main-navigation ul { gap: 24px; }
  .hero-copy { width: 65%; }
}
@media (max-width: 760px) {
  .header-inner { width: min(calc(100% - 30px), 1420px); min-height: 86px; gap: 12px; }
  .custom-logo { max-height: 52px; max-width: 68px; }
  .site-title { font-size: 1.28rem; }
  .header-search { display: none; }
  .hero { min-height: 440px; background-position: 64% center; }
  .hero::before { background: linear-gradient(90deg,rgba(255,254,251,.98) 0%,rgba(255,254,251,.92) 72%,rgba(255,254,251,.40) 100%); }
  .hero-inner { width: min(calc(100% - 34px),1420px); min-height: 440px; align-items: flex-end; }
  .hero-copy { width: 100%; padding: 28px 0 30px; }
  .hero h1 { font-size: clamp(2.25rem,10vw,3.15rem); }
  .hero p { color: #434b55; }
  .tool-feature-inner { width: min(calc(100% - 30px),1420px); grid-template-columns: auto 1fr; gap: 16px; padding: 20px; }
  .tool-feature-icon { width: 48px; height: 48px; flex-basis: 48px; font-size: 1.3rem; }
  .tool-feature-button { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .latest-container { width: min(calc(100% - 30px),1420px); }
  .home-post-grid { grid-template-columns: 1fr; }
  .home-post-card { grid-template-columns: 34% 66%; }
}


/* Uncropped featured-image presentation — v1.1.1 */
.post-thumbnail {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f4f1ea;
}
.post-thumbnail img,
.home-card-image img,
.single-featured img {
  object-position: center;
}
.featured-post .post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
body.dark-mode .post-thumbnail,
body.dark-mode .home-card-image,
body.dark-mode .single-featured {
  background: #111a24;
}

@media (max-width: 1180px) {
  .hero h1 { font-size: clamp(2.6rem, 4vw, 3.8rem); }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.1rem, 9.2vw, 3rem); line-height: 1.04; }
}
