/* Shared styles for Itch Log content pages. The homepage keeps its own inline CSS. */
:root {
  --paper: #FBFAF8;
  --paper-bright: #FDFCFB;
  --paper-raised: #F2F0EC;
  --ink: #211E1B;
  --ink-soft: #6C675F;
  --hairline: #DFDBD3;
  --hairline-strong: #B9B4AB;
  --ink-blue: #2C5877;
  --ink-blue-pressed: #234A66;
  --ink-blue-text: #F7FAFC;
  --ink-blue-wash: #E9EFF3;
  --brick: #A33D2F;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Libre Franklin", "Franklin Gothic Medium", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink-blue); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink-blue); outline-offset: 2px; border-radius: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }

/* Header, matches the homepage */
header.site { border-bottom: 1px solid var(--hairline); }
header.site .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.wordmark {
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 17px;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
header.site nav { font-size: 14px; }
header.site nav a { color: var(--ink-soft); text-decoration: none; }
header.site nav a:hover { color: var(--ink-blue); text-decoration: underline; }

/* Article shell */
main.article { max-width: 780px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px); }
.article-head { padding-top: clamp(40px, 7vh, 72px); }
.overline {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
main.article h1 {
  margin-top: 10px;
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.byline {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 2px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 14px;
  color: var(--ink-soft);
}
.byline b { color: var(--ink); font-weight: 600; }

.article-body { padding-top: clamp(24px, 4vh, 40px); padding-bottom: clamp(40px, 7vh, 72px); }
.article-body > * + * { margin-top: 18px; }
.article-body .lede { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.55; }
.article-body h2 {
  margin-top: 44px;
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.article-body h3 {
  margin-top: 30px;
  font-size: 19px;
  font-weight: 700;
}
.article-body p, .article-body li { color: var(--ink); max-width: 70ch; }
.article-body ul, .article-body ol { padding-left: 1.3em; }
.article-body li + li { margin-top: 8px; }
.article-body .aside {
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  background: var(--paper-bright);
  padding: 16px 18px;
  font-size: 15.5px;
}
.article-body .aside p + p { margin-top: 10px; }
.article-body .fine { font-size: 14px; color: var(--ink-soft); }

/* Comparison table, set like a chart, not an infographic */
.tablewrap { overflow-x: auto; margin-top: 24px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
table.compare caption {
  text-align: left;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 8px;
}
table.compare th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: left;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 10px 8px 0;
  vertical-align: bottom;
}
table.compare td {
  border-bottom: 1px solid var(--hairline);
  padding: 10px 10px 10px 0;
  vertical-align: top;
}
table.compare td:first-child { font-weight: 600; white-space: nowrap; }
table.compare .soft { color: var(--ink-soft); }

/* FAQ, matches the homepage */
.faq { margin-top: 44px; }
.faq h2 { margin-bottom: 6px; }
.faq details { border-top: 1px solid var(--hairline); }
.faq details:last-of-type { border-bottom: 1px solid var(--hairline); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 36px 16px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-52%);
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-blue);
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 0 18px; color: var(--ink-soft); max-width: 38em; }

/* Closing CTA band */
.closing { border-top: 1px solid var(--hairline); }
.closing .inner {
  max-width: 780px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 72px) clamp(20px, 4vw, 48px);
  text-align: center;
}
.closing h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.closing p { margin-top: 10px; color: var(--ink-soft); }
.closing a.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  margin-top: 24px;
  padding: 0 28px;
  border-radius: 14px;
  background: var(--ink-blue);
  color: var(--ink-blue-text);
  font-weight: 600;
  text-decoration: none;
}
.closing a.btn:hover, .closing a.btn:focus-visible { background: var(--ink-blue-pressed); }

/* Footer */
footer.site { border-top: 1px solid var(--hairline); }
footer.site .wrap {
  padding-top: 26px;
  padding-bottom: 34px;
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--ink-soft);
}
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site a { color: var(--ink-soft); }
footer.site a:hover { color: var(--ink-blue); }
