/* quietspire.com: every page one click from the home, in the home's system.
   Loaded after home.css, which supplies the tokens, the night, the ground
   (footer) and each app's identity. This file adds:
   - the studio bar, the home's sky shrunk to a header,
   - the page tower, where each app page stacks its storeys like the home,
   - the Hapax page (Rose on top, Light below, as two of the app's ten themes),
   - the SLAB page (the teal slab, then the rest of the game stacked under it),
   - the support and privacy documents, under a band in the app's colours.
   The generated word pages keep style.css; only their header and footer were
   restyled there. */

/* ---------- the studio bar ---------- */

.bar{
  max-width:1160px;margin:0 auto;
  padding:clamp(14px,2.6vw,28px) var(--gutter) 0;
  display:flex;align-items:center;justify-content:space-between;
  flex-wrap:wrap;gap:2px 28px;
}
.bar__mark{
  font-family:var(--studio);font-weight:200;
  font-size:clamp(21px,2.6vw,28px);line-height:1;
  letter-spacing:.3em;margin-right:-.3em;
  text-transform:uppercase;color:var(--star);text-decoration:none;
  padding:12px 0;               /* a 44px target */
}
.bar__apps{display:flex;flex-wrap:wrap;gap:2px clamp(4px,1.6vw,14px)}
@media (max-width:640px){.bar__apps{margin-left:-8px}}
.bar__app{
  display:inline-flex;align-items:center;gap:9px;
  min-height:44px;padding:6px 10px 6px 8px;border-radius:12px;
  color:var(--haze);text-decoration:none;
  font-size:15px;font-weight:500;line-height:1.2;white-space:nowrap;
  transition:color .2s var(--quart),background-color .2s var(--quart);
}
.bar__app img{
  width:28px;height:28px;border-radius:22.5%;
  box-shadow:0 0 0 1px rgba(255,255,255,.14),0 4px 10px rgba(0,0,0,.45);
  transition:transform .35s var(--expo);
}
.bar__app:hover{color:var(--star)}
.bar__app:hover img{transform:translateY(-2px)}
.bar__app[aria-current="page"]{color:var(--star);background:rgba(255,255,255,.09)}

/* ---------- the page tower ---------- */

.ptower{
  max-width:1160px;margin:0 auto;
  padding:clamp(28px,5vw,56px) var(--gutter) 0;
  display:flex;flex-direction:column;align-items:center;
}

/* ================= Hapax ================= */

