:root{
  --ql-ink:#101923;
  --ql-wall:#1f2b36;
  --ql-wall-soft:#2f3d49;
  --ql-surface:#eef3f4;
  --ql-surface-2:#dfe8ea;
  --ql-lantern:#e4bd55;
  --ql-lantern-dim:#b99645;
  --ql-rose:#b66b72;
  --ql-green:#6f9187;
  --ql-rule:#aebdc1;
  --ql-muted:#5d6c74;
  --ql-white:#f8fbfb;
  --ql-shadow:#17212b;
  --ql-radius:22px;
}

*{box-sizing:border-box;}

body{
  margin:0;
  color:var(--ql-ink);
  background:var(--ql-wall);
  font-family:"IBM Plex Sans","Aptos","Segoe UI",Tahoma,Arial,sans-serif;
  line-height:1.55;
}

a{color:inherit;}

.ql-site,.ql-article-shell{
  width:min(1180px,calc(100% - 28px));
  margin:0 auto;
}

.ql-site{
  padding:28px 0 64px;
}

.ql-hero{
  display:grid;
  grid-template-columns:140px minmax(0,1fr) 260px;
  gap:18px;
  min-height:520px;
  padding:22px;
  border:1px solid #3c4b56;
  border-radius:34px;
  background:var(--ql-shadow);
  color:var(--ql-white);
  position:relative;
  overflow:hidden;
}

.ql-aperture{
  min-height:100%;
  border:1px solid #43525e;
  border-radius:26px;
  background:#22303b;
  display:flex;
  align-items:stretch;
  justify-content:center;
  gap:12px;
  padding:24px 18px;
}

.ql-aperture span{
  display:block;
  width:22px;
  border-radius:999px;
  background:var(--ql-lantern);
  opacity:.88;
}

.ql-aperture span:nth-child(2){
  margin-top:76px;
  opacity:.45;
}

.ql-aperture span:nth-child(3){
  margin-top:154px;
  opacity:.22;
}

.ql-hero-copy{
  align-self:end;
  padding:38px clamp(6px,4vw,48px) 30px;
}

.ql-kicker,.ql-section-mark,.ql-meter-label,.ql-chip-bank>p,.ql-card-tag,.ql-decision-rail>p{
  margin:0 0 14px;
  font-family:"IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:.74rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ql-lantern);
}

.ql-hero h1{
  margin:0;
  max-width:760px;
  font-family:Rockwell,"Roboto Slab","Courier New",Courier,serif;
  font-size:clamp(4rem,10vw,9.2rem);
  line-height:.82;
  letter-spacing:-.075em;
  font-weight:700;
}

.ql-dek{
  max-width:710px;
  margin:32px 0 0;
  font-size:clamp(1.12rem,1.8vw,1.55rem);
  line-height:1.35;
  color:#dce6e8;
}

.ql-byline{
  max-width:620px;
  margin:22px 0 0;
  color:#b8c6ca;
}

.ql-byline strong{
  color:var(--ql-white);
  font-weight:650;
}

.ql-room-meter{
  align-self:stretch;
  border:1px solid #43525e;
  border-radius:26px;
  padding:20px;
  background:#25323d;
}

.ql-room-meter ol{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:14px;
}

.ql-room-meter li{
  display:grid;
  grid-template-columns:1fr 48px;
  gap:12px;
  align-items:center;
  color:#d7e2e4;
  font-size:.95rem;
}

.ql-room-meter b{
  display:block;
  height:48px;
  border:1px solid #54636d;
  border-radius:14px;
  background:var(--ql-lantern);
}

.ql-room-meter li:nth-child(1) b{opacity:.28;}
.ql-room-meter li:nth-child(2) b{opacity:.48;}
.ql-room-meter li:nth-child(3) b{opacity:.72;}
.ql-room-meter li:nth-child(4) b{opacity:.95;}

.ql-chip-bank{
  display:grid;
  grid-template-columns:180px 1fr;
  gap:18px;
  margin:18px 0;
  padding:18px 20px;
  border-radius:24px;
  border:1px solid #3c4b56;
  background:#26343f;
  color:#dfe8ea;
}

.ql-chip-bank>p{margin:6px 0 0;color:var(--ql-lantern);}

