/* Solid Digital — one stylesheet for the whole site.
   No external resources, no imports, no web fonts. */

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

:root {
  --bg: #fbf8f2;
  --panel: #ffffff;
  --tint: #f1ebdd;
  --ink: #221f19;
  --ink-soft: #4e4738;
  --line: #ddd2bd;
  --line-strong: #c3b59a;
  --green: #21543f;
  --green-deep: #173c2d;
  --amber: #8a3f12;
  --radius: 4px;
  --u: 8px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ---------- headings and text ---------- */

h1, h2, h3, h4 { font-family: var(--serif); color: var(--green-deep); line-height: 1.25; margin: 0 0 calc(var(--u) * 1.5); font-weight: 700; }
h1 { font-size: 2.05rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: calc(var(--u) * 5); }
h3 { font-size: 1.16rem; margin-top: calc(var(--u) * 3.5); }
h4 { font-size: 1rem; margin-top: calc(var(--u) * 3); }
p, ul, ol, dl, table { margin: 0 0 calc(var(--u) * 2); }
ul, ol { padding-left: 22px; }
li { margin-bottom: calc(var(--u) * 0.75); }
strong { font-weight: 600; }
small { font-size: 0.9rem; }

a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--amber); }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

.lede { font-size: 1.12rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* ---------- skip link ---------- */

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--green-deep); color: #fff; padding: 10px 16px;
  text-decoration: none;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------- header ---------- */

.site-head { background: var(--panel); border-bottom: 1px solid var(--line); }
.head-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--u); padding-top: 14px; padding-bottom: 14px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--green-deep); margin-right: auto; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--green); color: #fbf8f2;
  font-family: var(--serif); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em;
}
.brand-name { font-family: var(--serif); font-size: 1.1rem; font-weight: 700; }

.nav-toggle {
  display: none;
  font: inherit; font-size: 0.95rem;
  background: var(--tint); color: var(--green-deep);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 7px 14px; cursor: pointer;
}

.site-nav { flex-basis: 100%; }
@media (min-width: 860px) { .site-nav { flex-basis: auto; } }

.nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 18px; list-style: none; margin: 0; padding: 0; }
.nav-list > li { margin: 0; position: relative; }
.nav-list a, .nav-btn {
  display: inline-block; padding: 6px 0;
  font-size: 0.95rem; color: var(--ink-soft); text-decoration: none;
  border-bottom: 2px solid transparent; background: none; border-left: 0; border-right: 0; border-top: 0;
  font-family: inherit; cursor: pointer;
}
.nav-list a:hover, .nav-btn:hover { color: var(--amber); border-bottom-color: var(--amber); }
.nav-list a[aria-current="page"] { color: var(--green-deep); border-bottom-color: var(--green); }
.nav-btn::after { content: " \25BE"; font-size: 0.8em; }

.sub-list {
  list-style: none; margin: 0; padding: var(--u);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
@media (min-width: 860px) {
  .sub-list { position: absolute; top: 100%; left: -12px; z-index: 30; width: 290px; box-shadow: 0 6px 18px rgba(34, 31, 25, 0.13); }
}
.sub-list li { margin: 0; }
.sub-list a { display: block; padding: 6px 8px; border-bottom: 0; }
.sub-list a:hover { background: var(--tint); border-bottom: 0; }

@media (max-width: 859px) {
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; }
  .site-nav.is-open { display: block; padding-bottom: var(--u); }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list > li { border-top: 1px solid var(--line); }
  .nav-list a, .nav-btn { padding: 10px 0; width: 100%; text-align: left; }
}

/* ---------- layout ---------- */

main { display: block; padding: calc(var(--u) * 5) 0 calc(var(--u) * 6); }
.cols { display: grid; gap: calc(var(--u) * 4); }
@media (min-width: 900px) { .cols { grid-template-columns: 250px minmax(0, 1fr); } }

.side { font-size: 0.95rem; }
.side h2 { font-size: 1rem; margin-top: 0; }
.side ol { padding-left: 20px; }
.side li { margin-bottom: 10px; }
.side .side-box { background: var(--tint); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--u) * 2); position: sticky; top: var(--u); }

article > *:first-child { margin-top: 0; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: var(--u); }
.crumbs a { color: var(--ink-soft); }

/* ---------- panels and units ---------- */

.hero { background: var(--panel); border: 1px solid var(--line); border-left: 5px solid var(--green); border-radius: var(--radius); padding: calc(var(--u) * 4); }
.hero h1 { margin-bottom: calc(var(--u) * 2); }
.hero p:last-child { margin-bottom: 0; }

.disclosure {
  background: #fff6e6; border: 1px solid #d8a45c; border-left: 5px solid var(--amber);
  border-radius: var(--radius); padding: calc(var(--u) * 3);
  margin: calc(var(--u) * 4) 0;
}
.disclosure h2 { margin-top: 0; font-size: 1.15rem; }
.disclosure p:last-child { margin-bottom: 0; }

.callout { background: var(--tint); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: calc(var(--u) * 3); margin: calc(var(--u) * 3) 0; }
.callout h3 { margin-top: 0; }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }

