/* The look's typefaces (SIL Open Font License 1.1, see fonts/OFL-*.txt). */
@font-face {
  font-family: "Michroma";
  font-style: normal;
  font-weight: 400;
  src: url("fonts/michroma-normal-400.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 300 700;
  src: url("fonts/manrope-normal-300-700.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* The look "Data archive": a premium data archive at night, made from a mockup for a site that
   sells the data behind its pictures. Near-black blue, one bright accent of the owner's choosing
   (--tone), wide capitals (Michroma) for the name and the headline, Manrope for the rest. The
   home page puts a headline over the latest picture with a row of badges under it; the gallery
   has a search box and a panel of filters with their counts (theme.js); a picture's page adds
   breadcrumbs and tags. Loaded after site.css: only what differs is here. */

:root {
  --bg: #05080e;
  --bg-2: #080e18;
  --panel: #0b1421;
  --card: #0b1421;
  --raised: #101c2b;
  --hover: #142438;
  --line: #23364a;
  --line-2: #35516b;
  --rule: rgba(160, 200, 240, 0.14);
  --text: #f2f6fb;
  --text-2: #c0ccda;
  --muted: #8192a6;
  --faint: #6f8196;
  --wide: "Michroma", "Eurostile", "Segoe UI", sans-serif;
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "Manrope", "Segoe UI", system-ui, sans-serif;
  --tone: #69caff; /* the owner's choice, set at the end of this file */
  --accent: var(--tone);
  --glow: color-mix(in srgb, var(--tone) 22%, transparent);
  --ink: #03101c; /* text on the accent */
  --radius: 10px;
  --radius-sm: 6px;
}
body { background: var(--bg); }
:focus-visible { outline-color: var(--accent); }
.row-subs, .row-time, .card-meta, .da-check-n { font-variant-numeric: tabular-nums; }

/* type: wide capitals for the name, the headline and the figures; Manrope for the rest */
.display { font-weight: 700; font-stretch: normal; letter-spacing: -0.015em; text-transform: none; line-height: 1.06; }
.brand { font-family: var(--wide); font-weight: 400; font-stretch: normal; font-size: 17px; letter-spacing: 0.3em; }
.page-title, .picture-title, .section-title, .scope-name, .stat-value, .da-hero-title, .p-h1 {
  font-family: var(--wide); font-weight: 400; font-stretch: normal; letter-spacing: 0.01em;
}
.page-title { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
.picture-title { font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; }
.section-title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; }
.scope-name { font-size: clamp(26px, 3vw, 40px); text-transform: uppercase; line-height: 1.1; }
.stat-value { font-size: clamp(30px, 3.2vw, 46px); line-height: 1; }
.card-title, .figs dd, .big, .p-h2, .p-figures dd, .p-tile h3, .p-brand {
  font-stretch: normal; text-transform: none; letter-spacing: -0.005em;
}
.big { font-weight: 300; font-size: 58px; }
.figs dd { font-weight: 600; font-size: 24px; }
.intro p { font-weight: 400; font-stretch: normal; font-size: clamp(20px, 2vw, 26px); line-height: 1.45; color: var(--text-2); }
.label, .line, .figs dt, .kv dt, .foot, .p-meta, .p-figures dt, .field > span {
  font-weight: 600; letter-spacing: 0.16em;
}
.page-head .label, .band-title .label, .block-head .label, .record-grid .label, .band-static .line,
.ds-panel .label { color: var(--accent); }
.subtle, .note, .lede, .card-meta, .row-subs, .kv .s { font-weight: 500; letter-spacing: 0.01em; }
.lede { font-size: 15px; color: var(--muted); max-width: 640px; }
.about-text p { font-size: 18px; line-height: 1.7; }

/* the header: glass over the page, the menu in words, the page's item underlined */
.top { background: rgba(5, 8, 14, 0.78); border-bottom-color: rgba(160, 200, 240, 0.1); }
.nav a, .menu summary, .menu nav a {
  font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: 0.01em; text-transform: none;
}
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); color: var(--text); }
.menu nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--accent); }
.menu summary { border-radius: var(--radius-sm); border-color: rgba(214, 228, 255, 0.3); }
.menu nav { border-radius: var(--radius); background: var(--bg-2); }

