/*
Theme Name: howto-web
Theme URI: https://howto-web.com
Author: howto-web.com
Author URI: https://howto-web.com
Description: Web開発の最前線を発信する日本語テックブログのWordPress Parent Theme。デザイン・コーディング・AIツールを中心に、中級者向けの実践的な情報を届けます。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: howto-web
Tags: blog, dark, japanese, technology, custom-colors, custom-menu, custom-logo, featured-images, full-width-template, editor-style, block-patterns
*/

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --hw-bg:         #080808;
  --hw-surface:    #111111;
  --hw-surface2:   #1a1a1a;
  --hw-accent:     #ff7c3d;
  --hw-accent2:    #00d4ff;
  --hw-accent3:    #ff4d6d;
  --hw-text:       #f0ede8;
  --hw-muted:      #6b6b6b;
  --hw-border:     #222222;
  --hw-font-sans:  'Noto Sans JP', sans-serif;
  --hw-font-serif: 'Noto Serif JP', serif;
  --hw-font-mono:  'Space Mono', monospace;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--hw-bg);
  color: var(--hw-text);
  font-family: var(--hw-font-sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--hw-accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--hw-text); }

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

ul, ol { list-style: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hw-font-serif);
  font-weight: 700;
  line-height: 1.3;
  color: var(--hw-text);
}

h1 { font-size: clamp(36px, 6vw, 72px); letter-spacing: -0.03em; }
h2 { font-size: clamp(24px, 4vw, 40px); letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 3vw, 28px); }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: 1.5rem; color: var(--hw-text); }

strong { font-weight: 700; }
em { font-style: italic; }

/* ============================================================
   LAYOUT
   ============================================================ */
.hw-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.hw-container--narrow {
  max-width: 800px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--hw-border);
  background: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.site-logo {
  font-family: var(--hw-font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--hw-accent) !important;
  letter-spacing: -0.02em;
  line-height: 1;
}
.site-logo:hover { color: var(--hw-accent) !important; opacity: 0.85; }
.site-logo span { color: var(--hw-muted); }