.ql-chips{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.ql-chips a,.ql-chips span{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:7px 13px;
  border:1px solid #596873;
  border-radius:999px;
  background:#1d2933;
  color:#ecf3f4;
  text-decoration:none;
  font-size:.92rem;
}

.ql-reconstruction{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.75fr);
  gap:18px;
  background:var(--ql-surface);
  border-radius:32px;
  padding:22px;
  border:1px solid var(--ql-rule);
}

.ql-room-title,.ql-room-body,.ql-chain,.ql-heat,.ql-archive{
  background:var(--ql-white);
  border:1px solid var(--ql-rule);
  border-radius:var(--ql-radius);
}

.ql-room-title{
  padding:34px;
}

.ql-room-title .ql-section-mark,.ql-archive .ql-section-mark,.ql-heat .ql-section-mark,.ql-card .ql-card-tag,.ql-decision-rail>p{
  color:var(--ql-muted);
}

.ql-room-title h2,.ql-archive h2{
  margin:0;
  font-family:Rockwell,"Roboto Slab","Courier New",Courier,serif;
  font-size:clamp(2.1rem,4vw,4.2rem);
  line-height:.96;
  letter-spacing:-.045em;
}

.ql-room-body{
  padding:34px;
  display:flex;
  align-items:end;
}

.ql-room-body p{
  margin:0;
  font-size:1.12rem;
  color:#26343d;
}

.ql-chain{
  grid-column:1/-1;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:0;
  overflow:hidden;
}

.ql-chain div{
  min-height:132px;
  padding:20px;
  border-right:1px solid var(--ql-rule);
  display:grid;
  align-content:space-between;
}

.ql-chain div:last-child{border-right:0;}

.ql-chain span,.ql-card time,.ql-article-meta{
  font-family:"IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:.78rem;
  color:var(--ql-muted);
}

.ql-chain strong{
  font-family:Rockwell,"Roboto Slab","Courier New",Courier,serif;
  font-size:1.15rem;
}

.ql-chain em{
  font-style:normal;
  color:var(--ql-muted);
  font-size:.9rem;
}

.ql-heat{
  margin:18px 0;
  padding:22px;
  display:grid;
  grid-template-columns:210px 1fr minmax(220px,360px);
  gap:18px;
  align-items:center;
  background:var(--ql-surface-2);
}

.ql-heat .ql-section-mark{margin:0;}

.ql-heat-grid{
  display:grid;
  grid-template-columns:repeat(8,1fr);
  gap:8px;
}

.ql-heat-grid span{
  height:54px;
  border-radius:15px;
  border:1px solid var(--ql-rule);
}

.ql-heat-grid .cold{background:#cbd8dc;}
.ql-heat-grid .cool{background:var(--ql-green);}
.ql-heat-grid .warm{background:var(--ql-lantern);}
.ql-heat-grid .hot{background:var(--ql-rose);}

.ql-heat-note{
  margin:0;
  color:#33424b;
}

.ql-archive{
  padding:22px;
  background:var(--ql-surface);
}

.ql-archive-head{
  display:grid;
  grid-template-columns:200px 1fr;
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}

.ql-posts{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
}

.ql-card{
  min-width:0;
}

.ql-card-link{
  min-height:310px;
  display:grid;
  grid-template-rows:auto auto 1fr auto;
  gap:18px;
  padding:18px;
  border:1px solid var(--ql-rule);
  border-radius:22px;
  background:var(--ql-white);
  text-decoration:none;
  position:relative;
  overflow:hidden;
}

.ql-card-link:before{
  content:"";
  position:absolute;
  top:18px;
  left:0;
  width:8px;
  height:84px;
  background:var(--ql-lantern);
  border-radius:0 8px 8px 0;
}

.ql-card-link:hover{
  border-color:#77878d;
  background:#fbfdfd;
}

.ql-card-top{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding-left:12px;
}

.ql-card h3{
  margin:0;
  padding-left:12px;
  font-family:Rockwell,"Roboto Slab","Courier New",Courier,serif;
  font-size:1.55rem;
  line-height:1.05;
  letter-spacing:-.025em;
}

.ql-card p{
  margin:0;
  padding-left:12px;
  color:#40515a;
}

.ql-card-chain{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7px;
  padding-left:12px;
}

.ql-card-chain span{
  height:12px;
  border-radius:999px;
  background:var(--ql-rule);
}

.ql-card-chain span:nth-child(2){background:var(--ql-green);}
.ql-card-chain span:nth-child(3){background:var(--ql-lantern);}
.ql-card-chain span:nth-child(4){background:var(--ql-rose);}

.ql-article-shell{
  padding:24px 0 72px;
}

.ql-back{
  margin:0 0 16px;
}

.ql-back a{
  display:inline-flex;
  padding:10px 14px;
  border:1px solid #465662;
  border-radius:999px;
  color:#eef3f4;
  text-decoration:none;
  background:#26343f;
}

.ql-article{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:16px;
}

.ql-lamp-column{
  margin:0;
  min-height:720px;
  padding:16px 12px;
  border:1px solid #465662;
  border-radius:28px;
  background:#22303b;
  color:#dfe8ea;
  display:grid;
  grid-template-rows:auto repeat(4,1fr);
  gap:12px;
}

.ql-lamp-column p{
  writing-mode:vertical-rl;
  transform:rotate(180deg);
  margin:0 auto;
  font-family:"IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
  font-size:.72rem;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--ql-lantern);
}

