/* Pilocon — one stylesheet for five doors.
   Built from the live wobblefactor.com CSS (index.html, foundation/*.html,
   books/you-cannot-navigate-alone.html) as written down in PILOCON/Brand/DESIGN_SYSTEM.md.
   The palette and type never change between doors; a door sets only its wordmark
   (and Waypoint, when chosen, its --door-accent). No analytics, no tracking. */

/* ---------- tokens ---------- */
:root{
  --storm:#0f1a1f; --sea:#1d3138; --sea-2:#27424b;
  --beacon:#d3a04a; --beacon-soft:#e5bd77; --foam:#c3cfcc;

  --bg:#eaeeec; --surface:#f4f6f5; --rule:#c6d0cd;
  --text:#17242a; --text-soft:#4a5f66; --text-faint:#6d8188;
  --accent:#8a6320; --pill:#dde3e1;

  --door-accent:var(--beacon);
  --measure:33rem; --measure-article:36rem;
  --pad:clamp(1.25rem,5vw,2.5rem);
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]){
    --bg:#0f1a1f; --surface:#16242a; --rule:#2c444d;
    --text:#e4eae9; --text-soft:#a8bcbf; --text-faint:#7e9599;
    --accent:#e0b264; --pill:#22363d;
  }
}
:root[data-theme="dark"]{
  --bg:#0f1a1f; --surface:#16242a; --rule:#2c444d;
  --text:#e4eae9; --text-soft:#a8bcbf; --text-faint:#7e9599;
  --accent:#e0b264; --pill:#22363d;
}

