/* Obscure Essentials — minimalist modern theme (no external assets) */
:root{
  --bg: #050917;
  --bg2:#0a1330;
  --card:#101d3bcc;
  --text:#f1f4fb;
  --muted:#c7d0e6;
  --muted2:#a0afcf;
  --border:#2f4068;
  --accent:#d7deea;
  --accent2:#e9d3ad;
  --shadow: 0 18px 40px rgba(1,5,18,.55);
  --ring: 0 0 0 4px rgba(233,211,173,.26);
  --radius: 18px;
  --radius2: 14px;
  --max: 1100px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#081129;
    --bg2:#0e1a3e;
    --card:#142349d6;
    --text:#f1f4fb;
    --muted:#c7d0e6;
    --muted2:#a0afcf;
    --border:#3a4e7c;
    --shadow: 0 18px 40px rgba(1,5,18,.50);
    --ring: 0 0 0 4px rgba(233,211,173,.24);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:
    radial-gradient(900px 520px at 50% 35%, rgba(233,211,173,.14), transparent 60%),
    radial-gradient(1300px 760px at 12% 8%, rgba(50,76,130,.38), transparent 58%),
    radial-gradient(1200px 700px at 88% 10%, rgba(21,37,78,.38), transparent 58%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  line-height:1.65;
  background-attachment: fixed;
  overflow:hidden;
}

.shell{
  height:100vh;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling: touch;
}

a{color:inherit}
a:hover{opacity:.92}
a:focus-visible{outline:none; box-shadow: var(--ring); border-radius: 10px}
img{max-width:100%; height:auto; display:block}

.skip-link{
  position:absolute; left:-999px; top:10px; padding:10px 12px;
  background:var(--bg2); border:1px solid var(--border); border-radius:12px;
  z-index:9999;
}
.skip-link:focus{left:10px}

.wrap{max-width:var(--max); margin:0 auto; padding:0 20px}
header{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(8,17,41,.72), rgba(8,17,41,.32));
  border-bottom: 1px solid rgba(58,78,124,.45);
}
@media (prefers-color-scheme: light){
  header{
    background: linear-gradient(180deg, rgba(10,20,46,.76), rgba(10,20,46,.40));
    border-bottom: 1px solid rgba(72,93,142,.55);
  }
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{
  display:flex; gap:12px; align-items:center; text-decoration:none;
  font-weight:700; letter-spacing:.2px;
}
.brand-badge{
  width:34px; height:34px; border-radius:12px; overflow:hidden;
  border:1px solid rgba(215,222,234,.30);
  box-shadow: 0 10px 25px rgba(1,5,18,.38);
  display:inline-block;
  flex:0 0 auto;
  background:#060d22;
}
.brand-badge img{
  width:100%;
  height:100%;
  object-fit:contain;
  object-position:center;
  display:block;
}
@media (prefers-color-scheme: light){
  .brand-badge{border:1px solid rgba(215,222,234,.34)}
}
.brand span{display:block; line-height:1.28}
.brand small{display:block; font-weight:600; color:var(--muted2); letter-spacing:0; line-height:1.28}

.nav-links{
  display:flex; gap:14px; align-items:center;
}
.nav-links a{
  text-decoration:none;
  color:var(--muted);
  font-weight:600;
  padding:10px 12px;
  border-radius:12px;
}
.nav-links a:hover{background:rgba(215,222,234,.12); color:var(--text)}
.nav-cta{
  background: linear-gradient(135deg, rgba(193,205,228,.95), rgba(233,211,173,.92));
  color:#0c1530 !important;
  box-shadow: 0 14px 32px rgba(1,5,18,.32);
}
.nav-cta:hover{transform: translateY(-1px)}
.nav-toggle{display:none}

@media (max-width: 760px){
  .nav-toggle{
    display:inline-flex; gap:10px; align-items:center;
    background:transparent; color:var(--text);
    border:1px solid var(--border);
    border-radius:12px;
    padding:10px 12px;
  }
  .nav-links{
    position:absolute;
    left:0; right:0;
    top:64px;
    display:none;
    flex-direction:column;
    padding:12px 16px 16px;
    background: rgba(8,17,41,.94);
    border-bottom: 1px solid rgba(58,78,124,.62);
  }
  @media (prefers-color-scheme: light){
    .nav-links{background: rgba(10,20,46,.96); border-bottom:1px solid rgba(72,93,142,.62)}
  }
  .nav-links[data-open="true"]{display:flex}
  .nav-links a{width:100%}
}

.hero{
  padding:52px 0 26px;
}
.hero-grid{
  display:grid; grid-template-columns: 1.25fr .75fr; gap:22px;
  align-items:center;
}
@media (max-width: 900px){
  .hero-grid{grid-template-columns: 1fr; }
}
.kicker{
  display:inline-flex; gap:10px; align-items:center;
  padding:8px 12px;
  border:1px solid rgba(39,52,84,.55);
  border-radius:999px;
  background: rgba(16,26,51,.55);
  color:var(--muted);
  font-weight:600;
}
@media (prefers-color-scheme: light){
  .kicker{background: rgba(19,35,73,.72); border:1px solid rgba(72,93,142,.62)}
}
h1{
  font-size: clamp(34px, 4.2vw, 54px);
  line-height:1.25;
  margin:16px 0 18px;
  letter-spacing:-.03em;
}
h2,
h3{
  line-height:1.3;
}
.lead{
  font-size: 18px;
  color: var(--muted);
  max-width: 60ch;
  line-height:1.65;
}
.hero-actions{display:flex; gap:12px; flex-wrap:wrap; margin-top:18px}
.btn{
  text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background: rgba(18,33,69,.56);
  color:var(--text);
  font-weight:700;
}
.btn:hover{transform: translateY(-1px)}
.btn.primary{
  border:none;
  background: linear-gradient(135deg, rgba(193,205,228,.98), rgba(233,211,173,.93));
  color:#0c1530;
  box-shadow: 0 16px 40px rgba(1,5,18,.35);
}

.hero-card{
  border: 1px solid rgba(58,78,124,.58);
  border-radius: var(--radius);
  background: rgba(16,29,59,.54);
  box-shadow: var(--shadow);
  overflow:hidden;
}
@media (prefers-color-scheme: light){
  .hero-card{background: rgba(20,35,73,.62); border:1px solid rgba(72,93,142,.62)}
}
.hero-card .pad{padding:18px}
.stat{
  display:grid; grid-template-columns: 1fr 1fr;
  gap:10px;
  margin-top:10px;
}
.pill{
  display:inline-flex; gap:8px; align-items:center;
  font-size: 13px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(39,52,84,.55);
  color:var(--muted);
  background: rgba(16,26,51,.45);
}
@media (prefers-color-scheme: light){
  .pill{background: rgba(19,35,73,.68); border:1px solid rgba(72,93,142,.62)}
}
.pill strong{color:var(--text); font-weight:800}

.section{padding: 26px 0}
.section h2{
  margin: 0 0 12px;
  font-size: 22px;
  letter-spacing:-.02em;
}
.section p{color:var(--muted); margin:0 0 16px; max-width: 80ch; line-height:1.65}
.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}
.card{
  grid-column: span 6;
  border-radius: var(--radius);
  border: 1px solid rgba(39,52,84,.55);
  background: rgba(16,26,51,.42);
  box-shadow: var(--shadow);
  overflow:hidden;
}
@media (prefers-color-scheme: light){
  .card{background: rgba(20,35,73,.62); border:1px solid rgba(72,93,142,.62)}
}
.card .pad{padding: 18px}
.card h3{margin:0 0 8px; font-size: 18px}
.meta{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.card p{margin:12px 0 16px; color:var(--muted); line-height:1.65}
.card .actions{display:flex; gap:10px; flex-wrap:wrap}

.app-row{
  display:flex; gap:14px; align-items:center;
}
.app-icon{
  width:64px; height:64px; border-radius: 16px; overflow:hidden;
  border:1px solid rgba(215,222,234,.30);
  flex:0 0 auto;
}
@media (prefers-color-scheme: light){
  .app-icon{border:1px solid rgba(215,222,234,.30)}
}
.badges{display:flex; gap:8px; flex-wrap:wrap; margin-top: 10px}
.store-badge-row{margin-top:14px}
.app-store-badge-link{
  display:inline-block;
  line-height:0;
  border-radius:10px;
}
.app-store-badge{
  width:156px;
  height:40px;
}

hr.sep{
  border:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,.55), transparent);
  margin: 20px 0;
  opacity:.7;
}

