/* cluster.secretserver.club — the look.
   Every value here is a design decision from unit 30; nothing is computed. */

:root {
  color-scheme: light;
  --paper: #fff;
  --ink: #17171a;
  --dim: #6b6b6b;
  --rule: #e2e2e2;
  --rule2: #c8c8c8;
  --link: #0b57d0;

  /* tuned in the mock, 2026-11-16 */
  --hover: #b0cbf7;          /* the disc fill under a pointer */
  --pane-opacity: 12%;       /* the list's paper */
  --label: 12px;             /* server names inside the discs */
  --hub: 30px;               /* Stone / Soup / Cluster */
  --type: 14px;              /* the sheet's base size */
  --glide: 520ms;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  position: relative;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inconsolata", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .9375rem;
  line-height: 1.55;
  font-variant-ligatures: none;
}

/* the sky is the window, not the document: it stays put while the page scrolls */
#clouds { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; display: block; }

.w1-page { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; padding: 2rem 1.25rem 3rem; }

/* the frame: three 14px brackets, no complete border */
.w1-frame { display: grid; grid-template-columns: 14px 1fr 14px; grid-template-rows: 14px auto 14px; }
.w1-c { width: 14px; height: 14px; }
.w1-c.tl { grid-area: 1/1; border-top: 1px solid var(--ink); border-left: 1px solid var(--ink); }
.w1-c.tr { grid-area: 1/3; border-top: 1px solid var(--ink); border-right: 1px solid var(--ink); }
.w1-c.br { grid-area: 3/3; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--ink); }

/* menu */
.w1-shell { grid-area: 2/2; display: flex; flex-direction: column; min-width: 0; }
.w1-menu { display: flex; gap: .7rem; flex-wrap: wrap; padding: .05rem 0 .55rem; }
.w1-mitem { font-size: .75rem; letter-spacing: .04em; color: var(--dim); text-decoration: none; }
.w1-mitem:hover { color: var(--ink); }
.w1-mitem.w1-on { color: var(--ink); font-weight: 600; }

/* the list, and the space it borrows */
.w1-body { position: relative; min-width: 0; }
.w1-pane {
  position: absolute; top: 0; left: 0; width: 0; max-height: 100%; overflow: auto;
  opacity: 0; z-index: 2;
  background: color-mix(in srgb, var(--paper) var(--pane-opacity), transparent);
  transition: width .5s cubic-bezier(.2,.9,.2,1), opacity .32s ease;
}
.w1-body.w1-open .w1-pane { width: 40%; opacity: 1; padding: .1rem 1.15rem .1rem .1rem; }
.w1-pane-in { width: 100%; overflow: visible; }

.w1-rows { list-style: none; margin: 0; padding: 0; display: none; }
.w1-rows.w1-on { display: block; }
.w1-row {
  display: block; width: 100%; text-align: left; font: inherit; font-size: .85rem;
  color: var(--link); background: none; border: 0; padding: .26rem 0; cursor: pointer;
}
.w1-row:hover, .w1-row:focus-visible { color: var(--ink); text-decoration: underline; }
.w1-row.w1-hl-row { color: var(--ink); text-decoration: underline; }

/* the diagram */
.w1-stage { position: relative; display: grid; padding: .2rem; overflow: hidden; }
.w1-stage > svg, .w1-stage > #w1-sheets { grid-area: 1 / 1; }
#w1-sheets { display: grid; place-items: center start; pointer-events: none; }
svg.w1-map { display: block; width: 100%; height: auto; font-family: inherit; }

.w1-edge { stroke: var(--rule2); stroke-width: 1; fill: none; transition: opacity .2s ease, stroke .2s ease; }
.w1-edge.w1-lit { stroke: var(--ink); stroke-width: 1.5; }
.w1-edge.w1-dim { opacity: .12; }

