:root {
  --ink: #0e0d0c;
  --charcoal: #141312;
  --graphite: #1c1b19;
  --paper: #f4efe4;
  --paper-2: #ebe4d4;
  --cream: #e8dfc8;
  --brass: #c6a35a;
  --brass-hover: #d8b86a;
  --brass-dim: rgba(198, 163, 90, 0.18);
  --blood: #7a2430;
  --text: #1c1a16;
  --text-soft: #4a463c;
  --text-light: #ece7dc;
  --muted: #9a9488;
  --muted-dark: #8a8478;
  --line: rgba(198, 163, 90, 0.35);
  --line-dark: rgba(255, 255, 255, 0.08);
  --font-display: "Cormorant Garamond", "Iwanami Mincho", "Palatino Linotype", Palatino, serif;
  --font-caps: "Cinzel", "Times New Roman", serif;
  --font-body: "Inter", system-ui, sans-serif;
  --wrap: 1180px;
  --prose: 40rem;
  --header-h: 76px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-light);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button,
input {
  font-family: inherit;
}

h1,
h2,
h3,
.kant-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: var(--text-light);
  margin: 0 0 0.45em;
}

p {
  margin: 0 0 1.1em;
}

p:last-child {
  margin-bottom: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--brass);
  color: var(--ink);
  padding: 8px 12px;
  z-index: 40;
  font-size: 0.85rem;
  font-weight: 600;
}

.skip:focus {
  top: 16px;
}

.wrap {
  width: min(calc(100% - 40px), var(--wrap));
  margin: 0 auto;
}

.eyebrow {
  font-family: var(--font-caps);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1rem;
}

.gold-rule {
  width: 72px;
  height: 1px;
  background: var(--brass);
  border: 0;
  margin: 1.5rem 0;
}

.ornament {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--brass);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
}

.ornament::before,
.ornament::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* Buttons — Admarking pill, brass instead of cyan */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--gold {
  background: var(--brass);
  color: var(--ink);
}

.btn--gold:hover {
  background: var(--brass-hover);
}

.btn--ghost {
  background: transparent;
  color: var(--text-light);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.btn--block {
  width: 100%;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  height: var(--header-h);
  background: rgba(14, 13, 12, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-dark);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__mark {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-light);
  border-bottom: 1px solid var(--brass);
  line-height: 1.05;
  padding-bottom: 2px;
  white-space: nowrap;
}

.brand img {
  height: 28px;
  width: auto;
  filter: invert(1) sepia(0.25) saturate(0.4) brightness(1.15);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav a:hover,
.nav a.is-active,
.nav .current-menu-item a {
  color: var(--text-light);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  background: transparent;
  color: var(--text-light);
  border-radius: 4px;
  cursor: pointer;
}

.header-cta {
  flex-shrink: 0;
}

/* Ticker — same device as Admarking, brass instead of cyan */
.ticker {
  background: var(--brass);
  color: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--font-caps);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  line-height: 2.4;
}

.ticker__track {
  display: inline-block;
  animation: ticker 28s linear infinite;
}

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

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h) - 26px);
  display: flex;
  align-items: center;
  padding: 72px 0 88px;
  overflow: hidden;
  background-color: var(--ink);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(198, 163, 90, 0.16), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 600;
  margin-bottom: 0.35em;
  color: #f7f1e4;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--brass);
}

.hero .lede {
  max-width: 36rem;
  font-size: 1.12rem;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero__note {
  font-size: 0.82rem;
  color: var(--muted-dark);
}

/* Story / cream paper */
.story-section {
  background: var(--paper);
  color: var(--text);
  padding: 88px 0 96px;
  position: relative;
}

.story-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  gap: 64px;
  align-items: start;
}

.prose {
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text);
  max-width: var(--prose);
}

.prose h1,
.prose h2,
.prose h3 {
  color: var(--text);
  font-family: var(--font-display);
}

.prose h2 {
  font-size: 2rem;
  margin: 1.6em 0 0.5em;
}

.prose h3 {
  font-size: 1.45rem;
  margin: 1.4em 0 0.4em;
}

.prose p {
  margin: 0 0 1.2em;
  color: var(--text-soft);
}

.prose p.kicker,
.page-home .prose > p:first-child,
.page-home .entry-content > p:first-child {
  font-family: var(--font-caps);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.6em;
}

.prose a {
  color: var(--blood);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose blockquote,
.pullquote {
  margin: 2.2em 0;
  padding: 0 0 0 1.25em;
  border-left: 2px solid var(--brass);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.2em;
  color: var(--text-soft);
}

.prose img {
  margin: 1.6em 0;
  border-radius: 2px;
}

.prose hr {
  border: 0;
  height: 1px;
  background: var(--cream);
  margin: 2.2em 0;
}

/* Subscribe card */
.subscribe {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  background: var(--charcoal);
  color: var(--text-light);
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
}

.subscribe__label {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 10px;
}

.subscribe h2 {
  font-size: 2rem;
  margin-bottom: 0.4em;
}

.subscribe p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.2em;
}

.subscribe form,
.kant-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.subscribe input[type="email"],
.subscribe input[type="text"],
.kant-form input[type="email"],
.wpforms-field input[type="email"],
.wpforms-field input[type="text"] {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0908;
  color: var(--text-light);
  border-radius: 2px;
  font-size: 1rem;
}

