/* =====================================================================
   TRIGGERLESS.IO  - Stylesheet
   The publication for the internet that does not exist yet.
   ===================================================================== */

:root {
  /* Palette  - dark editorial with warm accents */
  --bg:            #0a0a0c;
  --bg-surface:    #111114;
  --bg-elevated:   #18181c;
  --bg-section:    #0e0e11;
  --text:          #e8e6e1;
  --text-muted:    #8a8880;
  --text-dim:      #5a5850;
  --accent:        #c8a86e;
  --accent-dim:    #9a7d4a;
  --rule:          #2a2a2e;
  --rule-light:    #1e1e22;

  /* Typography scale */
  --font-display:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body:     'DM Sans', -apple-system, 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;

  --max-width:     1200px;
  --content-width: 720px;
  --gap:           2rem;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--text); }

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

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.25; }

/* =====================================================================
   Navigation
   ===================================================================== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule-light);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
}

.nav-brand:hover { color: var(--accent); }

.brand-mark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  line-height: 1;
}

.brand-name {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links a:hover { color: var(--text); }

/* =====================================================================
   Hero
   ===================================================================== */
.hero {
  padding: 8rem 2rem 6rem;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 4rem;
  background: linear-gradient(to bottom, transparent, var(--accent-dim));
}

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

.hero-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero-rule {
  width: 60px;
  height: 1px;
  background: var(--accent-dim);
  margin: 3rem auto 0;
}

/* =====================================================================
   Sections
   ===================================================================== */
.section {
  padding: 5rem 2rem;
}

.section-dark {
  background: var(--bg-surface);
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-narrow {
  max-width: var(--content-width);
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.8rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* =====================================================================
   Article Cards
   ===================================================================== */
.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.article-card {
  background: var(--bg-elevated);
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s;
}

.article-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.card-link {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  flex: 1;
}

.card-link:hover { color: inherit; }

.article-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, rgba(200, 168, 110, 0.04) 100%);
  border-color: var(--rule);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(200, 168, 110, 0.08);
  padding: 0.25rem 0.6rem;
  border-radius: 1px;
}

.whitepaper-tag {
  background: rgba(200, 168, 110, 0.14);
}

.card-date {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.35;
  color: var(--text);
  transition: color 0.2s;
}

.card-link:hover .card-title { color: var(--accent); }

.card-excerpt {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.card-author {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--rule-light);
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.author-name {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}

.author-role {
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* =====================================================================
   Concept Grid
   ===================================================================== */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.concept-card {
  display: block;
  padding: 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  transition: border-color 0.3s, transform 0.3s;
}

.concept-card:hover {
  border-color: var(--accent-dim);
  transform: translateY(-2px);
}

.concept-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.concept-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.concept-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.concept-card:hover .concept-link { color: var(--accent); }

/* =====================================================================
   Author Grid
   ===================================================================== */
.author-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.author-card {
  display: block;
  padding: 2.5rem 2rem;
  background: var(--bg-elevated);
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  text-align: center;
  transition: border-color 0.3s;
}

.author-card:hover { border-color: var(--accent-dim); }

.author-monogram {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.author-monogram.large {
  width: 80px;
  height: 80px;
  font-size: 2rem;
}

.author-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.author-card-role {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.author-card-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.author-card-beat {
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.6;
  font-style: italic;
}

/* =====================================================================
   About Section
   ===================================================================== */
.about-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.8;
}

.about-topics {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-light);
}

.about-topics h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.about-topics p {
  font-size: 0.88rem;
}

/* =====================================================================
   Article Page
   ===================================================================== */
.article-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--rule-light);
}

.article-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-meta-top {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.article-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-style: normal;
  margin-bottom: 0.25rem;
}

.article-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.article-byline { margin-top: 2rem; }

.byline-author {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
}

.byline-monogram {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim), var(--accent));
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.byline-author strong {
  display: block;
  font-size: 0.85rem;
}

.byline-author em {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-style: normal;
}

/* Article body */
.article-body {
  padding: 3rem 2rem;
}

.article-body-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.article-body-inner p {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.article-body-inner h2 {
  font-size: 1.6rem;
  margin: 3rem 0 1rem;
  color: var(--text);
}

.article-body-inner h3 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--text);
}

