/*
Theme Name: GGD Journal
Description: Gold on Chain editorial styling for the official Twenty Twenty-Five theme.
Template: twentytwentyfive
Version: 1.0.0
Text Domain: ggd-journal
*/

:root { color-scheme: dark; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
a { text-underline-offset: .25em; }
/* Override the parent theme's pointer focus ring; keep keyboard focus visible. */
.wp-site-blocks :focus:not(:focus-visible) { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid #d4b76a; outline-offset: 5px; }
.wp-site-blocks { padding-top: 0; }
.ggd-header, .ggd-footer, .ggd-hero, .ggd-content { width: min(1200px, calc(100% - 64px)); margin-inline: auto; }
.ggd-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; border-bottom: 1px solid #3e3b3a; }
.ggd-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 650; font-size: 21px; text-decoration: none; letter-spacing: -.6px; }
.ggd-brand img { width: 34px; height: 40px; object-fit: contain; }
.ggd-header nav { display: flex; gap: 32px; font-size: 14px; }
.ggd-header nav a { text-decoration: none; color: #c4beb5; }
.ggd-header nav a:hover, .ggd-header nav a[aria-current] { color: #d4b76a; }
.ggd-hero { padding-block: 78px 62px; }
.ggd-eyebrow { color: #d4b76a; font-size: 12px; font-weight: 600; letter-spacing: .2em; margin: 0 0 25px; }
.ggd-hero-copy { display: grid; grid-template-columns: 1.4fr 1fr; align-items: end; gap: 70px; }
.ggd-hero h1 { font-size: clamp(36px, 4.5vw, 60px); line-height: 1.35; letter-spacing: -.035em; font-weight: 500; margin: 0; }
.ggd-hero h1 span { color: #d4b76a; }
.ggd-hero-copy > p { color: #b8b2a9; font-size: 16px; line-height: 1.9; max-width: 360px; margin: 0 0 8px auto; }
.ggd-content { padding-bottom: 72px; }
.ggd-topics { display: flex; align-items: center; flex-wrap: wrap; gap: 25px; border-block: 1px solid #3e3b3a; padding-block: 18px; margin-bottom: 8px; font-size: 14px; }
.ggd-topics > a { color: #d4b76a; text-decoration: none; }
.ggd-topics .wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 25px; padding: 0; margin: 0; list-style: none; }
.ggd-topics .wp-block-categories-list a { color: #b8b2a9; text-decoration: none; }
.ggd-post-list { list-style: none; padding: 0; }
.ggd-post-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: center; padding-block: 42px; border-bottom: 1px solid #3e3b3a; }
.ggd-post-row .wp-block-post-featured-image { margin: 0; overflow: hidden; border-radius: 4px; background: #232220; }
.ggd-post-row .wp-block-post-featured-image img { width: 100%; aspect-ratio: 12/5; object-fit: cover; transition: transform .35s ease; }
.ggd-post-row .wp-block-post-featured-image a:hover img { transform: scale(1.025); }
.ggd-post-row .wp-block-post-title { margin: 14px 0; font-size: clamp(22px, 2.25vw, 30px); line-height: 1.5; font-weight: 500; letter-spacing: -.025em; }
.ggd-post-row .wp-block-post-title a { text-decoration: none; }
.ggd-post-row .wp-block-post-title a:hover { color: #d4b76a; }
.ggd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 12px; color: #a9a298; }
.ggd-meta > *, .ggd-post-row > *, .ggd-topics > * { margin-block: 0; }
.ggd-meta .wp-block-post-terms a { text-decoration: none; color: #d4b76a; }
.ggd-post-row .wp-block-post-excerpt { color: #b8b2a9; font-size: 15px; line-height: 1.85; }
.ggd-post-row .wp-block-post-excerpt__excerpt { margin-block: 0; }
.ggd-post-row .wp-block-read-more { display: inline-block; margin-top: 24px; color: #d4b76a; text-decoration: none; font-size: 14px; }
.ggd-post-row:not(:has(.wp-block-post-featured-image)) { grid-template-columns: 1fr; }
.ggd-post-row:not(:has(.wp-block-post-featured-image)) > div { max-width: 760px; }
.ggd-pagination { padding-top: 36px; }
.ggd-article { padding-block: 50px 70px; }
.ggd-article .ggd-back { color: #b8b2a9; font-size: 14px; margin-bottom: 44px; }
.ggd-article .ggd-back a { text-decoration: none; }
.ggd-article > .wp-block-post-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.45; letter-spacing: -.03em; font-weight: 500; margin-block: 18px 22px; }
.ggd-article > .wp-block-post-featured-image { margin-block: 42px; border-radius: 4px; overflow: hidden; }
.ggd-article .wp-block-post-content { color: #d3cec7; line-height: 1.95; font-size: 17px; }
.ggd-article .wp-block-post-content h2 { font-size: 27px; line-height: 1.5; margin-top: 2em; color: #f6f2e9; }
.ggd-article .wp-block-post-content h3 { color: #f6f2e9; }
.ggd-article .wp-block-post-content a { color: #d4b76a; }
.ggd-article .wp-block-post-content blockquote { border-left: 2px solid #d4b76a; padding: 8px 24px; margin-inline: 0; color: #d4b76a; background: #232220; }
.ggd-article .wp-block-post-content img { max-width: 100%; height: auto; }
.archive main, .search main, .error404 main { padding-inline: 20px; }
.ggd-footer { padding-block: 35px; border-top: 1px solid #3e3b3a; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.ggd-footer p { color: #a9a298; font-size: 13px; line-height: 1.8; margin: 0; }
.ggd-footer strong { color: #e9e2d6; font-weight: 500; }
.ggd-footer a { color: #d4b76a; text-decoration: none; font-size: 14px; white-space: nowrap; }
.ggd-category.ggd-content { padding-inline: 0; padding-top: 34px; }
.ggd-category-breadcrumb { margin: 0 0 30px; color: #a9a298; font-size: 13px; }
.ggd-category-breadcrumb a { color: #c4beb5; text-decoration: none; }
.ggd-category-breadcrumb span { padding-inline: 12px; color: #787169; }
.ggd-category-heading { display: flex; align-items: baseline; flex-wrap: wrap; gap: 20px; }
.ggd-category-heading > * { margin: 0; }
.ggd-category-heading h1 { font-size: clamp(32px, 3.8vw, 46px); font-weight: 500; line-height: 1.3; letter-spacing: -.03em; }
.ggd-category-count { color: #d4b76a; font-size: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ggd-category .wp-block-term-description { max-width: 720px; color: #b8b2a9; font-size: 15px; }
.ggd-category-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-block: 8px 28px; border-bottom: 1px solid #3e3b3a; }
.ggd-category-filters > *, .ggd-category-filters .wp-block-categories-list { margin: 0; }
.ggd-category-filters .wp-block-categories-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.ggd-category-filters .cat-item, .ggd-category-all { padding: 9px 17px; border: 1px solid #49423b; border-radius: 5px; color: #b8b2a9; font-size: 14px; text-decoration: none; }
.ggd-category-filters .cat-item { font-variant-numeric: tabular-nums; }
.ggd-category-filters .cat-item a { color: inherit; text-decoration: none; }
.ggd-category-filters .current-cat { border-color: #d4b76a; background: #d4b76a14; color: #e7d5a4; }
.ggd-category-filters a:hover { color: #e7d5a4; }
.ggd-category-order { margin-block: 28px 18px; color: #b8b2a9; font-size: 13px; }
.ggd-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; list-style: none; padding: 0; }
.ggd-category-grid > li { margin: 0; min-width: 0; }
.ggd-category-card { height: 100%; display: flex; flex-direction: column; background: #23201c; border: 1px solid #49423b; border-radius: 8px; overflow: hidden; transition: border-color .2s ease; }
.ggd-category-card:hover, .ggd-category-card:has(:focus-visible) { border-color: #9d8853; }
.ggd-card-media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #2a2524 url('assets/logo-mark.png') center / 52px auto no-repeat; }
.ggd-card-media .wp-block-post-featured-image { position: absolute; inset: 0; margin: 0; }
.ggd-card-media .wp-block-post-featured-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ggd-card-media .wp-block-post-featured-image a:is(:hover, :focus-visible) img { transform: scale(1.04); }
.ggd-card-body { display: flex; flex: 1; flex-direction: column; gap: 16px; padding: 26px; margin: 0; }
.ggd-card-body > * { margin: 0; }
.ggd-card-body .wp-block-post-title { font-size: clamp(22px, 2.1vw, 27px); line-height: 1.5; font-weight: 500; letter-spacing: -.02em; }
.ggd-card-body .wp-block-post-title a { color: #f6f2e9; text-decoration: none; }
.ggd-card-body .wp-block-post-title a:hover { color: #d4b76a; }
.ggd-card-body .wp-block-post-excerpt { color: #b8b2a9; font-size: 15px; line-height: 1.85; }
.ggd-card-body .wp-block-post-excerpt__excerpt { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ggd-card-body .wp-block-read-more { align-self: flex-start; margin-top: auto; padding-top: 10px; color: #d4b76a; text-decoration: none; font-size: 14px; }
@media (max-width: 700px) {
  .ggd-header, .ggd-footer, .ggd-hero, .ggd-content { width: calc(100% - 40px); }
  .ggd-header { min-height: 78px; gap: 12px; }
  .ggd-brand { font-size: 16px; gap: 8px; }
  .ggd-brand img { width: 26px; height: 32px; }
  .ggd-header nav { gap: 16px; font-size: 12px; }
  .ggd-hero { padding-block: 48px 38px; }
  .ggd-hero-copy { grid-template-columns: 1fr; gap: 22px; }
  .ggd-hero-copy > p { margin: 0; max-width: 100%; font-size: 14px; }
  .ggd-post-row { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .ggd-post-row .wp-block-post-title { font-size: 24px; }
  .ggd-topics, .ggd-topics .wp-block-categories-list { gap: 16px; }
  .ggd-footer { flex-direction: column; }
  .ggd-article { padding-top: 30px; }
  .ggd-article .wp-block-post-content { font-size: 16px; }
  .ggd-category-grid { grid-template-columns: 1fr; gap: 22px; }
  .ggd-category-heading { gap: 12px; }
  .ggd-category-count { font-size: 14px; }
  .ggd-category-filters .cat-item, .ggd-category-all { padding: 8px 12px; font-size: 13px; }
  .ggd-card-body { padding: 22px; gap: 14px; }
}
@media (max-width: 400px) {
  .category .ggd-header { gap: 8px; }
  .category .ggd-brand { font-size: 14px; white-space: nowrap; }
  .category .ggd-brand img { width: 22px; height: 28px; }
  .category .ggd-header nav { gap: 10px; font-size: 11px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ggd-post-row .wp-block-post-featured-image img { transition: none; }
  .ggd-category-card { transition: none; }
  .ggd-card-media .wp-block-post-featured-image img { transition: none; }
  .ggd-card-media .wp-block-post-featured-image a:is(:hover, :focus-visible) img { transform: none; }
}
