/* uv101 — observing log for a Claude-driven Seestar.
   Layout: a single reading column (~68ch) under a full-bleed image masthead; data lives in mono "log strips".
   Colour comes from the dual-band filter's two emission lines: H-alpha 656.3 nm and O-III 500.7 nm. */
:root {
  --void: #07090f;        /* sky background, blue-black */
  --panel: #0e121b;       /* raised surfaces */
  --rule: #1d2433;        /* hairlines */
  --ink: #e4e7ef;         /* body text */
  --dim: #8d95a8;         /* secondary text, blue-grey */
  --ha: #ef4f6a;          /* hydrogen-alpha */
  --oiii: #43c6c9;        /* oxygen-III */
  --star: #f6f1e3;        /* warm white for highlights */
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 68ch;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--void); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--body);
  padding-inline: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--oiii); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--star); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--oiii); outline-offset: 3px; border-radius: 2px; }

/* site bar */
.bar {
  max-width: 72rem; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
  align-items: baseline; justify-content: space-between; padding-block: 1.1rem;
}
.brand { font: 700 1.15rem/1 var(--display); letter-spacing: 0.02em; color: var(--ink); text-decoration: none; }
.brand span { color: var(--ha); }
.bar nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; font: 500 0.78rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; }
.bar nav a { color: var(--dim); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { color: var(--ink); }

/* the spectral rule: the filter's two passbands, to scale between 480 and 680 nm */
.spectrum { max-width: 72rem; margin: 0 auto; height: 2px; position: relative; background: var(--rule); }
.spectrum::before, .spectrum::after { content: ""; position: absolute; top: 0; height: 2px; width: 3%; }
.spectrum::before { left: calc((500.7 - 480) / 200 * 100%); background: var(--oiii); box-shadow: 0 0 10px var(--oiii); }
.spectrum::after { left: calc((656.3 - 480) / 200 * 100%); background: var(--ha); box-shadow: 0 0 10px var(--ha); }

/* masthead image */
.masthead { max-width: 72rem; margin: 1.5rem auto 0; position: relative; }
.masthead img { width: auto; max-width: 100%; max-height: min(44rem, 82vh); margin-inline: auto; border-radius: 3px; } /* whole image, never cropped */
.masthead figcaption { text-align: center; }
.masthead figcaption { font: 400 0.75rem/1.5 var(--mono); color: var(--dim); padding-top: 0.5rem; }

/* headings */
h1, h2, h3 { font-family: var(--display); line-height: 1.22; text-wrap: balance; margin: 0; overflow-wrap: break-word; hyphens: auto; padding-block: 0.08em; }
h1 { font-size: clamp(1.7rem, 4.6vw + 0.4rem, 3.2rem); font-weight: 700; letter-spacing: 0; }
h2 { font-size: clamp(1.3rem, 2.6vw + 0.4rem, 1.8rem); font-weight: 600; margin-top: 3rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-top: 2rem; }
.eyebrow { font: 500 0.75rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ha); }

/* reading column */
.page { max-width: var(--measure); margin: 0 auto; padding-block: 2.5rem 5rem; display: flex; flex-direction: column; gap: 1.1rem; }
.page > * { margin: 0; }
.lede { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.page p, .page li { min-width: 0; }
.page ul, .page ol { padding-left: 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; }
strong { color: var(--star); font-weight: 600; }
code { font: 400 0.88em/1 var(--mono); color: var(--star); background: var(--panel); padding: 0.1em 0.35em; border-radius: 3px; }
pre { overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1rem 1.1rem; font: 400 0.85rem/1.6 var(--mono); color: var(--ink); }
pre code { background: none; padding: 0; font-size: inherit; }
.byline { font: 400 0.8rem/1.5 var(--mono); color: var(--dim); }

/* observing-log strip: real session data */
.log { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; font-family: var(--mono); }
.log div { background: var(--panel); padding: 0.7rem 0.85rem; display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.log dt { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); }
.log dd { margin: 0; font-size: 0.95rem; color: var(--ink); font-variant-numeric: tabular-nums; }

/* figures inside the column may break out wider */
figure { margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
figure.wide { width: min(64rem, calc(100vw - 32px)); margin-inline: calc((min(64rem, calc(100vw - 32px)) - 100%) / -2); }
figure img { border-radius: 3px; }
figcaption { font: 400 0.78rem/1.55 var(--mono); color: var(--dim); }
.pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 0.75rem; }
.pair figure { min-width: 0; }

/* charts */
.chart { overflow-x: auto; background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 0.75rem; }
.chart svg { display: block; width: 100%; min-width: 30rem; height: auto; }
.chart text { font-family: var(--mono); fill: var(--dim); font-size: 11px; }

/* pipeline: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0 !important; counter-reset: s; gap: 0 !important; border-left: 1px solid var(--rule); }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.1rem 1.6rem; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: -0.95rem; top: 0.15rem;
  width: 1.9rem; text-align: center; background: var(--void); font: 500 0.72rem/1.4 var(--mono); color: var(--oiii); }
.steps b { font-family: var(--display); font-weight: 600; color: var(--star); }

.note { border-left: 2px solid var(--ha); padding: 0.2rem 0 0.2rem 1rem; color: var(--dim); }

/* post list on the front page */
.posts { list-style: none; padding: 0 !important; gap: 0 !important; border-top: 1px solid var(--rule); }
.posts li { border-bottom: 1px solid var(--rule); }
.posts a { display: grid; grid-template-columns: 6.5rem 1fr; gap: 0.25rem 1.25rem; padding-block: 1.1rem; text-decoration: none; color: var(--ink); }
.posts time { font: 400 0.78rem/1.6 var(--mono); color: var(--dim); }
.posts h3 { margin: 0; font-size: 1.2rem; }
.posts p { grid-column: 2; margin: 0; color: var(--dim); font-size: 0.98rem; }
.posts a:hover h3 { color: var(--oiii); }
@media (max-width: 30rem) { .posts a { grid-template-columns: 1fr; } .posts p { grid-column: 1; } }

/* gallery */
.gallery { max-width: 72rem; margin: 0 auto; padding-block: 2rem 5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.25rem; }
.gallery figure { min-width: 0; }
.gallery img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; max-width: 100%; }
.gallery figcaption b { color: var(--ink); font-weight: 500; }

