/* Engraved planet plates are decorative. The quiz calculates every diameter. */
.specimen, .world {
  background-image: url("./world-plates.webp");
  background-size: 500% 200%;
  background-position: var(--x, 0%) var(--y, 0%);
}
[data-planet="venus"] { --x: 25%; }
[data-planet="earth"], .atlas-globe { --x: 50%; }
[data-planet="mars"] { --x: 75%; }
[data-planet="jupiter"] { --x: 100%; }
[data-planet="saturn"] { --y: 100%; }
[data-planet="uranus"] { --x: 25%; --y: 100%; }
[data-planet="neptune"] { --x: 50%; --y: 100%; }
[data-planet="ceres"] { --x: 75%; --y: 100%; }
[data-planet="pluto"] { --x: 100%; --y: 100%; }

@media screen {
  :root { --midnight: #102333; --navy: #193446; --brass: #dabe89; --paper: #faf2dd; --ink: #192d36; --blue: #17596a; --orange: #a63e23; --pale: #eee2c5; --line: #b9ab8c; }
  body { background-color: var(--midnight); color: var(--paper); font-family: system-ui,sans-serif; }
  .wrap { max-width: 1330px; padding: 22px clamp(16px,4vw,64px) 30px; }
  header { border-color: #526369; padding-bottom: 15px; }
  .brand { display: inline-flex; align-items: center; gap: 11px; font: 700 21px Georgia,serif; letter-spacing: -.4px; }
  .mark { position: relative; width: 30px; height: 30px; padding: 0; border: 1px solid var(--brass); border-radius: 50%; display: inline-grid; place-items: center; }
  .mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--brass); }
  .mark::after { content: ""; position: absolute; width: 34px; height: 8px; border: 1px solid var(--brass); border-radius: 50%; transform: rotate(-32deg); }
  header a, details a, footer a, noscript a { color: #f1d49f; }
  main { padding-top: clamp(20px,3vw,42px); }
  .eyebrow, .small, .tag, .world-label, .diameter { font-family: ui-monospace,monospace; }
  .atlas-intro { position: relative; }
  .atlas-intro .eyebrow { color: var(--brass); font-size: 12px; }
  h1 { color: #fff2d5; font: 500 clamp(56px,6.1vw,96px)/.89 Georgia,serif; letter-spacing: -.068em; }
  h1 em { font-style: italic; color: #eac486; }
  .intro { color: #d3dad4; max-width: 34ch; font: 17px/1.55 Georgia,serif; margin: 20px 0; }
  .frontispiece { position: relative; width: min(100%,305px); aspect-ratio: 1.45; margin: 30px 0 0; overflow:hidden; }
  .atlas-orbit { position: absolute; inset: 7% 6%; border-radius: 50%; border: 1px solid #a28d6a; transform: rotate(-21deg); }
  .atlas-orbit::before, .atlas-orbit::after { content:""; position:absolute; border:1px solid #6a766e; border-radius:50%; inset:11% -3%; }
  .atlas-orbit::after { inset:-8% 18%; transform:rotate(-28deg); border-style:dashed; border-color:#80887b; }
  .specimen { display:block; position:absolute; border-radius:50%; box-shadow: inset -12px -5px 21px #071722ac, inset 1px 1px 2px #fceac7a8; z-index:1; }
  .atlas-globe { width:51%; aspect-ratio:1; left:26%; top:18%; transform:rotate(21deg); }
  .atlas-moon { width:14%; aspect-ratio:1; top:4%; right:4%; }
  .quiz { background: var(--paper); color: var(--ink); border: 1px solid var(--brass); border-radius: 8px; box-shadow: 0 6px 0 #091922; }
  .stage, .summary { padding: clamp(14px,2.2vw,27px); }
  .toolbar { padding-bottom: 10px; margin-bottom: 8px; border-bottom: 1px solid #c8bda2; }
  .small { color: #455d62; }
  .progress span { width: clamp(10px,1.45vw,20px); height: 4px; background: #d8ccb2; }
  .progress .now { background: #a5442a; }
  .stage-top { align-items: center; }
  h2, .prompt, .summary h2 { font-family: Georgia,serif; font-weight: 600; }
  h2 { font-size: clamp(23px,2.7vw,35px); margin: 5px 0; }
  .tag { color: #41595f; font-size: 11px; letter-spacing:.06em; padding: 3px 9px; align-self: center; }
  .compare {
    position: relative; isolation:isolate; color: #fff2d5; max-width: none;
    margin: 13px 0 8px; padding: 12px 8% 19px; border-radius: 4px; border: 4px double #a89369;
    background-color: #152e3d;
    background-image: linear-gradient(#c1d4c00e 1px,transparent 1px),linear-gradient(90deg,#c1d4c00e 1px,transparent 1px);
    background-size: 23px 23px;
  }
  .compare::after { content:""; position:absolute; inset:auto 5% 6px; height:4px; background:repeating-linear-gradient(90deg,#d5bd8b8f 0 1px,transparent 1px 10px); }
  .world-space { height: 140px; position:relative; }
  .world-space::before { content:""; width:118px; height:118px; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); border:1px dashed #9fb0a552; border-radius:50%; }
  .world { position:relative; flex:none; background-color:var(--color); box-shadow:inset -8px -4px 15px #00142399, inset 1px 1px 3px #fcebc6bb; }
  .vs, .diameter { color:#d2c8ac; }
  .world-label { margin: 0; letter-spacing:.035em; font-size:14px; }
  .scale-guide { margin: 7px 0 10px; padding: 2px 0; border: 0; background: transparent; color: #495b59; font-size: 13px; }
  .prompt { font-size: clamp(20px,2vw,27px); margin: 13px 0 6px; }
  .confidence { margin: 7px 0 11px; }
  .choice { color:#183942; border:1px solid #766b54; background:#fffaf0; border-radius:4px; padding:10px 8px; box-shadow:0 2px 0 #c3b08d; font-family:Georgia,serif; }
  .choice.correct { background:#155b5e; color:white; box-shadow:none; }
  .choice.wrong { background:#f9dfcb; border-color:#983f23; }
  .primary { color:#fff; background:#1c4650; }
  .subgrid { margin-top:32px; border-top:1px solid #566565; padding-top:20px; }
  .subgrid h3, details summary { color:#eed39f; }
  .subgrid p, details p, footer { color:#cbd6d4; }
  footer { border-color:#526369; flex-wrap:wrap; }
  .tag:focus-visible, button:focus-visible, a:focus-visible { outline:3px solid #eb8250; outline-offset:3px; }
  @media(min-width:850px) {
    main { display:grid; grid-template-columns:minmax(225px,.68fr) minmax(0,1.55fr); gap:0 clamp(28px,5vw,82px); }
    .atlas-intro { grid-column:1; grid-row:1; padding:22px 0; }
    .quiz { grid-column:2; grid-row:1; align-self:start; }
    .subgrid, main>details, main>noscript { grid-column:1 / -1; }
  }
  @media(max-width:849px) {
    h1 { font-size:clamp(42px,8vw,69px); line-height:1; } h1 br { display:none; }
    .atlas-intro .eyebrow{ margin-bottom:5px; }
    .intro { max-width: 57ch; font-size:16px; margin:8px 0 17px; }
    .frontispiece { display:none; }
  }
  @media(max-width:600px) {
    .wrap { padding:13px; } header { padding:0 4px 10px; } main { padding-top:17px; }
    .stage-top { display:flex; flex-wrap:wrap; gap:4px 10px; } .stage-top h2 { margin:3px 0; }
    .compare { padding:6px 5px 15px; margin:8px 0 5px; }
    .world-space { height:130px; } .world-space::before { width:109px; height:109px; }
    .confidence { gap:5px 9px; } .choices { gap:7px; } .choice { min-height:44px; }
    .scale-guide { font-size:12px; } .tag { font-size:10px; }
  }
}
@media print { .atlas-intro {display:none !important;} }
