/* michaelagregory.com — premium skin v2 (static, S3-ready)
   Design: editorial + terminal + amber book brand
*/
:root{
  --bg0:#0b0d10;
  --bg1:#0f1318;
  --card:#121821cc;
  --stroke:rgba(255,255,255,.10);
  --stroke2:rgba(255,255,255,.06);
  --text:#eef3f8;
  --muted:rgba(238,243,248,.72);
  --muted2:rgba(238,243,248,.56);

  --amber:#f4a52c;
  --amber2:#ffbf4a;
  --terminal:#7CFF8D;
  --terminal2:#5be771;

  --shadow: 0 24px 60px rgba(0,0,0,.55);
  --shadow2: 0 14px 34px rgba(0,0,0,.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;

  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --serif: ui-serif, Georgia, "Times New Roman", Times, serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono","Courier New", monospace;

  --ease: cubic-bezier(.2,.85,.2,1);
}

[data-theme="light"]{
  --bg0:#f6f7f9;
  --bg1:#ffffff;
  --card:#ffffffcc;
  --stroke:rgba(0,0,0,.12);
  --stroke2:rgba(0,0,0,.08);
  --text:#0b0d10;
  --muted:rgba(11,13,16,.70);
  --muted2:rgba(11,13,16,.56);
  --shadow: 0 24px 60px rgba(8,12,16,.16);
  --shadow2: 0 14px 34px rgba(8,12,16,.12);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(244,165,44,.22), transparent 55%),
    radial-gradient(900px 520px at 85% 25%, rgba(124,255,141,.12), transparent 60%),
    radial-gradient(700px 500px at 65% 95%, rgba(244,165,44,.12), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.95}
img{max-width:100%; display:block}
small{color:var(--muted)}

.container{max-width:var(--max); margin:0 auto; padding:0 18px}

/* subtle grain */
.grain:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.10;
  mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}

/* top nav */
.nav{
  position:sticky; top:0; z-index:60;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.10));
  border-bottom:1px solid var(--stroke2);
}
[data-theme="light"] .nav{
  background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.55));
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  gap:14px; padding:14px 0;
}
.brand{
  display:flex; align-items:center; gap:12px; min-width:200px;
}
.brand-mark{
  width:34px; height:34px; border-radius:12px;
  background:
    radial-gradient(16px 16px at 35% 30%, rgba(255,255,255,.50), transparent 60%),
    linear-gradient(135deg, rgba(244,165,44,.85), rgba(124,255,141,.55));
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  position:relative;
}
.brand-mark:after{
  content:"";
  position:absolute; inset:9px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.35);
  opacity:.55;
}
.brand-name{
  font-weight:780;
  letter-spacing:.2px;
  line-height:1.05;
}
.brand-sub{font-family:var(--mono); color:var(--muted2); font-size:12px}

.nav-links{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
}
.nav-links a{
  padding:9px 10px;
  border-radius:12px;
  border:1px solid transparent;
  color:var(--muted);
  font-size:14px;
}
.nav-links a.active,
.nav-links a:hover{
  border-color:var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--text);
}
.nav-cta{
  display:flex; align-items:center; gap:10px;
}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  border-radius:14px;
  padding:10px 12px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  color:var(--text);
  font-weight:650;
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.08)}
.btn.primary{
  border-color: rgba(244,165,44,.50);
  background: linear-gradient(135deg, rgba(244,165,44,.26), rgba(124,255,141,.14));
}
.btn.primary:hover{border-color: rgba(244,165,44,.70)}
.icon{
  width:10px; height:10px; border-radius:999px;
  background: linear-gradient(180deg, var(--terminal), var(--terminal2));
  box-shadow: 0 0 14px rgba(124,255,141,.35);
}
.toggle{
  width:42px; height:38px; border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  cursor:pointer;
}
.toggle:after{
  content:"";
  display:block;
  width:18px; height:18px; border-radius:999px;
  margin:9px;
  background: linear-gradient(180deg, rgba(255,255,255,.80), rgba(255,255,255,.32));
  transform: translateX(0);
  transition: transform .25s var(--ease);
}
[data-theme="light"] .toggle:after{transform: translateX(6px);}

