/*
Theme Name: HimWP
Theme URI: https://himwp.dev
Author: HimWP
Author URI: https://himwp.dev
Description: A Mastercard-inspired editorial blog theme with warm cream canvas, circular portraits, orbital lines, and pill-shaped components.
Version: 2.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: himwp
Tags: blog, one-column, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, sticky-post, threaded-comments, translation-ready
*/

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Mastercard-inspired palette */
  --color-canvas: #F3F0EE;
  --color-lifted: #FCFBFA;
  --color-white: #FFFFFF;
  --color-ink: #141413;
  --color-charcoal: #262627;
  --color-slate: #696969;
  --color-granite: #555555;
  --color-graphite: #565656;
  --color-dust: #D1CDC7;
  --color-signal: #CF4500;
  --color-signal-light: #F37338;
  --color-clay: #9A3A0A;
  --color-link: #3860BE;
  --color-border: rgba(20, 20, 19, 0.1);

  /* Typography */
  --font-primary: 'Sofia Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  /* Spacing base 8px */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 128px;

  /* Layout */
  --max-width: 1280px;
  --max-content: 1000px;
  --gutter: 48px;

  /* Elevation */
  --shadow-lift: rgba(0, 0, 0, 0.04) 0px 4px 24px 0px;
  --shadow-elevated: rgba(0, 0, 0, 0.08) 0px 24px 48px 0px;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 20px;
  --radius-lg: 40px;
  --radius-pill: 999px;
  --radius-circle: 50%;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 450;
  line-height: 1.4;
  color: var(--color-ink);
  background-color: var(--color-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography — Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.5rem;
}

ul, ol {
  margin-bottom: 1.5rem;
}

h1 { font-size: clamp(40px, 5vw, 64px); }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.22; }
h3 { font-size: 24px; line-height: 1.2; }
h4 { font-size: 14px; font-weight: 700; line-height: 1.3; letter-spacing: normal; }

a {
  color: #aa5500;
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ─── Eyebrow Label ─── */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--color-signal-light);
  flex-shrink: 0;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.0032em;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-ink);
  color: var(--color-canvas);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-md);
  padding: 12px 32px;
}

.btn-primary:hover {
  opacity: 1;
  box-shadow: var(--shadow-elevated);
  color: var(--color-canvas);
}

.btn-secondary {
  background: var(--color-white);
  color: var(--color-ink);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-md);
  padding: 12px 32px;
}

.btn-secondary:hover {
  opacity: 1;
  background: var(--color-canvas);
  color: var(--color-ink);
}

.btn-signal {
  background: var(--color-signal);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 6px 36px;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.0013em;
}

.btn-signal:hover {
  opacity: 1;
  background: var(--color-clay);
}

/* ─── Satellite CTA (circular micro-button) ─── */
.satellite-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--color-white);
  border-radius: var(--radius-circle);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: var(--color-ink);
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.satellite-cta:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-elevated);
  opacity: 1;
}

/* ─── Floating Nav Pill ─── */
.site-header {
  position: fixed;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1100px;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: var(--radius-pill);
  padding: 16px 40px;
  box-shadow: var(--shadow-lift);
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-branding .site-logo img {
  height: 32px;
  width: auto;
}

.site-branding .site-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: -0.02em;
}

.site-navigation {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.site-navigation ul {
  display: flex;
  list-style: none;
  gap: 48px;
  margin: 0;
  padding: 0;
}

.site-navigation a {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-ink);
  letter-spacing: -0.003em;
  padding: 4px 0;
  position: relative;
}

.site-navigation a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-ink);
  transition: width 0.2s;
}

.site-navigation a:hover::after {
  width: 100%;
}

.site-navigation a:hover {
  opacity: 1;
}

/* Sub-menu dropdown */
.site-navigation .menu-item-has-children {
  position: relative;
}

.site-navigation .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
  padding: 8px 0;
  min-width: 180px;
  z-index: 100;
}

