/* Nadia's Study — clean + minimal */
:root{
  --bg:#fbfaf7;
  --surface:#ffffff;
  --text:#111318;
  --muted:#5a6472;
  --border:#e8e3d8;
  --accent:#1f5a4a;
  --shadow: 0 6px 18px rgba(17,19,24,.06);
  --radius:14px;
  --max: 860px;
}

[data-theme="dark"]{
  --bg:#0f1216;
  --surface:#141922;
  --text:#eef2f7;
  --muted:#a3adba;
  --border:#252c37;
  --accent:#66c2a5;
  --shadow: 0 10px 24px rgba(0,0,0,.35);
}

*{box-sizing:border-box}
html{color-scheme: light dark;}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  line-height:1.6;
}

a{color:inherit; text-decoration:none}
a:hover{text-decoration:underline}

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

header{
  position:sticky; top:0; z-index:10;
  backdrop-filter:saturate(180%) blur(10px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom:1px solid var(--border);
}

.nav{max-width:var(--max); margin:0 auto; padding:14px 18px; display:flex; align-items:center; gap:14px;}
.nav .brand{font-weight:650; letter-spacing:.2px}
.nav .links{display:flex; gap:12px; flex-wrap:wrap; margin-left:auto; align-items:center}
.nav .links a{padding:8px 10px; border-radius:10px}
.nav .links a.active{background: color-mix(in srgb, var(--accent) 12%, transparent);}

.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:8px;
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  box-shadow: var(--shadow);
  cursor:pointer;
}
.btn:active{transform:translateY(1px)}

.hero{padding:26px 0 10px;}
.hero h1{font-size:38px; line-height:1.15; margin:0 0 8px;}
.hero p{margin:0 0 18px; color:var(--muted); max-width:70ch}

.grid{display:grid; grid-template-columns: 1fr; gap:14px;}
@media (min-width: 860px){
  .grid.two{grid-template-columns: 1fr 1fr;}
}

.card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: var(--shadow);
}
.card h3{margin:0 0 6px; font-size:18px; line-height:1.3}
.card .meta{color:var(--muted); font-size:13px; display:flex; gap:10px; flex-wrap:wrap}

.section{margin-top:22px;}
.section h2{font-size:16px; letter-spacing:.2px; margin:0 0 10px; color:var(--muted); font-weight:650;}

.tags{display:flex; gap:8px; flex-wrap:wrap; margin-top:10px;}
.tag{
  font-size:12px;
  padding:5px 9px;
  border-radius:999px;
  border:1px solid var(--border);
  color:var(--muted);
}

.controls{display:flex; gap:10px; flex-wrap:wrap; align-items:center}
.input{
  padding:10px 12px;
  border:1px solid var(--border);
  border-radius:12px;
  background:var(--surface);
  min-width: 240px;
  color:var(--text);
}

.reader{
  max-width: 72ch;
  margin: 0 auto;
}
.reader h1{font-size:34px; margin:22px 0 10px; line-height:1.2}
.reader .meta{color:var(--muted); font-size:13px; margin-bottom:18px}
.reader p{font-family: "Source Serif 4", Georgia, serif; font-size:18px; line-height:1.85}

footer{margin-top:34px; color:var(--muted); font-size:13px}
.small{font-size:13px; color:var(--muted)}

kbd{border:1px solid var(--border); border-bottom-width:2px; border-radius:8px; padding:2px 6px; font-size:12px; color:var(--muted)}