/* hero */
.hero{ padding:56px 0 22px; }
.hero-grid{
  display:grid;
  grid-template-columns: 1.12fr .88fr;
  gap:28px;
  align-items:stretch;
}
@media (max-width: 980px){ .hero-grid{grid-template-columns:1fr; gap:18px} }
.h-eyebrow{
  display:flex; align-items:center; gap:10px;
  font-family:var(--mono);
  color:var(--muted2);
  font-size:13px;
}
.prompt{
  display:inline-flex; align-items:center; gap:10px;
  padding:9px 11px;
  border:1px solid rgba(124,255,141,.25);
  background: rgba(0,0,0,.20);
  border-radius:14px;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
  color: rgba(124,255,141,.95);
}
.prompt .chev{ font-weight:800; }

h1{
  margin:14px 0 10px;
  font-size: clamp(36px, 4.2vw, 56px);
  line-height:1.02;
  letter-spacing:-.6px;
}
h1 .amber{
  background: linear-gradient(180deg, var(--amber2), var(--amber));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lede{
  font-size:18px;
  line-height:1.55;
  color:var(--muted);
  margin: 0 0 18px;
}
.hero-actions{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
  margin: 18px 0 10px;
}
.badges{
  display:flex; gap:10px; flex-wrap:wrap;
  margin-top: 10px;
}
.badge{
  font-family:var(--mono);
  font-size:12px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color: var(--muted);
}

/* panels/cards */
.panel{
  border:1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border-radius: var(--radius2);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.panel:before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(500px 260px at 80% 0%, rgba(244,165,44,.16), transparent 60%),
              radial-gradient(500px 260px at 10% 40%, rgba(124,255,141,.10), transparent 60%);
  pointer-events:none;
}
.panel-inner{position:relative; padding:18px}
.cover{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.55);
  overflow:hidden;
}
.meta h3{ margin:0; font-size:16px; letter-spacing:.2px; }
.meta p{ margin:0; color:var(--muted); line-height:1.5; }

.kv{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:10px;
}
.kv .k{
  border:1px solid var(--stroke2);
  border-radius:16px;
  padding:10px 12px;
  background: rgba(0,0,0,.18);
}
[data-theme="light"] .kv .k{background: rgba(255,255,255,.60)}
.k .label{font-family:var(--mono); font-size:11px; color:var(--muted2)}
.k .value{margin-top:6px; font-weight:720}
@media (max-width: 560px){ .kv{grid-template-columns:1fr} }

.section{padding:28px 0}
.section-title{
  display:flex; align-items:baseline; justify-content:space-between; gap:14px;
  margin-bottom:12px;
}
.section-title h2{ margin:0; font-size:22px; letter-spacing:-.2px; }
.section-title span{color:var(--muted2); font-family:var(--mono); font-size:12px}

.grid3{
  display:grid; grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
@media (max-width: 980px){ .grid3{grid-template-columns:1fr} }

.card{
  border:1px solid var(--stroke2);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow2);
}
.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color:var(--muted); line-height:1.55}
.card .link{
  margin-top:12px;
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--mono);
  color: rgba(124,255,141,.92);
}

.hr{
  height:1px;
  background: linear-gradient(90deg, transparent, var(--stroke), transparent);
  margin: 18px 0;
}

.split{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:14px;
}
@media (max-width: 980px){ .split{grid-template-columns:1fr} }

.profile{ display:flex; gap:14px; align-items:flex-start; }
.avatar{
  width:72px; height:72px; border-radius:18px;
  overflow:hidden;
  border:1px solid var(--stroke2);
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  flex:0 0 auto;
}
.avatar img{width:100%; height:100%; object-fit:cover}
.quote{
  font-family:var(--serif);
  font-size:18px;
  line-height:1.45;
  margin:0;
}
.quote small{
  display:block;
  margin-top:10px;
  font-family:var(--mono);
}

.footer{
  padding:30px 0 40px;
  border-top:1px solid var(--stroke2);
  margin-top: 28px;
}
.footer-grid{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:14px;
  align-items:start;
}
@media (max-width: 980px){ .footer-grid{grid-template-columns:1fr} }
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}
.mini{ font-family:var(--mono); font-size:12px; color:var(--muted2); }

/* readability: site meta on dark */
html:not([data-theme="light"]) .site-meta .mini{color: rgba(238,243,248,.84);} 
html:not([data-theme="light"]) .site-meta .mini a{color: rgba(238,243,248,.84);} 
html:not([data-theme="light"]) .site-meta .mini a:hover{color: rgba(238,243,248,.96);} 