footer{
  padding: 30px 0 46px;
  color:var(--muted2);
}
.footer-grid{
  display:flex; gap:14px; flex-wrap:wrap;
  justify-content: space-between; align-items:center;
}
footer a{color:var(--muted); text-decoration:none; font-weight:650}
footer a:hover{text-decoration: underline}
.footer-links{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
}
.social-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border-radius:12px;
  border:1px solid rgba(58,78,124,.56);
  background: rgba(18,33,69,.56);
  color:var(--muted);
  text-decoration:none;
  line-height:1.3;
}
.social-link:hover{
  text-decoration:none;
  color:var(--text);
  background: rgba(25,44,89,.72);
}
.social-link img{
  width:16px;
  height:16px;
  display:block;
}
.social-link-orcid img{
  border-radius:999px;
}
.small{font-size: 13px; color: var(--muted2); line-height:1.5}

.page{
  padding: 34px 0 28px;
}
.page h1{font-size: clamp(28px, 3.4vw, 42px); line-height:1.25}
.page h2{margin-top: 22px}
.page ul{margin: 12px 0 18px; padding-left: 20px}
.page li{margin: 8px 0; color: var(--muted); line-height:1.65}
.note{
  border:1px solid rgba(39,52,84,.55);
  background: rgba(16,26,51,.40);
  border-radius: var(--radius);
  padding: 14px 16px;
  color: var(--muted);
}
@media (prefers-color-scheme: light){
  .note{background: rgba(19,35,73,.62); border:1px solid rgba(72,93,142,.62)}
}
.code{
  font-family: var(--mono);
  font-size: 13px;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1px solid rgba(39,52,84,.55);
  background: rgba(2,6,23,.25);
}
@media (prefers-color-scheme: light){
  .code{background: rgba(11,20,46,.72); border:1px solid rgba(72,93,142,.62)}
}

