/* The Battery Guide — site stylesheet
   Sibling of Before You Skip: warm paper, ink, amber signal, green actions.
   Mobile first. No tracking, no third-party font requests. */

:root {
  --paper: #f6f1e8;
  --paper-2: #efe6d6;
  --ink: #1c1914;
  --ink-soft: #4a453c;
  --rule: #d4c8b4;
  --amber: #e2b00d;
  --amber-ink: #3d3000;
  --green: #0b5345;
  --green-2: #0e6b59;
  --green-soft: #e6f3ef;
  --warn: #8a2b12;
  --max: 44rem;
  --wide: 62rem;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { font-size: 106%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--green-2); }
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.4rem 0.75rem;
  z-index: 20;
}
.skip-link:focus { top: 0.75rem; color: var(--paper); }

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  border-top: 4px solid var(--green);
}
.header-inner,
.footer-inner,
.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}
.wordmark {
  font-family: var(--serif);
  font-weight: 650;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.wordmark span { color: var(--green); }

nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.65rem 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.92rem;
}
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover, nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }

main { flex: 1; padding: 1.75rem 0 3.5rem; }

.hero {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto 2.25rem;
}
.kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--amber-ink);
  padding: 0.15rem 0.45rem;
  margin-bottom: 0.85rem;
}
h1 {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}
.standfirst { font-size: 1.12rem; color: var(--ink-soft); margin: 0 0 1.25rem; }

.notice {
  background: var(--paper-2);
  border-left: 4px solid var(--amber);
  padding: 0.85rem 1rem;
  margin: 1.25rem 0;
}
.notice strong { display: block; margin-bottom: 0.2rem; }

.glance {
  background: var(--green-soft);
  border: 1px solid #b7d8ce;
  padding: 1rem 1.1rem;
  margin: 1.5rem 0;
}
.glance h2 { margin-top: 0; font-size: 1.05rem; }

h2 {
  font-family: var(--serif);
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.6rem;
}
h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; }

p, li { max-width: 65ch; }
ul, ol { padding-left: 1.2rem; }
li { margin-bottom: 0.35rem; }

.questions {
  display: grid;
  gap: 0.85rem;
  margin: 1.25rem 0 2rem;
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
}
@media (min-width: 720px) {
  .questions { grid-template-columns: 1fr 1fr 1fr; }
  .questions.two { grid-template-columns: 1fr 1fr; }
}
.card {
  background: #fffdf8;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
}
.card h2 { margin-top: 0; font-size: 1.15rem; }
.card p:last-child { margin-bottom: 0; color: var(--ink-soft); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 1rem 0 1.5rem;
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}
th { font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }

.prose { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--rule);
  margin-top: 2.5rem;
  padding-top: 0.9rem;
}

.site-footer {
  border-top: 3px solid var(--ink);
  background: #1c1914;
  color: #e8e0d2;
  padding: 1.5rem 0 2rem;
  font-size: 0.9rem;
}
.site-footer a { color: #f0c94d; }
.site-footer p { max-width: 70ch; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.2rem;
  margin: 0 0 0.9rem;
}
.footer-nav a { color: #e8e0d2; }

.crumb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: 0 0 0.85rem;
}
.crumb a { color: var(--ink-soft); }
.prose { overflow-x: auto; }
table.wide { min-width: 36rem; }
caption {
  caption-side: bottom;
  text-align: left;
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 0.55rem 0 0;
}
.faq { margin: 1.25rem 0 2rem; }
.faq details {
  border-bottom: 1px solid var(--rule);
  padding: 0.55rem 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
  padding: 0.2rem 0;
}
.faq details p { margin: 0.45rem 0 0.6rem; }
.worked {
  background: #fffdf8;
  border: 1px solid var(--rule);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
.worked h2, .worked h3 { margin-top: 0; }
.note-plain {
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.placeholder {
  border: 2px dashed #c4b79f;
  background: var(--paper-2);
  padding: 1rem 1.1rem;
  margin: 1.25rem 0;
}
.placeholder p:last-child { margin-bottom: 0; }
.placeholder-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--warn);
  margin: 0 0 0.4rem;
}

.guide-list a { font-weight: 650; }

@media (max-width: 719px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  nav ul { justify-content: flex-start; }
}