/* Primary nav */
.primary-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.primary-navigation a {
  font-size: 13px;
  font-weight: 400;
  color: var(--hw-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.primary-navigation a:hover { color: var(--hw-text); }

/* Subscribe button */
.nav-cta-btn {
  font-family: var(--hw-font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 20px;
  background: var(--hw-accent);
  color: #080808 !important;
  border-radius: 2px;
  letter-spacing: 0.05em;
  transition: opacity 0.2s;
}
.nav-cta-btn:hover { opacity: 0.85; color: #080808 !important; }

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--hw-border);
  color: var(--hw-text);
  padding: 6px 10px;
  font-family: var(--hw-font-mono);
  font-size: 12px;
  cursor: pointer;
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding-top: 64px;
  position: relative;
  overflow: hidden;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

.hero__deco {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--hw-font-serif);
  font-size: 320px;
  font-weight: 900;
  color: rgba(255,255,255,0.015);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6rem 2rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--hw-accent);
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__eyebrow::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: var(--hw-accent);
}

.hero__headline {
  font-family: var(--hw-font-serif);
  font-size: clamp(52px, 9vw, 120px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.hero__headline .accent {
  color: var(--hw-accent);
}

.hero__sub {
  font-size: 16px;
  color: var(--hw-muted);
  max-width: 480px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__bottom {
  padding: 1.5rem 2rem;
  border-top: 1px solid var(--hw-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__stats {
  display: flex;
  gap: 3rem;
}

.stat__num {
  display: block;
  font-family: var(--hw-font-mono);
  font-size: 24px;
  font-weight: 700;
}

.stat__label {
  display: block;
  font-size: 11px;
  color: var(--hw-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-wrapper {
  background: var(--hw-accent);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}

.marquee-track {
  display: inline-flex;
  animation: hw-marquee 24s linear infinite;
}

.marquee-item {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #080808;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
}

.marquee-item::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: rgba(8,8,8,0.4);
  border-radius: 50%;
}

@keyframes hw-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
.hw-section {
  padding: 5rem 2rem;
}

.hw-section--surface {
  background: var(--hw-surface);
}

.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hw-border);
}

.section-title {
  font-family: var(--hw-font-serif);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-title__label {
  display: block;
  font-family: var(--hw-font-mono);
  font-size: 11px;
  font-weight: 400;
  color: var(--hw-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.view-all-link {
  font-family: var(--hw-font-mono);
  font-size: 12px;
  color: var(--hw-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.view-all-link::after { content: '→'; }
.view-all-link:hover { color: var(--hw-accent); }

/* ============================================================
   CATEGORY BADGES
   ============================================================ */
.cat-badge {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
  display: inline-block;
  line-height: 1;
}

.cat-badge--ai     { background: rgba(255,124,61,0.12); color: var(--hw-accent); border: 1px solid rgba(255,124,61,0.3); }
.cat-badge--code   { background: rgba(0,212,255,0.10); color: var(--hw-accent2); border: 1px solid rgba(0,212,255,0.25); }
.cat-badge--design { background: rgba(255,77,109,0.10); color: var(--hw-accent3); border: 1px solid rgba(255,77,109,0.25); }
.cat-badge--tool   { background: rgba(255,200,0,0.10); color: #ffc800; border: 1px solid rgba(255,200,0,0.25); }
.cat-badge--other  { background: rgba(255,255,255,0.06); color: var(--hw-muted); border: 1px solid var(--hw-border); }

/* ============================================================
   FILTER TAGS
   ============================================================ */
.filter-tag {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  padding: 5px 12px;
  border: 1px solid var(--hw-border);
  border-radius: 2px;
  color: var(--hw-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  background: transparent;
  transition: all 0.2s;
  line-height: 1;
}
.filter-tag:hover,
.filter-tag.is-active {
  border-color: var(--hw-accent);
  color: var(--hw-accent);
  background: rgba(255,124,61,0.06);
}

/* ============================================================
   FEATURED POST
   ============================================================ */
.featured-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hw-border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  transition: border-color 0.3s;
  cursor: pointer;
  text-decoration: none;
}
.featured-post:hover { border-color: var(--hw-accent); }

.featured-post__visual {
  background: var(--hw-surface);
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.featured-post__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.featured-post__visual-deco {
  font-family: var(--hw-font-serif);
  font-size: 100px;
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  position: absolute;
  user-select: none;
}

.featured-post__content {
  padding: 3rem;
  background: var(--hw-surface);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.featured-post__title {
  font-family: var(--hw-font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  margin: 1rem 0;
  color: var(--hw-text);
}

.featured-post__excerpt {
  font-size: 14px;
  color: var(--hw-muted);
  line-height: 1.8;
  flex: 1;
  margin-bottom: 2rem;
}

.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hw-border);
  font-family: var(--hw-font-mono);
  font-size: 11px;
}

.post-meta__date { color: var(--hw-muted); }
.post-meta__read { color: var(--hw-accent); }

/* ============================================================
   BLOG GRID
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--hw-border);
  border: 1px solid var(--hw-border);
  border-radius: 4px;
  overflow: hidden;
}

.blog-card {
  background: var(--hw-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.2s;
  text-decoration: none;
  color: inherit;
}
.blog-card:hover { background: var(--hw-surface); }

.blog-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.blog-card__num {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  color: var(--hw-border);
  letter-spacing: 0.1em;
}

.blog-card__title {
  font-family: var(--hw-font-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--hw-text);
  flex: 1;
}

.blog-card__excerpt {
  font-size: 13px;
  color: var(--hw-muted);
  line-height: 1.7;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--hw-border);
  margin-top: auto;
  font-family: var(--hw-font-mono);
  font-size: 11px;
  color: var(--hw-muted);
}

.blog-card__arrow {
  font-size: 16px;
  color: var(--hw-border);
  transition: color 0.2s, transform 0.2s;
}
.blog-card:hover .blog-card__arrow {
  color: var(--hw-accent);
  transform: translateX(4px);
}

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-hero {
  padding: 8rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.post-hero__meta {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.post-hero__title {
  font-family: var(--hw-font-serif);
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}

.post-hero__info {
  display: flex;
  gap: 2rem;
  font-family: var(--hw-font-mono);
  font-size: 12px;
  color: var(--hw-muted);
  letter-spacing: 0.05em;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hw-border);
}

.post-thumb {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 4rem;
  border: 1px solid var(--hw-border);
}

/* ============================================================
   POST CONTENT (Gutenberg)
   ============================================================ */
.entry-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem 5rem;
  font-size: 16px;
  line-height: 1.9;
  color: var(--hw-text);
}

.entry-content h2 {
  font-size: 28px;
  margin: 3rem 0 1.2rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--hw-border);
}

.entry-content h3 {
  font-size: 22px;
  margin: 2.5rem 0 1rem;
  color: var(--hw-accent);
}

.entry-content h4 {
  font-size: 18px;
  margin: 2rem 0 0.8rem;
}

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

.entry-content a {
  color: var(--hw-accent);
  border-bottom: 1px solid rgba(255,124,61,0.3);
  transition: border-color 0.2s;
}
.entry-content a:hover { border-color: var(--hw-accent); }

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.5rem;
  list-style: initial;
}
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content blockquote {
  border-left: 3px solid var(--hw-accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--hw-surface);
  border-radius: 0 4px 4px 0;
  color: var(--hw-muted);
  font-style: italic;
}

.entry-content code {
  font-family: var(--hw-font-mono);
  font-size: 14px;
  background: var(--hw-surface2);
  padding: 2px 6px;
  border-radius: 2px;
  color: var(--hw-accent);
}

.entry-content pre {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.entry-content pre code {
  background: none;
  padding: 0;
  color: #f0ede8;
  font-size: 14px;
}

.entry-content figure {
  margin: 2rem 0;
}

.entry-content figure img {
  border-radius: 4px;
  border: 1px solid var(--hw-border);
  width: 100%;
}

.entry-content figcaption {
  font-family: var(--hw-font-mono);
  font-size: 12px;
  color: var(--hw-muted);
  text-align: center;
  margin-top: 0.75rem;
  letter-spacing: 0.05em;
}

.entry-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--hw-border);
  margin: 3rem 0;
}

/* Gutenberg table */
.entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 14px;
}
.entry-content th {
  background: var(--hw-surface);
  font-family: var(--hw-font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hw-muted);
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--hw-border);
}
.entry-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hw-border);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 3rem 2rem;
}

.page-numbers {
  font-family: var(--hw-font-mono);
  font-size: 12px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--hw-border);
  border-radius: 2px;
  color: var(--hw-muted);
  transition: all 0.2s;
}
.page-numbers:hover { border-color: var(--hw-accent); color: var(--hw-accent); }
.page-numbers.current { background: var(--hw-accent); color: #080808; border-color: var(--hw-accent); }
.page-numbers.dots { border: none; }

/* ============================================================
   LEARNING TIMELINE
   ============================================================ */
.timeline {
  border-left: 1px solid var(--hw-border);
  padding-left: 2rem;
}

.timeline__item {
  padding-bottom: 2.5rem;
  position: relative;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hw-border);
  border: 2px solid var(--hw-bg);
  transition: background 0.2s;
}

.timeline__item:hover::before,
.timeline__item.is-current::before {
  background: var(--hw-accent);
}

.timeline__date {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  color: var(--hw-muted);
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.timeline__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--hw-text);
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: 13px;
  color: var(--hw-muted);
  line-height: 1.7;
  margin-bottom: 8px;
}

.status-badge {
  display: inline-block;
  font-family: var(--hw-font-mono);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 2px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.status-badge--done { background: rgba(255,124,61,0.1); color: var(--hw-accent); }
.status-badge--now  { background: rgba(0,212,255,0.1); color: var(--hw-accent2); }
.status-badge--next { background: rgba(255,255,255,0.05); color: var(--hw-muted); }

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--hw-accent);
  padding: 4rem 2rem;
}

.newsletter-section__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.newsletter-section__title {
  font-family: var(--hw-font-serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  color: #080808;
  line-height: 1.2;
  margin-bottom: 8px;
}

.newsletter-section__sub {
  font-size: 14px;
  color: rgba(8,8,8,0.6);
  margin: 0;
}

.newsletter-section__form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.newsletter-section__input {
  background: rgba(8,8,8,0.15);
  border: 1px solid rgba(8,8,8,0.3);
  border-radius: 2px;
  padding: 12px 16px;
  font-family: var(--hw-font-sans);
  font-size: 14px;
  color: #080808;
  width: 260px;
  outline: none;
}
.newsletter-section__input::placeholder { color: rgba(8,8,8,0.45); }
.newsletter-section__input:focus { border-color: #080808; }

.newsletter-section__btn {
  background: #080808;
  color: var(--hw-accent);
  border: none;
  padding: 12px 24px;
  font-family: var(--hw-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.newsletter-section__btn:hover { opacity: 0.85; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--hw-border);
  padding: 3rem 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.site-footer__logo {
  font-family: var(--hw-font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--hw-accent) !important;
}
.site-footer__logo span { color: var(--hw-muted); }

.footer-navigation ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-navigation a {
  font-size: 13px;
  color: var(--hw-muted);
}
.footer-navigation a:hover { color: var(--hw-text); }

.site-footer__copy {
  font-family: var(--hw-font-mono);
  font-size: 11px;
  color: var(--hw-muted);
  letter-spacing: 0.05em;
}

/* ============================================================
   404
   ============================================================ */
.error-404 {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem;
}

.error-404__num {
  font-family: var(--hw-font-serif);
  font-size: clamp(80px, 15vw, 180px);
  font-weight: 900;
  color: rgba(255,255,255,0.04);
  line-height: 1;
}

.error-404__title {
  font-size: 28px;
  margin-bottom: 1rem;
}

.error-404__sub {
  font-size: 16px;
  color: var(--hw-muted);
  margin-bottom: 2rem;
}

.btn-back {
  font-family: var(--hw-font-mono);
  font-size: 13px;
  font-weight: 700;
  padding: 12px 28px;
  background: var(--hw-accent);
  color: #080808;
  border-radius: 2px;
  letter-spacing: 0.05em;
  display: inline-block;
  transition: opacity 0.2s;
}
.btn-back:hover { opacity: 0.85; color: #080808; }

/* ============================================================
   GUTENBERG EDITOR STYLES
   ============================================================ */
.wp-block-image img { border-radius: 4px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: 0;
  padding: 8px 16px;
  background: var(--hw-accent);
  color: #080808;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes hw-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hw-animate { opacity: 0; }
.hw-animate.is-visible {
  animation: hw-fade-up 0.5s ease forwards;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .primary-navigation { display: none; }
  .primary-navigation.is-open {
    display: block;
    position: fixed;
    inset: 64px 0 0;
    background: var(--hw-bg);
    padding: 2rem;
    border-top: 1px solid var(--hw-border);
  }
  .primary-navigation.is-open ul {
    flex-direction: column;
    gap: 1.5rem;
  }
  .primary-navigation.is-open a {
    font-size: 18px;
  }
  .menu-toggle { display: block; }

  .featured-post { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }

  .hero__headline { font-size: clamp(44px, 12vw, 80px); }
  .hero__bottom { padding: 1rem 1.5rem; gap: 1rem; flex-wrap: wrap; }
  .hero__stats { gap: 1.5rem; }

  .newsletter-section__inner { flex-direction: column; align-items: stretch; }
  .newsletter-section__form { flex-direction: column; }
  .newsletter-section__input { width: 100%; }

  .site-footer__inner { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-navigation ul { flex-wrap: wrap; justify-content: center; gap: 1rem; }

  .post-hero { padding: 6rem 1.5rem 2rem; }
  .entry-content { padding: 0 1.5rem 3rem; }
}

@media (max-width: 480px) {
  .blog-grid { grid-template-columns: 1fr; }
  .hw-section { padding: 3rem 1.5rem; }
}