.shots{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
  margin-top: 12px;
}
.shot{
  margin:0;
  border-radius: var(--radius);
  overflow:hidden;
  border: 1px solid rgba(58,78,124,.58);
  background: rgba(2,6,23,.18);
}
.shot a{
  display:block;
  line-height:0;
  cursor: zoom-in;
}
.shot img{
  width:100%;
  height:auto;
}
.shot figcaption{
  padding: 10px 12px;
  color: var(--muted2);
  font-size: 13px;
  line-height:1.5;
  background: rgba(16,26,51,.28);
  border-top: 1px solid rgba(58,78,124,.44);
}

body[data-lightbox-open="true"] .shell{
  overflow:hidden;
}
.lightbox{
  position:fixed;
  inset:0;
  z-index:1000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  pointer-events:none;
  background: rgba(3,6,18,0);
  backdrop-filter: blur(0px);
  transition: opacity 180ms ease, background 180ms ease, backdrop-filter 180ms ease;
}
.lightbox[data-open="true"]{
  opacity:1;
  pointer-events:auto;
  background: rgba(3,6,18,.84);
  backdrop-filter: blur(10px);
  cursor: zoom-out;
}
.lightbox__img{
  position:fixed;
  left:0;
  top:0;
  max-width:none;
  max-height:none;
  border:1px solid rgba(215,222,234,.22);
  background: rgba(2,6,23,.25);
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
  cursor: zoom-out;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce){
  .lightbox{
    transition:none;
  }
}