.site-navigation .menu-item-has-children:hover > .sub-menu {
  display: block;
}

.site-navigation .sub-menu a {
  display: block;
  padding: 8px 24px;
  white-space: nowrap;
  font-size: 14px;
  border-radius: 0;
}

.site-navigation .sub-menu a::after {
  display: none;
}

.site-navigation .sub-menu a:hover {
  background: var(--color-canvas);
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-ink);
  margin: 5px 0;
  transition: 0.3s;
}

.nav-search {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-radius: var(--radius-circle);
  cursor: pointer;
  color: var(--color-ink);
  font-size: 20px;
  transition: background 0.2s;
}

.nav-search:hover {
  background: var(--color-canvas);
}

@media (max-width: 1023px) {
  .site-navigation ul {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 767px) {
  .site-header {
    width: calc(100% - 32px);
    top: 16px;
  }
  .nav-pill {
    padding: 12px 20px;
  }
}

/* ─── Hero Section ─── */
.hero {
  padding-top: 160px;
  padding-bottom: var(--space-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.hero-content {
  position: relative;
}

.hero-content .ghost-headline {
  position: absolute;
  top: -40px;
  left: -20px;
  font-size: clamp(72px, 10vw, 128px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-dust);
  opacity: 0.4;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

.hero-content h1 {
  position: relative;
  z-index: 1;
  margin-bottom: var(--space-md);
}

.hero-content p {
  font-size: 18px;
  color: var(--color-slate);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-frame {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1;
  border-radius: var(--radius-circle);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-elevated);
}

.hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-frame .satellite-cta {
  position: absolute;
  bottom: 12px;
  right: -12px;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-frame {
    max-width: 300px;
  }
}

/* ─── Orbital Arc (decorative) ─── */
.orbital-arc {
  position: relative;
  height: 2px;
  margin: var(--space-2xl) 0;
  overflow: visible;
}

.orbital-arc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  width: 80%;
  height: 200px;
  border: 1.5px solid var(--color-signal-light);
  border-radius: 50%;
  border-bottom: none;
  opacity: 0.5;
}

/* ─── Section ─── */
.section {
  padding: var(--space-4xl) 0;
}

.section .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: 8px;
}

/* ─── Posts Grid (index) ─── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.post-card {
  display: flex;
  flex-direction: column;
}

.post-card-portrait {
  position: relative;
  width: 260px;
  height: 260px;
  border-radius: var(--radius-circle);
  overflow: hidden;
  margin-bottom: var(--space-md);
}

.post-card-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-portrait .satellite-cta {
  position: absolute;
  bottom: 4px;
  right: -8px;
}

.post-card .entry-meta {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-card .entry-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--color-signal-light);
}

.post-card .entry-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.post-card .entry-title a {
  color: var(--color-ink);
}

.post-card .entry-title a:hover {
  opacity: 0.7;
}

.post-card .entry-excerpt {
  font-size: 16px;
  font-weight: 450;
  color: var(--color-slate);
  line-height: 1.4;
  margin-bottom: var(--space-sm);
}

.post-card .entry-footer {
  font-size: 14px;
  color: var(--color-granite);
  margin-top: auto;
}

.post-card .entry-footer a {
  color: var(--color-granite);
}

.post-card .entry-footer a:hover {
  color: var(--color-ink);
}

/* Asymmetric grid for editorial feel */
.posts-grid .post-card:nth-child(3n + 1) {
  padding-top: 0;
}

.posts-grid .post-card:nth-child(3n + 2) {
  padding-top: var(--space-2xl);
}

/* ─── Single Post ─── */
.single .site-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 160px var(--gutter) var(--space-4xl);
}

.single .entry-header {
  margin-bottom: var(--space-xl);
}

.single .entry-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-sm);
}

.single .entry-meta {
  font-size: 14px;
  color: var(--color-slate);
  display: flex;
  align-items: center;
  gap: 8px;
}