/* reveal */
.reveal{opacity:0; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease)}
.reveal.in{opacity:1; transform: translateY(0)}

/* hero duo: portrait + cover */
.duo{
  display:grid;
  grid-template-columns: 1fr;
  gap:14px;
}
.portrait{
  border-radius:18px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.10);
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  position:relative;
}
.portrait img{
  width:100%;
  height: 320px;
  object-fit: cover;
  object-position: 50% 20%;
  filter: saturate(1.05) contrast(1.03);
}
@media (max-width: 980px){
  .portrait img{ height: 280px; }
}
.portrait:after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.70) 100%);
  pointer-events:none;
}
.portrait-cap{
  position:absolute;
  left:14px;
  right:14px;
  bottom:12px;
  display:flex;
  flex-direction:column;
  gap:4px;
  z-index:2;
}
.cap-title{
  font-weight:820;
  letter-spacing:.2px;
  font-size:16px;
}
.cap-sub{
  font-family:var(--mono);
  color: rgba(238,243,248,.78);
  font-size:12px;
}
.amber-inline{
  background: linear-gradient(180deg, var(--amber2), var(--amber));
  -webkit-background-clip:text; background-clip:text; color:transparent;
  font-weight:800;
}

/* v5 layout tweaks: portrait bigger, book smaller, footer inline on home */
@media (min-width: 860px){
  .duo{
    grid-template-columns: 1.2fr .8fr;
    align-items:stretch;
  }
  .portrait img{ height: 420px; }
  .cover img{ max-height: 320px; width: 100%; object-fit: contain; }
}
@media (max-width: 859px){
  .portrait img{ height: 340px; }
  .cover img{ max-height: 300px; width: 100%; object-fit: contain; }
}

.site-meta{
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--stroke2);
}

/* v6: book + link placeholders under cover */
.book-side{display:flex;flex-direction:column;gap:12px;}
.link-stack{display:flex;flex-direction:column;gap:10px;}
.btn.ghost{
  background: rgba(255,255,255,.03);
  border-color: var(--stroke2);
  box-shadow: none;
}
.btn.ghost[aria-disabled="true"]{opacity:.85; cursor:default}
.btn.ghost:hover{transform:none}

/* v6.1 — widen AUTHOR portrait only (keep book sizing/layout intact) */
@media (min-width: 860px){
  .duo{
    grid-template-columns: 0.78fr 1.22fr; /* book smaller, portrait wider */
    align-items: stretch;
  }
  .portrait img{
    height: 460px;              /* more vertical room */
    object-position: 50% 18%;   /* reduce head crop */
  }
}

/* v6.3 — restore mobile nav + keep desktop hero layout intact */
.menu-btn{
  width:42px; height:38px;
  border-radius:14px;
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.05);
  cursor:pointer;
  display:none;
  align-items:center;
  justify-content:center;
}
.menu-btn .bar{
  display:block;
  width:18px;
  height:2px;
  background: rgba(238,243,248,.85);
  border-radius:999px;
}
.menu-btn .bar + .bar{ margin-top:4px; }
[data-theme="light"] .menu-btn .bar{ background: rgba(11,13,16,.85); }

@media (max-width: 920px){
  .nav-inner{ flex-wrap:wrap; }
  .menu-btn{ display:flex; }
  .nav-links{
    display:none;
    width:100%;
    order: 3;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding: 10px 0 14px;
    border-top: 1px solid var(--stroke2);
    margin-top: 10px;
  }
  .nav-links a{
    width:100%;
    padding:12px 12px;
    border-radius:14px;
    border:1px solid var(--stroke2);
    background: rgba(255,255,255,.03);
  }
  html.nav-open .nav-links{ display:flex; }
  .nav-cta .btn.primary{ display:none; }
}

@media (max-width: 560px){
  .hero{ padding: 34px 0 14px; }
  .hero-actions{ flex-direction:column; align-items:stretch; }
  .hero-actions .btn{ width:100%; }
  .panel-inner{ padding:14px; }
  .link-stack .btn{ width:100%; }
  .kv{ grid-template-columns:1fr; }
}

