/* The site of eoview (GitHub Pages, the docs directory of main). No external resources: the fonts are here. */
@font-face { font-family: 'Atkinson Hyperlegible Next'; font-weight: 200 800; font-display: swap; src: url(fonts/atkinson-hyperlegible-next-400.woff2) format('woff2'); }
@font-face { font-family: 'Atkinson Hyperlegible Mono'; font-weight: 400; font-display: swap; src: url(fonts/atkinson-hyperlegible-mono-400.woff2) format('woff2'); }

:root {
  --paper: #f1f4f3;
  --ink: #14212b;
  --muted: #55666f;
  --line: #c9d3d5;
  --ocean: #155a77;
  --ocean-ink: #ffffff;
  --code: #e3e9e8;
  --measure: 40rem;
  --wide: 72rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a21; --ink: #e2e9eb; --muted: #9aabb2; --line: #2a3a43;
    --ocean: #6fb6d3; --ocean-ink: #0f1a21; --code: #18262e; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1a21; --ink: #e2e9eb; --muted: #9aabb2; --line: #2a3a43;
  --ocean: #6fb6d3; --ocean-ink: #0f1a21; --code: #18262e; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1.0625rem/1.6 'Atkinson Hyperlegible Next', system-ui, sans-serif;
}
a { color: var(--ocean); text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ocean); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
code, pre, kbd { font-family: 'Atkinson Hyperlegible Mono', ui-monospace, monospace; font-size: 0.92em; }
code { background: var(--code); padding: 0.1em 0.35em; border-radius: 3px; }
pre { background: var(--code); padding: 1rem 1.1rem; border-radius: 4px; overflow-x: auto; line-height: 1.5; margin: 0; }
pre code { background: none; padding: 0; }