.single .entry-meta::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--color-signal-light);
}

.single .post-thumbnail {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-elevated);
}

.single .post-thumbnail img {
  width: 100%;
  height: auto;
}

.single .entry-content {
  font-size: 18px;
  font-weight: 450;
  line-height: 1.6;
}

.single .entry-content p {
  margin-bottom: 1.5em;
}

.single .entry-content h2 {
  margin: 2.5em 0 0.75em;
}

.single .entry-content h3 {
  margin: 2em 0 0.75em;
}

.single .entry-content ul,
.single .entry-content ol {
  margin-bottom: 1.5em;
  padding-left: 1.5em;
}

.single .entry-content li {
  margin-bottom: 0.4em;
}

.single .entry-content blockquote {
  border-left: 3px solid var(--color-signal-light);
  margin: 2em 0;
  padding: 1em 1.5em;
  background: var(--color-lifted);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--color-slate);
}

.single .entry-content pre {
  background: var(--color-ink);
  color: var(--color-canvas);
  border-radius: var(--radius-md);
  padding: 1.5em;
  overflow-x: auto;
  font-size: 0.875em;
  margin-bottom: 1.5em;
}

.single .entry-content code {
  font-family: 'SF Mono', 'Fira Code', Menlo, monospace;
  font-size: 0.875em;
}

.single .entry-content :not(pre) > code {
  background: var(--color-lifted);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.single .entry-footer {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-slate);
  display: flex;
  gap: var(--space-md);
}

/* ─── Page ─── */
.page .site-main {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 160px var(--gutter) var(--space-4xl);
}

.page .entry-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.page .entry-content {
  font-size: 18px;
  font-weight: 450;
  line-height: 1.6;
}

/* ─── Sidebar ─── */
.widget-area {
  padding-top: var(--space-3xl);
}

.widget {
  margin-bottom: var(--space-xl);
}

.widget-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
}

.widget li a {
  color: var(--color-graphite);
  font-size: 15px;
}

.widget li a:hover {
  color: var(--color-ink);
}

.widget_search .search-form {
  display: flex;
}

.widget_search input[type="search"] {
  flex: 1;
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill) 0 0 var(--radius-pill);
  font-family: var(--font-primary);
  font-size: 15px;
  background: var(--color-white);
  color: var(--color-ink);
}

.widget_search button {
  padding: 12px 20px;
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--color-lifted);
  color: var(--color-ink);
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: 15px;
}

/* ─── Site Footer ─── */
.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 40px 0;
}

.site-footer .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}

.footer-copyright {
  font-size: 14px;
  font-weight: 450;
  color: var(--color-slate);
}

@media (max-width: 767px) {

}

/* ─── Pagination ─── */
.pagination {
  margin-top: var(--space-3xl);
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-circle);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
  text-decoration: none;
  transition: background 0.2s;
}

.pagination .page-numbers:hover {
  background: var(--color-lifted);
}

.pagination .page-numbers.current {
  background: var(--color-ink);
  color: var(--color-canvas);
}

/* ─── Post Navigation ─── */
.post-navigation {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
  flex: 1;
}

.post-navigation a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink);
}

.post-navigation .nav-next {
  text-align: right;
}

/* ─── Comments ─── */
.comments-area {
  margin-top: var(--space-3xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--color-border);
}

.comments-title {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.comment-list {
  list-style: none;
}

.comment-body {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-meta img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-circle);
  object-fit: cover;
}

.comment-meta .fn {
  font-weight: 500;
}

.comment-meta .says {
  display: none;
}

.comment-metadata {
  font-size: 13px;
  color: var(--color-slate);
  margin-bottom: var(--space-sm);
}

.comment-metadata a {
  color: var(--color-slate);
}

.comment-content p {
  font-size: 15px;
  line-height: 1.5;
}

.reply a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink);
}

/* Comment Form */
.comment-respond {
  margin-top: var(--space-xl);
}

