@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Syne:wght@400;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;1,9..40,300&display=swap');

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

:root {
  --ink: #0f0e0c;
  --paper: #f5f2eb;
  --accent: #c8392b;
  --muted: #6b6660;
  --border: #d4cfc5;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Syne', sans-serif;
  --body: 'DM Sans', sans-serif;
}

html { font-size: 16px; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── LAYOUT ─── */
.site-wrapper { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ─── HEADER ─── */
.site-header {
  border-bottom: 2px solid var(--ink);
  padding: 20px 0 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.site-masthead { text-decoration: none; }

.masthead-title {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -1.5px;
  line-height: 1;
  text-transform: uppercase;
  color: var(--ink);
}

.masthead-title span { color: var(--accent); }

.masthead-tagline {
  font-family: var(--body);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.site-nav { display: flex; gap: 20px; align-items: flex-end; }

.site-nav a {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.15s;
}

.site-nav a:hover, .site-nav a.current { color: var(--accent); }

/* ─── DATE STRIP ─── */
.date-strip {
  padding: 7px 0;
  border-bottom: 0.5px solid var(--border);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ─── TICKER ─── */
.ticker-wrap {
  background: var(--ink);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ticker-inner {
  display: inline-block;
  animation: ticker 22s linear infinite;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--paper);
}

.ticker-inner .dot { color: var(--accent); margin: 0 24px; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ─── HOME HERO ─── */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-bottom: 1.5px solid var(--ink);
  margin-top: 28px;
}

.hero-main {
  border-right: 0.5px solid var(--border);
  padding-right: 32px;
  padding-bottom: 28px;
}

.post-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.post-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  font-family: var(--serif);
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}

.hero-excerpt {
  font-size: 15px;
  font-weight: 300;
  color: #3a3835;
  line-height: 1.75;
  margin-bottom: 20px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.post-meta .sep { color: var(--border); }

.read-btn {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 20px;
  transition: background 0.15s;
}

.read-btn:hover { background: var(--accent); color: var(--paper); }

/* ─── HERO SIDEBAR ─── */
.hero-sidebar {
  padding-left: 32px;
  padding-bottom: 28px;
  display: flex;
  flex-direction: column;
}

.side-post {
  padding: 16px 0;
  border-bottom: 0.5px solid var(--border);
  transition: opacity 0.15s;
}

.side-post:last-child { border-bottom: none; }
.side-post:hover .side-title { color: var(--accent); }

.side-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.side-title {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.2;
  transition: color 0.15s;
}

.side-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.55;
}

/* ─── POST GRID ─── */
.section-wrap {
  padding: 28px 0;
  border-bottom: 1.5px solid var(--ink);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.section-label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-label::after {
  content: '';
  display: block;
  height: 1.5px;
  background: var(--ink);
  width: 60px;
}

.view-all {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}

.view-all:hover { text-decoration: underline; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.post-card { cursor: pointer; }
.post-card:hover .card-title { color: var(--accent); }

.card-tag {
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.card-title {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 8px;
  transition: color 0.15s;
}

.card-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.6;
}

.card-meta {
  margin-top: 10px;
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: 12px;
}

/* ─── NEWSLETTER ─── */
.newsletter-wrap {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  border-bottom: 1.5px solid var(--ink);
}

.nl-title {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.nl-desc {
  font-size: 14px;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

.nl-form { display: flex; flex-direction: column; gap: 10px; }

.nl-input {
  font-family: var(--body);
  font-size: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  outline: none;
  width: 100%;
  border-radius: 0;
  appearance: none;
}

.nl-input::placeholder { color: var(--muted); }
.nl-input:focus { border-color: var(--accent); }

.nl-btn {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: white;
  border: none;
  padding: 13px;
  cursor: pointer;
  transition: background 0.15s;
  border-radius: 0;
}

.nl-btn:hover { background: var(--ink); }

/* ─── SINGLE POST ─── */
.post-header { padding: 40px 0 28px; border-bottom: 1.5px solid var(--ink); margin-bottom: 40px; }

.post-header .post-label { margin-bottom: 16px; }

.post-full-title {
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1.06;
  letter-spacing: -0.5px;
  max-width: 800px;
  margin-bottom: 20px;
}

.post-full-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.post-full-meta .sep { color: var(--border); }

.post-feature-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  margin-bottom: 40px;
}

/* ─── POST CONTENT ─── */
.post-content { max-width: 700px; margin: 0 auto; }

.post-content p {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 1.5em;
  color: #2a2826;
}

.post-content h2 {
  font-family: var(--serif);
  font-size: 32px;
  line-height: 1.15;
  margin: 2em 0 0.75em;
}

.post-content h3 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 2em 0 0.75em;
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 24px;
  margin: 2em 0;
  font-family: var(--serif);
  font-size: 22px;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink);
}

.post-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover { text-decoration: none; }

.post-content hr {
  border: none;
  border-top: 1.5px solid var(--border);
  margin: 3em 0;
}

.post-content figure { margin: 2em 0; }
.post-content figcaption {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ─── POST FOOTER ─── */
.post-footer {
  max-width: 700px;
  margin: 48px auto 0;
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}

.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

.post-tag {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 5px 12px;
  transition: all 0.15s;
}

.post-tag:hover { background: var(--ink); color: var(--paper); }

/* ─── PAGINATION ─── */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pagination a {
  color: var(--ink);
  transition: color 0.15s;
}

.pagination a:hover { color: var(--accent); }
.pagination .page-number { color: var(--muted); }

/* ─── TAG / AUTHOR PAGE ─── */
.archive-header {
  padding: 40px 0 24px;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 32px;
}

.archive-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.archive-title {
  font-family: var(--serif);
  font-size: 48px;
  line-height: 1.1;
}

.archive-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--muted);
  margin-top: 10px;
  max-width: 600px;
}

/* ─── ERROR PAGE ─── */
.error-page {
  text-align: center;
  padding: 100px 0;
}

.error-code {
  font-family: var(--sans);
  font-size: 120px;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
}

.error-title {
  font-family: var(--serif);
  font-size: 36px;
  margin-bottom: 16px;
}

.error-desc { color: var(--muted); margin-bottom: 32px; }

/* ─── FOOTER ─── */
.site-footer {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.footer-brand {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.footer-brand span { color: var(--accent); }

.footer-copy {
  font-size: 12px;
  font-weight: 300;
  color: var(--muted);
}

.footer-nav { display: flex; gap: 16px; }

.footer-nav a {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-nav a:hover { color: var(--ink); }

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .masthead-title { font-size: 26px; }
  .site-nav { display: none; }
  .home-hero { grid-template-columns: 1fr; }
  .hero-main { border-right: none; padding-right: 0; border-bottom: 0.5px solid var(--border); padding-bottom: 24px; }
  .hero-sidebar { padding-left: 0; padding-top: 24px; }
  .hero-title { font-size: 32px; }
  .post-grid { grid-template-columns: 1fr; }
  .newsletter-wrap { grid-template-columns: 1fr; }
  .post-full-title { font-size: 34px; }
  .post-content p { font-size: 16px; }
  .site-footer { flex-direction: column; gap: 12px; text-align: center; }
}

/* ─── GHOST REQUIRED CLASSES ─── */
.kg-width-wide {
  margin-left: -80px;
  margin-right: -80px;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.kg-image { max-width: 100%; height: auto; }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

.kg-embed-card { display: flex; justify-content: center; margin: 1.5em 0; }
.kg-bookmark-card { border: 0.5px solid var(--border); padding: 1rem; }

@media (max-width: 768px) {
  .kg-width-wide { margin-left: 0; margin-right: 0; }
  .kg-width-full { margin-left: 0; margin-right: 0; }
}