footer { max-width: 72rem; margin: 0 auto; border-top: 1px solid var(--rule); padding-block: 1.5rem 2.5rem; font: 400 0.75rem/1.6 var(--mono); color: var(--dim); }

@media (prefers-reduced-motion: no-preference) {
  .spectrum::before, .spectrum::after { transition: box-shadow 0.6s; }
  .bar:hover + .spectrum::before { box-shadow: 0 0 16px var(--oiii); }
  .bar:hover + .spectrum::after { box-shadow: 0 0 16px var(--ha); }
}

/* tables and the history timeline */
.table { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
th { font: 500 0.7rem/1.4 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); background: var(--panel); }
tr:last-child td { border-bottom: 0; }
td:last-child { font-variant-numeric: tabular-nums; }
.timeline { list-style: none; padding: 0 !important; gap: 0 !important; }
.timeline li { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1rem; padding-block: 0.65rem; border-bottom: 1px solid var(--rule); }
.timeline time { font: 500 0.85rem/1.7 var(--mono); color: var(--oiii); }
.timeline span { min-width: 0; }
@media (max-width: 30rem) { .timeline li { grid-template-columns: 1fr; gap: 0.1rem; } }
.sources { font-size: 0.9rem; color: var(--dim); }

/* front page: full-bleed hero with the title over the image (header floats on top) */
.bar--over { position: absolute; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 2; padding-inline: 16px; max-width: none; }
.bar--over .brand, .bar--over nav a { color: var(--star); text-shadow: 0 1px 8px rgb(0 0 0 / 0.7); }
.hero { position: relative; margin-inline: -16px; min-height: min(92vh, 56rem); display: grid; align-items: end; overflow: hidden; isolation: isolate; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 28%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, var(--void) 0%, rgb(7 9 15 / 0.82) 22%, rgb(7 9 15 / 0.15) 55%, rgb(7 9 15 / 0.45) 100%); }
.hero__text { max-width: 72rem; width: 100%; margin: 0 auto; padding: 6rem 16px 3.5rem; display: flex; flex-direction: column; gap: 0.9rem; }
.hero__text > * { margin: 0; max-width: 40rem; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 5.2rem); line-height: 1.15; padding-bottom: 0.1em; text-shadow: 0 2px 24px rgb(0 0 0 / 0.6); }
.hero__text > p:not(.eyebrow) { font-size: 1.15rem; line-height: 1.55; color: var(--ink); text-shadow: 0 1px 10px rgb(0 0 0 / 0.8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.4rem; }
.hero__cta a { font: 500 0.82rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.1em; text-decoration: none;
  padding: 0.85rem 1.2rem; border-radius: 3px; border: 1px solid var(--oiii); color: var(--star); background: rgb(7 9 15 / 0.45); }
.hero__cta a:first-child { background: var(--ha); border-color: var(--ha); color: var(--void); }
.hero__cta a:hover { border-color: var(--star); }
.hero__credit { position: absolute; right: 16px; bottom: 0.9rem; margin: 0; font: 400 0.68rem/1.4 var(--mono); color: var(--dim); }
.spectrum--hero { position: absolute; left: 0; right: 0; bottom: 0; max-width: none; }

/* topic tiles: each section with its own image */
.tiles { max-width: 72rem; margin: 2rem auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0.9rem; }
.tiles a { position: relative; display: block; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; border-radius: 4px; text-decoration: none; color: var(--star); border: 1px solid var(--rule); }
.tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tiles a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(7 9 15 / 0.92), rgb(7 9 15 / 0.1) 65%); }
.tiles span { position: absolute; left: 1rem; right: 1rem; bottom: 0.9rem; z-index: 1; font: 600 1.15rem/1.3 var(--display); display: flex; flex-direction: column; gap: 0.3rem; }
.tiles small { font: 500 0.68rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--ha); }
.tiles a:hover { border-color: var(--oiii); }
@media (prefers-reduced-motion: no-preference) { .tiles a:hover img { transform: scale(1.04); } }