/* the Rose storey: the app's own screen at web size */
.hx-levels{
  margin-top:clamp(28px,3.6vw,42px);padding-top:clamp(22px,2.8vw,30px);
  border-top:1px solid rgba(255,255,255,.3);
}
.hx-sec{margin:0;font-size:clamp(23px,2.5vw,29px);font-weight:700;letter-spacing:-.015em;line-height:1.15}
.hx-chips{display:flex;flex-wrap:wrap;gap:6px 6px;margin:14px 0 0 -4px;padding:0;list-style:none}
.hx-chip{
  display:inline-flex;align-items:center;min-height:44px;padding:8px 18px;
  border:0;border-radius:999px;background:transparent;
  font:inherit;font-size:clamp(17px,1.7vw,19px);color:var(--hx-ink);
}
button.hx-chip{
  cursor:pointer;-webkit-tap-highlight-color:transparent;touch-action:manipulation;
  transition:background-color .25s var(--quart),color .25s var(--quart);
}
button.hx-chip:hover{background:rgba(255,255,255,.13)}
button.hx-chip[aria-pressed="true"]{background:#fff;color:var(--hx-rose);font-weight:600}
.hx-levels__note{margin-top:12px;max-width:52ch;font-size:16px;color:var(--hx-soft)}
html:not(.js) .js-only{display:none}

.hx-app{margin-top:clamp(36px,4.6vw,56px)}
.hx-rows{margin:14px 0 0;padding:0}
.hx-row{
  display:grid;grid-template-columns:minmax(0,1fr);gap:3px 32px;
  padding:16px 0 17px;border-top:1px solid rgba(255,255,255,.24);
}
.hx-row:last-child{border-bottom:1px solid rgba(255,255,255,.24)}
@media (min-width:700px){.hx-row{grid-template-columns:minmax(0,10.5rem) minmax(0,1fr);align-items:baseline}}
.hx-row dt{font-size:16px;color:var(--hx-soft)}
.hx-row dd{margin:0;max-width:48ch;font-size:clamp(18px,1.8vw,20px);line-height:1.45}

/* the Light storey: the same app in its Light theme, for what lives on the web */
.storey--paper{
  width:100%;
  background:var(--hx-card);
  color:var(--hx-card-ink);
  font-family:var(--system);
  box-shadow:inset 0 -10px 0 #d9d9dc;
  z-index:1;
}
.storey--paper :focus-visible{outline-color:var(--hx-card-ink)}
.hx-web{
  display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(40px,5vw,64px);
  padding:clamp(30px,5vw,60px) clamp(20px,5vw,60px) clamp(40px,5.4vw,70px);
}
@media (min-width:900px){.hx-web{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}}
.hx-links{list-style:none;margin:14px 0 0;padding:0}
.hx-links li{padding:15px 0 16px;border-top:1px solid #e2e2e4}
.hx-links li:last-child{border-bottom:1px solid #e2e2e4}
.hx-links a{
  font-size:clamp(21px,2.2vw,24px);line-height:1.25;color:var(--hx-card-ink);
  text-decoration:underline dashed;text-decoration-thickness:1px;text-underline-offset:5px;
}
.hx-links a:hover{text-decoration-style:solid}
.hx-links p{margin-top:5px;font-size:16px;color:var(--hx-card-muted)}

/* hapax, set as an entry of its own */
.hx-self{margin:0;align-self:start}
.hx-self__date{font-size:15px;color:var(--hx-card-muted)}
.hx-self__word{margin-top:6px;font-size:clamp(56px,8vw,96px);font-weight:700;letter-spacing:-.035em;line-height:1}
.hx-self__meta{margin-top:12px;font-size:clamp(18px,1.8vw,20px);color:var(--hx-card-muted)}
.hx-self__def{margin-top:16px;max-width:26ch;font-size:clamp(21px,2.3vw,26px);line-height:1.3}
.hx-self__ex{margin-top:12px;max-width:40ch;font-size:clamp(17px,1.7vw,19px);line-height:1.45;font-style:italic;color:var(--hx-card-muted)}

/* ================= SLAB ================= */

/* the teal storey tapers toward the top; the slabs under it widen to the ground */
.p-slab .storey--slab{width:calc(100% - 20px);left:4px}
@media (min-width:860px){.p-slab .storey--slab{width:86%;left:1.4%}}
.p-slab .sl-stage{height:clamp(300px,34vw,420px)}

.sl-stack{width:100%}
.sl-rule a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.sl-rule a:hover{text-decoration-thickness:2px}
.sl-rule :focus-visible{outline-color:var(--sl-ink)}
.sl-rules{list-style:none;margin:0;padding:0;width:100%;display:flex;flex-direction:column;align-items:center}
.sl-rule{
  position:relative;width:100%;
  display:grid;grid-template-columns:minmax(0,1fr);gap:2px 28px;
  padding:16px clamp(18px,4vw,40px) 22px;
  border-radius:3px;
  color:var(--sl-ink);font-family:var(--studio);
  box-shadow:inset 0 -6px 0 rgba(0,0,0,.2),inset 0 2px 0 rgba(255,255,255,.28);
}
@media (min-width:700px){.sl-rule{grid-template-columns:minmax(0,10rem) minmax(0,1fr);align-items:baseline}}
.sl-rule h3{margin:0;font-size:17px;font-weight:600;line-height:1.35}
.sl-rule p{max-width:56ch;font-size:17px;line-height:1.45}
.sl-rule:nth-child(3n+1){background:var(--sl-terra)}
.sl-rule:nth-child(3n+2){background:var(--sl-stone)}
.sl-rule:nth-child(3n){background:var(--sl-teal)}
.sl-rule:nth-child(1){width:calc(100% - 16px);left:-3px}
.sl-rule:nth-child(2){width:calc(100% - 12px);left:2px}
.sl-rule:nth-child(3){width:calc(100% - 8px);left:-2px}
.sl-rule:nth-child(4){width:calc(100% - 4px);left:1px}
@media (min-width:860px){
  .sl-rule:nth-child(1){width:88.5%;left:-.9%}
  .sl-rule:nth-child(2){width:91.5%;left:.7%}
  .sl-rule:nth-child(3){width:94.5%;left:-.5%}
  .sl-rule:nth-child(4){width:97.5%;left:.3%}
}

/* ================= support and privacy ================= */

.band{position:relative;width:100%;border-radius:6px 6px 4px 4px}
.band__in{padding:clamp(22px,3.6vw,40px) clamp(20px,5vw,60px) clamp(30px,4.2vw,48px)}
.band__app{
  display:inline-flex;align-items:center;gap:12px;min-height:44px;
  color:inherit;text-decoration:none;font-size:18px;font-weight:600;line-height:1.2;
  border-radius:10px;
}
.band__app img{width:40px;height:40px;border-radius:22.5%}
.band h1{margin:clamp(14px,2vw,22px) 0 0;font-size:clamp(38px,5vw,58px);line-height:1.04}
.band__eff{margin-top:10px;font-size:16px}
.band__nav{display:flex;flex-wrap:wrap;gap:4px;margin:20px 0 0 -12px}
.band__nav a{
  display:inline-flex;align-items:center;min-height:44px;padding:8px 12px;
  color:inherit;text-decoration:none;font-size:16px;font-weight:500;
  transition:background-color .2s var(--quart),color .2s var(--quart);
}

.band--slab{
  background:var(--sl-teal);color:var(--sl-ink);font-family:var(--studio);
  box-shadow:inset 0 -10px 0 var(--sl-teal-side);
}
.band--slab h1{font-weight:500;letter-spacing:-.005em}
.band--slab .band__app span{letter-spacing:.22em;margin-right:-.22em}
.band--slab .band__eff{color:var(--sl-soft)}
.band--slab .band__app img{box-shadow:0 6px 14px rgba(20,40,40,.3)}
.band--slab .band__nav a{border-radius:6px}
.band--slab .band__nav a:hover{background:rgba(14,26,32,.1)}
.band--slab .band__nav a[aria-current="page"]{background:var(--sl-dusk);color:var(--sl-stone)}
.band--slab :focus-visible{outline-color:var(--sl-ink)}

.band--hapax{
  background:var(--hx-rose);color:var(--hx-ink);font-family:var(--system);
  box-shadow:inset 0 -10px 0 var(--hx-rose-edge);
}
.band--hapax h1{font-weight:700;letter-spacing:-.025em}
.band--hapax .band__eff{color:var(--hx-soft)}
.band--hapax .band__app img{box-shadow:0 6px 14px rgba(60,10,22,.4)}
.band--hapax .band__nav a{border-radius:999px}
.band--hapax .band__nav a:hover{background:rgba(255,255,255,.13)}
.band--hapax .band__nav a[aria-current="page"]{background:#fff;color:var(--hx-rose)}
.band--hapax :focus-visible{outline-color:#fff}

/* the document itself is the studio speaking, so it sits on the night */
.doc{
  width:100%;
  padding:clamp(34px,5vw,58px) clamp(20px,5vw,60px) 0;
}
.doc > *{max-width:68ch}
.doc p,.doc li{color:var(--haze);font-size:17px;line-height:1.65}
.doc p{margin:0 0 14px}
.doc h2{margin:42px 0 10px;font-size:clamp(20px,2.1vw,23px);font-weight:500;line-height:1.25;color:var(--star)}
.doc ul{margin:0 0 14px;padding-left:22px}
.doc li{margin:6px 0}
.doc li::marker{color:var(--haze-2)}
.doc strong{color:var(--star);font-weight:600}
.doc a{
  color:var(--star);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px;
  text-decoration-color:rgba(244,244,245,.45);
  transition:text-decoration-color .2s var(--quart);
}
.doc a:hover{text-decoration-color:var(--star)}

/* the address: the one thing people come to a support page for */
.mailbox{
  margin:26px 0 28px;padding:18px 0 20px;
  border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);
}
.mailbox p{margin:0}
.mailbox .mailbox__label{font-size:15px;color:var(--haze)}
.mailbox .mailbox__note{font-size:15px;color:var(--haze)}
.doc .mailbox__addr{
  display:inline-block;margin:4px 0 6px;
  font-family:var(--studio);font-weight:300;font-size:clamp(23px,3.4vw,31px);line-height:1.25;
  color:var(--star);text-decoration:none;
  border-bottom:1px solid var(--rule);overflow-wrap:anywhere;
}
.doc .mailbox__addr:hover{border-color:var(--star)}

/* ---------- reduced motion: everything here is a state change, not a journey ---------- */
@media (prefers-reduced-motion:reduce){
  .bar__app:hover img{transform:none}
}

/* the footer marks the page you are on */
.ground a[aria-current="page"]{color:var(--star);border-color:var(--star)}