/* =========================================================
       === RAMBO PAPER SKIN OVERRIDES ===
       Goal: match Charcoal + Warm Paper + Amber mockup.
       Scope: visual only. Layout untouched.
       Applied primarily when data-theme="dark" (your preferred look).
    ========================================================= */

    html[data-theme="dark"]{
      --paper0:#efe4cf;
      --paper1:#dbc8a6;
      --ink:#1b1a16;
      --ink2:rgba(27,26,22,.72);
      --ink3:rgba(27,26,22,.58);

      --charcoal:#171612;
      --charcoal2:#1d1b15;
      --charcoal3:#242116;

      --amber:#f2a53a;
      --amber2:#ffc35a;

      /* left side defaults */
      --text:var(--ink);
      --muted:var(--ink2);
      --muted2:var(--ink3);

      /* panels / cards */
      --card: rgba(30,27,20,.88);
      --cardSolid: #1e1b14;
      --stroke: rgba(60,44,28,.30);
      --stroke2: rgba(60,44,28,.18);

      --shadow: 0 22px 60px rgba(0,0,0,.35);
      --shadow2: 0 12px 30px rgba(0,0,0,.25);
    }

    /* Page background: warm paper center with charcoal vignette + grain */
    html[data-theme="dark"] body{
      color: var(--ink);
      background:
        radial-gradient(1200px 640px at 22% 22%, rgba(255,234,196,.92), rgba(255,234,196,0) 62%),
        radial-gradient(900px 540px at 82% 18%, rgba(255,204,128,.18), rgba(255,204,128,0) 60%),
        radial-gradient(1100px 760px at 50% 65%, var(--paper0), var(--paper1) 64%, rgba(20,18,14,.95) 100%),
        linear-gradient(180deg, #201d16, #14120e);
      background-attachment: fixed;
    }

    html[data-theme="dark"].grain body::before{
      content:""; position:fixed; inset:0; pointer-events:none; z-index:0;
      background:
        radial-gradient(1200px 900px at 50% 10%, rgba(0,0,0,.40), rgba(0,0,0,0) 55%),
        radial-gradient(1200px 900px at 50% 90%, rgba(0,0,0,.55), rgba(0,0,0,0) 60%),
        repeating-linear-gradient(0deg, rgba(0,0,0,.035) 0 1px, rgba(255,255,255,.02) 1px 2px);
      mix-blend-mode:multiply;
      opacity:.35;
    }

    /* Ensure main content stays above grain layer */
    html[data-theme="dark"] body > *{ position:relative; z-index:1; }

    /* Nav bar: charcoal strip, warm highlights */
    html[data-theme="dark"] .nav{
      background: linear-gradient(180deg, rgba(24,22,16,.88), rgba(24,22,16,.62));
      border-bottom: 1px solid rgba(255,245,230,.10);
      color: rgba(242,239,233,.92);
    }
    html[data-theme="dark"] .nav .brand-name{ color: rgba(242,239,233,.95); }
    html[data-theme="dark"] .nav .brand-sub{ color: rgba(242,239,233,.62); }
    html[data-theme="dark"] .nav-links a{ color: rgba(242,239,233,.72); }
    html[data-theme="dark"] .nav-links a:hover{ color: rgba(242,239,233,.95); }

    /* Hero text on paper */
    html[data-theme="dark"] .hero h1{ color: var(--ink); }
    html[data-theme="dark"] .hero p{ color: var(--ink2); }
    html[data-theme="dark"] .hero .badge{ 
      background: rgba(27,26,22,.08);
      border-color: rgba(27,26,22,.18);
      color: rgba(27,26,22,.82);
    }

    /* Buttons on paper (left side) */
    html[data-theme="dark"] .hero .btn{
      background: rgba(27,26,22,.06);
      border: 1px solid rgba(27,26,22,.18);
      color: rgba(27,26,22,.92);
      box-shadow: 0 10px 26px rgba(0,0,0,.10);
    }
    html[data-theme="dark"] .hero .btn:hover{ background: rgba(27,26,22,.08); }
    html[data-theme="dark"] .hero .btn.primary{
      background: linear-gradient(180deg, var(--amber2), var(--amber));
      color: #1a1206;
      border: 1px solid rgba(27,26,22,.12);
      box-shadow: 0 14px 30px rgba(0,0,0,.20);
    }

    /* Tags/chips */
    html[data-theme="dark"] .chip{
      background: rgba(27,26,22,.05);
      border: 1px solid rgba(27,26,22,.14);
      color: rgba(27,26,22,.78);
    }

    /* Right panel stays dark, readable */
    html[data-theme="dark"] .panel,
    html[data-theme="dark"] aside.panel,
    html[data-theme="dark"] .card{
      background: var(--card);
      border: 1px solid rgba(255,245,230,.14);
      box-shadow: var(--shadow);
      color: rgba(242,239,233,.92);
    }
    html[data-theme="dark"] .panel *{ color: inherit; }
    html[data-theme="dark"] .panel .mini,
    html[data-theme="dark"] .panel .muted{ color: rgba(242,239,233,.68); }

    /* Purchase link buttons inside dark panel */
    html[data-theme="dark"] .link-stack .btn{
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,245,230,.12);
      color: rgba(242,239,233,.92);
      box-shadow: none;
    }
    html[data-theme="dark"] .link-stack .btn.primary{
      background: rgba(242,165,58,.14);
      border: 1px solid rgba(242,165,58,.34);
      color: rgba(242,239,233,.95);
    }

    /* Footer section blocks: subtle warm dark */
    html[data-theme="dark"] .footer{
      color: rgba(242,239,233,.60);
      border-top: 1px solid rgba(255,245,230,.10);
      background: linear-gradient(180deg, rgba(24,22,16,.20), rgba(24,22,16,.46));
    }

    /* Light theme: not blinding */
    html[data-theme="light"]{
      --bg0:#f1e7d2;
      --bg1:#e4d3b2;
      --text:#171612;
      --muted:rgba(23,22,18,.72);
      --muted2:rgba(23,22,18,.58);
      --stroke:rgba(55,40,24,.18);
      --stroke2:rgba(55,40,24,.12);
      --card:#ffffffcc;
      --cardSolid:#ffffff;
      --amber:#d8891f;
      --amber2:#f0a63a;
    }
