/* Shared styles for informational content pages (landing + articles) */

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

:root {
  --primary: #0891b2;
  --primary-light: #22d3ee;
  --primary-dark: #0e7490;
  --bg-primary: #f0fdfa;
  --bg-secondary: #ffffff;
  --text-primary: #134e4a;
  --text-muted: #5f7a77;
  --border: #99f6e4;
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 12px;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Charter', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
}

body {
  font-family: var(--sans);
  background: linear-gradient(135deg, var(--bg-primary) 0%, #ccfbf1 100%);
  min-height: 100vh;
  color: var(--text-primary);
  line-height: 1.65;
}

a {
  color: var(--primary-dark);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.2rem;
  font-weight: 650;
  color: var(--primary-dark);
  text-decoration: none;
}

.site-brand svg {
  width: 28px;
  height: 28px;
  color: var(--primary);
}

.site-brand .domain {
  font-weight: 400;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.95rem;
}

.site-nav a {
  color: var(--primary-dark);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover {
  text-decoration: underline;
}

.site-footer {
  margin: 48px 0 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ---------- Article pages ---------- */

.article-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.article-card {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(28px, 5vw, 56px);
}

.article-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 10px;
}

.article-card h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4vw, 2.3rem);
  line-height: 1.2;
  margin-bottom: 10px;
}

.article-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 28px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.article-meta a {
  color: var(--primary-dark);
}

.article-body {
  font-family: var(--serif);
  font-size: 1.08rem;
}

.article-body p {
  margin-bottom: 1.1em;
}

.article-body h2 {
  font-family: var(--sans);
  font-size: 1.15rem;
  margin: 1.8em 0 0.7em;
  color: var(--primary-dark);
}

.article-body h3 {
  font-family: var(--sans);
  font-size: 1.02rem;
  margin: 1.5em 0 0.6em;
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.1em 1.4em;
}

.article-body li {
  margin-bottom: 0.45em;
}

.article-body blockquote {
  border-left: 3px solid var(--primary-light);
  padding-left: 16px;
  margin: 0 0 1.1em;
  color: var(--text-muted);
  font-style: italic;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.5em;
  font-family: var(--sans);
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
}

.article-body th {
  background: var(--bg-primary);
}

.article-body .table-caption,
.article-body .figure-caption {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.6em;
}

/* Dialogue transcript */
.dialogue {
  background: var(--bg-primary);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 1.1em;
}

.dialogue p {
  margin-bottom: 0.6em;
}

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

.dialogue .speaker {
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.92rem;
  color: var(--primary-dark);
}

/* Pathway figure (flow) */
.pathway {
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 0 0 0.5em;
}

.pathway ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.pathway li {
  position: relative;
  padding-left: 0;
  margin-bottom: 0;
}

.pathway li + li::before {
  content: '↓';
  display: block;
  color: var(--primary);
  font-weight: 700;
  margin: 4px 0;
}

.pathway .stage {
  font-weight: 600;
}

.pathway .stage-detail {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 18px 0;
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

/* ---------- Landing option A: reading room (editorial list) ---------- */

.reading-container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.reading-masthead {
  text-align: center;
  padding: 40px 0 8px;
}

.reading-masthead h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 14px;
}

.reading-masthead .tagline {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 8px;
  font-size: 1.05rem;
}

.reading-rule {
  width: 64px;
  height: 3px;
  background: var(--primary);
  border: none;
  border-radius: 2px;
  margin: 28px auto;
}

.reading-list {
  list-style: none;
}

.reading-item {
  padding: 26px 4px;
  border-bottom: 1px solid var(--border);
}

.reading-item:last-child {
  border-bottom: none;
}

.reading-item .item-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.74rem;
  font-weight: 650;
  color: var(--primary);
  margin-bottom: 6px;
}

.reading-item h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1.25;
  margin-bottom: 8px;
}

.reading-item h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.reading-item h2 a:hover {
  color: var(--primary-dark);
}

.reading-item .item-desc {
  color: var(--text-muted);
  margin-bottom: 10px;
  max-width: 640px;
}

.reading-item .item-meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.assessment-banner {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 26px;
  margin-top: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.assessment-banner .banner-text h3 {
  margin-bottom: 4px;
}

.assessment-banner .banner-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.btn-cta {
  display: inline-block;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.btn-cta:hover {
  filter: brightness(1.05);
}

/* ---------- Landing option B: hero + card grid ---------- */

.grid-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

.hero {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(32px, 6vw, 60px);
  text-align: left;
  margin-bottom: 32px;
  background-image: radial-gradient(circle at 90% -20%, #ccfbf1 0%, transparent 55%);
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 2.7rem);
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 14px;
}

.hero p {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1.05rem;
  margin-bottom: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.article-tile {
  background: var(--bg-secondary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--text-primary);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-tile:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.article-tile .tile-tag {
  align-self: flex-start;
  font-size: 0.74rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--primary-dark);
  background: var(--bg-primary);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.article-tile h2 {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 10px;
}

.article-tile .tile-desc {
  color: var(--text-muted);
  font-size: 0.96rem;
  flex-grow: 1;
  margin-bottom: 16px;
}

.article-tile .tile-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.article-tile .read-more {
  color: var(--primary-dark);
  font-weight: 600;
}
