
:root{
  --bg:#f6f7fb;
  --paper:#ffffff;
  --text:#0b1224;
  --muted:#4b5563;
  --border:#e2e8f0;
  --accent:#0f766e;
  --accent-soft:#e6f4f1;
  --shadow:0 16px 54px rgba(15,23,42,.06);
  --radius:18px;
  --maxw:74ch;
}

*{box-sizing:border-box}
html,body{
  margin:0; padding:0;
  background:var(--bg); color:var(--text);
  font-family:'Manrope',system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,'Noto Sans',sans-serif;
  line-height:1.6; letter-spacing:.01em;
  -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale;
}
img{max-width:100%;display:block}
a{color:var(--text);text-decoration:underline;text-underline-offset:3px}
a:hover{color:#0f172a}
.container{width:min(1120px,94vw);margin:0 auto}

/* Header */
header.site{
  position:sticky;top:0;z-index:20;color:var(--text);
  border-bottom:1px solid var(--border);
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
}
header .overlay{background:transparent}
header .inner{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand .logo{
  width:44px;height:44px;border-radius:14px;
  border:1px solid var(--border);background:linear-gradient(135deg,#eef2ff,#e0f2f1);
  display:grid;place-items:center;box-shadow:0 6px 20px rgba(15,23,42,.08)
}
.brand .logo .square{
  width:30px;height:30px;border:1px solid rgba(11,18,36,.18);
  border-radius:8px;display:grid;place-items:center;background:#fff;font-weight:800;font-size:14px;letter-spacing:.5px
}
.brand .title{font-weight:800;letter-spacing:.2px}
.brand .subtitle{color:var(--muted);font-size:14px}
nav a{margin-left:14px;font-weight:700;text-decoration:none;color:var(--text);padding:6px 0}
nav a:hover{opacity:.85}

/* Hero */
.hero{padding:40px 0 16px;display:grid;gap:12px;width:min(860px,100%)}
.hero h1{margin:6px 0;font-size:38px;line-height:1.12;letter-spacing:.2px;font-weight:800}
.hero .lede{margin:0;color:var(--muted);font-size:18px;line-height:1.7}
.hero .disclaimer{margin:4px 0 0;color:#6b7280;font-size:15px}

.pill-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pill{
  display:inline-flex;align-items:center;gap:8px;
  padding:6px 12px;border-radius:999px;border:1px solid var(--border);
  background:var(--paper);color:var(--muted);font-size:13px;font-weight:700;letter-spacing:.1px
}
.pill.accent{background:var(--accent-soft);border-color:rgba(15,118,110,.2);color:var(--accent)}
.pill.ghost{background:transparent}
.pill.small{padding:5px 10px;font-size:12px}

/* Main grid */
.main-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:22px;padding:22px 0 48px}
.card{
  border:1px solid var(--border);border-radius:var(--radius);
  background:var(--paper);overflow:hidden;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease;
  box-shadow:0 10px 30px rgba(15,23,42,.05)
}
.card:hover{transform:translateY(-2px);box-shadow:var(--shadow);border-color:rgba(15,118,110,.2)}
.card a{text-decoration:none;color:inherit;display:flex;flex-direction:column;height:100%}
.card .thumb{aspect-ratio:3/2;overflow:hidden;background:#f8fafc}
.card .thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.card:hover .thumb img{transform:scale(1.03)}
.card .body{padding:16px 16px 18px;display:grid;gap:10px}
.card h3{margin:0;font-size:20px;line-height:1.3;letter-spacing:.2px}
.card p{margin:0;color:var(--muted);font-size:15px;line-height:1.5}
.card .meta{display:flex;align-items:center;gap:10px;font-size:13px;color:#64748b}

footer.site{border-top:1px solid var(--border);padding:28px 0 48px;color:var(--muted);background:rgba(255,255,255,.9);margin-top:32px}

/* Article */
.article{padding:32px 0 60px}
.article header{margin:4px 0 18px;display:grid;gap:12px}
.article h1{margin:0;font-size:36px;line-height:1.12;letter-spacing:.2px;font-weight:800}
.article .meta{color:var(--muted);font-size:14px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.article .meta .views{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-weight:700}
.article .cover{margin:8px 0 10px;border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;background:#f8fafc}
.article .cover img{width:100%;height:auto;display:block}

.note-box{
  border:1px solid var(--border);
  background:var(--paper);
  border-radius:14px;
  padding:12px 14px;
  color:#475569;
}

.prose{
  font-size:18px;line-height:1.82;letter-spacing:.05px;
  width:min(var(--maxw),100%);margin:0 auto;
}
.prose p{margin:0 0 1em}
.prose h2{margin:1.6em 0 .6em;font-size:24px}
.prose h3{margin:1.3em 0 .6em;font-size:20px}
.prose ul,.prose ol{padding-left:1.4em;margin:0 0 1em}
.prose li+li{margin-top:.25em}
.prose a{color:var(--text);text-decoration:underline}
.prose a.ref{
  font-size:.92em;vertical-align:super;
  color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(15,118,110,.3);font-weight:800;
}
.prose a.ref:hover{color:#115e59;border-color:#115e59}
.ref-intro{margin:1em 0;color:#6b7280;font-size:15px}
.ref-intro{margin:1em 0;color:#6b7280;font-size:15px}
#refs{scroll-margin-top:120px}
.ref-item{font-size:16px;margin:0 0 .7em;color:var(--muted)}
.ref-item .ref-num{color:#334155;margin-right:8px;font-weight:800}
.ref-item a{color:var(--text);text-decoration:underline;text-decoration-color:rgba(15,118,110,.55)}

/* Forms */
.form{
  width:min(760px, 92vw); margin: 28px auto 40px; background:var(--paper);
  border:1px solid var(--border); border-radius:20px; padding:22px 22px 20px;
  box-shadow: var(--shadow);
}
.form h2{margin:4px 0 10px; font-size:22px; letter-spacing:.2px}
.form p{margin:0 0 12px; color:#64748b}
.form .grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px }
@media (max-width:640px){ .form .grid{ grid-template-columns:1fr } }
.field{ display:flex; flex-direction:column; gap:8px }
.field label{ font-size:13px; color:#334155; letter-spacing:.2px }
.input{
  display:flex; align-items:center; background:#fff; border:1.5px solid var(--border); border-radius:14px;
  padding:12px 14px; transition:border-color .15s, box-shadow .15s;
}
.input:focus-within{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(15,118,110,.12) }
.input input, .input textarea{
  width:100%; border:0; outline:0; background:transparent; font:inherit; color:inherit;
}
.input textarea{ min-height:160px; resize:vertical }
.hint{ font-size:12px; color:#94a3b8 }

.actions{ display:flex; align-items:center; gap:12px; margin-top:16px }
.btn{
  display:inline-flex;align-items:center;gap:10px;padding:12px 18px;border-radius:999px;
  border:1px solid rgba(11,18,36,.12);background:#0b1224;color:#fff;
  box-shadow:0 10px 30px rgba(15,23,42,.18);font-weight:800;cursor:pointer;
  transition:box-shadow .2s,transform .2s,background .2s
}
.btn:hover{transform:translateY(-1px);box-shadow:0 14px 36px rgba(15,23,42,.24);background:#0d162e}
.btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.status{ font-size:14px; color:#334155 }

/* Modal basics */
.cta-row{ display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.hand-cta{ display:flex; align-items:center; gap:8px; margin-left:8px; color:#6b7280; }
.hand-arrow{
  width: 64px;
  height: auto;
  transform: scaleX(-1);
  transform-origin: center;
  flex: 0 0 auto;
}
.note-hand{ font-size:12px; color:#64748b; white-space:nowrap; }

@media (max-width:720px){
  .hero{padding-top:28px}
  .hero h1{font-size:30px}
  .article h1{font-size:30px}
  header .inner{padding:12px 0}
}