/* Bar at the top of each page. */
.bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: var(--wide); margin: 0 auto; padding: 1rem 1.25rem;
}
.bar .name { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.bar .name img { width: 28px; height: 28px; }
.bar nav { display: flex; gap: 1.25rem; }
.bar nav a { color: var(--ink); text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { text-decoration: underline; }

/* The home page: a month of ocean weather over the North Atlantic fills the width of the page, with the
   name over the ocean at the left. */
.hero { position: relative; overflow: hidden; background: #0b2233; color: #f4f8fa; }
.hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 14, 24, 0.65) 0, rgba(4, 14, 24, 0) 7rem),
    linear-gradient(90deg, rgba(4, 14, 24, 0.82) 0%, rgba(4, 14, 24, 0.5) 34%, rgba(4, 14, 24, 0) 62%);
}
.hero .bar, .hero-in, .hero .credit { position: relative; z-index: 1; }
.hero .bar .name, .hero .bar nav a { color: #f4f8fa; }
.hero-in {
  max-width: var(--wide); margin: 0 auto; padding: 4rem 1.25rem 5rem;
  min-height: clamp(30rem, 42.2vw, 52rem); display: flex; flex-direction: column; justify-content: center;
}
.hero h1 { margin: 0; font-size: clamp(4rem, 11vw, 8.5rem); line-height: 0.9; font-weight: 800; letter-spacing: -0.035em; }
.hero p { margin: 1.1rem 0 2rem; font-size: clamp(1.2rem, 2.2vw, 1.5rem); max-width: 24ch; line-height: 1.35; }
.hero .other { color: #f4f8fa; margin-left: 1.25rem; }
.hero .credit {
  position: absolute; right: 1.25rem; bottom: 0.9rem; margin: 0; max-width: none; font-size: 0.8rem;
  padding: 0.15rem 0.45rem; background: rgba(4, 14, 24, 0.6); border-radius: 3px;
}

.button {
  display: inline-block; padding: 0.8rem 1.35rem; border-radius: 4px; font-weight: 700;
  background: var(--ocean); color: var(--ocean-ink); text-decoration: none;
}
.hero .button { background: #f4f8fa; color: #0b2a3a; }
.button:hover { filter: brightness(1.08); text-decoration: none; }

main { max-width: var(--wide); margin: 0 auto; padding: 0 1.25rem 4rem; }
section { margin-top: 4.5rem; }
.prose { max-width: var(--measure); }
h1.page { font-size: clamp(2.4rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; margin: 2.5rem 0 1rem; }
h2 { font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 2rem 0 0.4rem; }
.lead { font-size: 1.3rem; line-height: 1.45; max-width: 34ch; }
.muted { color: var(--muted); }

figure { margin: 2.25rem 0 0; }
figure img, figure video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 0.6rem; max-width: var(--measure); }

/* Formats and functions: a term at the left, what eoview does with it at the right. */
dl.pairs { display: grid; grid-template-columns: minmax(10rem, 16rem) 1fr; margin: 0; border-top: 1px solid var(--line); max-width: 56rem; }
dl.pairs dt, dl.pairs dd { margin: 0; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
dl.pairs dt { font-weight: 700; padding-right: 1.5rem; }
@media (max-width: 40rem) {
  dl.pairs { grid-template-columns: 1fr; }
  dl.pairs dt { border-bottom: 0; padding-bottom: 0; }
  dl.pairs dd { padding-top: 0.15rem; }
}

/* Open times: one row for each product, a bar to the first pixels and a bar to the complete view. */
.legend { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin: 1.5rem 0 0.75rem; color: var(--muted); font-size: 0.95rem; }
.legend span::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 2px; margin-right: 0.45rem; vertical-align: -0.1rem; background: var(--c); }
table.bars { width: 100%; max-width: 64rem; border-collapse: collapse; font-size: 0.95rem; }
table.bars th { text-align: left; font-weight: 400; padding: 0.55rem 1.25rem 0.55rem 0; width: 18rem; vertical-align: middle; }
table.bars th.group { font-weight: 700; padding-top: 1.4rem; color: var(--ink); }
table.bars td { padding: 0.45rem 0; border-left: 1px solid var(--line);
  background: repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%); }
table.bars tr.axis td { background: none; border: 0; color: var(--muted); font-size: 0.8rem; display: flex; justify-content: space-between; padding-left: 0; }
.bars .b { position: relative; height: 0.6rem; width: var(--v); min-width: 2px; background: var(--c); border-radius: 0 4px 4px 0; margin: 5px 0; }
.bars .b span { position: absolute; left: calc(100% + 0.45rem); top: 50%; transform: translateY(-50%); white-space: nowrap; font-size: 0.82rem; color: var(--muted); }
:root { --first: #1f6fa8; --complete: #e07b39; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --first: #3d8fd0; --complete: #d27a35; } }
:root[data-theme="dark"] { --first: #3d8fd0; --complete: #d27a35; }
@media (max-width: 48rem) {
  table.bars, table.bars tbody, table.bars tr, table.bars th, table.bars td { display: block; width: auto; }
  table.bars th { padding: 0.8rem 0 0.2rem; }
  table.bars td { padding-right: 4rem; }
  table.bars tr.axis { display: none; }
}

/* A figure at the left of its text. */
.side { display: grid; grid-template-columns: minmax(0, 30rem) minmax(0, 1fr); gap: 2.5rem; align-items: center; }
.side figure { margin: 0; }
.side figure video { border: 0; background: #05070c; }
@media (max-width: 48rem) { .side { grid-template-columns: 1fr; gap: 1rem; } }

ol.steps { padding-left: 1.3rem; }
ol.steps li { margin: 0.35rem 0; }

.command { position: relative; max-width: 48rem; }
.command button {
  position: absolute; top: 0.5rem; right: 0.5rem; font: inherit; font-size: 0.85rem; cursor: pointer;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 3px; padding: 0.25rem 0.6rem;
}
.command pre { padding-right: 5.5rem; white-space: pre-wrap; overflow-wrap: anywhere; }

footer { border-top: 1px solid var(--line); }
footer .in { max-width: var(--wide); margin: 0 auto; padding: 1.5rem 1.25rem 2.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; color: var(--muted); font-size: 0.92rem; }
footer .in p { margin: 0; flex-basis: 100%; }

@media (max-width: 48rem) {
  .hero::after { background: linear-gradient(0deg, rgba(4, 14, 24, 0.85) 0%, rgba(4, 14, 24, 0.35) 60%, rgba(4, 14, 24, 0.5) 100%); }
  .hero-in { justify-content: flex-end; padding-bottom: 5.5rem; }
  .hero .credit { left: 1.25rem; }
  .hero .other { display: block; margin: 1rem 0 0; }
  .bar nav { gap: 0.9rem; }
}