.comment-respond .comment-reply-title {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: var(--space-md);
}

.comment-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 15px;
  background: var(--color-white);
  color: var(--color-ink);
  margin-bottom: var(--space-sm);
}

.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}

.comment-form .form-submit input[type="submit"] {
  padding: 12px 32px;
  background: var(--color-ink);
  color: var(--color-canvas);
  border: 1.5px solid var(--color-ink);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s;
}

.comment-form .form-submit input[type="submit"]:hover {
  box-shadow: var(--shadow-elevated);
}

/* ─── 404 Page ─── */
.error-404 {
  text-align: center;
  padding: 200px var(--gutter) var(--space-4xl);
}

.error-404 .page-title {
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 500;
  color: var(--color-dust);
  margin-bottom: var(--space-md);
}

.error-404 .page-content p {
  font-size: 18px;
  color: var(--color-slate);
  margin-bottom: var(--space-md);
}

/* ─── Accessibility ─── */
.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-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-elevated);
  clip: auto !important;
  clip-path: none;
  color: var(--color-ink);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

/* ─── Sticky Posts ─── */
.sticky .post-card-portrait::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-signal-light);
}

/* ─── Global Content ─── */
.site-content {
  min-height: 100vh;
}

/* ─── Ghost Watermark ─── */
.ghost-watermark {
  position: absolute;
  font-size: clamp(72px, 12vw, 160px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-canvas);
  opacity: 0.6;
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
  user-select: none;
}

/* ─── Card with Pill Shape ─── */
.pill-card {
  border-radius: var(--radius-lg);
  background: var(--color-white);
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition: box-shadow 0.3s;
}

.pill-card:hover {
  box-shadow: var(--shadow-elevated);
}

.pill-card .pill-card-image {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
}

.pill-card .pill-card-content {
  padding: var(--space-lg);
}

.pill-card .pill-chip {
  display: inline-block;
  background: var(--color-white);
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

/* ─── Full-bleed Hero Frame ─── */
.hero-frame-stadium {
  width: calc(100% - 96px);
  margin: 0 auto;
  aspect-ratio: 16/9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-ink);
  box-shadow: var(--shadow-elevated);
}

.hero-frame-stadium img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Mobile Nav Overlay ─── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 19, 0.95);
  z-index: 999;
  justify-content: center;
  align-items: center;
}

.mobile-nav-overlay.active {
  display: flex;
}

.mobile-nav-overlay ul {
  list-style: none;
  text-align: center;
}

.mobile-nav-overlay li {
  margin-bottom: 24px;
}

.mobile-nav-overlay a {
  font-size: 32px;
  font-weight: 500;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.mobile-nav-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 32px;
  cursor: pointer;
}

/* ─── Skip Link ─── */
.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 10000;
  background: var(--color-ink);
  color: var(--color-canvas);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

/* =============================================
   ARCHIVE / CATEGORY / TAG PAGES
   ============================================= */
.archive-header {
  text-align: center;
  margin-bottom: 60px;
  margin-top: 100px;
}

.archive-title {
  margin-bottom: 0.5rem;
}

.archive-description {
  font-size: 18px;
  color: var(--color-muted);
}

.post-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.post-card-rect {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.post-card-rect:hover {
  box-shadow: var(--shadow-lift);
}

.post-card-thumb {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}

.post-card-rect:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 24px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-title {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.post-card-title a {
  color: var(--color-ink);
}

.post-card-title a:hover {
  opacity: 0.7;
}

.post-card-excerpt {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
  flex: 1;
}

.btn-read-more {
  display: inline-block;
  padding: 10px 24px;
  background: var(--color-ink);
  color: var(--color-canvas);
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.btn-read-more:hover {
  opacity: 0.8;
}

.pagination {
  text-align: center;
  margin-bottom: 60px;
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.no-posts {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 0;
}

@media (max-width: 960px) {
  .post-grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .post-grid-3col {
    grid-template-columns: 1fr;
  }
}
