:root {
  --ink: #172044;
  --muted: #5d6578;
  --teal: #006c70;
  --teal-dark: #00575a;
  --teal-soft: #e8f5f3;
  --coral: #f46f58;
  --gold: #f4b942;
  --mist: #f3f8f7;
  --line: #dfe7e5;
  --white: #fff;
  --shadow-sm: 0 8px 24px rgba(23, 32, 68, .08);
  --shadow-md: 0 18px 50px rgba(23, 32, 68, .12);
  --radius-sm: .75rem;
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --container: 1180px;
  --narrow: 760px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { color: var(--teal-dark); }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

h1, h2, h3, h4 { margin: 0 0 .65em; color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 6vw, 4.9rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3.15rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
p { margin: 0 0 1.25rem; }

.container, .container-wide, .container-narrow { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.container-wide { width: min(calc(100% - 2rem), 1360px); }
.container-narrow { width: min(calc(100% - 2rem), var(--narrow)); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 9999; top: .75rem; left: .75rem; transform: translateY(-180%); padding: .75rem 1rem; color: var(--white); background: var(--ink); border-radius: .5rem; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(223, 231, 229, .9); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { min-width: 0; display: inline-flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand-logo, .brand-mark img { display: block; width: 58px; height: 58px; object-fit: contain; }
.brand-mark .custom-logo-link { display: block; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-title { max-width: 300px; font-family: Georgia, "Times New Roman", serif; font-size: 1.1rem; font-weight: 700; }
.brand-description { display: none; margin-top: .2rem; color: var(--muted); font-size: .72rem; }
.primary-navigation .menu { display: flex; align-items: center; gap: .25rem; padding: 0; margin: 0; list-style: none; }
.primary-navigation a { display: block; padding: .6rem .65rem; color: var(--ink); border-radius: .55rem; font-size: .87rem; font-weight: 700; text-decoration: none; }
.primary-navigation a:hover, .primary-navigation .current-menu-item > a { color: var(--teal-dark); background: var(--teal-soft); }
.nav-toggle { display: none; align-items: center; gap: .55rem; padding: .65rem .75rem; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: .6rem; font-weight: 700; cursor: pointer; }
.nav-toggle-lines, .nav-toggle-lines::before, .nav-toggle-lines::after { display: block; width: 20px; height: 2px; background: currentColor; content: ""; transition: transform .2s ease; }
.nav-toggle-lines { position: relative; }
.nav-toggle-lines::before { position: absolute; top: -6px; }
.nav-toggle-lines::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after { top: 0; transform: rotate(-45deg); }

.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #f0fbf9 0%, #fff8f3 100%); }
.hero::before { position: absolute; inset: auto -12vw -24vw auto; width: 50vw; height: 50vw; border: 1px solid rgba(0, 108, 112, .1); border-radius: 50%; content: ""; }
.hero-grid { min-height: min(720px, calc(100vh - 84px)); padding-block: clamp(4rem, 10vw, 8rem); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr); align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { max-width: 850px; }
.eyebrow { margin-bottom: .8rem; color: var(--teal-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.hero-lead { max-width: 700px; color: var(--muted); font-size: clamp(1.08rem, 2vw, 1.3rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .75rem 1.2rem; border: 2px solid transparent; border-radius: .7rem; font-weight: 800; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--teal); box-shadow: 0 8px 20px rgba(0, 108, 112, .22); }
.button-primary:hover { color: var(--white); background: var(--teal-dark); }
.button-secondary { color: var(--ink); background: var(--white); border-color: var(--line); }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art::before { position: absolute; width: 82%; aspect-ratio: 1; background: rgba(255,255,255,.75); border-radius: 50%; box-shadow: var(--shadow-md); content: ""; }
.hero-art img { position: relative; z-index: 1; width: min(100%, 500px); aspect-ratio: 1; object-fit: contain; filter: drop-shadow(0 22px 30px rgba(23, 32, 68, .11)); }

.section { padding-block: clamp(4rem, 8vw, 7rem); }
.section-soft { background: var(--mist); }
.section-heading { margin-bottom: 2rem; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.section-heading h2 { max-width: 760px; margin-bottom: 0; }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.category-card { min-height: 255px; padding: 1.55rem; display: flex; flex-direction: column; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.category-card:hover { color: var(--ink); border-color: rgba(0,108,112,.35); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.category-icon { width: 48px; height: 48px; margin-bottom: 1.2rem; display: grid; place-items: center; color: var(--teal-dark); background: var(--teal-soft); border-radius: 14px; font-size: 1.3rem; font-weight: 800; }
.category-card:nth-child(2n) .category-icon { color: #8e3c2f; background: #fff0ed; }
.category-card:nth-child(3n) .category-icon { color: #705012; background: #fff7df; }
.category-card h3 { margin-bottom: .55rem; }
.category-card p { color: var(--muted); font-size: .94rem; }
.text-link { margin-top: auto; color: var(--teal-dark); font-weight: 800; text-decoration: none; }

.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.post-card-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--teal-soft), #fff0ed); }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.post-card:hover .post-card-image img { transform: scale(1.03); }
.post-placeholder { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 25% 30%, rgba(244,111,88,.35), transparent 30%), radial-gradient(circle at 72% 62%, rgba(0,108,112,.3), transparent 32%); }
.post-card-body { padding: 1.25rem; }
.post-card-meta, .article-categories { margin-bottom: .65rem; color: var(--teal-dark); font-size: .75rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.post-card-meta a, .article-categories a { text-decoration: none; }
.post-card h3 a { color: var(--ink); text-decoration: none; }
.post-card-body > p { color: var(--muted); font-size: .94rem; }
.post-card-footer { padding-top: .9rem; display: flex; justify-content: space-between; gap: .5rem; color: var(--muted); border-top: 1px solid var(--line); font-size: .78rem; }

.trust-panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.trust-list { padding: 0; margin: 0; display: grid; gap: .75rem; list-style: none; }
.trust-list li { padding: 1rem 1rem 1rem 3.2rem; position: relative; background: var(--mist); border-radius: var(--radius-sm); }
.trust-list li::before { position: absolute; top: 1.1rem; left: 1rem; width: 1.45rem; height: 1.45rem; display: grid; place-items: center; color: var(--white); background: var(--teal); border-radius: 50%; content: "✓"; font-size: .75rem; font-weight: 900; }
.trust-list strong, .trust-list span { display: block; }
.trust-list span { margin-top: .2rem; color: var(--muted); font-size: .92rem; }

.content-wrap { padding-block: clamp(3rem, 7vw, 6rem); }
.archive-header { max-width: 800px; margin-bottom: 2.5rem; }
.archive-header h1, .page-header h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
.archive-description, .page-header p { color: var(--muted); font-size: 1.1rem; }
.author-profile { display: flex; align-items: center; gap: 1.5rem; }
.author-profile > img { flex: 0 0 auto; border-radius: 50%; }
.navigation.pagination { margin-top: 2.5rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { min-width: 42px; min-height: 42px; padding: .4rem .7rem; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: .5rem; text-decoration: none; }
.page-numbers.current { color: var(--white); background: var(--teal); border-color: var(--teal); }

.article-header { padding-block: clamp(3.5rem, 7vw, 6rem) 2.5rem; }
.article-header h1 { font-size: clamp(2.35rem, 6vw, 4.5rem); }
.article-deck { color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.article-meta { margin-top: 2rem; display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .88rem; }
.article-meta > div { display: grid; gap: .2rem; }
.article-meta a { font-weight: 800; text-decoration: none; }
.article-meta .post-date, .article-meta .updated-date { margin-right: .4rem; }
.author-avatar, .article-meta img { border-radius: 50%; }
.article-hero { margin-bottom: 2.5rem; }
.article-hero img { width: 100%; max-height: 720px; display: block; object-fit: cover; border-radius: var(--radius-lg); }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 320px); justify-content: center; gap: clamp(2rem, 6vw, 5rem); }
.article-layout:not(:has(.article-sidebar)) { grid-template-columns: minmax(0, 760px); }
.entry-content { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.5vw, 1.16rem); }
.entry-content > * { max-width: 100%; }
.entry-content h2, .entry-content h3 { margin-top: 2em; scroll-margin-top: 110px; }
.entry-content p, .entry-content li { color: #2f3855; }
.entry-content a { font-weight: 700; }
.entry-content blockquote { padding: 1rem 1.4rem; margin: 2rem 0; background: var(--mist); border-left: 5px solid var(--teal); }
.entry-content img { border-radius: var(--radius-sm); }
.editorial-notice { padding: 1rem 1.15rem; margin-bottom: 2rem; color: var(--ink); background: #fff8e8; border: 1px solid #ecd89e; border-radius: var(--radius-sm); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .88rem; }
.editorial-notice p { margin: .25rem 0 0; color: var(--muted); }
.article-tags { padding-top: 1.5rem; margin-top: 2.5rem; border-top: 1px solid var(--line); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .9rem; }
.author-box { padding: 1.4rem; margin-top: 3rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; background: var(--mist); border-radius: var(--radius); font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.author-box img { border-radius: 50%; }
.author-box h2 { margin-bottom: .35rem; font-size: 1.45rem; }
.author-box p { color: var(--muted); font-size: .9rem; }
.article-sidebar { position: sticky; top: 110px; align-self: start; }
.widget { padding: 1.2rem; margin-bottom: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.widget-title { font-size: 1.2rem; }
.widget ul { padding-left: 1.2rem; }
.post-navigation-wrap { padding-block: 3rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; }
.post-navigation a { height: 100%; padding: 1rem; display: block; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.post-navigation span { display: block; color: var(--muted); font-size: .75rem; font-weight: 500; }

.page-article { padding-block: clamp(3.5rem, 7vw, 6rem); }
.page-header { padding-bottom: 1.5rem; margin-bottom: 2rem; border-bottom: 1px solid var(--line); }
.comments-area { padding-block: 2rem 4rem; }
.comment-list { padding: 0; list-style: none; }
.comment-body { padding: 1rem; margin-bottom: .8rem; background: var(--mist); border-radius: var(--radius-sm); }
.comment-form input:not([type="submit"]), .comment-form textarea { width: 100%; padding: .75rem; border: 1px solid #aeb9b7; border-radius: .5rem; }
.submit { padding: .75rem 1rem; color: var(--white); background: var(--teal); border: 0; border-radius: .55rem; font-weight: 800; cursor: pointer; }
.empty-state, .error-page { padding: 3rem; text-align: center; background: var(--mist); border-radius: var(--radius); }
.error-page { margin-block: 5rem; }
.error-code { margin: 0; color: var(--coral); font-size: 4rem; font-weight: 900; }

.search-form { display: flex; width: min(100%, 420px); }
.search-form label { flex: 1; }
.search-field { width: 100%; min-height: 46px; padding: .65rem .8rem; border: 1px solid #aeb9b7; border-radius: .6rem 0 0 .6rem; }
.search-submit { min-height: 46px; padding: .65rem .9rem; color: var(--white); background: var(--teal); border: 0; border-radius: 0 .6rem .6rem 0; font-weight: 800; cursor: pointer; }

.site-footer { padding-top: 4rem; color: rgba(255,255,255,.84); background: var(--ink); }
.site-footer .brand { color: var(--white); }
.site-footer .brand-description { color: rgba(255,255,255,.7); }
.site-footer .brand-logo { width: 54px; height: 54px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 3rem; }
.footer-about > p { max-width: 470px; margin-top: 1rem; }
.site-footer h2 { color: var(--white); font-family: inherit; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; }
.site-footer ul { padding: 0; margin: 0; list-style: none; }
.site-footer li + li { margin-top: .5rem; }
.site-footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-bottom { padding-block: 1.5rem; margin-top: 3rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .75rem; }
.footer-bottom p { margin: 0; }

@media (min-width: 1080px) {
  .brand-description { display: block; max-width: 310px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .primary-navigation { position: absolute; top: calc(100% + 1px); right: 1rem; left: 1rem; display: none; padding: .75rem; background: var(--white); border: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow-md); }
  .primary-navigation.is-open { display: block; }
  .primary-navigation .menu { display: grid; }
  .primary-navigation a { padding: .75rem; }
  .hero-grid { min-height: auto; grid-template-columns: 1fr .65fr; }
  .category-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 760px); }
  .article-sidebar { position: static; }
}

@media (max-width: 680px) {
  .header-inner { min-height: 72px; }
  .brand-logo, .brand-mark img { width: 48px; height: 48px; }
  .brand-title { max-width: 180px; font-size: .95rem; }
  .hero-grid { padding-block: 3.5rem; grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 230px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .section-heading { align-items: start; flex-direction: column; }
  .category-grid, .post-grid, .trust-panel, .footer-grid { grid-template-columns: 1fr; }
  .category-card { min-height: auto; }
  .article-header { padding-top: 2.5rem; }
  .article-hero { width: 100%; }
  .article-hero img { border-radius: 0; }
  .author-box { grid-template-columns: 1fr; }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .article-sidebar, .post-navigation-wrap, .comments-area { display: none !important; }
  body { color: #000; background: #fff; }
  .article-layout { display: block; }
  a { color: #000; text-decoration: underline; }
}