/* buttons and controls: rounded, the main one filled with the accent and glowing */
.btn, .icon-btn, .tool-sort select, .pill, .chip { border-radius: var(--radius-sm); }
.btn { border-color: rgba(214, 228, 255, 0.3); font-weight: 700; letter-spacing: 0.1em; }
.btn:hover { background: rgba(105, 202, 255, 0.08); border-color: var(--accent); color: var(--text); }
.icon-btn { border-color: rgba(214, 228, 255, 0.3); }
.icon-btn:hover { border-color: var(--accent); }
.btn-primary, .band .actions .btn {
  background: var(--accent); border-color: var(--accent); color: var(--ink); box-shadow: 0 8px 28px var(--glow);
}
.btn-primary:hover, .band .actions .btn:hover { background: var(--text); border-color: var(--text); color: var(--ink); }
.btn-quiet { box-shadow: none; }
.more { color: var(--accent); font-weight: 600; }
.more:hover { color: var(--text); }
.tool-sort select { border-color: var(--line); background-color: var(--bg-2); font-weight: 600; }
.tool-n { background: var(--accent); color: var(--ink); }
.field input, .field textarea { border-color: var(--line); background: var(--bg-2); }
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.product a:not(.btn) { text-decoration-color: var(--accent); }
.p-check, .p-privacy svg { color: var(--accent); }

