/* cheyenneosint.com: the landing page. Colours, type and panel furniture follow the board (web/css/board.css). */

@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/IBMPlexMono-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('fonts/IBMPlexMono-500.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 600; font-display: swap; src: url('fonts/IBMPlexMono-600.woff2') format('woff2'); }
@font-face { font-family: 'Share Tech Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/ShareTechMono-400.woff2') format('woff2'); }

:root {
  --bg: #010608;
  --panel: rgba(2, 12, 14, 0.9);
  --panel-solid: #031114;
  --ink: #8ff5dd;          /* phosphor */
  --ink-hi: #e2fff7;
  --ink-dim: #3f9c8b;
  --ink-mute: #338a7b;
  --text: #a8ddd0;         /* running text: the phosphor, a little quieter, for long reading */
  --line: #17564d;
  --line-hi: #2a9482;
  --amber: #ffb300;
  --red: #ff453a;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --display: 'Share Tech Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --top: 58px;
  --wrap: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 18px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100vh;
  color: var(--text);
  font: 400 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 90% 620px at 50% 0, rgba(18, 74, 66, 0.26), transparent 70%),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(23, 86, 77, 0.10) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(23, 86, 77, 0.10) 47px 48px),
    var(--bg);
  background-attachment: scroll, fixed, fixed, fixed;
}

::selection { background: var(--ink); color: var(--bg); }

a { color: var(--ink-hi); text-decoration: none; border-bottom: 1px dotted var(--ink-dim); }
a:hover { color: var(--amber); border-color: var(--amber); }
a:focus-visible, button:focus-visible { outline: 1px solid var(--amber); outline-offset: 3px; }

p { margin: 0 0 1em; }
b { font-weight: 600; color: var(--ink-hi); }
img { display: block; max-width: 100%; height: auto; }

code, kbd { font: inherit; color: var(--ink-hi); }
kbd { border: 1px solid var(--line-hi); padding: 0 5px; font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
pre {
  margin: 0 0 1em; padding: 12px 14px; overflow-x: auto;
  background: rgba(1, 6, 8, 0.7); border: 1px solid var(--line); border-left: 2px solid var(--amber);
  font-size: 13.5px; line-height: 1.7;
}

.wrap { width: min(var(--wrap), 100% - 40px); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--amber); color: var(--bg); padding: 6px 12px; border: 0; }
.skip:focus { left: 8px; }

/* the board's scan lines and vignette, turned down so that running text stays easy to read */
.crt {
  position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.07) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.38) 100%);
  mix-blend-mode: multiply;
}

/* ------------------------------------------------------------------ labels shared with the board */

.sep { color: var(--ink-dim); margin: 0 0.35em; }

.tag {
  display: inline-block; border: 1px solid var(--line-hi); color: var(--ink-dim);
  font: 400 10px/14px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; padding: 0 5px; white-space: nowrap;
}

.tick { display: inline-block; width: 5px; height: 11px; background: var(--amber); margin-right: 10px; vertical-align: -1px; }

.lamp { display: inline-block; width: 8px; height: 8px; background: var(--ink); box-shadow: 0 0 8px rgba(143, 245, 221, 0.8); margin-right: 10px; }

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--top);
  display: flex; align-items: center; gap: 22px; padding: 0 18px;
  background: linear-gradient(180deg, rgba(1, 8, 10, 0.97), rgba(1, 8, 10, 0.88));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
  text-transform: uppercase;
}

.brand { display: flex; align-items: center; gap: 11px; border: 0; flex: none; }
.brand:hover .brand-name { color: var(--ink-hi); }
.brand-mark {
  width: 34px; height: 34px; border: 1px solid var(--ink); border-radius: 50%; position: relative; overflow: hidden; flex: none;
  background: radial-gradient(circle, rgba(143, 245, 221, 0.18), transparent 70%);
}
.brand-mark::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(143, 245, 221, 0.75), transparent 28%);
  animation: sweep 5s linear infinite;
}
.brand-mark::after { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-hi); }
@keyframes sweep { to { transform: rotate(360deg); } }

.brand-name {
  display: block; font: 400 24px/1 var(--display); letter-spacing: 0.3em; color: var(--ink-hi);
  text-shadow: 0 0 12px rgba(143, 245, 221, 0.55);
}
.brand-name.small { font-size: 18px; margin-bottom: 12px; }
.brand-sub { display: block; font-size: 9px; line-height: 1; letter-spacing: 0.22em; color: var(--ink-dim); margin-top: 4px; }

.clock { margin-left: auto; text-align: right; flex: none; }
.clock[hidden] + .nav { margin-left: auto; }
.clock-main { font: 400 22px/1 var(--display); letter-spacing: 0.12em; color: var(--ink-hi); text-shadow: 0 0 10px rgba(143, 245, 221, 0.45); }
.clock-z { color: var(--amber); font-size: 14px; margin-left: 3px; }
.clock-sub { font-size: 10px; line-height: 1; letter-spacing: 0.16em; color: var(--ink-dim); margin-top: 5px; }
.clock-sub .tag { margin-left: 8px; color: var(--ink); border-color: var(--ink); line-height: 12px; }

