:root {
  --bg: #2D2D2D;
  --card: #2B2A28;
  --light: #F5F1E8;
  --text: #F3EFE6;
  --gold: #B58A2C;
  --gold-dim: #8F6E23;
  --ink: #111111;
  --muted: #7A7268;
  --surface: #353330;
  --border: rgba(143,110,35,0.25);
  --content-indent: clamp(1.5rem, 7vw, 7.5rem);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: 'Karla', sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}
body > nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--content-indent);
  background: rgba(45, 45, 45, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: var(--text);
  text-decoration: none;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  font-family: 'Courier Prime', monospace;
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--gold); }
.article-hero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding: 9rem var(--content-indent) 5rem;
  background: linear-gradient(155deg, #1A1A1A 0%, var(--card) 55%, #222220 100%);
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.62;
  background-image:
    linear-gradient(90deg, rgba(26,26,26,0.82) 0%, rgba(26,26,26,0.48) 42%, rgba(26,26,26,0.76) 100%),
    linear-gradient(180deg, rgba(26,26,26,0.18) 0%, rgba(26,26,26,0.12) 45%, rgba(26,26,26,0.62) 100%),
    url("/assets/tenax-topo-hero.webp");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}
.hero-content { position: relative; max-width: 860px; }
.eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.article-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 900;
  line-height: 0.94;
  letter-spacing: -0.02em;
  color: var(--text);
  max-width: 900px;
}
.article-deck {
  margin-top: 1.5rem;
  font-size: 1.18rem;
  line-height: 1.7;
  color: rgba(243,239,230,0.78);
  max-width: 660px;
}
.article-meta-line {
  margin-top: 2rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.article-shell {
  background: var(--light);
  color: var(--ink);
  padding: 5rem var(--content-indent);
}
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(220px, 320px);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
  align-content: start;
}
.article-body {
  font-size: 1.08rem;
  line-height: 1.85;
}
.article-body p { margin-bottom: 1.4rem; }
.article-body h2 {
  scroll-margin-top: 7.5rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 3.3rem 0 1rem;
}
.article-body strong { font-weight: 700; }
.pull-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.12;
  color: var(--gold-dim);
  border-left: 4px solid var(--gold);
  padding-left: 1.4rem;
  margin: 2.8rem 0;
}
.article-list {
  display: grid;
  gap: 0.8rem;
  margin: 1.4rem 0 2rem;
}
.article-list div {
  border-top: 1px solid rgba(143,110,35,0.22);
  padding-top: 0.8rem;
}
.references {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(143,110,35,0.28);
}
.references h2 { margin-top: 0; }
.references ol { padding-left: 1.2rem; }
.references li { margin-bottom: 1rem; font-size: 0.96rem; line-height: 1.65; }
.references a { color: var(--gold-dim); }
.aside-card {
  position: static !important;
  background: #fff;
  border: 1px solid rgba(143,110,35,0.18);
  padding: 1.6rem;
}
.aside-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.8rem;
}
.aside-card p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.in-note-nav {
  display: grid;
  gap: 0.65rem;
}

.in-note-link {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
  line-height: 1.5;
}

.in-note-link:hover { color: var(--gold); }

.aside-link {
  display: inline-block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
  text-decoration: none;
}
.article-cta {
  margin-top: 4rem;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 2rem;
}
.article-cta h2 {
  margin: 0 0 0.8rem;
  color: var(--text);
}
.article-cta p { color: var(--muted); }
.signup-form {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: 'Karla', sans-serif;
  font-size: 1rem;
}
.btn-primary {
  display: inline-block;
  padding: 0.95rem 1.4rem;
  background: var(--gold);
  color: var(--ink);
  border: none;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
footer {
  background: #1A1A1A;
  color: var(--muted);
  padding: 3rem var(--content-indent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  border-top: 1px solid var(--border);
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: 0.18em;
  color: var(--text);
}
.footer-logo span { color: var(--gold); }
.footer-tagline, .footer-copy {
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.footer-tagline { color: var(--gold-dim); margin-top: 0.3rem; }
.footer-copy { opacity: 0.4; }
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.resource-card {
  display: block;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(143,110,35,0.14);
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.resource-card:hover { transform: translateY(-5px); box-shadow: 0 16px 48px rgba(17,17,17,0.12); }
.resource-img { height: 155px; position: relative; background: linear-gradient(135deg, #2B2A28 0%, #8F6E23 100%); }
.resource-tag {
  position: absolute;
  top: 1rem; left: 1rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 700;
}
.resource-body { padding: 1.4rem; }
.resource-meta {
  font-family: 'Courier Prime', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.resource-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 0.7rem;
}
.resource-excerpt { color: #555; line-height: 1.65; }
.resource-link {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'Courier Prime', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .aside-card { position: static !important; }
  .card-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --content-indent: 1.5rem; }
  .nav-links { display: none; }
  .article-hero { min-height: 58vh; padding-top: 7rem; }
  .article-shell { padding-top: 3.5rem; }
  .card-grid { grid-template-columns: 1fr; }
}

.site-join {
  width: min(980px, calc(100% - 2 * var(--content-indent)));
  margin: 4rem auto 0;
}


.article-shell {
  max-width: 1120px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

.article-layout {
  grid-template-columns: minmax(0, 720px) 280px !important;
  justify-content: center !important;
  gap: 3rem !important;
}

.article-body {
  width: 100%;
}

@media (max-width: 900px) {
  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .article-shell {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
}


.note-nav {
  position: static;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(143,110,35,0.22);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.note-nav-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(143,110,35,0.24);
  background: rgba(43,42,40,0.04);
  padding: 1.2rem;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.note-nav-link:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(181,138,44,0.06);
}

.note-nav-label {
  display: block;
  font-family: 'Courier Prime', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.55rem;
}

.note-nav-title {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.18rem;
  line-height: 1.2;
  color: var(--ink);
}

.note-nav-next {
  text-align: right;
}

.note-nav-spacer {
  visibility: hidden;
}

.note-nav-bottom {
  clear: both;
}

@media (max-width: 700px) {
  .note-nav {
    grid-template-columns: 1fr;
  }

  .note-nav-next {
    text-align: left;
  }

  .note-nav-spacer {
    display: none;
  }
}

