:root {
  color-scheme: dark;
  --night: #070a0e;
  --surface: #0c1117;
  --ink: #f5f3ee;
  --muted: #b4bfca;
  --ice: #b5f2f1;
  --copper: #efac78;
  --line: #28313b;
  --mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--night); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; }
.frame { width: min(1256px, calc(100% - 12vw)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; left: 12px; top: -100px; padding: 12px 16px; color: var(--night); background: var(--ice); }
.skip:focus { top: 10px; }
.masthead { border-bottom: 1px solid #262d35; background: #090d12; }
.mast-inner { min-height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; flex-shrink: 0; }
.brand img { display: block; width: 112px; height: auto; }
.brand:focus-visible { outline: 2px solid transparent; box-shadow: 0 2px var(--copper); }
.search { display: flex; align-items: center; gap: 12px; padding: 5px 9px 5px 14px; width: clamp(172px, 20vw, 240px); min-height: 36px; background: #10151b; border: 1px solid #303940; border-radius: 5px; }
.search:focus-within { border-color: var(--ice); }
.loupe { flex: none; width: 13px; height: 13px; position: relative; border: 1.5px solid #b7c5ca; border-radius: 50%; }
.loupe::after { content: ""; position: absolute; width: 6px; height: 1.5px; background: #b7c5ca; transform: rotate(45deg); bottom: -2px; right: -4px; }
.search input { width: 100%; min-width: 0; outline: none; border: 0; background: transparent; color: var(--ink); font-size: .9rem; }
.search input::placeholder { color: #b5bec7; opacity: 1; }
.search kbd { border: 1px solid #37424e; border-radius: 3px; color: #bbcbd0; text-align: center; font: .77rem/1.2 var(--mono); padding: 1px 6px 2px; }

.observatory {
  position: relative; isolation: isolate; overflow: hidden;
  height: clamp(415px, 34vw, 525px);
  background: radial-gradient(ellipse at 66% 43%, #0c1720, #070a0e 68%);
  border-bottom: 1px solid var(--line);
}
.optics { position: absolute; inset: 0; pointer-events: none; container-type: size; }
.optics picture {
  position: absolute; display: block; top: 50%; left: 82%;
  width: min(100cqw, 240.1055cqh); aspect-ratio: 1820 / 758;
  transform: translate(-82%, -50%); mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 96%, transparent),
              linear-gradient(180deg, transparent, #000 5%, #000 95%, transparent);
  mask-composite: intersect;
}
.optics img { display: block; height: 100%; width: 100%; }
.optics canvas { position: absolute; display: block; inset: 0; width: 100%; height: 100%; z-index: 1; }
.interior { height: 100%; position: relative; display: flex; align-items: center; }
.hero-copy { position: relative; z-index: 1; margin-left: 2px; }
.section-label {
  display: flex; align-items: center; gap: 12px;
  font-size: .84rem; font-weight: 520; letter-spacing: .18em; color: #cbd7d8;
}
.section-label span { width: 25px; height: 3px; background: var(--copper); transform: skewX(-30deg); }
h1 { font-size: clamp(5.5rem, 8.1vw, 8.45rem); line-height: .82; margin: 22px 0 28px -.075em; }
h1 span { display: block; font-family: "Helvetica Neue", Arial, sans-serif; font-weight: 580; letter-spacing: -.08em; }
h1 em {
  display: block; padding: .04em .14em .05em .30em;
  font-family: "Iowan Old Style", Baskerville, "Times New Roman", serif;
  font-weight: 400; font-style: italic; letter-spacing: -.072em; color: var(--ice);
  font-size: 1.16em;
}
.browse {
  display: inline-flex; gap: 10px; align-items: center; min-height: 41px; padding: 8px 16px;
  border: 1px solid #44565b; border-radius: 4px; background: #111a1d; color: #ecf4f2;
  font-size: .89rem; font-weight: 600; letter-spacing: .04em;
}
.grid-mark { width: 5px; height: 5px; margin-right: 6px; margin-bottom: 7px; background: var(--ice); box-shadow: 7px 0 var(--ice), 0 7px var(--ice), 7px 7px var(--ice); }
.motion {
  position: absolute; right: 0; bottom: 17px; display: grid; place-items: center; width: 38px; height: 38px;
  padding: 0; border: 1px solid #54616b; border-radius: 50%; background: #0c121ad9; color: #e1ebeb; cursor: pointer;
}
.motion-symbol { width: 9px; height: 10px; border-inline: 3px solid currentColor; }
.motion[data-paused="true"] .motion-symbol { width: 0; height: 0; border: 0; border-left: 8px solid currentColor; border-block: 5px solid transparent; margin-left: 2px; }

.shelf { padding-block: clamp(26px, 2.65vw, 43px) clamp(40px, 6vw, 85px); }
.section-head { display: flex; align-items: center; gap: 18px; margin-bottom: 17px; }
.section-head h2 { font-size: clamp(1.24rem, 1.5vw, 1.48rem); font-weight: 620; letter-spacing: -.03em; }
.section-rule { flex: 1; height: 1px; background: var(--line); }
#count { color: #acb9c2; font-size: .84rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool { min-width: 0; }
.card {
  display: flex; align-items: center; min-height: clamp(178px, 14.8vw, 225px); height: 100%;
  padding: clamp(19px, 2vw, 32px); position: relative; isolation: isolate;
  border: 1px solid #323d45; border-radius: 7px;
  background: linear-gradient(115deg, #121b21, #0b1016 54%); transition: border-color .2s, background-color .2s;
}
.art { position: absolute; z-index: -1; inset: 0 0 0 auto; width: 52%; overflow: hidden; border-radius: 0 6px 6px 0; }
.art img {
  height: 100%; width: 100%; object-fit: cover;
  mix-blend-mode: screen; mask-image: linear-gradient(to right, transparent, #000 23%);
  transition: transform .4s ease-out;
}
.card-body { width: 56%; }
.tags { display: flex; flex-wrap: wrap; gap: 5px 8px; list-style: none; padding: 0; margin: 0 0 13px; color: #c6d2d8; }
.tags li { font: .76rem/1.4 var(--mono); }
.tags li + li::before { content: "/"; color: #78878f; margin-right: 8px; }
.card h3 { font-size: clamp(1.45rem, 1.84vw, 1.9rem); line-height: 1.28; font-weight: 650; letter-spacing: -.045em; }
.card p { color: var(--muted); font-size: .94rem; line-height: 1.6; margin-top: 8px; }
@media (hover: hover) {
  .card:hover, .browse:hover, .motion:hover { border-color: #8fa9ad; }
  .card:hover .art img { transform: scale(1.035); }
}
.empty { border-block: 1px solid var(--line); padding: 37px 16px; color: var(--muted); text-align: center; }
.empty button { padding: 8px 14px; margin-top: 14px; background: var(--surface); border: 1px solid #52626a; color: var(--ink); border-radius: 4px; cursor: pointer; }
@media (max-width: 960px) {
  .frame { width: calc(100% - 8vw); }
  .cards { gap: 12px; }
  .art { width: 49%; }
  .card-body { width: 57%; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - 38px); }
  .mast-inner { min-height: 57px; }
  .brand img { width: 96px; }
  .search { width: min(152px, 43vw); min-height: 35px; }
  .search kbd { display: none; }
  .observatory { height: clamp(293px, 77vw, 360px); }
  .optics { inset: 16px 0 12px 19%; }
  .optics picture {
    left: 100%; width: min(100cqw, 122.8571cqh); aspect-ratio: 860 / 700;
    transform: translate(-100%, -50%);
  }
  .observatory::after {
    content: ""; position: absolute; pointer-events: none; inset: 0;
    background: linear-gradient(90deg, #080c10 0%, #080c10e8 13%, #080c1070 38%, transparent 64%);
  }
  .interior { z-index: 1; }
  .section-label { gap: 8px; font-size: .77rem; }
  .section-label span { width: 18px; height: 2px; }
  h1 { font-size: clamp(4.15rem, 16.8vw, 5.7rem); margin: 17px 0 21px -.05em; }
  h1 em { padding-left: .16em; }
  .browse { min-height: 38px; padding: 6px 12px; font-size: .82rem; }
  .motion { bottom: 12px; width: 32px; height: 32px; }
  .shelf { padding-block: 24px 35px; }
  .section-head { margin-bottom: 13px; gap: 12px; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .card { min-height: clamp(136px, 37vw, 178px); padding: 17px; }
  .art { width: 48%; }
  .card-body { width: 57%; }
  .tags { gap: 4px; margin-bottom: 6px; }
  .tags li { font-size: .7rem; }
  .tags li + li::before { margin-right: 4px; }
  .card h3 { font-size: 1.37rem; }
  .card p { font-size: .85rem; margin-top: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .card, .art img { transition: none; }
  .card:hover .art img { transform: none; }
}
@media (forced-colors: active) {
  .brand:focus-visible { outline-color: Highlight; }
}
