/* bitcoinseedbook.com: "Field Manual" (design B, Dennis 2026-10-14). One stylesheet for every page; /vault/ keeps bit.css. */
:root {
  --ground: #e9ebe4;
  --paper: #f6f7f2;
  --ink: #1c211d;
  --ink-soft: #3d443e;
  --olive: #4b5a2a;
  --rule: #b9bfae;
  --accent: #b0440f;
  --on-dark: #e9ebe4;
  --on-dark-soft: #c9cdc2;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 1160px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; overflow-wrap: break-word; min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--olive); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.screen-reader-text, .sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: var(--on-dark); padding: 10px 14px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* Top strip, masthead, nav */
.strip { background: var(--ink); color: var(--on-dark); font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.mast { border-bottom: 3px solid var(--ink); }
.mast .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 32px; text-transform: uppercase; letter-spacing: 0.02em; }
.brand small { font-family: var(--mono); font-size: 12px; color: var(--olive); margin-top: 5px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; font-family: var(--display); font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: 0.04em; }
.nav a { text-decoration: none; padding: 10px 0; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.nav .cta { background: var(--accent); color: #fff; padding: 10px 16px; }
.nav .cta:hover { background: var(--ink); color: var(--on-dark); }

/* Buttons and labels */
.btn { display: inline-block; text-decoration: none; padding: 14px 22px; font-weight: 600; background: var(--ink); color: var(--on-dark); border: 2px solid var(--ink); }
.btn:hover { background: var(--olive); border-color: var(--olive); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--on-dark); }
.kicker { font-family: var(--mono); font-size: 13px; color: var(--olive); text-transform: uppercase; letter-spacing: 0.1em; }

/* Home */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 48px 56px; align-items: end; padding-top: 72px; padding-bottom: 64px; }
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(50px, 8vw, 84px); line-height: 0.92; text-transform: uppercase; }
.hero p { margin: 0; max-width: 520px; font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.receipt { margin: 0; background: var(--paper); border: 2px solid var(--ink); padding: 24px; font-family: var(--mono); transform: rotate(1.2deg); }
.receipt figcaption { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--olive); border-bottom: 1px dashed #8c9483; padding-bottom: 10px; margin-bottom: 14px; }
.receipt dl { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; font-size: 17px; }
.receipt dt, .receipt dd { margin: 0; }
.receipt dd { text-align: right; }
.receipt .total { border-top: 1px dashed #8c9483; padding-top: 8px; margin-top: 6px; font-weight: 600; }
.band { background: var(--ink); color: var(--on-dark); }
.band a { color: var(--on-dark); }
.band .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 40px; padding-top: 64px; padding-bottom: 64px; }
.band .num { font-family: var(--display); font-weight: 700; font-size: 56px; line-height: 1; color: #c6cfb2; }
.band h2 { margin: 10px 0; font-family: var(--display); font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.band p { margin: 0; color: var(--on-dark-soft); font-size: 16px; }
.section { padding-top: 80px; padding-bottom: 80px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 8px 16px; border-bottom: 3px solid var(--ink); padding-bottom: 14px; margin-bottom: 8px; }
.section-head h2 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 52px; line-height: 1; text-transform: uppercase; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 0; }
.steps .n { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; color: var(--accent); }
.steps strong { font-size: 20px; }
.steps p { margin: 4px 0 0; }
.warning { border: 3px solid var(--accent); background: var(--paper); margin-bottom: 80px; }
.warning-head { background: var(--accent); color: #fff; padding: 10px 20px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase; margin: 0; }
.warning-body { padding: 24px 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.warning-body p { margin: 0; }
.warning-body .lead { font-weight: 600; font-size: 19px; }
.appendix { border-top: 3px solid var(--ink); }
.appendix .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 32px; padding-top: 64px; padding-bottom: 64px; }
.appendix h2 { margin: 0 0 12px; font-family: var(--display); font-size: 30px; line-height: 1.1; text-transform: uppercase; }
.appendix p { margin: 0 0 12px; font-size: 16px; }
.appendix a.more { display: inline-block; font-weight: 600; padding: 10px 0; }
.appendix ul { margin: 0; padding-left: 1.2em; font-size: 16px; }

/* Inner pages: the article column */
.page { padding-top: 56px; padding-bottom: 80px; }
.page > * { max-width: 780px; margin-left: auto; margin-right: auto; }
.page .page-header, .page .entry-header { margin-bottom: 24px; }
.page h1, .page .page-title, .page .entry-title { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 0.98; }
.page h1 { margin: 0; font-size: clamp(40px, 7vw, 64px); }
.entry-header h1, .page-header h1 { border-bottom: 3px solid var(--ink); padding-bottom: 16px; }
.page-title span { color: var(--accent); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: 1.05; margin: 1.6em 0 0.4em; }
.entry-content h2 { font-size: 34px; }
.entry-content h3 { font-size: 26px; }
.entry-content h4 { font-size: 21px; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 1em; }
.entry-content li { margin-bottom: 0.3em; }
.entry-content .has-text-align-center { text-align: left; }
.entry-content .wp-block-columns, .entry-content .wp-block-group { display: block; }
.entry-content .has-background { background: transparent !important; }
.entry-content blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--olive); font-size: 19px; }
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content figure { margin: 1.5em 0; }
.entry-content figure.wp-block-image img { border: 2px solid var(--ink); background: #fff; }
pre { font-family: var(--mono); font-size: 14px; line-height: 1.5; background: var(--paper); border: 2px solid var(--ink); padding: 16px; overflow-x: auto; white-space: pre; max-height: 520px; }
code { font-family: var(--mono); font-size: 0.92em; }
.entry-content figure.wp-block-table { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--paper); }
th, td { border: 1px solid var(--rule); padding: 9px 12px; text-align: left; vertical-align: top; }
th { font-family: var(--display); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: 0.03em; background: #dfe2d8; }
td { white-space: nowrap; }
.aioseo-breadcrumbs { font-family: var(--mono); font-size: 13px; color: var(--olive); margin-bottom: 20px; text-transform: uppercase; letter-spacing: 0.06em; }
.aioseo-breadcrumb-separator { padding: 0 6px; }
.aioseo-faq-block-question { margin-top: 0 !important; }
.entry-footer, .posted-by, .post-taxonomies { font-family: var(--mono); font-size: 13px; color: var(--ink-soft); }
.entry-footer { border-top: 1px solid var(--rule); margin-top: 32px; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.posted-by { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.post-taxonomies span { margin-right: 14px; }
.svg-icon { width: 1.1em; height: 1.1em; vertical-align: -0.2em; }
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.post-navigation a { display: block; text-decoration: none; border: 2px solid var(--ink); padding: 14px 16px; background: var(--paper); height: 100%; }
.post-navigation a:hover { background: var(--ink); color: var(--on-dark); }
.post-navigation .nav-next { text-align: right; }
.post-navigation p { margin: 0; }
.post-navigation .meta-nav { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.post-navigation .post-title { font-family: var(--display); font-weight: 700; font-size: 21px; text-transform: uppercase; line-height: 1.1; margin-top: 4px; }

/* Archives: blog, category, tag, author */
.archive-list > article { background: var(--paper); border: 2px solid var(--ink); padding: 20px 22px; margin-bottom: 18px; }
.archive-list > article .entry-header { margin: 0 0 8px; }
.archive-list > article .entry-title { margin: 0; font-size: 28px; line-height: 1.05; border: 0; padding: 0; }
.archive-list > article .entry-title a { text-decoration: none; }
.archive-list > article .entry-title a:hover { text-decoration: underline; }
.archive-list > article .entry-content p { margin: 0; font-size: 16px; }
.archive-list > article .more-link { font-weight: 600; }
.archive-list > article .entry-footer { margin-top: 12px; padding-top: 10px; }
.archive-list .page-header { margin-bottom: 28px; }
.page-description, .archive-description { margin: 0 0 24px; }

/* Ciphers index cards */
.tomes { list-style: none; margin: 0 0 1.5em; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; }

/* Footer */
.foot { background: var(--ink); color: var(--on-dark-soft); }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; padding-top: 28px; padding-bottom: 28px; font-family: var(--mono); font-size: 13px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot a { color: var(--on-dark-soft); display: inline-block; padding: 10px 0; }
.foot a:hover { color: #fff; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand b { font-size: 26px; }
  .nav { gap: 0 16px; font-size: 17px; }
  .nav .cta { margin-top: 6px; }
  .section-head h2 { font-size: 40px; }
  .steps li { grid-template-columns: 52px minmax(0, 1fr); gap: 12px; }
  .steps .n { font-size: 34px; }
  .receipt { transform: none; }
  .entry-content h2 { font-size: 28px; }
}
@media print {
  .strip, .nav, .foot nav { display: none; }
  body { background: #fff; }
}