.w1-node { cursor: pointer; }
.w1-node .w1-hit { fill: transparent; stroke: none; }
.w1-node .w1-disc { fill: var(--paper); }
.w1-node .w1-ring { fill: none; stroke: var(--ink); stroke-width: 1; }
.w1-node .w1-veil { fill: var(--paper); opacity: 0; }
.w1-node .w1-lbl {
  fill: var(--ink); font-size: var(--label); letter-spacing: .03em;
  text-anchor: middle; dominant-baseline: middle; opacity: 0;
}
.w1-node.w1-noimg .w1-lbl, .w1-node .w1-lbl.w1-lbl-on { opacity: 1; }

.w1-node:hover .w1-veil, .w1-node.w1-hl .w1-veil { opacity: 1; fill: var(--hover); }
.w1-node:hover .w1-lbl, .w1-node.w1-hl .w1-lbl { opacity: 1; fill: var(--ink); }
.w1-node:hover .w1-ring, .w1-node.w1-hl .w1-ring { stroke-width: 2; }
.w1-node.w1-fade .w1-photo { opacity: .45; }
.w1-node.w1-fade .w1-ring { stroke: var(--rule); }

.w1-hub { cursor: pointer; }
.w1-hub .w1-lbl { font-size: var(--hub); font-weight: 600; letter-spacing: .01em; opacity: 1; }
.w1-hub:hover .w1-lbl { fill: var(--link); }

/* sheets */
.w1-modal { display: none; place-self: stretch; place-items: center start; z-index: 3; pointer-events: none; }
.w1-modal.w1-on { display: grid; }
.w1-wrap { position: relative; pointer-events: auto; }
.w1-sheet {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  border: 1px solid var(--ink); width: 21rem; max-width: 100%; height: 21rem; overflow: hidden;
}
.w1-scroll { height: 100%; overflow: auto; padding: 1.05rem 1.15rem 1.15rem; font-size: var(--type); line-height: 1.5; }
.w1-x {
  position: absolute; top: -.6rem; right: -.6rem; z-index: 2; background: var(--paper);
  border: 1px solid var(--ink); padding: .12rem .45rem .16rem; font-size: .5625rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink); text-decoration: none;
}
.w1-mtitle { margin: 0 0 .3rem; font-size: 1.4em; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.w1-mtitle a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.w1-mtitle a:hover, .w1-mtitle a:focus-visible { border-bottom-color: currentColor; }
.w1-meta { margin: 0 0 .8rem; font-size: .93em; font-style: italic; color: var(--dim); }
.w1-meta2 { margin: .9rem 0 0; }
.w1-sub { margin: 1rem 0 .35rem; font-size: .93em; font-style: italic; font-weight: 400; color: var(--dim); }
.w1-hero { display: block; width: 100%; height: auto; aspect-ratio: 4/3; object-fit: cover; border: 1px solid var(--rule); margin: .1rem 0 .8rem; }
.w1-list { margin: 0; padding: 0; list-style: none; font-size: 1em; }
.w1-list li { position: relative; padding-left: 1rem; line-height: 1.5; }
.w1-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 1px; background: var(--ink); }
.w1-list a { color: var(--link); text-decoration: none; }
.w1-list a:hover { text-decoration: underline; }
.w1-sheet p { margin: 0 0 .75em; font-size: 1em; }
.w1-sheet p:last-child { margin-bottom: 0; }
.w1-sheet a { color: var(--link); text-decoration: none; }
.w1-sheet a:hover { text-decoration: underline; }

.w1-miss { margin: 1rem 0; font-size: .85rem; color: var(--dim); }

a:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

@media (max-width: 40rem) {
  .w1-pane { position: relative; width: 100%; max-height: 0; padding: 0; overflow-y: auto; transition: max-height .5s cubic-bezier(.2,.9,.2,1), opacity .32s; }
  .w1-body.w1-open .w1-pane { width: 100%; max-height: 38vh; padding: 0 0 .5rem; }
}

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