.ql-lamp-column span{
  display:block;
  border-radius:999px;
  background:var(--ql-lantern);
  opacity:.26;
}

.ql-lamp-column span:nth-child(3){opacity:.48;}
.ql-lamp-column span:nth-child(4){opacity:.72;}
.ql-lamp-column span:nth-child(5){opacity:.92;}

.ql-article-header{
  padding:42px clamp(22px,5vw,64px);
  border:1px solid var(--ql-rule);
  border-radius:30px 30px 0 0;
  background:var(--ql-white);
}

.ql-article-header h1{
  max-width:860px;
  margin:0 0 20px;
  font-family:Rockwell,"Roboto Slab","Courier New",Courier,serif;
  font-size:clamp(2.8rem,6vw,6.8rem);
  line-height:.88;
  letter-spacing:-.06em;
}

.ql-article-grid{
  display:grid;
  grid-template-columns:minmax(0,760px) 260px;
  gap:18px;
  padding:18px;
  border:1px solid var(--ql-rule);
  border-top:0;
  border-radius:0 0 30px 30px;
  background:var(--ql-surface);
}

.ql-article-body{
  padding:34px clamp(22px,4vw,54px);
  border:1px solid var(--ql-rule);
  border-radius:22px;
  background:var(--ql-white);
  font-size:1.08rem;
}

.ql-article-body p,.ql-article-body ul,.ql-article-body ol,.ql-article-body blockquote{
  max-width:690px;
}

.ql-article-body h2,.ql-article-body h3{
  max-width:720px;
  font-family:Rockwell,"Roboto Slab","Courier New",Courier,serif;
  line-height:1.05;
  letter-spacing:-.025em;
  margin-top:2.2em;
}

.ql-article-body h2{font-size:2rem;}
.ql-article-body h3{font-size:1.45rem;}

.ql-article-body blockquote{
  margin:28px 0;
  padding:18px 20px;
  border-left:8px solid var(--ql-lantern);
  background:#eef4f2;
  color:#26343d;
}

.ql-decision-rail{
  align-self:start;
  position:sticky;
  top:18px;
  padding:18px;
  border:1px solid var(--ql-rule);
  border-radius:22px;
  background:#f4f8f8;
}

.ql-decision-rail ol{
  margin:0;
  padding-left:20px;
  display:grid;
  gap:14px;
  color:#35464f;
  font-size:.95rem;
}

@media (max-width:900px){
  .ql-hero,.ql-reconstruction,.ql-archive-head,.ql-heat,.ql-article,.ql-article-grid,.ql-chip-bank{
    grid-template-columns:1fr;
  }
  .ql-hero{min-height:auto;}
  .ql-aperture{min-height:96px;}
  .ql-room-meter{display:none;}
  .ql-chain,.ql-posts{grid-template-columns:1fr 1fr;}
  .ql-lamp-column{display:none;}
  .ql-decision-rail{position:static;}
}

@media (max-width:620px){
  .ql-site,.ql-article-shell{width:min(100% - 18px,1180px);}
  .ql-hero,.ql-reconstruction,.ql-archive{padding:12px;border-radius:24px;}
  .ql-hero-copy{padding:24px 8px;}
  .ql-hero h1{font-size:3.7rem;}
  .ql-chain,.ql-posts{grid-template-columns:1fr;}
  .ql-chain div{border-right:0;border-bottom:1px solid var(--ql-rule);}
  .ql-chain div:last-child{border-bottom:0;}
  .ql-article-header{padding:28px 20px;}
  .ql-article-body{padding:24px 20px;}
}