/* ------------------------------------------------------------------ home: the headline */
.da-eyebrow {
  margin: 0 0 12px; color: var(--accent); font: 700 12px/1.4 var(--display); letter-spacing: 0.18em;
  text-transform: uppercase;
}
.da-hero {
  position: relative; display: grid; align-items: center; min-height: min(780px, 100svh);
  overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line); background: #060b13;
}
.da-hero-img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover;
  object-position: 70% 50%;
}
.da-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 8, 14, 0.96) 0%, rgba(5, 8, 14, 0.82) 30%, rgba(5, 8, 14, 0.2) 68%, rgba(5, 8, 14, 0.05) 100%),
    linear-gradient(0deg, rgba(5, 8, 14, 0.9) 0%, rgba(5, 8, 14, 0) 34%);
}
.da-hero-inner { width: min(760px, 100%); padding: calc(var(--header) + 72px) var(--pad) 120px; }
.da-hero-title {
  margin: 0; font-size: clamp(36px, 5.4vw, 78px); line-height: 1.04; text-transform: uppercase;
  text-wrap: balance;
}
.da-hero-copy { max-width: 540px; margin: 26px 0 0; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: #d4deea; }
.da-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.da-hero-actions .btn { min-height: 48px; padding: 0 22px; }
.da-hero-caption {
  position: absolute; right: var(--pad); bottom: 34px; display: flex; flex-direction: column; align-items: flex-end;
  gap: 5px; padding-top: 12px; border-top: 2px solid var(--accent); color: #d6e4f0; text-align: right;
  text-decoration: none; font-size: 12px;
}
.da-cap-label { font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.da-hero-caption strong { font-family: var(--wide); font-weight: 400; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.da-cap-line { color: var(--accent); font-weight: 600; letter-spacing: 0.06em; }
.da-hero-caption:hover strong { color: var(--accent); }

/* the badges under it */
.da-features {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line);
  background: rgba(7, 13, 22, 0.92);
}
.da-feature {
  display: flex; align-items: center; gap: 14px; min-width: 0; padding: 26px clamp(14px, 2.4vw, 34px);
  border-right: 1px solid var(--line);
}
.da-feature:last-child { border-right: 0; }
.da-feature-icon {
  display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid var(--accent);
  border-radius: 50%; color: var(--accent); box-shadow: 0 0 22px var(--glow);
}
.da-feature strong { display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.da-feature span:not(.da-feature-icon) { display: block; margin-top: 4px; font-size: 13.5px; color: var(--muted); }

.stats { border-top: 0; gap: 12px; }
.stat {
  padding: 22px 22px 20px; gap: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, color-mix(in srgb, var(--tone) 9%, transparent), transparent 70%), var(--panel);
}

/* ------------------------------------------------------------------ the cards */
.grid { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.card {
  position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35), 0 0 0 1px var(--glow); }
.card-img { aspect-ratio: 1 / 1; }
.card-img img { transition: transform 0.6s ease; }
.card:hover .card-img img { transform: scale(1.035); }
.card-text {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 64px 14px 14px;
  background: linear-gradient(to top, rgba(5, 8, 14, 0.96) 0%, rgba(5, 8, 14, 0.66) 55%, rgba(5, 8, 14, 0) 100%);
}
.card-kicker {
  display: block; margin-bottom: 4px; color: var(--accent); font-size: 11px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
}
.card-title { font-weight: 700; font-size: 18px; line-height: 1.15; }
.card-meta { font-size: 12.5px; color: var(--text-2); }
.strip { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; height: 2px; }
.card::before {
  position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 8px; border-radius: 4px;
  background: rgba(3, 10, 18, 0.8); border: 1px solid color-mix(in srgb, var(--tone) 40%, transparent); color: var(--accent);
  font: 700 10px/1 var(--display); letter-spacing: 0.14em; text-transform: uppercase;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.card[data-type="nebula"]::before { content: "Nebula"; }
.card[data-type="dust"]::before { content: "Dark nebula"; }
.card[data-type="galaxy"]::before { content: "Galaxy"; }
.card[data-type="cluster"]::before { content: "Cluster"; }
.card[data-type="comet"]::before { content: "Comet"; }
.scope-thumbs .card-title { font-size: 16px; }

/* ------------------------------------------------------------------ the gallery */
.da-gallery-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.da-total { margin: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-left: 22px; border-left: 1px solid var(--line); }
.da-total .stat-value { font-size: 34px; }
.da-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 34px 0 22px; }
.da-search {
  position: relative; flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2);
  color: var(--muted);
}
.da-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow); }
.da-search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text);
  font: 500 15px var(--display);
}
.da-search input::placeholder { color: var(--faint); }
.da-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: 24px; }
.da-panel {
  position: sticky; top: calc(var(--header) + 16px); padding: 20px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--bg-2);
}
.da-panel > summary { display: none; }
.da-group { min-width: 0; }
.da-group + .da-group { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.da-group-title { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--text); }
.da-check {
  display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--text-2);
  cursor: pointer;
}
.da-check:hover { color: var(--text); }
.da-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.da-check-n { margin-left: auto; font-size: 12px; color: var(--muted); }
.da-grid { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

/* the Sky view: a switch beside the search, the chart in place of the grid */
.da-view { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-2); }
.da-view button {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border: 0;
  border-radius: 4px; background: transparent; color: var(--muted); font: 700 12px var(--display);
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.da-view button:hover { color: var(--text); }
.da-view button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.da-sky {
  position: relative; height: min(72vh, 760px); min-height: 460px; overflow: hidden; border: 1px solid var(--line);
  border-radius: var(--radius); background: #04070d; cursor: grab; touch-action: none; user-select: none;
}
.da-sky.is-dragging { cursor: grabbing; }
.da-grid[hidden], .da-sky[hidden] { display: none; }
.da-sky canvas { position: absolute; inset: 0; }
.da-sky-pins { position: absolute; inset: 0; pointer-events: none; }
/* a pin sits at the object's place (left, top); its picture is centred there, --s wide */
.da-pin { position: absolute; width: 0; height: 0; pointer-events: auto; text-decoration: none; }
.da-pin-ring {
  position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); padding: 3px; border-radius: 50%;
  transform: translate(-50%, -50%); background: conic-gradient(var(--accent), #ffffff, var(--accent));
  box-shadow: 0 0 26px var(--glow), 0 0 0 1px rgba(0, 0, 0, 0.6); transition: transform 0.25s ease;
}
.da-pin-ring img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid #04070d; }
.da-pin-label {
  position: absolute; left: calc(var(--s) / 2 + 10px); top: 0; transform: translateY(-50%); display: flex;
  flex-direction: column; padding: 7px 11px; border: 1px solid var(--line); border-radius: 8px;
  background: rgba(8, 14, 24, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); white-space: nowrap;
}
.da-pin-label b { font-size: 14px; color: var(--text); }
.da-pin-label span { font-size: 12px; color: var(--accent); font-weight: 600; letter-spacing: 0.04em; }
.da-pin:hover .da-pin-ring { transform: translate(-50%, -50%) scale(1.06); }
.da-pin:hover .da-pin-label { border-color: var(--accent); }
.da-sky-tools { position: absolute; top: 14px; right: 14px; display: flex; flex-direction: column; gap: 6px; }
.da-sky-tools .icon-btn { width: 38px; height: 38px; background: rgba(8, 14, 24, 0.8); font-size: 18px; color: var(--text); }
.da-sky-note { position: absolute; left: 16px; bottom: 12px; margin: 0; font-size: 12px; color: var(--muted); pointer-events: none; }

/* ------------------------------------------------------------------ a picture's page */
.viewer-frame { background: #000; }
@media (min-width: 1000px) {
  .viewer {
    height: auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    column-gap: 36px; padding: calc(var(--header) + 28px) var(--pad) 0; background: none;
  }
  .viewer-frame {
    grid-column: 1; grid-row: 1; align-self: start; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden;
  }
  .viewer-img {
    position: static; display: block; width: 100%; height: auto; object-fit: contain;
    max-height: calc(100vh - var(--header) - 110px); max-height: calc(100svh - var(--header) - 110px);
  }
  .viewer-frame.is-full, .viewer-frame.fs-on { border: 0; border-radius: 0; }
  .viewer-frame.fs-on .viewer-img { max-height: none; }
  .band-static {
    grid-column: 2; grid-row: 1; padding: 0; display: flex; flex-direction: column; justify-content: flex-start;
    align-items: stretch; gap: 22px; background: none;
  }
  .band-static .band-side { flex-direction: column; align-items: stretch; gap: 16px; }
  .band-static .figs {
    display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--panel); overflow: hidden;
  }
  .band-static .figs div {
    flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 12px 16px; border-top: 1px solid var(--line);
  }
  .band-static .figs div:first-child { border-top: 0; }
  .band-static .figs dd { font-size: 15px; font-weight: 600; white-space: normal; text-align: right; }
  .band-static .actions .btn { width: 100%; justify-content: center; }
  .edge-static { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; height: 3px; border-radius: 2px; overflow: hidden; }
}
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span[aria-hidden] { color: var(--line-2); }
.crumbs [aria-current] { color: var(--text-2); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.tag-list li {
  padding: 5px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--bg-2);
  color: var(--text-2); font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
}
.nav-arrow, .fs-btn { background: rgba(5, 8, 14, 0.62); border-color: rgba(160, 200, 240, 0.22); }
.nav-arrow:hover, .fs-btn:hover { border-color: var(--accent); }
.record-grid { gap: 16px; }
.record-grid > div { padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.kv { row-gap: 0; margin-top: 12px; }
.kv dt, .kv dd { padding: 11px 0; border-top: 1px solid var(--line); }
.row { border-bottom-color: var(--line); }
.bar { height: 8px; border-radius: 3px; overflow: hidden; }
.nights span { background: var(--accent); opacity: 0.85; border-radius: 2px 2px 0 0; }
.band .buy-box ~ .actions .btn { box-shadow: none; }
.buy-box {
  border-color: var(--line-2);
  background: linear-gradient(145deg, color-mix(in srgb, var(--tone) 12%, transparent), transparent 60%), var(--panel);
}

/* telescopes, about, pages of the site's own: the same panels */
.scope { border-top-color: var(--line); }
.tag { background: var(--accent); color: var(--ink); border-radius: 3px; }
.about-box, .p-tile, .p-cta-box, .dialog { border-color: var(--line); border-radius: var(--radius); background: var(--panel); }
.dialog::backdrop { background: rgba(5, 8, 14, 0.8); }
.foot { border-top-color: var(--line); background: var(--bg-2); }

@media (max-width: 1100px) {
  .da-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .da-feature:nth-child(2) { border-right: 0; }
  .da-feature:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .da-layout { grid-template-columns: minmax(0, 1fr); }
  .da-panel { position: static; padding: 0; border: 0; background: none; }
  .da-panel > summary { display: inline-flex; gap: 8px; margin-bottom: 14px; }
  .da-panel[open] { padding: 0 0 8px; }
  .da-panel[open] .da-group { padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
  .da-panel[open] .da-group + .da-group { margin-top: 10px; }
  .da-hero-caption { display: none; }
}
@media (max-width: 700px) {
  .brand { font-size: 13px; letter-spacing: 0.22em; }
  .da-hero { min-height: 0; }
  .da-hero-inner { padding: calc(var(--header) + 48px) var(--pad) 64px; }
  .da-hero::before { background: linear-gradient(0deg, rgba(5, 8, 14, 0.97) 0%, rgba(5, 8, 14, 0.7) 60%, rgba(5, 8, 14, 0.35) 100%); }
  .da-features { grid-template-columns: minmax(0, 1fr); }
  .da-feature { border-right: 0; border-bottom: 1px solid var(--line); padding: 18px var(--pad); }
  .grid, .da-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-text { padding: 40px 10px 10px; }
  .card-title { font-size: 15px; }
  .card-meta { font-size: 11px; }
  .card-kicker { font-size: 9.5px; }
  .card::before { top: 8px; left: 8px; font-size: 9px; }
  .da-gallery-head { align-items: flex-start; }
  .da-pin-label { left: 0; top: calc(var(--s) / 2 + 6px); transform: translateX(-50%); align-items: center; padding: 5px 9px; }
  .da-pin-label b { font-size: 13px; }
  .da-pin-label span { font-size: 11px; }
  .da-sky { height: 70vh; min-height: 420px; }
  .da-total { align-items: flex-start; padding-left: 0; border-left: 0; }
  .figs dd { font-size: 20px; }
  .big { font-size: 46px; }
}

/* the owner's choice */
:root { --tone: #69caff; }
