/* ==========================================================================
   Boot Media Notes — stylesheet
   Firmware console (deep BIOS blue + amber) over a quiet serif reading surface.
   Typefaces are taken from the reader's own system: no font network is
   contacted, so a page load makes no third-party request at all.
   ========================================================================== */

:root{
  --ink:      #0E1424;
  --panel:    #16203A;
  --panel-2:  #1D2A49;
  --rule:     #D8DEE9;
  --rule-dk:  #2A3757;
  --paper:    #F2F4F8;
  --surface:  #FFFFFF;
  --amber:    #FFB020;
  --amber-dk: #A96B00;
  --steel:    #5D6B85;
  --steel-lt: #8A97AE;

  --display: "Helvetica Neue", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --body:    Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --mono:    ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --measure: 68ch;
  --wrap: 1180px;
  --r: 4px;
  --ease: cubic-bezier(.2,.7,.3,1);
}

*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }

body{
  margin:0;
  background:var(--paper);
  color:var(--ink);
  font-family:var(--body);
  font-size:1.0625rem;
  line-height:1.68;
  overflow-x:hidden;
}

img,svg{ max-width:100%; height:auto; display:block; }
a{ color:inherit; }
[hidden]{ display:none !important; }

.wrap{ width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:20px; }

/* --------------------------------------------------------------- headings */
h1,h2,h3,h4{
  font-family:var(--display);
  font-weight:700;
  letter-spacing:-.021em;
  line-height:1.14;
  margin:0 0 .5em;
  text-wrap:balance;
}
h1{ font-size:clamp(2rem,5vw,3.2rem); }
h2{ font-size:clamp(1.45rem,3.2vw,1.95rem); }
h3{ font-size:clamp(1.14rem,2.3vw,1.34rem); }
p{ margin:0 0 1.15em; }

.eyebrow{
  font-family:var(--mono);
  font-size:.72rem; letter-spacing:.18em; text-transform:uppercase;
  color:var(--steel); margin:0 0 .9rem;
  display:flex; align-items:center; gap:.6rem;
}
.eyebrow::before{ content:""; width:22px; height:2px; background:var(--amber); flex:none; }

/* --------------------------------------------------------------- a11y --- */
.skip{
  position:absolute; left:-9999px; top:0; z-index:200;
  background:var(--amber); color:var(--ink);
  padding:.7rem 1.1rem; font-family:var(--mono); font-size:.8rem;
}
.skip:focus{ left:8px; top:8px; }
:focus-visible{ outline:3px solid var(--amber); outline-offset:2px; }

/* ----------------------------------------------------------------- header */
.site-head{
  position:sticky; top:0; z-index:80;
  background:rgba(14,20,36,.95);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--rule-dk);
  color:#E8ECF4;
}
.head-in{ display:flex; align-items:center; gap:1.25rem; min-height:62px; }
.brand{
  display:flex; align-items:center; gap:.6rem;
  text-decoration:none; margin-right:auto;
  font-family:var(--display); font-weight:700; font-size:1.06rem; color:#fff;
}
.brand .mark{ width:26px; height:26px; flex:none; }
.brand small{
  display:block; font-family:var(--mono); font-weight:400;
  font-size:.6rem; letter-spacing:.2em; text-transform:uppercase;
  color:var(--amber); margin-top:2px;
}

.nav{ display:flex; align-items:center; gap:.15rem; }
.nav a{
  font-family:var(--mono); font-size:.78rem; letter-spacing:.04em;
  text-decoration:none; color:#C3CCDC;
  padding:.5rem .7rem; border-radius:var(--r);
  transition:color .18s var(--ease), background .18s var(--ease);
}
.nav a:hover{ color:var(--amber); background:rgba(255,176,32,.09); }
.nav a[aria-current="page"]{ color:var(--amber); }

.nav-toggle{
  display:none; background:none; border:1px solid var(--rule-dk);
  color:#E8ECF4; border-radius:var(--r); padding:.45rem .6rem;
  font-family:var(--mono); font-size:.75rem; cursor:pointer;
}
@media (max-width:880px){
  .nav-toggle{ display:block; }
  .nav{
    position:fixed; inset:62px 0 auto 0;
    flex-direction:column; align-items:stretch;
    background:var(--ink); border-bottom:1px solid var(--rule-dk);
    padding:.5rem 20px 1rem; gap:0;
    max-height:0; overflow:hidden;
    transition:max-height .32s var(--ease);
  }
  .nav.open{ max-height:70vh; overflow:auto; }
  .nav a{ padding:.85rem .2rem; border-bottom:1px solid rgba(255,255,255,.06); font-size:.9rem; }
}

