/* Bikivuno — article pages and article index.
   Palette and header/footer match style.css (the landing page). The article itself
   sits on a cream sheet, like the icon in the landing page's frame. */

:root {
  --forest: #103c30;
  --forest-deep: #072a20;
  --forest-mid: #194c3a;
  --cream: #f6f1dc;
  --cream-dark: #ebe4c9;
  --lime: #c9ea81;
  --sage: #d3dbcf;
  --sage-dim: #b9cbbb;
  --ink: #12332a;
  --ink-soft: #4b6459;
  --rule: #d8d0b4;
  --serif: "Didot", "Bodoni 72", "Bodoni MT", "Libre Bodoni", Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
.page { max-width: 1600px; margin: auto; padding: 0 clamp(24px, 5vw, 88px); }

/* Header: same measurements as the landing page */
.site-header {
  min-height: 116px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  border-bottom: 1px solid #ffffff28;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit;
  font-size: 30px; font-weight: 800; letter-spacing: -1.1px;
}
.brand img { border-radius: 11px; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: var(--sage); text-decoration: none; font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--cream); }
.site-nav a[aria-current="page"] { color: var(--lime); }

main { padding: 56px 0 72px; }

/* The cream sheet */
.sheet {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(22px, 5vw, 64px) clamp(32px, 5vw, 56px);
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
  box-shadow: 14px 18px 0 var(--forest-deep);
}

/* Article header */
.article-head { margin-bottom: 8px; }
.date { margin: 0 0 18px; font-size: 14px; color: var(--ink-soft); }
.sheet h1 {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4.6vw, 50px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.012em;
}
.standfirst {
  margin: 0;
  font-size: 19px; line-height: 1.5;
  color: var(--ink-soft);
}

/* A single candlestick as the rule between the head and the body */
.candle {
  position: relative;
  height: 34px;
  margin: 30px 0 22px;
}
.candle::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  border-top: 1px solid var(--rule);
}
.candle span {
  position: absolute; left: 0; top: 7px;
  width: 12px; height: 20px;
  background: var(--lime);
  border: 2px solid var(--forest);
  border-radius: 2px;
}
.candle span::before, .candle span::after {
  content: ""; position: absolute; left: 3px; width: 2px; background: var(--forest);
}
.candle span::before { top: -9px; height: 7px; }
.candle span::after { bottom: -9px; height: 7px; }

/* Body copy */
.body { font-size: 17px; line-height: 1.7; }
.body p { margin: 0 0 1.2em; }
.body h2 {
  margin: 2em 0 0.55em;
  font-family: var(--serif);
  font-size: 26px; font-weight: 700; line-height: 1.2;
  letter-spacing: -0.008em;
}
.body ul { margin: 0 0 1.2em; padding-left: 1.3em; }
.body li { margin-bottom: 0.45em; }
.body strong { font-weight: 700; }
.body a { color: var(--forest); text-decoration: underline; text-decoration-color: var(--forest-mid); text-underline-offset: 2px; }
.body a:hover { text-decoration-color: var(--forest); }
.body .formula {
  margin: 0 0 1.2em; padding: 12px 16px;
  background: var(--cream-dark); border-left: 3px solid var(--forest);
  font-size: 17px;
}
.body table {
  width: 100%; margin: 0 0 1.4em;
  border-collapse: collapse; font-size: 15.5px; line-height: 1.45;
}
.body th, .body td { padding: 9px 10px 9px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.body th { font-weight: 700; color: var(--ink); }
.body td:first-child, .body th:first-child { white-space: nowrap; }

.disclaimer { margin: 40px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

/* Under the sheet */
.article-nav {
  max-width: 760px; margin: 34px auto 0;
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  font-size: 15px;
}
.article-nav a { color: var(--sage); text-decoration: none; }
.article-nav a:hover { color: var(--cream); }
.article-nav .next { text-align: right; }
.article-nav .next b { color: var(--lime); font-weight: 600; }

/* Article index */
.index-intro { max-width: 760px; margin: 0 auto 30px; }
.index-intro h1 { margin: 0 0 10px; font-family: var(--serif); font-size: clamp(38px, 5vw, 56px); font-weight: 700; letter-spacing: -0.012em; line-height: 1.05; }
.index-intro p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.65; color: var(--sage); }
.group { margin: 0 0 14px; }
.group h2 { margin: 26px 0 8px; font-family: var(--serif); font-size: 22px; font-weight: 700; color: var(--forest); }
.group h2:first-child { margin-top: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { border-top: 1px solid var(--rule); }
.list li:last-child { border-bottom: 1px solid var(--rule); }
.list a { display: block; padding: 16px 0 17px; color: var(--ink); text-decoration: none; }
.list a:hover .t, .list a:focus-visible .t { text-decoration: underline; text-decoration-color: var(--forest-mid); text-underline-offset: 3px; }
.list .t { display: block; font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 4px; }
.list .s { display: block; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }

.site-footer {
  padding: 28px 0; display: flex; justify-content: space-between; gap: 18px;
  font-size: 12px; color: var(--sage-dim);
  border-top: 1px solid #ffffff28;
}
.site-footer a { color: inherit; }

a:focus-visible { outline: 3px solid var(--lime); outline-offset: 6px; }
.sheet a:focus-visible { outline-color: var(--forest); outline-offset: 3px; }

@media (max-width: 800px) {
  .site-header { min-height: 90px; }
  .site-nav { gap: 18px; }
  main { padding: 36px 0 56px; }
  .sheet { box-shadow: 8px 10px 0 var(--forest-deep); border-radius: 10px; }
  .body { font-size: 16.5px; }
  .body table { font-size: 14.5px; }
  .body td:first-child, .body th:first-child { white-space: normal; }
  .article-nav { flex-direction: column; gap: 12px; }
  .article-nav .next { text-align: left; }
}
@media (max-width: 420px) {
  .brand { font-size: 25px; }
  .brand img { width: 36px; height: 36px; }
  .site-nav a { font-size: 14px; }
  .site-footer { flex-direction: column; gap: 5px; }
}
@media print {
  body { background: #fff; color: #000; }
  .sheet { box-shadow: none; }
  .site-header, .site-footer, .article-nav { display: none; }
}