/* =========================
   Footer meta (always readable)
   ========================= */
.siteFooter{
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 42px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--muted);
}

.siteFooter a{
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.siteFooter a:hover{
  border-bottom-color: currentColor;
}

/* Hard contrast guarantees for BOTH themes */
[data-theme="dark"] .siteFooter{
  color: rgba(255,255,255,.78);
  text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

[data-theme="light"] .siteFooter{
  color: rgba(20,22,25,.82);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

/* =========================
   Card section text readability (What you'll find here)
   ========================= */
.grid3 .card h3{ color: var(--text); }

[data-theme="dark"] .grid3 .card p{
  color: rgba(255,255,255,.74);
  text-shadow: 0 1px 0 rgba(0,0,0,.65);
}

[data-theme="light"] .grid3 .card p{
  color: rgba(20,22,25,.78);
  text-shadow: 0 1px 0 rgba(255,255,255,.55);
}

.grid3 .card a{
  text-shadow: none;
}



/* PATCH 20260211-06: contact form softness + readability */
.page-contact form label{display:block; margin-top:14px; margin-bottom:6px; font-weight:600; color: rgba(255,255,255,.86);}
.page-contact form input,
.page-contact form textarea{
  width:100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.22);
  color: rgba(255,255,255,.90);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.page-contact form textarea{
  min-height: 170px;
  border-color: rgba(255,214,120,.22);
  background: rgba(0,0,0,.26);
  resize: vertical;
}
.page-contact form input::placeholder,
.page-contact form textarea::placeholder{
  color: rgba(255,255,255,.48);
}
.page-contact form input:focus,
.page-contact form textarea:focus{
  border-color: rgba(255,214,120,.55);
  box-shadow: 0 0 0 3px rgba(255,214,120,.12);
  background: rgba(0,0,0,.30);
}
.page-contact .check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin-top:14px;
  color: rgba(255,255,255,.78);
}
.page-contact .check input{ width:auto; margin-top:3px; }
.page-contact .check span{ line-height:1.2; }

/* PATCH 20260211-07: Paper-skin dark mode legibility inside cards (Book Cover / TOC / Reviews) */
html[data-theme="dark"] .card h1,
html[data-theme="dark"] .card h2,
html[data-theme="dark"] .card h3,
html[data-theme="dark"] .card h4{
  color: rgba(242,239,233,.92) !important;
}

html[data-theme="dark"] .card p,
html[data-theme="dark"] .card li,
html[data-theme="dark"] .card .small,
html[data-theme="dark"] .card small,
html[data-theme="dark"] .card .mini,
html[data-theme="dark"] .card .muted,
html[data-theme="dark"] .card .muted2{
  color: rgba(242,239,233,.72) !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.55);
}

html[data-theme="dark"] .card a{
  color: rgba(124,255,141,.92) !important;
}