/* ------------------------------------------------------- hero / bootmenu */
.hero{
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(255,176,32,.13), transparent 62%),
    linear-gradient(180deg,#0E1424 0%, #131C33 100%);
  color:#E9EDF5;
  padding:clamp(2.6rem,7vw,4.6rem) 0 clamp(2.6rem,6vw,4rem);
  border-bottom:1px solid var(--rule-dk);
  position:relative; overflow:hidden;
}
.hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:repeating-linear-gradient(180deg,rgba(255,255,255,.028) 0 1px,transparent 1px 3px);
  mix-blend-mode:overlay;
}
.hero-grid{
  display:grid; gap:clamp(1.8rem,4vw,3rem);
  grid-template-columns:1fr; align-items:center;
  position:relative; z-index:1;
}
@media (min-width:920px){ .hero-grid{ grid-template-columns:1.02fr 1fr; } }
.hero h1{ color:#fff; }
.hero .lede{ font-size:1.09rem; color:#B9C4D7; max-width:52ch; margin-bottom:1.6rem; }
.hero .eyebrow{ color:#8FA0BC; }

.btn{
  display:inline-flex; align-items:center; gap:.55rem;
  font-family:var(--mono); font-size:.82rem; letter-spacing:.05em;
  text-decoration:none; cursor:pointer;
  padding:.78rem 1.15rem; border-radius:var(--r);
  border:1px solid transparent;
  transition:transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:active{ transform:translateY(1px); }
.btn-primary{ background:var(--amber); color:#20160A; font-weight:600; }
.btn-primary:hover{ background:#FFC24D; }
.btn-ghost{ border-color:rgba(255,255,255,.28); color:#E4EAF5; }
.btn-ghost:hover{ border-color:var(--amber); color:var(--amber); }
.btn-row{ display:flex; flex-wrap:wrap; gap:.7rem; }

/* Signature element: a firmware-style selection menu. */
.bootmenu{
  border:1px solid #33456E; border-radius:6px;
  background:linear-gradient(180deg,#111A2F,#0C1329);
  box-shadow:0 24px 60px -30px rgba(0,0,0,.9);
  overflow:hidden; font-family:var(--mono);
}
.bootmenu-bar{
  display:flex; align-items:center; justify-content:space-between; gap:1rem;
  padding:.6rem .85rem; background:#1B2745; border-bottom:1px solid #33456E;
  font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; color:#95A6C4;
}
.bootmenu-bar b{ color:var(--amber); font-weight:500; }
.bootmenu ul{ list-style:none; margin:0; padding:.5rem 0; }
.bootmenu li{ margin:0; }
.bootmenu li a{
  display:grid; grid-template-columns:1.6rem 1fr auto; align-items:center; gap:.7rem;
  padding:.62rem .9rem; font-size:.83rem; color:#CBD5E7; text-decoration:none;
  border-left:3px solid transparent;
  transition:background .16s var(--ease), color .16s var(--ease);
}
.bootmenu li a .idx{ color:#5D6E92; font-size:.72rem; }
.bootmenu li a .tag{ font-size:.65rem; letter-spacing:.1em; text-transform:uppercase; color:#7B8CAC; }
.bootmenu li a:hover,
.bootmenu li a:focus-visible,
.bootmenu li.is-active a{
  background:rgba(255,176,32,.14); border-left-color:var(--amber);
  color:#FFF3DE; outline:none;
}
.bootmenu li.is-active a .tag{ color:var(--amber); }
.bootmenu-foot{
  padding:.6rem .9rem; border-top:1px solid #26325A;
  font-size:.68rem; color:#7C8CAB; letter-spacing:.04em;
  display:flex; gap:1rem; flex-wrap:wrap;
}
.caret{ color:var(--amber); animation:blink 1.1s steps(1,end) infinite; }
@keyframes blink{ 50%{ opacity:0; } }

/* ----------------------------------------------------------------- layout */
.section{ padding:clamp(2.6rem,6vw,4.4rem) 0; }
.section--tint{ background:var(--surface); border-block:1px solid var(--rule); }
.sec-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  gap:1.5rem; margin-bottom:1.9rem; flex-wrap:wrap;
}
.sec-head p{ margin:0; color:var(--steel); max-width:56ch; }

/* --------------------------------------------------------------- cards --- */
.grid{ display:grid; gap:1.1rem; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); }
.card{
  background:var(--surface); border:1px solid var(--rule); border-radius:6px;
  overflow:hidden; display:flex; flex-direction:column; text-decoration:none;
  transition:transform .26s var(--ease), box-shadow .26s var(--ease), border-color .26s var(--ease);
}
.card:hover{
  transform:translateY(-4px); border-color:#B9C3D4;
  box-shadow:0 18px 34px -22px rgba(14,20,36,.45);
}
.card .thumb{ aspect-ratio:16/9; background:var(--panel); border-bottom:1px solid var(--rule); overflow:hidden; }
.card .thumb svg{ width:100%; height:100%; }
.card .body{ padding:1.05rem 1.15rem 1.25rem; display:flex; flex-direction:column; flex:1; }
.card .tag{ font-family:var(--mono); font-size:.66rem; letter-spacing:.14em; text-transform:uppercase; color:var(--amber-dk); margin-bottom:.55rem; }
.card h3{ margin:0 0 .5rem; font-size:1.14rem; }
.card p{ margin:0 0 1rem; color:var(--steel); font-size:.94rem; line-height:1.58; }
.card .meta{
  margin-top:auto; font-family:var(--mono); font-size:.68rem;
  letter-spacing:.06em; color:var(--steel-lt); display:flex; gap:.9rem; flex-wrap:wrap;
}

/* -------------------------------------------------------------- article -- */
.article-head{
  background:linear-gradient(180deg,#0E1424,#141E37);
  color:#E9EDF5; padding:clamp(2.2rem,5.5vw,3.4rem) 0 clamp(2rem,5vw,3rem);
  border-bottom:1px solid var(--rule-dk);
}
.article-head h1{ color:#fff; max-width:26ch; font-size:clamp(1.85rem,4.2vw,2.9rem); }
.article-head .lede{ color:#B4C0D4; max-width:60ch; font-size:1.06rem; margin-bottom:1.2rem; }
.article-head .meta{
  font-family:var(--mono); font-size:.72rem; letter-spacing:.08em;
  color:#8A9AB8; display:flex; gap:1.1rem; flex-wrap:wrap;
}
.crumbs{ font-family:var(--mono); font-size:.72rem; letter-spacing:.06em; color:#8494B2; margin-bottom:1.4rem; }
.crumbs a{ text-decoration:none; color:#B7C3D8; }
.crumbs a:hover{ color:var(--amber); }

.article-layout{ display:grid; gap:2.6rem; grid-template-columns:1fr; padding:clamp(2.2rem,5vw,3.4rem) 0 3rem; }
@media (min-width:1000px){ .article-layout{ grid-template-columns:minmax(0,1fr) 258px; gap:3.4rem; } }

.prose{ max-width:var(--measure); }
.prose > figure{ margin:2rem 0; }
.prose figure svg{ width:100%; border:1px solid var(--rule); border-radius:6px; background:var(--surface); }
.prose figcaption{ font-family:var(--mono); font-size:.72rem; color:var(--steel); margin-top:.6rem; line-height:1.5; }
.prose h2{ margin-top:2.4rem; scroll-margin-top:80px; }
.prose h3{ margin-top:1.8rem; scroll-margin-top:80px; }
.prose ul,.prose ol{ margin:0 0 1.25em; padding-left:1.3em; }
.prose li{ margin-bottom:.45em; }
.prose strong{ font-weight:700; }
.prose em{ font-style:italic; }
.prose a{ color:#1F4FA8; text-decoration:underline; text-underline-offset:2px; }
.prose a:hover{ color:var(--amber-dk); }
.prose code{
  font-family:var(--mono); font-size:.86em;
  background:#E7EBF2; border:1px solid var(--rule);
  padding:.08em .38em; border-radius:3px;
}

.callout{
  background:var(--surface); border:1px solid var(--rule);
  border-left:3px solid var(--amber); border-radius:0 6px 6px 0;
  padding:1.05rem 1.2rem; margin:1.9rem 0;
}
.callout .label{
  font-family:var(--mono); font-size:.68rem; letter-spacing:.16em;
  text-transform:uppercase; color:var(--amber-dk); margin-bottom:.4rem;
}
.callout p:last-child{ margin-bottom:0; }

.spec{
  width:100%; border-collapse:collapse; margin:1.8rem 0;
  font-size:.92rem; background:var(--surface); border:1px solid var(--rule);
}
.spec th,.spec td{ padding:.7rem .85rem; border-bottom:1px solid var(--rule); text-align:left; vertical-align:top; }
.spec th{
  font-family:var(--mono); font-size:.7rem; letter-spacing:.1em;
  text-transform:uppercase; color:var(--steel); background:#EDF0F6;
}
.spec tr:last-child td{ border-bottom:0; }
@media (max-width:640px){
  .prose .spec{ display:block; overflow-x:auto; white-space:nowrap; }
}

.aside{ position:relative; }
@media (min-width:1000px){ .aside-in{ position:sticky; top:84px; } }
.toc{ display:none; border:1px solid var(--rule); background:var(--surface); border-radius:6px; padding:1rem 1.05rem; }
.toc .label{ font-family:var(--mono); font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--steel); margin-bottom:.7rem; }
.toc ol{ list-style:none; margin:0; padding:0; }
.toc li{ margin:0 0 .1rem; }
.toc a{
  display:block; padding:.34rem .5rem; border-radius:var(--r);
  font-size:.87rem; text-decoration:none; color:var(--steel);
  border-left:2px solid transparent;
  transition:color .16s var(--ease), background .16s var(--ease);
}
.toc a:hover{ color:var(--ink); background:#EEF1F7; }
.toc a.active{ color:var(--ink); border-left-color:var(--amber); background:#EEF1F7; }
.aside-note{
  margin-top:1rem; border:1px solid var(--rule); border-radius:6px;
  background:var(--surface); padding:1rem 1.05rem;
  font-size:.86rem; color:var(--steel); line-height:1.58;
}
.aside-note .label{ font-family:var(--mono); font-size:.68rem; letter-spacing:.16em; text-transform:uppercase; color:var(--amber-dk); margin-bottom:.5rem; }

.progress{ position:fixed; top:0; left:0; height:2px; width:0; background:var(--amber); z-index:120; transition:width .1s linear; }
.next-row{ display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); margin-top:2.6rem; padding-top:2rem; border-top:1px solid var(--rule); }

.steps{ counter-reset:s; list-style:none; margin:1.8rem 0; padding:0; }
.steps li{ counter-increment:s; position:relative; padding:0 0 1.15rem 2.6rem; margin:0; }
.steps li::before{
  content:counter(s,decimal-leading-zero);
  position:absolute; left:0; top:.12em;
  font-family:var(--mono); font-size:.78rem; color:var(--amber-dk);
}

/* ------------------------------------------------------------------ forms */
.field{ margin-bottom:1.05rem; }
.field label{
  display:block; font-family:var(--mono); font-size:.72rem;
  letter-spacing:.1em; text-transform:uppercase; color:var(--steel); margin-bottom:.35rem;
}
.field input,.field textarea,.field select{
  width:100%; font-family:var(--body); font-size:1rem;
  padding:.65rem .75rem; border:1px solid #C6CEDC; border-radius:var(--r);
  background:var(--surface); color:var(--ink);
}
.field textarea{ min-height:150px; resize:vertical; }
.field input:focus,.field textarea:focus,.field select:focus{
  border-color:var(--amber); outline:none; box-shadow:0 0 0 3px rgba(255,176,32,.22);
}
.form-note{ font-size:.85rem; color:var(--steel); }

/* ----------------------------------------------------------------- footer */
.site-foot{ background:var(--ink); color:#AFBBD0; padding:3rem 0 1.6rem; border-top:1px solid var(--rule-dk); font-size:.92rem; }
.foot-grid{
  display:grid; gap:2rem; grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  padding-bottom:2rem; border-bottom:1px solid var(--rule-dk);
}
.foot-grid h4{
  font-family:var(--mono); font-size:.7rem; letter-spacing:.16em;
  text-transform:uppercase; color:var(--amber); margin-bottom:.9rem; font-weight:400;
}
.foot-grid ul{ list-style:none; margin:0; padding:0; }
.foot-grid li{ margin-bottom:.45rem; }
.foot-grid a{ color:#AFBBD0; text-decoration:none; }
.foot-grid a:hover{ color:var(--amber); }
.foot-bottom{
  padding-top:1.4rem; display:flex; gap:1rem; justify-content:space-between;
  flex-wrap:wrap; font-family:var(--mono); font-size:.72rem; color:#6F7E9B; letter-spacing:.03em;
}
.disclosure{ margin-top:1.2rem; font-size:.8rem; color:#8494B2; line-height:1.6; max-width:80ch; }

/* --------------------------------------------------------- cookie consent */
.cookie{
  position:fixed; left:0; right:0; bottom:0; z-index:150;
  background:#0B1220; color:#DAE1EE; border-top:1px solid #2C3A5C;
  box-shadow:0 -18px 44px -28px rgba(0,0,0,.9);
  transform:translateY(110%); transition:transform .4s var(--ease);
}
.cookie.show{ transform:translateY(0); }
.cookie-in{ padding:1.1rem 20px 1.2rem; max-width:var(--wrap); margin-inline:auto; }
.cookie h2{ font-size:1.05rem; color:#fff; margin-bottom:.4rem; }
.cookie p{ font-size:.88rem; margin:0 0 .9rem; color:#AEBBD1; max-width:78ch; line-height:1.6; }
.cookie p a{ color:var(--amber); }
.cookie-actions{ display:flex; gap:.6rem; flex-wrap:wrap; }
/* Refusing must read as easily as accepting. */
.cookie .btn-ghost{ color:#FFFFFF; font-weight:600; background:rgba(255,255,255,.07); border-color:rgba(255,255,255,.5); }
.cookie .btn-ghost:hover{ border-color:var(--amber); color:var(--amber); }
.cookie-prefs{ display:none; margin:.4rem 0 1rem; border-top:1px solid #2C3A5C; padding-top:1rem; }
.cookie-prefs.open{ display:block; }
.pref{ display:flex; gap:.8rem; align-items:flex-start; padding:.6rem 0; border-bottom:1px solid rgba(255,255,255,.06); }
.pref:last-child{ border-bottom:0; }
.pref input{ margin-top:.35rem; width:16px; height:16px; accent-color:var(--amber); flex:none; }
.pref label{ display:block; }
.pref .t{ display:block; font-family:var(--mono); font-size:.78rem; color:#E4EAF5; letter-spacing:.04em; font-weight:500; }
.pref .d{ display:block; font-size:.83rem; color:#93A2BC; margin-top:.15rem; line-height:1.55; }
@media (max-width:560px){ .cookie-actions .btn{ flex:1 1 100%; justify-content:center; } }

.linkbtn{
  background:none; border:0; padding:0; cursor:pointer;
  font:inherit; color:inherit; text-decoration:underline; text-underline-offset:2px;
}
.linkbtn:hover{ color:var(--amber); }

/* ------------------------------------------------------------ reveal anim */
/* The starting opacity is applied ONLY when scripting is available. Without
   JavaScript there is nothing to add the .in class, so an unconditional
   opacity:0 would leave the hero menu and every card invisible to a crawler
   or to a reader whose script failed to load. The .js class is set by a
   one-line inline script in <head>. */
.reveal{ opacity:1; transform:none; }
.js .reveal{ opacity:0; transform:translateY(14px); }
.reveal.in{ opacity:1; transform:none; transition:opacity .6s var(--ease), transform .6s var(--ease); }
.js .stagger > *{ opacity:0; transform:translateY(10px); }
.stagger.in > *{ opacity:1; transform:none; transition:opacity .5s var(--ease), transform .5s var(--ease); }
.stagger.in > *:nth-child(1){ transition-delay:.04s; }
.stagger.in > *:nth-child(2){ transition-delay:.10s; }
.stagger.in > *:nth-child(3){ transition-delay:.16s; }
.stagger.in > *:nth-child(4){ transition-delay:.22s; }
.stagger.in > *:nth-child(5){ transition-delay:.28s; }
.stagger.in > *:nth-child(6){ transition-delay:.34s; }
.stagger.in > *:nth-child(7){ transition-delay:.40s; }
.stagger.in > *:nth-child(8){ transition-delay:.46s; }

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  .reveal,.stagger > *{ opacity:1 !important; transform:none !important; }
}

/* -------------------------------------------------------------- utilities */
.lead{ font-size:1.1rem; color:var(--steel); max-width:60ch; }
.center{ text-align:center; }
.pill{
  display:inline-block; font-family:var(--mono); font-size:.68rem;
  letter-spacing:.12em; text-transform:uppercase;
  border:1px solid var(--rule); border-radius:999px;
  padding:.28rem .7rem; color:var(--steel); background:var(--surface); text-decoration:none;
}
.pill:hover{ border-color:var(--amber-dk); color:var(--amber-dk); }
.updated{ font-family:var(--mono); font-size:.72rem; color:var(--steel); letter-spacing:.05em; }
