/* Article + guide page typography and layout. */

.article-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-top: clamp(5rem, 10vw, 7rem); /* clear fixed nav */
}

.article-breadcrumb {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: 1.5rem;
}
.article-breadcrumb a {
  color: var(--text-2);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 2px;
}
.article-breadcrumb a:hover { color: var(--text); }

.article-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.article-meta {
  font-size: 0.9rem;
  color: var(--text-3);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.article-meta a { color: var(--text-2); text-decoration: underline; }

.article-hero {
  margin: 0 -1rem 2.5rem;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--amber-line);
}
.article-hero img { width: 100%; height: auto; display: block; }

.article-body {
  font-size: 1.05rem;
  line-height: 1.7;
}
.article-body h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 1rem;
}
.article-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 1.75rem 0 0.5rem;
}
.article-body p { margin-bottom: 1.25rem; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
}
.article-body li { margin-bottom: 0.5rem; }
.article-body a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber-deep);
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--text-2); }
.article-body figure { margin: 2rem 0; }
.article-body figure img {
  width: 100%; height: auto;
  border-radius: 6px;
  border: 1px solid var(--amber-line);
}
.article-body figcaption {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-top: 0.5rem;
  text-align: center;
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.article-body th, .article-body td {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--amber-line);
}
.article-body th {
  font-weight: 700;
  background: var(--amber-faint);
}
.article-body code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.9em;
  background: var(--amber-faint);
  padding: 0.1em 0.35em;
  border-radius: 3px;
}

.article-toc {
  background: var(--amber-faint);
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.article-toc h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.75rem;
}
.article-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.article-toc li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.article-toc a {
  color: var(--text-2);
  text-decoration: none;
}
.article-toc a:hover { color: var(--text); text-decoration: underline; }

.article-author {
  margin-top: 3.5rem;
  padding: 1.5rem;
  background: var(--amber-faint);
  border-radius: 6px;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.article-author img {
  width: 56px; height: 56px; border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber-line);
  flex-shrink: 0;
}
.article-author .author-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}
.article-author .author-name a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--amber-line);
  text-underline-offset: 2px;
}
.article-author p {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.55;
}

.article-related {
  margin-top: 3rem;
}
.article-related h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-3);
  margin-bottom: 1rem;
}
.article-related ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.article-related a {
  display: block;
  padding: 0.875rem 1rem;
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  transition: background-color 0.15s;
}
.article-related a:hover { background: var(--amber-faint); }

.article-cta {
  margin-top: 3rem;
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px solid var(--amber-line);
  border-radius: 6px;
  background: var(--amber-faint);
}
.article-cta h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}
.article-cta p {
  font-size: 0.95rem;
  color: var(--text-2);
  margin-bottom: 1.25rem;
}

/* About page — small circular headshot, no full-bleed hero. */
.about-photo {
  display: block;
  margin: 0 0 1.5rem;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--amber-line);
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 768px) {
  .article-hero { margin: 0 0 3rem; }
  .article-related ul { grid-template-columns: 1fr 1fr 1fr; }
}