.nav { display: flex; flex: none; }
.nav a {
  border: 1px solid var(--line-hi); margin-left: -1px; padding: 5px 12px; color: var(--ink);
  font-size: 11.5px; line-height: 16px; letter-spacing: 0.08em; white-space: nowrap;
}
.nav a:hover { background: rgba(143, 245, 221, 0.14); color: var(--ink-hi); border-color: var(--line-hi); }
.nav a.primary { margin-left: 10px; border-color: var(--amber); color: var(--amber); }
.nav a.primary:hover { background: var(--amber); color: var(--bg); }

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line-hi); padding: 7px 14px; color: var(--ink); background: transparent; cursor: pointer;
  font: 400 12.5px/18px var(--display); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
}
.btn:hover { background: rgba(143, 245, 221, 0.14); color: var(--ink-hi); border-color: var(--line-hi); }
.btn.primary { background: var(--amber); border-color: var(--amber); color: var(--bg); box-shadow: 0 0 22px rgba(255, 179, 0, 0.28); }
.btn.primary:hover { background: #ffc740; border-color: #ffc740; color: var(--bg); box-shadow: 0 0 30px rgba(255, 179, 0, 0.5); }
.btn.big { padding: 14px 24px; font-size: 16px; line-height: 22px; }
.btn .arrow { font-family: var(--mono); font-weight: 600; }

/* ------------------------------------------------------------------ framed panels, with the board's corner marks */

.frame {
  position: relative; margin: 0;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 24px rgba(20, 110, 96, 0.10);
}
.frame::before, .frame::after { content: ''; position: absolute; width: 9px; height: 9px; pointer-events: none; border: 1px solid var(--ink); z-index: 1; }
.frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.frame-head {
  padding: 9px 14px; border-bottom: 1px solid var(--line);
  font: 400 13px/18px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hi);
}

.frame a[data-zoom] { display: block; border: 0; cursor: zoom-in; overflow: hidden; }
.frame a[data-zoom] img { width: 100%; transition: filter 0.2s; }
.frame a[data-zoom]:hover img { filter: brightness(1.12); }

/* ------------------------------------------------------------------ hero */

.hero { padding: 56px 0 26px; }

.kicker { margin: 0 0 22px; font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; text-transform: uppercase; color: var(--ink-hi); }

h1 {
  font-size: clamp(27px, 4.7vw, 58px); line-height: 1.12; letter-spacing: 0.05em;
  text-shadow: 0 0 22px rgba(143, 245, 221, 0.35);
  max-width: 21em;
}

.lead, .hero .lead { margin: 26px 0 0; max-width: 46em; font-size: clamp(15px, 1.35vw, 17px); color: var(--text); }

.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-meta { margin: 16px 0 0; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); min-height: 1.65em; }
.cta-meta a { color: var(--ink); }
.cta-meta a:hover { color: var(--amber); }

.hero-shot { margin-top: 46px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.6), 0 0 70px rgba(20, 110, 96, 0.22); }

/* the kinds of data on the board, as one bar under the hero picture */
.kinds { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 0; padding: 0; border: 1px solid var(--line); background: var(--panel); }
.kinds li { padding: 17px 18px 16px; border-left: 1px solid var(--line); }
.kinds li:first-child { border-left: 0; }
.kinds b { display: flex; align-items: center; gap: 11px; font: 400 clamp(17px, 1.9vw, 23px)/1.1 var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-hi); text-shadow: 0 0 14px rgba(143, 245, 221, 0.35); }
.kinds i { flex: none; width: 11px; height: 11px; background: var(--c); box-shadow: 0 0 9px var(--c); }
.kinds span { display: block; margin-top: 9px; font-size: 11.5px; line-height: 1.45; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-dim); }

/* ------------------------------------------------------------------ sections */

.sect { padding: 92px 0 0; }

.sect-tag {
  display: flex; align-items: center; gap: 12px; margin: 0 0 16px;
  font: 400 13px/1 var(--display); letter-spacing: 0.24em; text-transform: uppercase; color: var(--amber);
}
.sect-tag .num { border: 1px solid var(--amber); padding: 4px 6px 3px; letter-spacing: 0.08em; }
.sect-tag::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

h2 { font-size: clamp(21px, 2.7vw, 32px); line-height: 1.2; letter-spacing: 0.07em; max-width: 26em; }

.sect-head { margin-bottom: 34px; }
.sect-head p:last-child, .copy > p { margin: 16px 0 0; max-width: 50em; }

.split { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.split.flip .copy { order: 2; }
.split .sect-tag::after { display: none; }

.points { list-style: none; margin: 20px 0 0; padding: 0; }
.points li { position: relative; padding-left: 20px; margin-top: 11px; }
.points li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 7px; height: 7px; border: 1px solid var(--ink); }

