/* Eclipse blog — extends style.css. Reading layout, article furniture, figures.
   Loaded after style.css, so it inherits the umbra/corona/chromosphere palette. */

:root { --measure: 42rem; }

/* ---- Breadcrumb + article header ---- */
.crumbs {
  width: min(100% - 2.5rem, var(--measure));
  margin: 1.2rem auto 0;
  font-size: .78rem; letter-spacing: .04em;
  color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--chromosphere); }
.crumbs span { opacity: .5; margin: 0 .45rem; }

article.post {
  width: min(100% - 2.5rem, var(--measure));
  margin-inline: auto;
  padding: 1.6rem 0 3rem;
}

article.post h1 {
  font-size: clamp(1.95rem, 5.6vw, 2.9rem);
  font-weight: 800;
  margin-bottom: .8rem;
}

.updated {
  font-size: .74rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--chromosphere);
  margin-bottom: 1.9rem;
}

/* ---- TL;DR ---- */
.tldr {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--chromosphere);
  border-radius: 6px var(--radius) var(--radius) 6px;
  padding: 1.15rem 1.35rem;
  margin-bottom: 2.1rem;
}
.tldr strong {
  display: block;
  font-size: .7rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase;
  color: var(--chromosphere);
  margin-bottom: .5rem;
}
.tldr p { font-size: 1.02rem; }

/* ---- Body copy ---- */
article.post p { margin-bottom: 1.15rem; font-size: 1.05rem; }
article.post h2 {
  font-size: clamp(1.35rem, 3.4vw, 1.72rem);
  margin: 2.9rem 0 1rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
}
article.post h3 { font-size: 1.08rem; margin: 1.9rem 0 .6rem; }
article.post h2 + p.capsule { font-size: 1.12rem; color: var(--corona); }
article.post p.capsule { line-height: 1.5; }
article.post strong { color: var(--corona); font-weight: 600; }
article.post em { color: var(--corona); font-style: italic; }

/* ---- Figures ---- */
article.post figure { margin: 2.1rem 0; }
article.post figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--hairline); border-radius: 16px;
  background: rgba(8, 9, 16, .5);
}
article.post figure.device img { max-width: 260px; margin-inline: auto; border-radius: 26px; }
article.post figcaption {
  margin-top: .8rem; font-size: .86rem; color: var(--muted); line-height: 1.5;
  text-align: center;
}

/* ---- Tables ---- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.tablewrap { overflow-x: auto; margin: 1.9rem 0; }
article.post table {
  width: 100%; border-collapse: collapse; font-size: .92rem;
  font-variant-numeric: tabular-nums;
}
article.post th, article.post td {
  text-align: left; padding: .62rem .7rem;
  border-bottom: 1px solid var(--hairline);
}
article.post th {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--chromosphere); font-weight: 700;
}
article.post td { color: var(--muted); }
article.post td:first-child { color: var(--corona); }
article.post tbody tr:hover td { background: rgba(249, 164, 69, .05); }

/* ---- Lists ---- */
article.post ul, article.post ol { margin: 0 0 1.15rem; padding-left: 1.3rem; }
article.post li { margin-bottom: .55rem; }
article.post ul.takeaways { list-style: none; padding-left: 0; }
article.post ul.takeaways li {
  position: relative; padding-left: 1.6rem; margin-bottom: .85rem;
}
article.post ul.takeaways li::before {
  content: "◐"; position: absolute; left: 0; top: 0;
  color: var(--chromosphere); font-size: .95rem;
}

/* ---- Related guides ---- */
nav.related { margin: 2.9rem 0 0; }
nav.related ul { list-style: none; padding-left: 0; }
nav.related li { margin-bottom: .6rem; }
nav.related a { text-decoration: none; border-bottom: 1px solid rgba(249, 164, 69, .3); }
nav.related a:hover { border-bottom-color: var(--chromosphere); }

/* ---- FAQ ---- */
.faq h3 {
  color: var(--corona); font-size: 1.05rem;
  margin: 1.8rem 0 .55rem;
}
.faq p { color: var(--muted); font-size: 1rem; }

/* ---- Callout ---- */
.callout {
  background: rgba(239, 93, 66, .08);
  border: 1px solid rgba(239, 93, 66, .28);
  border-radius: var(--radius);
  padding: 1.2rem 1.35rem;
  margin: 2rem 0;
}
.callout p { margin-bottom: 0; font-size: .98rem; }
.callout p + p { margin-top: .7rem; }
.callout strong { color: var(--flare); }

/* ---- App promo strip ---- */
.appstrip {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.6rem 1.5rem;
  margin: 2.6rem 0; text-align: center;
}
.appstrip p { font-size: .97rem; color: var(--muted); margin-bottom: 1rem; }
.appstrip .badge { margin-top: 0; }

/* ---- Author + disclosure ---- */
.meta {
  margin-top: 3.2rem; padding-top: 1.6rem;
  border-top: 1px solid var(--hairline);
  color: var(--muted); font-size: .92rem;
}
.meta h2 {
  font-size: .76rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--chromosphere); border: 0; padding-top: 0;
  margin: 1.7rem 0 .6rem;
}
.meta h2:first-child { margin-top: 0; }
.meta p { font-size: .92rem; margin-bottom: 0; }

/* ---- Blog index ---- */
.postlist { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); }
.postcard {
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); padding: 1.5rem 1.45rem;
  transition: border-color .2s ease, transform .2s ease;
}
.postcard:hover { border-color: rgba(249, 164, 69, .35); transform: translateY(-2px); }
.postcard .kicker {
  font-size: .68rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--chromosphere); display: block; margin-bottom: .7rem;
}
.postcard h2 { font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.22; }
.postcard h2 a { color: var(--corona); text-decoration: none; }
.postcard h2 a:hover { color: var(--chromosphere); }
.postcard p { margin-top: .7rem; color: var(--muted); font-size: .93rem; }

@media (prefers-reduced-motion: reduce) {
  .postcard { transition: none; }
}

@media (max-width: 640px) {
  article.post p { font-size: 1.01rem; }
  .postlist { grid-template-columns: 1fr; }
}
