:root {
  --gold: #cba135;
  --gold-text: #8f6c12;
  --orange: #f04e1c;
  --cream: #f5e6d6;
  --dark: #222;
  --darker: #161616;
  --text: #3a3a3a;
  --heading: #2b2b2b;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --bg: #f5f5f5;
  --container: 1200px;
  --font-body: "Karla", Helvetica, Arial, sans-serif;
  --font-head: "Roboto", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--text); font: 400 17px/1.85 var(--font-body); }
img { max-width: 100%; height: auto; }
a { color: var(--gold-text); text-decoration: none; }
a:hover, a:focus-visible { color: var(--orange); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
h1, h2, h3, h4, h5, h6 { color: var(--heading); font-family: var(--font-head); font-weight: 400; line-height: 1.25; margin: 1.5em 0 .55em; }
h1 { font-size: 2.6rem; margin-top: 0; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.6rem; }
h4 { font-size: 1.3rem; }
h5, h6 { font-size: 1.08rem; font-weight: 500; }
p { margin: 0 0 1.4em; }
ul, ol { margin: 0 0 1.5em; padding-left: 1.4em; }
li { margin-bottom: .3em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.2em 0; }
table { width: 100%; border-collapse: collapse; margin: 0 0 1.6em; font-size: 16px; }
th, td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
th { background: var(--bg); color: var(--heading); }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -9999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--dark); border-bottom: 2px solid #111; }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: #fff; }
.brand:hover, .brand:focus-visible { color: #fff; text-decoration: none; }
.brand-mark { display: block; flex: none; }
.wordmark { display: flex; flex-direction: column; line-height: 1.1; }
.wm-name { font-family: var(--font-head); font-size: 21px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.wm-tag { font-size: 13px; color: #e8e8e8; margin-top: 3px; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger { display: none; }
.top-nav .menu { display: flex; list-style: none; margin: 0; padding: 0; gap: 2.2rem; }
.top-nav li { margin: 0; }
.top-nav a { display: block; padding: 22px 0; color: var(--gold); font-size: 17px; }
.top-nav a:hover, .top-nav a[aria-current] { color: #fff; text-decoration: none; }

/* Layout: content + right sidebar (Astra separate container) */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 0 4rem; padding: 4rem 0; }
.main-col { min-width: 0; }
.widget + .widget { margin-top: 3rem; }
.widget-title { font-size: 24px; margin: 0 0 .8rem; }
.widget-menu { list-style: none; margin: 0; padding: 0; }
.widget-menu li { margin: 0 0 .55rem; line-height: 1.6; }
.widget-menu a { color: var(--gold-text); }
.widget-menu a[aria-current] { color: var(--heading); }
.search-form { display: flex; }
.search-form input { flex: 1; min-width: 0; padding: .7rem .9rem; border: 1px solid #ddd; border-right: 0; background: #fafafa; font: inherit; font-size: 15px; }
.search-form button { padding: .7rem 1rem; border: 0; background: var(--dark); color: var(--gold); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.search-form button:hover { background: #000; }

/* Posts */
.breadcrumbs { font-size: 14px; color: var(--muted); margin-bottom: 1rem; }
.breadcrumbs a { color: var(--muted); }
.entry > .entry-title { font-size: 48px; line-height: 1.2; margin-bottom: .4rem; }
.entry-meta { font-size: 14px; color: var(--muted); margin: 0 0 2rem; }
.entry-meta a { color: var(--gold-text); }
.featured-image { display: block; margin: 0 0 2rem; }
.entry-content > :first-child { margin-top: 0; }
.entry-content h2 { font-size: 38px; }
.entry-content h3 { font-size: 30px; }
.entry-content h4 { font-size: 23px; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(203, 161, 53, .6); text-underline-offset: 3px; overflow-wrap: anywhere; }
.entry-content .aligncenter { display: block; margin-inline: auto; }
.entry-content .alignright { float: right; margin: .3rem 0 1rem 1.5rem; max-width: 50%; }
.entry-content .alignleft { float: left; margin: .3rem 1.5rem 1rem 0; max-width: 50%; }
.entry-content figure { margin: 0 0 1.6rem; }
.entry-content .wp-block-table, .entry-content .table-wrap { overflow-x: auto; }
.entry-content::after { content: ""; display: table; clear: both; }
.entry-content .has-text-align-center { text-align: center; }
.entry-content .has-small-font-size { font-size: 15px; }
.entry-content .has-medium-font-size { font-size: 20px; }
.entry-content .has-luminous-vivid-amber-color { color: #b88600; }
.entry-content .wp-block-embed__wrapper, .entry-content .video-embed { position: relative; aspect-ratio: 16 / 9; margin: 0 0 1.6rem; }
.entry-content .wp-block-embed__wrapper iframe, .entry-content .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.entry-content iframe { max-width: 100%; }
.contact-email { font-size: 20px; }

.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 15px; }
.share span { font-weight: 700; color: var(--heading); margin-right: .25rem; }
.share a { padding: .3rem .85rem; border: 1px solid var(--line); border-radius: 999px; color: var(--text); }
.share a:hover { border-color: var(--gold); color: var(--gold-text); text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.post-nav a { display: block; padding: 1rem 1.2rem; background: var(--bg); color: var(--heading); font-family: var(--font-head); line-height: 1.4; }
.post-nav a span { display: block; font-family: var(--font-body); font-size: 14px; color: var(--gold-text); margin-bottom: .2rem; }
.post-nav .next { text-align: right; grid-column: 2; }
.post-nav a:hover { background: #ececec; text-decoration: none; }

/* Labels, meta, buttons */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin: 0 0 .5rem; font-size: 14px; color: var(--muted); }
.label { display: inline-block; padding: .15rem .6rem; background: var(--dark); color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.tag { display: inline-block; padding: .05rem .5rem; border: 1px solid rgba(203,161,53,.6); color: var(--gold-text); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; border-radius: 2px; }
.button { display: inline-block; background: var(--gold); color: #111; font-weight: 700; padding: .75rem 1.5rem; border-radius: 3px; }
.button:hover { background: #e0b84a; color: #111; text-decoration: none; }
.button-outline { background: transparent; border: 2px solid var(--dark); color: var(--dark); }
.button-outline:hover { background: var(--dark); color: var(--gold); }
.read-more { font-weight: 700; }

/* Blog list (original Astra blog style) */
.list-heading { font-size: 28px; margin: 0 0 2rem; padding-bottom: .6rem; border-bottom: 3px solid var(--dark); }
.post-row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.75rem; padding-bottom: 2.25rem; margin-bottom: 2.25rem; border-bottom: 1px solid var(--line); }
.post-row:not(:has(.post-row-image)) { grid-template-columns: 1fr; }
.post-row-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; transition: filter .2s; }
.post-row-image:hover img { filter: brightness(.9); }
.post-row-title { font-size: 28px; margin: 0 0 .6rem; line-height: 1.25; }
.post-row-title a { color: var(--heading); }
.post-row-title a:hover { color: var(--gold-text); text-decoration: none; }
.post-row-body p:not(.post-meta) { margin: 0 0 .8rem; }
.all-posts { margin: 0; }

/* Homepage: featured post band */
.featured { position: relative; background: var(--darker); color: #ddd; }
.featured-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: center; padding: 3.5rem 0 4.5rem; }
.featured-image { display: block; background: #fff; }
.featured-image img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.featured .post-meta { color: #aaa; }
.featured .label { background: var(--gold); color: #111; }
.featured-title { font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.15; margin: .3rem 0 1rem; }
.featured-title a { color: #fff; }
.featured-title a:hover { color: var(--gold); text-decoration: none; }
.featured-body p:not(.post-meta) { font-size: 18px; color: #ccc; margin-bottom: 1.6rem; }
.wave-divider { position: absolute; left: 0; right: 0; bottom: 6px; width: 100%; height: 26px; fill: none; stroke: var(--gold); stroke-width: 2; opacity: .55; }

/* Homepage: free downloads crate */
.crate { background: var(--darker); padding: 4rem 0; }
.crate-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.8rem; }
.crate-head h2 { color: #fff; margin: 0; font-size: 2rem; }
.eq { width: 40px; height: 24px; fill: var(--orange); }
.crate-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 980px) { .crate-grid { grid-template-columns: repeat(2, 1fr); } }
.crate-item { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; background: #222; border: 1px solid #2e2e2e; color: #eee; transition: border-color .2s, transform .2s; }
.crate-item:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; color: #fff; }
.crate-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #333; }
.crate-item .tag { align-self: flex-start; color: var(--gold); border-color: rgba(203,161,53,.5); }
.crate-title { font-family: var(--font-head); font-size: 17px; line-height: 1.3; }

/* Sidebar extras */
.about-card { background: var(--dark); color: #ddd; padding: 1.5rem; font-size: 15px; line-height: 1.65; }
.about-card img { display: block; margin-bottom: .8rem; }
.about-card .about-kicker { color: var(--gold); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: 12px; margin: 0 0 .5rem; }
.about-card p { margin: 0 0 .8rem; }
.about-card a { color: var(--gold); font-weight: 700; }
.widget-freebies li { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; }

/* Post extras */
.related { margin-top: 2.5rem; }
.related-title { font-size: 24px; margin: 0 0 1rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-item { display: flex; flex-direction: column; gap: .5rem; color: var(--heading); font-family: var(--font-head); line-height: 1.35; }
.related-item img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #eee; }
.related-item:hover { color: var(--gold-text); text-decoration: none; }

@media (max-width: 980px) {
  .featured-inner { grid-template-columns: 1fr; gap: 1.75rem; padding: 2.5rem 0 3.5rem; }
  .post-row { grid-template-columns: 180px minmax(0, 1fr); gap: 1.25rem; }
  .post-row-title { font-size: 22px; }
}
@media (max-width: 600px) {
  .post-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

/* Footer */
.site-footer { background: var(--dark); color: #bbb; margin-top: 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; padding: 2.5rem 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer-nav a { color: var(--gold); }
.footer-nav a:hover { color: #fff; }
.footer-bottom { background: var(--darker); padding: 1rem 0; font-size: 14px; color: #999; }

@media (max-width: 980px) {
  .content-area { grid-template-columns: 1fr; padding: 2.5rem 0; }
  .sidebar { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 2.5rem; }
  .nav-burger { display: block; padding: 10px; cursor: pointer; }
  .burger-bars, .burger-bars::before, .burger-bars::after { display: block; width: 24px; height: 3px; background: var(--gold); position: relative; content: ""; }
  .burger-bars::before { position: absolute; top: -7px; }
  .burger-bars::after { position: absolute; top: 7px; }
  .top-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--dark); border-top: 1px solid #333; padding: .5rem 1.25rem 1rem; }
  .nav-toggle:checked ~ .top-nav { display: block; }
  .nav-toggle:focus-visible + .nav-burger { outline: 2px solid var(--gold); }
  .top-nav .menu { flex-direction: column; gap: 0; }
  .top-nav a { padding: .75rem 0; border-bottom: 1px solid #333; }
  .wm-tag { display: none; }
  .entry > .entry-title { font-size: 32px; }
  .entry-content h2 { font-size: 27px; }
  .entry-content h3 { font-size: 23px; }
  .entry-content .alignright, .entry-content .alignleft { float: none; margin: 0 0 1rem; max-width: 100%; }
}
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; }
}