.grid { display: grid; gap: 22px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tile { display: flex; flex-direction: column; }
/* a row whose pictures differ slightly in shape: trim them to one, so the captions line up */
.grid.even .tile img { aspect-ratio: 800 / 487; object-fit: cover; }
.tile a[data-zoom] { border-bottom: 1px solid var(--line); }
.tile figcaption { padding: 13px 15px 15px; font-size: 13.5px; line-height: 1.6; }
.tile .t {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px;
  font: 400 14px/18px var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-hi);
}

.note { padding: 18px 20px 20px; font-size: 14px; }
.note h3 { font-size: 14px; line-height: 18px; letter-spacing: 0.16em; margin-bottom: 12px; }
.note p:last-child, .note .points:last-child { margin-bottom: 0; }
.note .points { margin-top: 12px; }

/* ------------------------------------------------------------------ download */

.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) 96px 84px auto; align-items: center; gap: 16px;
  padding: 13px 16px; border-bottom: 1px solid var(--line); border-left: 2px solid transparent;
}
.dl-list li.you { border-left-color: var(--amber); background: rgba(255, 179, 0, 0.055); }
.dl-list li.you .dl-name::after {
  content: 'Your computer'; margin-left: 12px; border: 1px solid var(--amber); color: var(--amber);
  font: 400 10px/14px var(--mono); letter-spacing: 0.1em; padding: 0 5px; vertical-align: 2px; white-space: nowrap;
}
.dl-list li.you .btn { background: var(--amber); border-color: var(--amber); color: var(--bg); }
.dl-list li.you .btn:hover { background: #ffc740; border-color: #ffc740; }
.dl-os { font: 400 15px/20px var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-hi); }
.dl-os small { display: block; margin-top: 3px; font: 400 12.5px/1.45 var(--mono); letter-spacing: 0; text-transform: none; color: var(--text); }
.dl-file, .dl-size { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-dim); white-space: nowrap; }
.dl-size { text-align: right; }
.dl-pending { margin: 0; padding: 13px 16px; border-bottom: 1px solid var(--line); border-left: 2px solid var(--amber); color: var(--ink-hi); background: rgba(255, 179, 0, 0.055); font-size: 14px; }
.dl.pending .dl-list .btn { opacity: 0.45; }
.dl-foot { margin: 0; padding: 12px 16px; font-size: 12.5px; color: var(--ink-dim); }
.after-dl { margin-top: 22px; align-items: start; }

/* ------------------------------------------------------------------ footer */

.footer { margin-top: 110px; border-top: 1px solid var(--line); background: rgba(1, 8, 10, 0.86); font-size: 13px; }
.footer-in { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; padding: 34px 0 44px; }
.footer p { margin: 0; max-width: 54em; color: var(--ink-dim); }
.footer nav { display: grid; gap: 7px; align-content: start; justify-items: start; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11.5px; }

/* ------------------------------------------------------------------ enlarged screenshot */

dialog.zoom {
  width: min(1680px, 100vw - 24px); max-width: none; max-height: calc(100vh - 24px); padding: 0; overflow: auto;
  background: var(--panel-solid); color: var(--text); border: 1px solid var(--line-hi);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.8);
}
dialog.zoom::backdrop { background: rgba(1, 6, 8, 0.86); }
dialog.zoom form { position: sticky; top: 0; z-index: 1; display: flex; justify-content: flex-end; padding: 8px; background: var(--panel-solid); border-bottom: 1px solid var(--line); }
dialog.zoom img { width: 100%; cursor: zoom-out; }
dialog.zoom p { margin: 0; padding: 12px 16px 14px; font-size: 13.5px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------------ narrower screens */

@media (max-width: 1080px) {
  .clock { display: none; }
  .nav { margin-left: auto; }
}

@media (max-width: 980px) {
  .split { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .split.flip .copy { order: 0; }
  .grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sect { padding-top: 72px; }
}

@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 20px; letter-spacing: 0.24em; }
  .brand-mark { width: 28px; height: 28px; }
  .nav a:not(.primary) { display: none; }
  .nav a.primary { margin-left: 0; }
  .wrap { width: calc(100% - 28px); }
  .hero { padding-top: 44px; }
  .hero-shot { margin-top: 40px; }
  .hero-shot .frame-head { font-size: 11px; letter-spacing: 0.1em; }
  .cta .btn { flex: 1 1 100%; }
  .kinds { grid-template-columns: repeat(2, 1fr); }
  .kinds li { padding: 14px 14px 13px; }
  .kinds li:nth-child(3) { border-left: 0; }
  .kinds li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .grid.two, .grid.three { grid-template-columns: minmax(0, 1fr); }
  .dl-list li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .dl-file { grid-column: 1; grid-row: 2; }
  .dl-size { grid-column: 1; grid-row: 2; text-align: left; padding-left: 86px; }
  .dl-list .btn { grid-column: 2; grid-row: 1 / span 2; }
  .footer-in { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .footer { margin-top: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-mark::before { animation: none; }
  .frame a[data-zoom] img { transition: none; }
}

@media print {
  .crt, .topbar, dialog { display: none; }
  body { background: #fff; color: #000; }
}