.article-body-inner blockquote {
  border-left: 3px solid var(--accent-dim);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-body-inner ul, .article-body-inner ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

.article-body-inner li {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.article-body-inner code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  background: var(--bg-surface);
  padding: 0.15rem 0.4rem;
  border-radius: 2px;
}

/* Article footer */
.article-footer {
  border-top: 1px solid var(--rule-light);
  padding: 3rem 2rem;
}

.article-footer-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.related-concepts { margin-bottom: 2.5rem; }

.related-concepts h4,
.peer-review-invite h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

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

.concept-tags a {
  font-size: 0.78rem;
  padding: 0.35rem 0.75rem;
  background: rgba(200, 168, 110, 0.06);
  border: 1px solid var(--rule-light);
  border-radius: 1px;
  color: var(--text-muted);
  text-transform: capitalize;
  transition: border-color 0.2s, color 0.2s;
}

.concept-tags a:hover {
  border-color: var(--accent-dim);
  color: var(--accent);
}

.article-author-box {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 2.5rem;
  padding: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--rule-light);
  border-radius: 2px;
}

.article-author-box strong a { color: var(--text); }
.article-author-box p {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.peer-review-invite {
  padding: 1.5rem;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
}

.peer-review-invite p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* =====================================================================
   Concept Page
   ===================================================================== */
.concept-header {
  padding: 6rem 2rem 3rem;
  border-bottom: 1px solid var(--rule-light);
}

.concept-header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
}

.concept-kicker {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.concept-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-style: italic;
}

.concept-body { padding: 3rem 2rem; }
.concept-body-inner { max-width: var(--content-width); margin: 0 auto; }

.concept-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule-light);
}

.concept-section:last-child { border-bottom: none; }

.concept-section h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.concept-definition {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text);
}

.concept-section p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.concept-list {
  list-style: none;
  padding: 0;
}

.concept-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.concept-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 6px;
  height: 1px;
  background: var(--accent-dim);
}

/* =====================================================================
   Author Page
   ===================================================================== */
.author-header {
  padding: 6rem 2rem 3rem;
  text-align: center;
  border-bottom: 1px solid var(--rule-light);
}

.author-header-inner { max-width: var(--content-width); margin: 0 auto; }

.author-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.author-page-role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.author-page-title {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.author-body { padding: 3rem 2rem; }
.author-body-inner { max-width: var(--content-width); margin: 0 auto; }

.author-section {
  margin-bottom: 3rem;
}

.author-section h2 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.author-section p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.author-article-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.author-article-item {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  transition: border-color 0.2s;
}

.author-article-item:hover { border-color: var(--accent-dim); }

.item-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  min-width: 70px;
}

.item-title {
  font-size: 0.9rem;
  color: var(--text);
}

/* =====================================================================
   Empty States
   ===================================================================== */
.empty-state {
  padding: 3rem;
  border: 1px dashed var(--rule);
  border-radius: 2px;
  text-align: center;
}

.empty-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.75rem;
}

.empty-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}

/* =====================================================================
   404 Page
   ===================================================================== */
.error-page {
  padding: 10rem 2rem;
  text-align: center;
}

.error-inner h1 {
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.error-inner p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.error-sub {
  font-style: italic;
  color: var(--text-dim) !important;
  font-size: 0.9rem !important;
  margin-bottom: 2rem !important;
}

.error-link {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* =====================================================================
   Footer
   ===================================================================== */
.site-footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-section);
  padding: 4rem 2rem 2rem;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-brand {
  margin-bottom: 3rem;
}

.footer-brand .brand-mark {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--text-dim);
  font-style: italic;
  line-height: 1.6;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-dim);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.footer-col a:hover { color: var(--text-muted); }

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.footer-fine {
  margin-top: 0.25rem;
  font-style: italic;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 5rem 1.5rem 4rem; }
  .section { padding: 3rem 1.5rem; }
  .article-grid { grid-template-columns: 1fr; }
  .concept-grid { grid-template-columns: 1fr; }
  .author-grid { grid-template-columns: 1fr; }
  .article-header { padding: 4rem 1.5rem 2rem; }
  .footer-columns { grid-template-columns: 1fr 1fr; }
}

/* ---- Article subtitle line 2 (not italic, smaller) ---- */
.article-subtitle-line2 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 1rem;
  font-style: normal;
  font-weight: 400;
}
