/*
Theme Name: Sound of Ghent News
Theme URI: https://soundofghent.be/
Author: TWS Crew
Author URI: https://soundofghent.be/
Description: Fast editorial WordPress theme for news, culture and music media. Customizer-driven header, footer, social links, contact messages and responsive post layouts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sound-of-ghent
Tags: news, blog, custom-logo, custom-menu, featured-images, responsive-layout
*/

:root {
  --sog-accent: #df2e35;
  --sog-accent-2: #ff4b63;
  --sog-ink: #08090d;
  --sog-ink-soft: #30313a;
  --sog-muted: #666978;
  --sog-line: #ececf2;
  --sog-bg: #ffffff;
  --sog-bg-soft: #f7f7fb;
  --sog-card: #ffffff;
  --sog-radius: 18px;
  --sog-radius-lg: 24px;
  --sog-shadow: 0 20px 55px rgba(8, 9, 13, .12);
  --sog-shadow-soft: 0 14px 34px rgba(8, 9, 13, .08);
  --sog-header-gradient: linear-gradient(135deg, #df2e35 0%, #ee3343 52%, #c82755 100%);
  --sog-footer-gradient: radial-gradient(circle at 18% 0%, rgba(255, 72, 96, .26), transparent 30%), linear-gradient(135deg, #090910 0%, #14131d 54%, #270b18 100%);
  --sog-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --sog-container: 1320px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sog-bg);
  color: var(--sog-ink);
  font-family: var(--sog-font);
  font-size: 17px;
  line-height: 1.58;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; vertical-align: middle; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(223, 46, 53, .35); outline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.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;
}
.sog-container { width: min(calc(100% - 48px), var(--sog-container)); margin-inline: auto; }
.sog-narrow { width: min(calc(100% - 48px), 950px); margin-inline: auto; }
.sog-site-main { padding: 46px 0 70px; }

/* Header */
.sog-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--sog-header-gradient);
  color: #fff;
  box-shadow: 0 10px 30px rgba(10, 10, 18, .13);
}
.admin-bar .sog-site-header { top: 32px; }
.sog-header-inner {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.sog-brand { display: flex; align-items: center; flex: 0 0 auto; min-width: 0; }
.sog-logo, .custom-logo-link { display: inline-flex; align-items: center; line-height: 0; }
.sog-logo img, .custom-logo {
  width: clamp(178px, 18vw, 292px);
  max-height: 70px;
  object-fit: contain;
}
.sog-header-right { display: flex; align-items: center; gap: 26px; min-width: 0; }
.sog-primary-nav { display: flex; align-items: center; min-width: 0; }
.sog-primary-nav ul { list-style: none; display: flex; align-items: center; gap: 12px; padding: 0; margin: 0; }
.sog-primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 20px 8px;
  border: 1.5px solid rgba(255, 255, 255, .76);
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sog-primary-nav a:hover, .sog-primary-nav .current-menu-item > a, .sog-primary-nav .current_page_item > a {
  background: #fff;
  color: var(--sog-accent);
  transform: translateY(-1px);
}
.sog-header-actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.sog-socials { display: flex; align-items: center; gap: 14px; }
.sog-socials a, .sog-icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 999px;
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.sog-socials a:hover, .sog-icon-button:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.sog-socials svg, .sog-icon-button svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; }
.sog-search-toggle, .sog-menu-toggle { background: transparent; border: 0; padding: 0; }
.sog-menu-toggle { display: none; }
.sog-menu-toggle span {
  display: block;
  width: 31px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
  margin: 6px 0;
  transition: transform .2s ease, opacity .2s ease;
}
.sog-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(14px);
  color: var(--sog-ink);
  box-shadow: 0 18px 40px rgba(8, 9, 13, .13);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.sog-search-panel.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.sog-search-panel .search-form {
  width: min(calc(100% - 48px), 860px);
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  gap: 12px;
}
.sog-search-panel label { flex: 1; }
.search-field, .sog-contact-form input, .sog-contact-form textarea {
  width: 100%;
  border: 1px solid var(--sog-line);
  border-radius: 16px;
  background: #fff;
  padding: 15px 17px;
  color: var(--sog-ink);
  box-shadow: 0 10px 24px rgba(8, 9, 13, .04);
}
.search-submit, .sog-button, .sog-contact-form button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 13px 24px;
  background: linear-gradient(135deg, var(--sog-accent) 0%, var(--sog-accent-2) 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: .01em;
  box-shadow: 0 14px 28px rgba(223, 46, 53, .22);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.search-submit:hover, .sog-button:hover, .sog-contact-form button:hover { transform: translateY(-2px); box-shadow: 0 18px 32px rgba(223, 46, 53, .3); filter: saturate(1.08); }

/* Home */
.sog-section-kicker {
  margin: 0 0 22px;
  color: var(--sog-ink);
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -.025em;
  text-transform: uppercase;
}
.sog-home-top {
  display: grid;
  grid-template-columns: 2.15fr 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.sog-home-bottom {
  margin-top: 42px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}
.sog-feature-card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border-radius: var(--sog-radius-lg);
  background: #1b1d24;
  box-shadow: var(--sog-shadow-soft);
}
.sog-feature-card img { width: 100%; height: 100%; min-height: 390px; object-fit: cover; transition: transform .45s ease; }
.sog-feature-card:hover img { transform: scale(1.035); }
.sog-feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 28%, rgba(0,0,0,.88) 100%);
}
.sog-feature-card__content {
  position: absolute;
  z-index: 2;
  left: 32px;
  right: 32px;
  bottom: 28px;
  color: #fff;
}
.sog-feature-card__title {
  margin: 0 0 18px;
  max-width: 780px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.05;
  font-weight: 1000;
  letter-spacing: -.04em;
}
.sog-feature-card__meta { color: rgba(255,255,255,.92); font-size: 14px; font-weight: 600; }
.sog-story-card { min-width: 0; }
.sog-story-card__media {
  display: block;
  overflow: hidden;
  border-radius: var(--sog-radius);
  background: linear-gradient(135deg, #ededf3, #d9dae5);
  aspect-ratio: 16 / 9;
  box-shadow: 0 12px 24px rgba(8, 9, 13, .08);
}
.sog-story-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sog-story-card:hover .sog-story-card__media img { transform: scale(1.04); }
.sog-story-card__title {
  margin: 18px 0 8px;
  font-size: clamp(22px, 2.1vw, 29px);
  line-height: 1.08;
  font-weight: 1000;
  letter-spacing: -.035em;
}
.sog-story-card__title a:hover, .sog-card-title a:hover, .sog-latest-list a:hover { color: var(--sog-accent); }
.sog-story-card__meta, .sog-card-meta, .sog-entry-meta, .sog-date {
  color: var(--sog-muted);
  font-size: 13px;
  font-weight: 650;
}
.sog-home-content { margin-top: 58px; }
.sog-more-row { margin-top: 58px; }

/* Cards and archive */
.sog-archive-header { margin-bottom: 34px; }
.sog-archive-title {
  margin: 0;
  font-size: clamp(38px, 5.5vw, 76px);
  line-height: .96;
  font-weight: 1000;
  letter-spacing: -.055em;
}
.sog-archive-description { max-width: 760px; margin-top: 15px; color: var(--sog-muted); font-size: 18px; }
.sog-archive-grid, .sog-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.sog-card { min-width: 0; }
.sog-card-media {
  display: block;
  overflow: hidden;
  border-radius: var(--sog-radius);
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #f0f0f5, #ddddE8);
}
.sog-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sog-card:hover img { transform: scale(1.04); }
.sog-card-title {
  margin: 16px 0 8px;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 1000;
}
.sog-card-excerpt { margin: 10px 0 0; color: var(--sog-ink-soft); }
.sog-card-placeholder, .sog-feature-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: radial-gradient(circle at 26% 16%, rgba(255,255,255,.28), transparent 28%), linear-gradient(135deg, var(--sog-accent), #871837 60%, #15131d 100%);
  color: rgba(255,255,255,.85);
}
.sog-card-placeholder svg, .sog-feature-placeholder svg { width: 28%; max-width: 160px; }
.sog-pagination { margin-top: 48px; display: flex; justify-content: center; }
.sog-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; }
.sog-pagination a, .sog-pagination span {
  min-width: 42px;
  min-height: 42px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--sog-line);
  font-weight: 900;
}
.sog-pagination .current, .sog-pagination a:hover { background: var(--sog-accent); border-color: var(--sog-accent); color: #fff; }

/* Single */
.sog-single-wrap {
  display: grid;
  grid-template-columns: minmax(0, 850px) 330px;
  gap: 48px;
  align-items: start;
}
.sog-entry-title {
  margin: 0 0 10px;
  font-size: clamp(42px, 5.8vw, 72px);
  line-height: .98;
  font-weight: 1000;
  letter-spacing: -.06em;
}
.sog-entry-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 20px; }
.sog-author-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; background: var(--sog-bg-soft); }
.sog-entry-image {
  margin: 22px 0 26px;
  overflow: hidden;
  border-radius: var(--sog-radius-lg);
  background: #eeeef5;
  box-shadow: var(--sog-shadow-soft);
}
.sog-entry-image img { width: 100%; max-height: 590px; object-fit: cover; }
.sog-entry-subtitle {
  margin: 0 0 22px;
  color: #11121a;
  font-size: clamp(21px, 2.2vw, 26px);
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -.025em;
}
.sog-share { display: flex; align-items: center; gap: 10px; margin: 22px 0; }
.sog-share a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--sog-ink);
  color: var(--sog-ink);
  border-radius: 999px;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.sog-share a:hover { background: var(--sog-ink); color: #fff; transform: translateY(-1px); }
.sog-share svg { width: 22px; height: 22px; fill: currentColor; stroke: currentColor; }
.sog-entry-content {
  font-size: 19px;
  line-height: 1.62;
}
.sog-entry-content > *:first-child { margin-top: 0; }
.sog-entry-content p { margin: 0 0 1.18em; }
.sog-entry-content a {
  color: var(--sog-accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
  text-decoration-color: rgba(223, 46, 53, .35);
  transition: text-decoration-color .18s ease, color .18s ease;
}
.sog-entry-content a:hover { text-decoration-color: currentColor; color: #b61628; }
.sog-entry-content h2, .sog-entry-content h3, .sog-entry-content h4 {
  margin: 1.65em 0 .55em;
  line-height: 1.08;
  letter-spacing: -.035em;
  font-weight: 1000;
}
.sog-entry-content h2 { font-size: clamp(31px, 3.2vw, 42px); }
.sog-entry-content h3 { font-size: clamp(26px, 2.7vw, 34px); }
.sog-entry-content h4 { font-size: 23px; }
.sog-entry-content strong { font-weight: 1000; color: #06070b; }
.sog-entry-content em { color: #252631; font-style: italic; background: linear-gradient(180deg, transparent 62%, rgba(223,46,53,.12) 0); }
.sog-entry-content ul, .sog-entry-content ol { padding-left: 1.25em; margin: 0 0 1.25em; }
.sog-entry-content li { margin: .46em 0; padding-left: .15em; }
.sog-entry-content ul li::marker { color: var(--sog-accent); font-size: 1.05em; }
.sog-entry-content ol li::marker { color: var(--sog-accent); font-weight: 1000; }
.sog-entry-content blockquote, .wp-block-quote {
  position: relative;
  margin: 32px 0;
  padding: 26px 30px 26px 86px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(223, 46, 53, .11), rgba(255, 255, 255, .98) 58%, rgba(71, 38, 133, .09));
  box-shadow: inset 0 0 0 1px rgba(223, 46, 53, .12);
  color: #151620;
  font-size: 20px;
  line-height: 1.45;
  font-weight: 760;
}
.sog-entry-content blockquote::before, .wp-block-quote::before {
  content: "";
  position: absolute;
  left: 26px;
  top: 28px;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background-color: var(--sog-accent);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M8 9h27a5 5 0 0 1 5 5v20a5 5 0 0 1-5 5H8a4 4 0 0 1-4-4V13a4 4 0 0 1 4-4Zm4 7v5h20v-5H12Zm0 9v3h20v-3H12Zm0 7v3h15v-3H12Zm28-14h4v17a4 4 0 0 1-4 4h-1.2A8 8 0 0 0 40 35V18Z"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48"><path d="M8 9h27a5 5 0 0 1 5 5v20a5 5 0 0 1-5 5H8a4 4 0 0 1-4-4V13a4 4 0 0 1 4-4Zm4 7v5h20v-5H12Zm0 9v3h20v-3H12Zm0 7v3h15v-3H12Zm28-14h4v17a4 4 0 0 1-4 4h-1.2A8 8 0 0 0 40 35V18Z"/></svg>') center / contain no-repeat;
}
.sog-entry-content blockquote p:last-child { margin-bottom: 0; }
.sog-entry-content .lead, .sog-entry-content .subtitle, .sog-entry-content .sog-subtitle, .sog-entry-content p.has-large-font-size {
  color: #101119;
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.24;
  font-weight: 930;
  letter-spacing: -.026em;
}
.sog-entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 0 0 1px var(--sog-line);
}
.sog-entry-content th, .sog-entry-content td { padding: 14px 16px; border-bottom: 1px solid var(--sog-line); text-align: left; vertical-align: top; }
.sog-entry-content th { background: var(--sog-bg-soft); font-weight: 1000; }
.sog-entry-content tr:last-child td { border-bottom: 0; }
.sog-entry-content figure { margin: 28px 0; }
.sog-entry-content figcaption { margin-top: 10px; color: var(--sog-muted); font-size: 14px; text-align: center; }
.sog-entry-content .wp-block-image img { border-radius: 18px; }
.sog-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0; }
.sog-post-tags a { padding: 7px 12px; border-radius: 999px; background: var(--sog-bg-soft); color: var(--sog-ink); font-size: 13px; font-weight: 900; }
.sog-post-tags a:hover { background: var(--sog-accent); color: #fff; }
.sog-author-box {
  margin: 36px 0 0;
  padding: 22px;
  display: flex;
  gap: 16px;
  align-items: center;
  border-radius: 20px;
  background: var(--sog-bg-soft);
}
.sog-author-box img { width: 64px; height: 64px; border-radius: 50%; }
.sog-author-box strong { display: block; font-size: 19px; line-height: 1.2; }
.sog-author-box p { margin: 5px 0 0; color: var(--sog-muted); font-size: 15px; line-height: 1.45; }
.sog-related { margin-top: 54px; }
.sog-sidebar {
  position: sticky;
  top: 136px;
  padding-top: 18px;
}
.admin-bar .sog-sidebar { top: 168px; }
.sog-sidebar-title {
  margin: 0 0 18px;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.sog-latest-list { display: grid; gap: 18px; }
.sog-latest-item { padding-bottom: 16px; border-bottom: 1px solid var(--sog-line); }
.sog-latest-item:last-child { border-bottom: 0; }
.sog-latest-item a { display: block; font-size: 18px; line-height: 1.15; font-weight: 1000; letter-spacing: -.022em; }
.sog-latest-item time { display: block; margin-top: 6px; color: var(--sog-muted); font-size: 12px; font-weight: 700; }

/* Contact */
.sog-page-header { margin-bottom: 26px; }
.sog-page-title { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: .98; font-weight: 1000; letter-spacing: -.055em; }
.sog-contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 44px;
  align-items: start;
}
.sog-contact-card {
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #fff5f6 100%);
  box-shadow: var(--sog-shadow-soft);
  border: 1px solid rgba(223, 46, 53, .11);
}
.sog-contact-form { display: grid; gap: 16px; }
.sog-contact-form label { display: grid; gap: 7px; font-size: 14px; font-weight: 950; color: var(--sog-ink); }
.sog-contact-form textarea { min-height: 170px; resize: vertical; }
.sog-hp-field { display: none !important; }
.sog-form-status { padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 850; }
.sog-form-status--ok { background: rgba(41, 156, 96, .12); color: #126439; }
.sog-form-status--error { background: rgba(223, 46, 53, .12); color: #9b1523; }

/* 404 and search */
.sog-empty-state {
  min-height: 52vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 0;
}
.sog-empty-state__icon {
  width: 116px;
  height: 116px;
  margin: 0 auto 22px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  color: #fff;
  background: radial-gradient(circle at 28% 22%, rgba(255,255,255,.28), transparent 30%), var(--sog-header-gradient);
  box-shadow: var(--sog-shadow-soft);
}
.sog-empty-state__icon svg { width: 72px; height: 72px; fill: currentColor; }
.sog-empty-state h1 { margin: 0 0 12px; font-size: clamp(46px, 7vw, 90px); line-height: .9; font-weight: 1000; letter-spacing: -.06em; }
.sog-empty-state p { max-width: 620px; margin: 0 auto 24px; color: var(--sog-muted); font-size: 19px; }

/* Footer */
.sog-site-footer {
  margin-top: 40px;
  background: var(--sog-footer-gradient);
  color: #fff;
}
.sog-footer-inner {
  display: grid;
  grid-template-columns: 1.35fr .8fr .8fr;
  gap: 46px;
  padding: 58px 0 38px;
}
.sog-footer-brand img { width: min(250px, 72vw); height: auto; }
.sog-footer-brand p { margin: 18px 0 0; max-width: 470px; color: rgba(255,255,255,.76); }
.sog-footer-title { margin: 0 0 14px; font-size: 15px; font-weight: 1000; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sog-footer-menu ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.sog-footer-menu a { color: #fff; font-weight: 850; opacity: .9; }
.sog-footer-menu a:hover { color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.sog-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 20px 0 28px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.72);
  font-size: 14px;
}
.sog-footer-bottom .sog-socials a { background: rgba(255,255,255,.08); }

/* WordPress alignment */
.alignwide { margin-left: min(-60px, -4vw); margin-right: min(-60px, -4vw); }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; gap: 16px; }
.bypostauthor { outline: none; }
.sticky .sog-card-title::before { content: "●"; color: var(--sog-accent); margin-right: 8px; }

@media (max-width: 1180px) {
  .sog-header-right { gap: 16px; }
  .sog-primary-nav a { padding-inline: 15px; font-size: 14px; }
  .sog-home-top { gap: 24px; }
  .sog-home-bottom, .sog-archive-grid, .sog-related-grid { gap: 24px; }
  .sog-single-wrap { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}

@media (max-width: 960px) {
  body { font-size: 18px; }
  .admin-bar .sog-site-header { top: 46px; }
  .sog-container, .sog-narrow { width: min(calc(100% - 32px), var(--sog-container)); }
  .sog-header-inner { min-height: 82px; gap: 14px; }
  .sog-logo img, .custom-logo { width: clamp(146px, 44vw, 210px); max-height: 58px; }
  .sog-header-right { margin-left: auto; }
  .sog-primary-nav {
    position: fixed;
    inset: 82px 0 auto 0;
    display: block;
    max-height: calc(100vh - 82px);
    overflow: auto;
    padding: 20px 16px 26px;
    background: var(--sog-header-gradient);
    box-shadow: 0 16px 34px rgba(8, 9, 13, .18);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .2s ease, transform .2s ease;
  }
  .admin-bar .sog-primary-nav { inset-top: 128px; }
  body.sog-menu-open .sog-primary-nav { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .sog-primary-nav ul { width: min(100%, 720px); margin: 0 auto; display: grid; gap: 11px; }
  .sog-primary-nav a { width: 100%; justify-content: center; min-height: 48px; font-size: 16px; }
  .sog-menu-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
  body.sog-menu-open .sog-menu-toggle span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  body.sog-menu-open .sog-menu-toggle span:nth-child(2) { opacity: 0; }
  body.sog-menu-open .sog-menu-toggle span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
  .sog-header-actions { gap: 8px; }
  .sog-header-actions .sog-socials { display: none; }
  .sog-home-top { grid-template-columns: 1fr; }
  .sog-feature-card, .sog-feature-card img { min-height: 360px; }
  .sog-home-bottom { grid-template-columns: repeat(2, 1fr); }
  .sog-archive-grid, .sog-related-grid { grid-template-columns: repeat(2, 1fr); }
  .sog-single-wrap, .sog-contact-shell { grid-template-columns: 1fr; }
  .sog-sidebar { position: static; padding-top: 12px; }
  .sog-footer-inner { grid-template-columns: 1fr 1fr; }
  .sog-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 700px) {
  .sog-site-main { padding: 30px 0 54px; }
  .sog-header-inner { min-height: 74px; }
  .sog-primary-nav { inset-top: 74px; }
  .sog-icon-button { width: 38px; height: 38px; }
  .sog-feature-card, .sog-feature-card img { min-height: 330px; }
  .sog-feature-card__content { left: 20px; right: 20px; bottom: 20px; }
  .sog-feature-card__title { font-size: 32px; }
  .sog-story-card__title, .sog-card-title { font-size: 24px; }
  .sog-home-bottom, .sog-archive-grid, .sog-related-grid { grid-template-columns: 1fr; gap: 28px; }
  .sog-entry-title, .sog-page-title, .sog-archive-title { font-size: 44px; letter-spacing: -.045em; }
  .sog-entry-content { font-size: 19px; line-height: 1.65; }
  .sog-entry-content blockquote, .wp-block-quote { padding: 76px 20px 22px; font-size: 19px; }
  .sog-entry-content blockquote::before, .wp-block-quote::before { left: 20px; top: 22px; }
  .sog-entry-content table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; border-radius: 14px; }
  .sog-entry-content th, .sog-entry-content td { min-width: 150px; }
  .sog-search-panel .search-form { flex-direction: column; }
  .sog-contact-card { padding: 20px; }
  .sog-footer-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 42px; }
  .sog-footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  body { font-size: 18px; }
  .sog-container, .sog-narrow { width: min(calc(100% - 24px), var(--sog-container)); }
  .sog-logo img, .custom-logo { width: 144px; }
  .sog-header-actions { gap: 4px; }
  .sog-feature-card, .sog-feature-card img { min-height: 300px; }
  .sog-feature-card__title { font-size: 29px; }
  .sog-entry-title, .sog-page-title, .sog-archive-title { font-size: 39px; }
  .sog-author-box { align-items: flex-start; }
}

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