/* ------------------------------------------------------------------------------
   InkPal · Paper — article pages
   Light reading theme for /articles/*.html. Shares the brand fonts & accents
   of the landing page (index.html), but on a warm paper background.
-------------------------------------------------------------------------------*/
:root{
  --ink: #15110c;          /* primary text */
  --ink-soft: #4a4236;     /* secondary text */
  --ink-faint: #8a8073;    /* captions / footer */
  --paper-bg: #f7f2e8;     /* page background */
  --surface: #fffdf7;      /* raised surfaces */
  --hair: rgba(21,17,12,0.12);
  --amber-deep: #b27a2c;   /* links / accents on light */
  --amber: #e8b765;
  --wine-deep: #7e2a3a;

  /* dark accent block (CTA) */
  --d-ink: #15110c;
  --d-paper: #f4ead4;
  --d-paper-dim: rgba(244,234,212,0.72);
  --d-hair: rgba(244,234,212,0.12);

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

*{ box-sizing: border-box; margin: 0; padding: 0; }
html,body{
  background: var(--paper-bg); color: var(--ink);
  font-family: var(--sans); -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; overflow-x: hidden;
}

a{ color: inherit; text-decoration: none; }
img{ display: block; max-width: 100%; }

/* ===== HEADER / MENU ===== */
.site-header{
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding: 16px max(20px, (100% - 1100px) / 2);
  backdrop-filter: blur(14px);
  background: rgba(247,242,232,.85);
  border-bottom: 1px solid var(--hair);
}
.brand{ display: inline-flex; align-items: center; gap: 10px; }
.brand img{ width: 28px; height: 28px; border-radius: 6px; box-shadow: none; }
.brand span{ font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: .02em; color: var(--ink); }

.site-nav{ display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; justify-content: flex-end; }
.site-nav a{ font-size: 14px; color: var(--ink-soft); transition: color .2s; }
.site-nav a:hover{ color: var(--amber-deep); }

/* ===== ARTICLE BODY ===== */
.article-shell{
  max-width: 760px; margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) 24px 40px;
}
.eyebrow{
  font-family: var(--sans);
  font-size: 11px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--amber-deep); font-weight: 600; margin-bottom: 18px;
}
.article-shell h1{
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(40px, 6vw, 72px); line-height: 1.04; letter-spacing: -.01em;
  margin-bottom: 24px; text-wrap: balance; color: var(--ink);
}
.article-lede{
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.5;
  color: var(--ink-soft); margin-bottom: 40px; text-wrap: pretty;
}
.article-shell section{ margin-top: 40px; }
.article-shell h2{
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; letter-spacing: -.01em;
  margin-bottom: 16px; color: var(--ink);
}
.article-shell p{
  font-size: 17px; line-height: 1.75; color: var(--ink-soft);
  margin-bottom: 16px;
}
.article-shell p a{ color: var(--amber-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-shell p a:hover{ color: var(--wine-deep); }

/* hero figure */
.article-hero-image{ margin: 8px 0 8px; }
.article-hero-image img{
  width: 100%; max-height: 560px; object-fit: cover; object-position: top center;
  border-radius: 18px; border: 1px solid var(--hair);
  box-shadow: 0 24px 50px rgba(21,17,12,.16);
}
.article-hero-image figcaption{
  margin-top: 14px; font-family: var(--serif); font-style: italic;
  font-size: 15px; color: var(--ink-faint); text-align: center;
}

/* ===== COMPARISON TABLE ===== */
.article-shell .table-scroll{ overflow-x: auto; margin: 26px 0; }
.article-shell table{ width: 100%; border-collapse: collapse; font-size: 15px; min-width: 540px; }
.article-shell th, .article-shell td{ text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--hair); vertical-align: top; line-height: 1.5; }
.article-shell thead th{ font-family: var(--sans); font-weight: 700; color: var(--ink); border-bottom: 2px solid rgba(21,17,12,.28); }
.article-shell th:first-child, .article-shell td:first-child{ font-weight: 600; color: var(--ink); }
.article-shell tr.pick{ background: rgba(178,122,44,.10); }
.article-shell .yes{ color: #2e7d32; font-weight: 600; }
.article-shell .no{ color: #b23a3a; }

/* ===== ARTICLE CTA (dark anchor block) ===== */
.article-cta{
  margin-top: 56px; padding: 48px 40px; text-align: center;
  border-radius: 24px; color: var(--d-paper);
  background:
    radial-gradient(600px 300px at 80% 0%, rgba(232,183,101,.18), transparent 60%),
    linear-gradient(135deg, #1d1610 0%, #15110c 100%);
}
.article-cta h2{ font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; color: var(--d-paper); }
.article-cta p{ font-family: var(--serif); font-size: 19px; color: var(--d-paper-dim); max-width: 520px; margin: 0 auto 28px; line-height: 1.5; }
.app-store-link{ display: inline-block; transition: transform .25s; }
.app-store-link:hover{ transform: translateY(-2px); }
.app-store-link img{ width: 180px; height: auto; }
.text-link{ color: var(--ink-soft); font-size: 14px; }
.text-link:hover{ color: var(--amber-deep); }

/* ===== FOOTER ===== */
.site-footer{
  margin-top: 80px; padding: 50px max(20px, (100% - 1100px) / 2);
  border-top: 1px solid var(--hair);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
  font-size: 13px; color: var(--ink-faint);
}
.site-footer div{ display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.site-footer strong{ font-family: var(--serif); font-size: 20px; font-weight: 600; color: var(--ink); }
.site-footer nav{ display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer a{ color: var(--ink-faint); transition: color .2s; }
.site-footer a:hover{ color: var(--amber-deep); }

@media (max-width: 600px){
  .site-header{ padding: 14px 20px; }
  .site-nav{ gap: 8px 18px; }
  .site-footer{ flex-direction: column; align-items: flex-start; }
}
