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

:root {
  --amber: #f5a623;
  --amber-dark: #d4891a;
  --amber-dim: rgba(245,166,35,0.1);
  --bg: #f5f2eb;
  --bg2: #efeae0;
  --bg3: #e8e2d5;
  --white: #ffffff;
  --text: #1a1a1a;
  --text2: #3d3a35;
  --muted: rgba(26,26,26,0.45);
  --border: rgba(245,166,35,0.3);
  --border-dim: rgba(26,26,26,0.1);
}

html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  line-height: 1.6;
}

/* ── HEADER ── */
.site-header {
  background: #1a1a1a;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-goose { font-size: 1.4rem; }

.logo-text {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: #f0ead8;
}

.logo-orange { color: var(--amber); }

.nav-back {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: rgba(240,234,216,0.5);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-back:hover { color: var(--amber); }

/* ── TICKER ── */
.header-ticker {
  background: var(--amber);
  overflow: hidden;
  padding: 0.3rem 0;
}

.ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
}

.ticker-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: #1a1a1a;
  font-weight: 600;
  padding-right: 6rem;
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── HERO ── */
.blog-hero {
  background: #1a1a1a;
  padding: 4rem 2rem 3rem;
  text-align: center;
}

.hero-inner { max-width: 700px; margin: 0 auto; }

.hero-eyebrow {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: rgba(245,166,35,0.7);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(4rem, 12vw, 8rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  color: #f0ead8;
  margin-bottom: 1rem;
}

.hero-title .orange { color: var(--amber); }

.hero-sub {
  font-size: 1rem;
  color: rgba(240,234,216,0.5);
  font-style: italic;
  font-weight: 300;
}

/* ── GATES ── */
.gates-section {
  background: var(--white);
  border-bottom: 1px solid var(--border-dim);
  padding: 2.5rem 2rem;
}

.gates-inner { max-width: 1100px; margin: 0 auto; }

.gates-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.gates-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: var(--amber-dark);
}

.gates-sub {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.gates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.gate-card {
  display: flex;
  flex-direction: column;
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid var(--border-dim);
  background: var(--bg);
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  overflow: hidden;
}

.gate-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.gate-card:hover {
  border-color: var(--border);
  background: var(--white);
  transform: translateY(-2px);
}
.gate-card:hover::after { transform: scaleX(1); }

.gate-num {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--amber);
  margin-bottom: 0.6rem;
}

.gate-icon {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  display: block;
}

.gate-name {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}

.gate-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  color: var(--muted);
  letter-spacing: 0.1em;
}

.gate-arrow {
  position: absolute;
  bottom: 1rem; right: 1rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  color: var(--amber);
  opacity: 0;
  transition: opacity 0.2s;
}
.gate-card:hover .gate-arrow { opacity: 1; }

/* ── DIVIDER ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.divider-line {
  flex: 1;
  height: 1px;
  background: var(--border-dim);
}

.divider-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--muted);
  white-space: nowrap;
}

/* ── POSTS LIST ── */
.posts-section { padding: 0 2rem 4rem; }
.posts-inner { max-width: 1100px; margin: 0 auto; }

.post-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: start;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border-dim);
  transition: background 0.15s;
}

.post-row:last-child { border-bottom: none; }
.post-row:hover { background: rgba(245,166,35,0.03); }

.post-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 0.2rem;
}

.post-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  white-space: nowrap;
}

.post-tag {
  display: inline-block;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.15em;
  color: var(--amber-dark);
  background: var(--amber-dim);
  padding: 0.2rem 0.5rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.2s;
}
.post-tag:hover { background: rgba(245,166,35,0.2); }

.post-content { min-width: 0; }

.post-title-link { text-decoration: none; color: inherit; }

.post-title {
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--text);
  transition: color 0.2s;
}
.post-title-link:hover .post-title { color: var(--amber-dark); }

.post-excerpt {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.8rem;
}

.post-thumb {
  width: 90px;
  height: 60px;
  overflow: hidden;
  flex-shrink: 0;
}
.post-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.post-read {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--amber-dark);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}
.post-read:hover { color: var(--amber); }

/* ── PAGINATION ── */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0 0;
}

.page-btn {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border-dim);
  padding: 0.5rem 1.2rem;
  transition: border-color 0.2s, color 0.2s;
}
.page-btn:hover { border-color: var(--amber); color: var(--amber-dark); }