.watch { background: var(--panel); border: 1px solid var(--line-strong); border-top: 4px solid var(--amber); border-radius: var(--radius); padding: calc(var(--u) * 3); margin: calc(var(--u) * 3) 0; }
.watch h3 { margin-top: 0; color: var(--amber); }
.watch p:last-child, .watch ul:last-child { margin-bottom: 0; }

.method { background: var(--panel); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: calc(var(--u) * 3); margin: calc(var(--u) * 3) 0; }
.method h3 { margin-top: 0; }
.method p:last-child, .method ul:last-child { margin-bottom: 0; }

.summary-card { background: var(--green-deep); color: #f4efe3; border-radius: var(--radius); padding: calc(var(--u) * 3); margin: calc(var(--u) * 3) 0; }
.summary-card h3 { color: #fbf8f2; margin-top: 0; }
.summary-card a { color: #ffd9a8; }
.summary-card p:last-child, .summary-card ul:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0; counter-reset: step; }
.steps > li {
  counter-increment: step;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: calc(var(--u) * 2.5) calc(var(--u) * 2.5) calc(var(--u) * 2.5) calc(var(--u) * 7);
  margin-bottom: calc(var(--u) * 1.5); position: relative;
}
.steps > li::before {
  content: counter(step);
  position: absolute; left: calc(var(--u) * 2.5); top: calc(var(--u) * 2.5);
  width: 30px; height: 30px; display: grid; place-items: center;
  background: var(--green); color: #fbf8f2; border-radius: var(--radius);
  font-family: var(--serif); font-weight: 700;
}
.steps h3 { margin: 0 0 4px; font-size: 1.08rem; }
.steps p { margin: 0; font-size: 0.97rem; color: var(--ink-soft); }

.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.45em;
  width: 13px; height: 13px; border: 2px solid var(--green); border-radius: 2px;
}

dl.terms dt { font-weight: 600; color: var(--green-deep); margin-top: calc(var(--u) * 2); }
dl.terms dd { margin: 4px 0 0; }

.table-scroll { overflow-x: auto; margin-bottom: calc(var(--u) * 3); border: 1px solid var(--line); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin: 0; min-width: 540px; }
caption { text-align: left; padding: calc(var(--u) * 1.5) calc(var(--u) * 2); font-weight: 600; color: var(--ink-soft); background: var(--tint); border-bottom: 1px solid var(--line); }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
thead th { background: var(--tint); color: var(--green-deep); border-bottom: 1px solid var(--line-strong); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font-weight: 600; }

details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
summary { cursor: pointer; padding: 14px 16px; font-weight: 600; color: var(--green-deep); list-style-position: inside; }
details[open] summary { border-bottom: 1px solid var(--line); }
details .answer { padding: 14px 16px 2px; }

.prosandcons { display: grid; gap: calc(var(--u) * 2); }
@media (min-width: 720px) { .prosandcons { grid-template-columns: 1fr 1fr; } }
.prosandcons > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: calc(var(--u) * 2.5); }
.prosandcons h3 { margin-top: 0; font-size: 1.02rem; }
.prosandcons ul { margin-bottom: 0; }

/* ---------- affiliate link block ---------- */

.aff { background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: calc(var(--u) * 3); margin: calc(var(--u) * 3) 0; }
.btn {
  display: inline-block; background: var(--green); color: #fbf8f2;
  padding: 12px 22px; border-radius: var(--radius); text-decoration: none;
  font-weight: 600; font-size: 1rem;
}
.btn:hover { background: var(--green-deep); color: #fff; }
.aff-note { display: block; margin-top: calc(var(--u) * 1.5); font-size: 0.95rem; color: var(--ink-soft); }
.aff-note:first-child { margin-top: 0; margin-bottom: calc(var(--u) * 1.5); }

/* ---------- decorative svg ---------- */

.figure { margin: calc(var(--u) * 3) 0; }
.figure svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.figure figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: var(--u); }

/* ---------- related reading ---------- */

.related { border-top: 2px solid var(--line-strong); margin-top: calc(var(--u) * 6); padding-top: calc(var(--u) * 2); }
.related h2 { margin-top: 0; font-size: 1.2rem; }
.related ul { list-style: none; padding: 0; }
.related li { border-bottom: 1px solid var(--line); padding-bottom: 10px; }

/* ---------- footer ---------- */

.site-foot { background: var(--green-deep); color: #e6ded0; padding: calc(var(--u) * 5) 0; font-size: 0.94rem; }
.site-foot a { color: #ffd9a8; }
.site-foot a:hover { color: #fff; }
.site-foot p { margin: 0 0 calc(var(--u) * 2); max-width: 70ch; }
.foot-name { font-family: var(--serif); font-size: 1.15rem; font-weight: 700; color: #fbf8f2; margin-bottom: var(--u); }
.foot-links { line-height: 2; }
.foot-tm, .foot-date { color: #cfc5b3; font-size: 0.88rem; }
.foot-date { margin-bottom: 0; }
