:root {
  --bg: #080A0C;
  --surface: #0D0D0B;
  --surface-2: #101215;
  --line: rgba(201, 160, 96, 0.28);
  --line-soft: rgba(255, 255, 255, 0.1);
  --gold: #C9A060;
  --gold-light: #E0BB7A;
  --ink: #F5F0E8;
  --muted: #AFA69B;
  --quiet: #857E74;
  --brand-font: Copperplate, "Copperplate Gothic Light", Georgia, serif;
  --body-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body-font);
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 8%, rgba(201, 160, 96, 0.11), transparent 30rem),
    linear-gradient(180deg, #0B0D10 0%, var(--bg) 32rem, #050607 100%);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-shell {
  min-height: 100vh;
}

.site-header,
.site-main,
.site-footer {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 10, 12, 0.88);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(201, 160, 96, 0.18), rgba(255, 255, 255, 0.02));
  line-height: 1;
}

.brand-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-name {
  color: var(--gold);
  font-family: var(--brand-font);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: #D7CBB9;
}

.nav ul {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  border: 1px solid transparent;
  padding: 10px 11px;
  color: inherit;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.nav a:hover,
.nav .nav-current a {
  border-color: rgba(201, 160, 96, 0.36);
  background: rgba(201, 160, 96, 0.08);
  color: var(--gold-light);
}

.nav .nav-accent {
  border-color: rgba(201, 160, 96, 0.62);
  background: linear-gradient(135deg, rgba(201, 160, 96, 0.2), rgba(224, 187, 122, 0.08));
  color: var(--gold-light);
}

.site-main {
  padding: 42px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: stretch;
  min-height: 360px;
  padding: 30px 0 42px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: 28px 0;
}

.eyebrow,
.post-card-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.article-header h1,
.archive-header h1,
.error-state h1 {
  margin: 0;
  max-width: 920px;
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: clamp(3.25rem, 8vw, 6.8rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.92;
}

.hero h1 {
  margin: 0;
  max-width: 860px;
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: clamp(2.45rem, 4.35vw, 4.05rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-deck,
.article-excerpt,
.archive-header p,
.error-state p {
  max-width: 760px;
  color: #D8D0C7;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.45rem);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.subscribe-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: min(620px, 100%);
  margin-top: 22px;
}

.subscribe-panel input {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 0 15px;
}

.subscribe-panel input::placeholder {
  color: var(--quiet);
}

.subscribe-panel button {
  min-height: 48px;
  border: 1px solid var(--gold);
  border-radius: 0;
  background: var(--gold);
  color: #050607;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 18px;
  text-transform: uppercase;
}

.subscribe-panel .form-message,
.subscribe-panel .form-success {
  display: none;
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.subscribe-panel.error .form-message,
.subscribe-panel.success .form-success {
  display: block;
}

.subscribe-panel-inline {
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  padding: 0 18px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #050607;
}

.btn-secondary {
  color: var(--gold-light);
  background: rgba(201, 160, 96, 0.08);
}

.hero-panel {
  display: grid;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--surface);
  padding: 24px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
}

.hero-panel span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 0;
  color: #ECE4D8;
  font-family: var(--brand-font);
  font-size: 1.05rem;
}

.hero-panel span::after {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--gold);
}

.panel-upgrade {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  border: 1px solid var(--gold);
  background: rgba(201, 160, 96, 0.1);
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-head {
  margin: 26px 0 22px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 500;
}

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

.post-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.post-card-link:hover {
  transform: translateY(-3px);
  border-color: rgba(201, 160, 96, 0.5);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.28);
}

.post-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #06090D;
}

.post-card-placeholder {
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--gold);
  font-family: var(--brand-font);
  font-size: 1.4rem;
}

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

.post-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1.25;
}

.post-card p {
  color: var(--muted);
  line-height: 1.55;
}