.page-info {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

/* ── SINGLE POST ── */
.post-header {
  background: #1a1a1a;
  padding: 3rem 2rem;
}

.post-header-inner {
  max-width: 780px;
  margin: 0 auto;
}

.post-header-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.post-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.04em;
  line-height: 1;
  color: #f0ead8;
  margin-bottom: 1rem;
}

.post-date, .post-reading {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: rgba(240,234,216,0.4);
}

.post-lead {
  font-size: 1.1rem;
  color: rgba(240,234,216,0.6);
  font-style: italic;
  line-height: 1.7;
  margin-top: 0.8rem;
}

.post-feature-image {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}
.post-feature-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.post-body {
  padding: 3rem 2rem;
  background: var(--white);
}

.post-body-inner {
  max-width: 780px;
  margin: 0 auto;
}

/* Ghost content styles */
.gh-content h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  letter-spacing: 0.05em;
  color: var(--text);
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--amber);
}

.gh-content h3 {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--text);
  margin: 2rem 0 0.8rem;
}

.gh-content p {
  margin-bottom: 1.4rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text2);
}

.gh-content a {
  color: var(--amber-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gh-content ul, .gh-content ol {
  margin: 0 0 1.4rem 1.5rem;
}

.gh-content li {
  margin-bottom: 0.4rem;
  color: var(--text2);
  line-height: 1.7;
}

.gh-content blockquote {
  border-left: 3px solid var(--amber);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--muted);
}

.gh-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

.gh-content code {
  font-family: 'Share Tech Mono', monospace;
  background: var(--bg2);
  padding: 0.15rem 0.4rem;
  font-size: 0.85em;
}

.gh-content pre {
  background: #1a1a1a;
  color: #f0ead8;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}

.gh-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.gh-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.gh-content th {
  background: #1a1a1a;
  color: #f0ead8;
  padding: 0.6rem 1rem;
  text-align: left;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.gh-content td {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid var(--border-dim);
}

.gh-content tr:hover td { background: var(--amber-dim); }

/* ── POST FOOTER ── */
.post-footer {
  padding: 2rem;
  background: var(--bg);
  border-top: 1px solid var(--border-dim);
}

.post-footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.post-tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }

.back-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.back-link:hover { color: var(--amber-dark); }

/* ── RELATED ── */
.related-posts {
  padding: 3rem 2rem;
  background: var(--white);
}

.related-inner { max-width: 1100px; margin: 0 auto; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.related-card {
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border-dim);
  background: var(--bg);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}
.related-card:hover { border-color: var(--border); transform: translateY(-2px); }

.related-img { height: 150px; overflow: hidden; }
.related-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.related-body { padding: 1rem; }

.related-date {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  display: block;
  margin-bottom: 0.4rem;
}

.related-title {
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text);
}

/* ── TAG PAGE ── */
.tag-hero {
  background: #1a1a1a;
  padding: 3rem 2rem;
}

.tag-hero-inner { max-width: 1100px; margin: 0 auto; }

.tag-back {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: rgba(240,234,216,0.4);
  text-decoration: none;
  display: block;
  margin-bottom: 1.5rem;
  transition: color 0.2s;
}
.tag-back:hover { color: var(--amber); }

.tag-gate {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  margin-bottom: 0.5rem;
}

.gate-label {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--amber);
}

.gate-big {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.2em;
  color: rgba(240,234,216,0.3);
  text-transform: uppercase;
}

.tag-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: 0.05em;
  line-height: 1;
  color: #f0ead8;
  margin-bottom: 0.5rem;
}

.tag-desc {
  font-size: 0.95rem;
  color: rgba(240,234,216,0.5);
  font-style: italic;
  margin-bottom: 0.5rem;
}

.tag-count {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(245,166,35,0.6);
}

/* ── FOOTER ── */
.site-footer {
  background: #1a1a1a;
  padding: 1.5rem 2rem;
  margin-top: 4rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.15em;
  color: var(--amber);
}

.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: rgba(240,234,216,0.2);
}

.footer-link {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: rgba(240,234,216,0.3);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--amber); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .post-row {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .post-meta { flex-direction: row; align-items: center; }
  .post-right { flex-direction: row; align-items: center; }
  .post-thumb { width: 70px; height: 48px; }
  .gates-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { padding: 0.8rem 1rem; }
}