.subscribe input:focus,
.wpforms-field input:focus {
  outline: 1px solid var(--brass);
  border-color: var(--brass);
}

.subscribe .pd,
.subscribe small {
  display: block;
  margin-top: 14px;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted-dark);
}

/* WPForms overrides */
.wpforms-container .wpforms-field-label,
.wpforms-container .wpforms-required-label {
  color: var(--muted) !important;
  font-size: 0.82rem !important;
  font-weight: 500 !important;
}

.wpforms-container .wpforms-submit {
  background: var(--brass) !important;
  color: var(--ink) !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  width: 100%;
  min-height: 46px;
}

.wpforms-container .wpforms-submit:hover {
  background: var(--brass-hover) !important;
}

.wpforms-field-container .wpforms-field {
  padding: 0 0 10px !important;
}

body.home .entry-content .wpforms-container,
body.page-template-front-page .entry-content .wpforms-container {
  display: none;
}

/* Latest articles */
.latest {
  padding: 88px 0;
  background: var(--graphite);
  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: 72px 72px;
}

.latest__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 40px;
}

.latest h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0;
}

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

.article-card {
  display: flex;
  flex-direction: column;
  min-height: 260px;
  padding: 26px 24px;
  border: 1px solid var(--line-dark);
  background: rgba(14, 13, 12, 0.55);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.article-card:hover {
  border-color: var(--brass);
  transform: translateY(-3px);
}

.article-card__meta {
  font-family: var(--font-caps);
  font-size: 0.64rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 14px;
}

.article-card h3 {
  font-size: 1.65rem;
  margin-bottom: 0.5em;
}

.article-card p {
  color: var(--muted);
  font-size: 0.95rem;
  flex: 1;
}

.article-card__more {
  margin-top: 18px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brass);
}

/* Article template */
.page-article {
  background: var(--paper);
  color: var(--text);
}

.page-article .site-header {
  background: rgba(14, 13, 12, 0.96);
}

.article-hero {
  background: var(--ink);
  color: var(--text-light);
  padding: 72px 0 64px;
  background-image:
    radial-gradient(ellipse 70% 60% at 50% 0%, rgba(198, 163, 90, 0.12), transparent 55%),
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
}

.article-hero__inner {
  max-width: 760px;
}

.article-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  color: #f7f1e4;
}

.article-hero .dek {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 38rem;
  margin-top: 0.6em;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 28px;
  font-size: 0.88rem;
  color: var(--muted);
}

.article-body {
  padding: 64px 0 48px;
  background: var(--paper);
}

.article-body .prose {
  margin: 0 auto;
}

.article-cta {
  background: var(--charcoal);
  color: var(--text-light);
  padding: 56px 0;
}

.article-cta__box {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: grid;
  gap: 18px;
}

.article-cta h2 {
  font-size: 2.2rem;
  margin: 0;
}

.article-cta p {
  color: var(--muted);
}

.article-cta form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.article-cta input[type="email"] {
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0908;
  color: var(--text-light);
  border-radius: 2px;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--prose);
  margin: 0 auto;
  padding: 8px 0 64px;
  background: var(--paper);
  color: var(--text-soft);
  font-size: 0.9rem;
}

.article-nav a {
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.article-nav span {
  display: block;
  font-family: var(--font-caps);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  color: var(--brass);
  margin-bottom: 6px;
}

/* Archive */
.archive-hero {
  padding: 72px 0 24px;
}

.archive-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.archive-list {
  display: grid;
  gap: 18px;
  padding-bottom: 88px;
}

.archive-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
}

.archive-item time {
  font-family: var(--font-caps);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
}

.archive-item h2 {
  font-size: 2rem;
  margin-bottom: 0.3em;
}

.archive-item p {
  color: var(--muted);
  max-width: 40rem;
}

/* Footer */
.site-footer {
  background: #0a0908;
  border-top: 1px solid var(--line-dark);
  padding: 48px 0 32px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: end;
}

.site-footer .brand__mark {
  font-size: 1.3rem;
  color: var(--text-light);
}

.site-footer a:hover {
  color: var(--brass);
}

/* Mobile subscribe bar */
.mobile-bar {
  display: none;
}

/* GeneratePress resets when child/standalone */
.site-content,
.inside-article,
.one-container .site-content {
  background: transparent;
}

.separate-containers .inside-article,
.one-container .site-content {
  box-shadow: none;
}

/* Responsive */
@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }

  .nav.is-open {
    display: flex;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
    padding: 12px 20px 20px;
  }

  .nav.is-open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }

  .nav.is-open a {
    padding: 12px 0;
    border-bottom: 1px solid var(--line-dark);
    display: block;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .story-grid,
  .article-grid,
  .article-cta form,
  .archive-item {
    grid-template-columns: 1fr;
  }

  .subscribe {
    position: static;
  }

  .hero {
    min-height: auto;
    padding: 56px 0 64px;
  }

  .mobile-bar {
    display: flex;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    background: var(--brass);
    color: var(--ink);
    border-radius: 999px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  }

  body {
    padding-bottom: 76px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(calc(100% - 28px), var(--wrap));
  }

  .prose,
  .hero .lede {
    font-size: 1.05rem;
  }

  .article-cta__box,
  .subscribe {
    padding: 24px 20px;
  }
}