.post-card-meta,
.article-meta {
  display: flex;
  gap: 12px;
  margin-top: auto;
  color: var(--quiet);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.article,
.archive-header,
.error-state {
  max-width: 920px;
  margin: 0 auto;
}

.article-header {
  padding: 22px 0 36px;
  border-bottom: 1px solid var(--line-soft);
}

.article-header h1,
.archive-header h1,
.error-state h1 {
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.feature-image {
  margin: 34px 0;
}

.feature-image img {
  width: 100%;
  border: 1px solid var(--line);
}

.content {
  color: #E7DED3;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.24rem);
  line-height: 1.82;
}

.content a {
  color: var(--gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(201, 160, 96, 0.45);
  text-underline-offset: 4px;
}

.content h2,
.content h3 {
  margin-top: 2.1em;
  color: var(--ink);
  font-family: var(--brand-font);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.1;
}

.content h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.content h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.content blockquote {
  margin: 2em 0;
  border-left: 3px solid var(--gold);
  padding: 4px 0 4px 24px;
  color: #F4DFC0;
  font-style: italic;
}

.kg-width-wide {
  width: min(1120px, calc(100vw - 40px));
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-full {
  width: 100vw;
  max-width: none;
  margin-left: 50%;
  transform: translateX(-50%);
}

.kg-width-wide img,
.kg-width-full img {
  width: 100%;
}

.desk-cta {
  margin-top: 54px;
  border: 1px solid var(--line);
  background: rgba(201, 160, 96, 0.07);
  padding: 30px;
}

.desk-cta h2 {
  margin: 0;
  font-family: var(--brand-font);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
}

.desk-cta p {
  color: var(--muted);
  line-height: 1.65;
}

.content-cta {
  margin: 48px 0;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 12% 0%, rgba(201, 160, 96, 0.18), transparent 23rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.02));
  padding: 34px;
}

.content-cta h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 500;
  line-height: 1.05;
}

.content-cta p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.subscribe-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 34px;
  align-items: stretch;
  padding: 36px 0 48px;
}

.subscribe-hero-copy {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line-soft);
  padding: 38px 0;
}

.subscribe-hero h1 {
  max-width: 840px;
  margin: 0;
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: clamp(3.2rem, 7vw, 6.25rem);
  font-weight: 500;
  letter-spacing: 0;
  line-height: 0.95;
}

.subscribe-hero p:not(.eyebrow) {
  max-width: 720px;
  color: #D8D0C7;
  font-family: var(--serif);
  font-size: clamp(1.08rem, 2vw, 1.42rem);
  line-height: 1.62;
}

.subscribe-signal-card {
  display: grid;
  align-content: center;
  gap: 14px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 0%, rgba(201, 160, 96, 0.18), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  padding: 28px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
}

.subscribe-signal-card span {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line-soft);
  padding: 14px 0;
  color: #ECE4D8;
  font-family: var(--brand-font);
  font-size: 1.08rem;
}

.subscribe-signal-card span::after {
  content: "";
  width: 34px;
  height: 1px;
  margin-top: 0.72em;
  background: var(--gold);
}

.membership-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 16px 0 42px;
}

.membership-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.052), rgba(255, 255, 255, 0.018));
  padding: 26px;
}

.membership-card-featured {
  border-color: rgba(201, 160, 96, 0.58);
  background:
    radial-gradient(circle at 20% 0%, rgba(201, 160, 96, 0.16), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.02));
  box-shadow: 0 28px 62px rgba(0, 0, 0, 0.32);
}

.membership-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--brand-font);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  font-weight: 500;
  line-height: 1;
}

.membership-price {
  margin: 18px 0 8px;
  color: var(--gold-light);
  font-family: var(--brand-font);
  font-size: 2.3rem;
  line-height: 1;
}

.membership-price span {
  color: var(--muted);
  font-family: var(--body-font);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
}

.membership-copy {
  color: #D8D0C7;
  line-height: 1.58;
}

.membership-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
  padding: 0;
  color: var(--muted);
  list-style: none;
}

.membership-card li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 9px;
  line-height: 1.45;
}

.membership-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 0.55em;
  background: var(--gold);
}

.membership-card .btn {
  margin-top: auto;
}

.subscribe-note {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}

.subscribe-note p:not(.eyebrow) {
  max-width: 820px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.08rem;
  line-height: 1.65;
}

.archive-header,
.error-state {
  padding: 38px 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 54px;
  color: var(--quiet);
}

.site-footer p {
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #D7CBB9;
}

.pagination {
  margin-top: 36px;
  color: var(--quiet);
  text-align: center;
}

@media (max-width: 900px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .subscribe-hero {
    grid-template-columns: 1fr;
  }

  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .membership-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .site-main,
  .site-footer {
    width: min(100% - 28px, 1160px);
  }

  .site-main {
    padding-top: 34px;
  }

  .hero {
    padding-top: 16px;
  }

  .article-header h1,
  .archive-header h1,
  .error-state h1 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero h1 {
    font-size: clamp(2.35rem, 10vw, 3.35rem);
    line-height: 1.04;
  }

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

  .subscribe-panel {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}