/* ---------- base ---------- */
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0; background:var(--bg); color:var(--text);
  font-family:"Cormorant Garamond",Georgia,"Times New Roman",serif;
  font-size:clamp(1.09rem,.4vw + 1rem,1.2rem); line-height:1.62;
  -webkit-font-smoothing:antialiased; overflow-wrap:break-word;
}
h1,h2,h3{font-family:Cinzel,"Trajan Pro",Georgia,serif;text-wrap:balance;margin:0}
p{margin:0}
a{color:inherit}
/* height:auto is load-bearing: the covers carry width/height attrs and would stretch without it */
img{display:block;height:auto;max-width:100%}
[hidden]{display:none!important}
:focus-visible{outline:2px solid var(--beacon);outline-offset:3px;border-radius:2px}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.sr,.skip:not(:focus){position:absolute;left:-9999px}
.skip:focus{position:absolute;left:1rem;top:1rem;z-index:10;background:var(--beacon);color:#1b1206;padding:.5rem .9rem;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.85rem}

/* ---------- utilities ---------- */
.label{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.7rem;font-weight:500;letter-spacing:.17em;text-transform:uppercase}
.wrap{max-width:var(--measure);margin-inline:auto}
.flow > * + *{margin-top:1.15em}
.ticks{
  height:9px;margin:0;border:0;
  background:
    repeating-linear-gradient(90deg,var(--rule) 0 1px,transparent 1px 13px) center/100% 9px no-repeat,
    linear-gradient(var(--rule),var(--rule)) center/100% 1px no-repeat;
  opacity:.85;
}
.pill{
  font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.64rem;font-weight:500;
  letter-spacing:.13em;text-transform:uppercase;
  background:var(--pill);color:var(--text-soft);
  padding:.26em .72em;border-radius:100px;white-space:nowrap;display:inline-block;
}
.pill.now{background:var(--beacon);color:#1b1206;font-weight:600}

/* ======================================================================
   SHARED CHROME: the door switcher, the door's own header, the footer
   ====================================================================== */
.doorbar{background:#0a1215;color:#7e9599;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.68rem;letter-spacing:.08em}
.doorbar .in{max-width:60rem;margin-inline:auto;padding:.4rem var(--pad);display:flex;flex-wrap:wrap;gap:.2rem 1rem;align-items:center;justify-content:space-between}
.doorbar .work{text-transform:uppercase;letter-spacing:.17em;color:#93a7a8}
.doorbar nav{display:flex;flex-wrap:wrap;gap:.15rem .95rem}
.doorbar nav a{color:#93a7a8;text-decoration:none;border-bottom:1px solid transparent}
.doorbar nav a:hover{color:var(--beacon-soft)}
.doorbar nav a[aria-current]{color:var(--beacon-soft);border-color:var(--beacon-soft)}

.topnav{background:var(--storm);color:#c3cfcc;border-bottom:1px solid #0a1215}
.topnav .in{max-width:60rem;margin-inline:auto;padding:.8rem var(--pad);display:flex;flex-wrap:wrap;gap:.5rem 1.5rem;align-items:center;justify-content:space-between}
.topnav .mark{font-family:Cinzel,Georgia,serif;font-size:.95rem;letter-spacing:.14em;color:#f4efe4;text-decoration:none;display:inline-flex;align-items:center;gap:.6rem}
.topnav .mark b{color:var(--door-accent)}
.topnav .mark img{height:2.15rem;width:auto}
.topnav nav{display:flex;flex-wrap:wrap;gap:.25rem 1.25rem;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase}
.topnav nav a{color:#a8bcbf;text-decoration:none;border-bottom:1px solid transparent;padding-bottom:2px}
.topnav nav a:hover,.topnav nav a[aria-current]{color:var(--beacon-soft);border-color:var(--beacon-soft)}

footer.site{
  background:var(--storm);color:#8ba1a4;padding:2.5rem var(--pad);
  font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.8rem;line-height:1.7;text-align:center;
}
footer.site .one{font-family:"Cormorant Garamond",Georgia,serif;font-style:italic;font-size:1.12rem;color:var(--foam);max-width:30rem;margin:0 auto 1.1rem;line-height:1.45}
footer.site .doors{display:flex;flex-wrap:wrap;justify-content:center;gap:.3rem 1.3rem;margin:0 auto 1.1rem;max-width:44rem}
footer.site .doors a{font-family:Cinzel,Georgia,serif;font-size:.8rem;letter-spacing:.12em;color:var(--foam);border:0}
footer.site .doors a[aria-current]{color:var(--beacon-soft)}
footer.site .links{display:flex;flex-wrap:wrap;justify-content:center;gap:.2rem 1.1rem}
footer.site a{color:#a8bcbf;text-decoration:none;border-bottom:1px solid #35505a}
footer.site a:hover{color:var(--beacon-soft)}
footer.site .legal{display:block;margin-top:.9rem}

/* ======================================================================
   PAGE HEADS: .hero (door homes, book pages) and .fhead (reading pages)
   ====================================================================== */
.hero{
  background:
    radial-gradient(120% 90% at 78% 18%,rgba(211,160,74,.16),transparent 58%),
    linear-gradient(178deg,var(--sea) 0%,var(--storm) 72%);
  color:#e8eeed;
  padding:clamp(2.5rem,7vw,4.5rem) var(--pad) clamp(2.75rem,7vw,4rem);
  border-bottom:1px solid #0a1215;
}
.hero-grid{
  max-width:60rem;margin-inline:auto;
  display:grid;gap:clamp(1.75rem,5vw,3.25rem);
  grid-template-columns:1fr;align-items:center;
}
@media (min-width:820px){.hero-grid{grid-template-columns:minmax(0,1fr) 17rem}}
.eyebrow{color:var(--beacon);margin-bottom:1.1rem}
.hero h1{font-size:clamp(2.6rem,8.5vw,4.4rem);font-weight:700;line-height:.94;letter-spacing:.005em;color:#f4efe4}
.hero--book h1{font-size:clamp(2.3rem,7.2vw,3.7rem);line-height:.98}
.hero-sub{font-style:italic;font-size:clamp(1.3rem,2.6vw,1.6rem);color:var(--beacon-soft);margin-top:1rem;line-height:1.3}
.hero-sub2{font-style:italic;font-size:1.14rem;color:#cddad9;margin-top:.35rem;line-height:1.4}
.byline{margin-top:1.4rem;color:#93a7a8}
.hook{margin-top:1.9rem;color:#cddad9;font-size:1.16rem;line-height:1.6;max-width:31rem}
.hook .turn{color:#f4efe4;font-style:italic}
.cover{
  width:100%;max-width:17rem;justify-self:center;border-radius:2px;
  box-shadow:0 1px 0 rgba(255,255,255,.14),0 22px 44px -14px rgba(0,0,0,.72);
}
.cta-row{margin-top:2.1rem;display:flex;flex-wrap:wrap;gap:.85rem 1.25rem;align-items:center}
.buy{
  display:inline-block;text-decoration:none;
  font-family:"IBM Plex Sans",system-ui,sans-serif;
  font-size:.9rem;font-weight:600;letter-spacing:.04em;
  background:var(--beacon);color:#1b1206;padding:.85rem 1.7rem;border-radius:2px;
  transition:background .16s ease,transform .16s ease;
}
.buy:hover{background:var(--beacon-soft);transform:translateY(-1px)}
.avail{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.78rem;color:#93a7a8;letter-spacing:.02em}

.fhead{
  background:radial-gradient(120% 90% at 78% 18%,rgba(211,160,74,.16),transparent 58%),linear-gradient(178deg,var(--sea) 0%,var(--storm) 72%);
  color:#e8eeed;padding:clamp(2.25rem,6vw,3.5rem) var(--pad);border-bottom:1px solid #0a1215;
}
.fhead .in{max-width:var(--measure-article);margin-inline:auto}
.fhead .q{color:var(--door-accent);margin-bottom:.9rem}
.fhead h1{font-size:clamp(1.9rem,5.5vw,2.9rem);font-weight:700;line-height:1.02;color:#f4efe4}
.fhead .one{font-style:italic;font-size:clamp(1.15rem,2.2vw,1.35rem);color:var(--beacon-soft);margin-top:.9rem;line-height:1.35}

/* ======================================================================
   READING PAGES: <article> (Foundation pages and every markdown page)
   ====================================================================== */
article{padding:clamp(2.25rem,6vw,3.5rem) var(--pad)}
article .in{max-width:var(--measure-article);margin-inline:auto}
article h2{font-size:clamp(1.3rem,3vw,1.7rem);font-weight:600;margin:2.1rem 0 .7rem;padding-bottom:.35rem;border-bottom:1px solid var(--rule)}
article h3{font-size:1.08rem;font-weight:600;margin:1.5rem 0 .45rem;color:var(--text)}
article p{margin:0 0 .95em}
article p:first-child{margin-top:0}
article a{color:var(--accent);text-decoration:none;border-bottom:1px solid currentColor}
article ul,article ol{margin:0 0 1em;padding-left:1.25rem}
article ul.num{list-style:none;padding-left:0}
article ul.num li .n{display:inline-block;width:1.4rem;color:var(--accent)}
article li{margin:0 0 .35em}
article li.sub{margin-left:1.1rem;list-style:circle}
article blockquote{margin:.6em 0 1em .5rem;padding-left:.9rem;border-left:2px solid var(--beacon);color:var(--text-soft)}
article hr{border:0;border-top:1px solid var(--rule);margin:1.6rem 0 1.2rem}
article p.close{text-align:center;font-size:1.22rem;color:var(--accent)}
article figure{margin:1.4rem 0 1.6rem;text-align:center}
article figure img{margin-inline:auto;border-radius:2px;box-shadow:0 14px 32px -16px rgba(10,25,30,.55)}
article figcaption{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--text-faint);margin-top:.6rem}
.tablewrap{overflow-x:auto;margin:.8rem 0 1.2rem}
article table{border-collapse:collapse;width:100%;font-size:.98rem}
article th{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;text-align:left;color:var(--text-faint);border-bottom:1px solid var(--text-soft);padding:.35rem .6rem .35rem 0}
article td{vertical-align:top;border-bottom:1px solid var(--rule);padding:.5rem .6rem .5rem 0}
.pager{max-width:var(--measure-article);margin:2.5rem auto 0;padding-top:1.25rem;border-top:1px solid var(--rule);display:flex;justify-content:space-between;gap:1rem;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.8rem;letter-spacing:.04em}
.pager a{text-decoration:none;color:var(--accent);border-bottom:1px solid currentColor}
.pager span{color:var(--text-faint)}

/* Draft marker: any paragraph holding TODO(Scribe) (the checker fails on these without --draft) */
.todo{border:1px dashed var(--beacon);background:var(--surface);padding:.8rem 1rem;border-radius:3px;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.86rem;line-height:1.55;color:var(--text-soft)}
.todo strong:first-child{color:var(--accent)}

/* ======================================================================
   COMPONENTS
   ====================================================================== */
/* The Foundation's five-card row (live on wobblefactor.com) */
.set{max-width:60rem;margin-inline:auto;display:grid;gap:1rem;grid-template-columns:1fr}
@media (min-width:640px){.set{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:980px){.set{grid-template-columns:repeat(3,minmax(0,1fr))}}
article .set{grid-template-columns:1fr;margin:1.4rem 0 1.8rem}
@media (min-width:560px){article .set{grid-template-columns:repeat(2,minmax(0,1fr))}}
.card{display:block;text-decoration:none;background:var(--surface);border:1px solid var(--rule);border-radius:3px;padding:1.2rem 1.25rem 1.3rem;transition:transform .16s ease,border-color .16s ease}
a.card:hover{transform:translateY(-2px);border-color:var(--beacon)}
article a.card{color:inherit;border-bottom:1px solid var(--rule)}
.card .q{color:var(--accent);display:block;margin-bottom:.5rem}
.card h3{font-size:1.08rem;font-weight:600;line-height:1.25;margin:0 0 .45rem}
.card p{color:var(--text-soft);font-size:1rem;line-height:1.45;margin:0}
.card .n{font-family:Cinzel,Georgia,serif;color:var(--beacon);font-size:1.6rem;line-height:1;float:right;margin-left:.6rem}

/* Product card (rendered from data/products.toml) */
.pcards{display:grid;gap:1rem;grid-template-columns:1fr;margin:1.4rem 0 1.8rem}
@media (min-width:560px){.pcards{grid-template-columns:repeat(2,minmax(0,1fr))}}
.pcard .meta{display:flex;flex-wrap:wrap;gap:.4rem .6rem;align-items:center;margin-bottom:.7rem}
.pcard .door{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.64rem;letter-spacing:.13em;text-transform:uppercase;color:var(--text-faint)}

/* Season strip (in-progress works by season; no dates) */
.seasons{display:grid;gap:1rem;grid-template-columns:1fr;margin:1.4rem 0 1.8rem}
@media (min-width:640px){.seasons{grid-template-columns:repeat(3,minmax(0,1fr))}}
.season{border-top:2px solid var(--beacon);padding-top:.7rem}
.season .label{color:var(--accent);display:block;margin-bottom:.5rem}
.season ul{list-style:none;padding:0;margin:0}
.season li{margin:0 0 .4em;line-height:1.35}

/* Door list (pilocon.com home) */
.doorlist{display:grid;gap:1rem;grid-template-columns:1fr;margin:1.4rem 0 1.8rem}
@media (min-width:560px){.doorlist{grid-template-columns:repeat(2,minmax(0,1fr))}}
.doorlist .card h3{letter-spacing:.06em}

/* ======================================================================
   WOBBLEFACTOR.COM HOME AND BOOK PAGES (carried from the live pages)
   ====================================================================== */
section{padding:clamp(3rem,8vw,4.75rem) var(--pad)}
.lede{font-size:clamp(1.35rem,3vw,1.62rem);font-style:italic;color:var(--text-soft);line-height:1.42}
section h2{font-size:clamp(1.5rem,3.6vw,2.05rem);font-weight:600;letter-spacing:.01em;margin-bottom:1.3rem}
.kicker{color:var(--text-faint);margin-bottom:.85rem}
.single{color:var(--accent);font-style:italic}

.next-release{background:var(--surface);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.feature{max-width:50rem;margin-inline:auto;display:grid;gap:clamp(1.75rem,4.5vw,3rem);grid-template-columns:1fr;align-items:center}
@media (min-width:720px){.feature{grid-template-columns:15rem minmax(0,1fr)}}
.feature img{width:100%;max-width:15rem;justify-self:center;border-radius:2px;box-shadow:0 20px 40px -16px rgba(10,25,30,.55)}
.feature .pill{margin-bottom:1rem}
.feature h2{margin-bottom:.3rem}
.feature .sub{font-style:italic;font-size:1.22rem;color:var(--text-soft);line-height:1.32}
.feature .principle{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--text-faint);margin-top:1.35rem}
.feature .q{margin-top:.55rem;font-size:1.15rem;line-height:1.5}
.feature .note{margin-top:1.5rem;padding-top:1.25rem;border-top:1px solid var(--rule);color:var(--text-soft);font-size:1.04rem}
.feature .note a{color:var(--accent);text-decoration:none;border-bottom:1px solid currentColor}

.series-head{max-width:44rem;margin-inline:auto;text-align:center}
.thumbs{max-width:52rem;margin:clamp(2rem,5vw,2.75rem) auto 0;display:grid;gap:clamp(1.5rem,3.5vw,2.25rem) clamp(1.1rem,3vw,1.75rem);grid-template-columns:repeat(2,minmax(0,1fr))}
@media (min-width:600px){.thumbs{grid-template-columns:repeat(3,minmax(0,1fr))}}
.thumb{display:flex;flex-direction:column;gap:.7rem;text-align:center;align-items:center}
.thumb img{width:100%;max-width:9.5rem;border-radius:2px;box-shadow:0 8px 20px -8px rgba(10,25,30,.5)}
.thumb h3{font-size:1.02rem;font-weight:600;line-height:1.25}
.thumb .principle{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.66rem;letter-spacing:.09em;text-transform:uppercase;color:var(--text-faint);line-height:1.45}
.shelf-note{max-width:44rem;margin:clamp(2rem,4vw,2.75rem) auto 0;color:var(--text-faint);font-size:1.04rem;font-style:italic;text-align:center}

.compare{max-width:44rem;margin:1.9rem auto 0;display:grid;gap:1.5rem}
@media (min-width:640px){.compare{grid-template-columns:1fr 1fr;gap:2.5rem}}
.compare div > .label{color:var(--accent);display:block;margin-bottom:.5rem}
.compare p{color:var(--text-soft)}

/* the question the pocket book ends on */
.question{background:var(--surface);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);text-align:center}
.question .in{max-width:40rem;margin-inline:auto}
.question .label{color:var(--accent);display:block;margin-bottom:1.1rem}
.question blockquote{margin:0;font-style:italic;font-size:clamp(1.45rem,3.6vw,1.95rem);line-height:1.36;color:var(--text)}
.question blockquote::before,.question blockquote::after{content:"";display:block;width:3.5rem;height:1px;background:var(--beacon);margin:0 auto 1.3rem}
.question blockquote::after{margin:1.3rem auto 0}
.question .note{margin-top:1.1rem;color:var(--text-faint);font-size:1.02rem}

/* downloads and stores */
.dl .wrap{max-width:38rem}
.dl-row{display:flex;flex-wrap:wrap;gap:.85rem 1rem;margin-top:1.5rem}
.dl-row .buy small{font-weight:400;opacity:.8;margin-left:.35rem}
.hint{margin-top:1.15rem;color:var(--text-soft);font-size:1.04rem}
.thanks{margin:0 0 2rem;padding:1rem 1.2rem;border-left:3px solid var(--beacon);background:var(--surface);border-radius:4px}
.stores{margin-top:2.4rem;padding-top:1.6rem;border-top:1px solid var(--rule)}
.stores .label{color:var(--text-faint);display:block;margin-bottom:.9rem}
.store-row{display:flex;flex-wrap:wrap;gap:.7rem}
.store{display:inline-block;text-decoration:none;font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.84rem;font-weight:500;letter-spacing:.03em;color:var(--text);border:1px solid var(--rule);background:var(--surface);padding:.7rem 1.2rem;border-radius:2px;transition:border-color .16s ease,transform .16s ease}
.store:hover{border-color:var(--beacon);transform:translateY(-1px)}

/* ---------- the one email sign-up (the list already live on wobblefactor.com) ---------- */
.capture{background:linear-gradient(172deg,var(--sea-2),var(--storm));color:#e6ecec}
.capture-grid{max-width:50rem;margin-inline:auto;display:grid;gap:clamp(1.75rem,4vw,3rem);grid-template-columns:1fr;align-items:center}
@media (min-width:760px){.capture-grid{grid-template-columns:12rem minmax(0,1fr)}}
.capture .wrap{max-width:36rem}
.capture .wrap .eyebrow{margin-bottom:.85rem}
.gift{justify-self:center;width:100%;max-width:12rem;border-radius:2px;overflow:hidden;box-shadow:0 18px 36px -14px rgba(0,0,0,.6)}
.gift img{display:block;width:100%;height:auto;aspect-ratio:5/8;object-fit:cover}
.capture h2{color:#f4efe4}
.capture .lede{color:#b9cbcb}
.capture .body{color:#cddad9;margin-top:1rem;font-size:1.1rem}
form{margin-top:1.8rem;display:flex;flex-wrap:wrap;gap:.7rem;max-width:29rem}
input[type=email]{
  flex:1 1 14rem;min-width:0;
  font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.95rem;
  padding:.85rem 1rem;border-radius:2px;
  border:1px solid #46626b;background:#0d171b;color:#e6ecec;
}
input[type=email]::placeholder{color:#7d9499}
button{
  font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.9rem;font-weight:600;letter-spacing:.04em;
  padding:.85rem 1.5rem;border:0;border-radius:2px;cursor:pointer;
  background:var(--beacon);color:#1b1206;transition:background .16s ease;
}
button:hover{background:var(--beacon-soft)}
.fineprint{font-family:"IBM Plex Sans",system-ui,sans-serif;font-size:.76rem;color:#8ba1a4;margin-top:1.1rem}
/* inside a reading page the sign-up sits as a dark panel */
article .capture{padding:1.5rem 1.4rem;border-radius:3px;margin:1.6rem 0}
article .capture .fineprint{margin-bottom:0}

/* door marks on the door cards (2026-10-06) */
.doorlist .card .doormark{display:block;height:52px;width:auto;margin:0 0 .8rem}
