/* stejnaaudio.com -- one stylesheet for every page.
   Colours are the app's (app/Source/Vfd.h, Brand.h), which cite the brand's source of truth; change them there first.
   Colour lives on the glass; the metal stays neutral. Amber appears only inside the mark (the emblem's anode, the
   wordmark's dot): what amber means elsewhere is still an open brand decision. */

:root {
  color-scheme: dark;
  --metal: #141518;                       /* the page: the editor background */
  --face-top: #242A31; --face-mid: #1A1F24; --face-bot: #12161A;   /* a module face, lit from the top */
  --bezel-top: #3A424C; --bezel-bot: #161A1F;                      /* machined metal (the emblem's bezel) */
  --glass: #030E11;                       /* never black */
  --cyan: #72E9E9;                        /* the measured phosphor */
  --core: #B9FFFF;
  --ink: #EAEFF3;                         /* white ink: headings */
  --text: #C9D3DB;                        /* silkscreen: body text */
  --dim: #8A94A0;                         /* labels */
  --rule: #3A3D43;
  --pill-off: #11151A; --pill-rim: #39434E;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--metal); color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-underline-offset: 2px; }
a:hover { color: var(--core); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; }
strong { color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; z-index: 1; background: var(--glass); padding: 8px 12px; }

/* ---- header: the masthead (the app's: emblem, STEJNA in white ink over AUDIO in cyan) and the page links */
.site-head {
  background: linear-gradient(#1C2127, #161A1F);
  border-bottom: 1px solid #000; box-shadow: 0 1px 0 rgba(255, 255, 255, .04);
}
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 24px; min-height: 64px; padding-top: 10px; padding-bottom: 10px;
}
.masthead { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.masthead img { width: 38px; height: 38px; }
.masthead span { display: flex; flex-direction: column; font-weight: 700; line-height: 1; }
.masthead .top { color: var(--ink); font-size: 18px; letter-spacing: .13em; }
.masthead .sub { color: var(--cyan); font-size: 11px; letter-spacing: .25em; margin-top: 6px; text-shadow: 0 0 6px rgba(114, 233, 233, .35); }
.site-head ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 20px; margin: 0; padding: 0; }
.site-head nav a {
  display: block; padding: 12px 0; color: var(--text); text-decoration: none;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.site-head nav a:hover { color: var(--ink); }
.site-head nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--text); }

/* ---- hero */
.hero { padding-top: 48px; padding-bottom: 8px; text-align: center; }
.kicker { margin: 0; color: var(--dim); font-size: 13px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; }
.vfd-well {      /* the well a VFD sits in (Vfd.h): dark metal, a hairline rim */
  margin: 14px auto 0; max-width: 560px; padding: 8px; border-radius: 8px;
  background: linear-gradient(135deg, #1B1E23, #0A0A0B); border: 1px solid var(--rule);
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, .6);
}
.vfd-well img { width: 100%; }
.lede { margin: 24px auto 0; max-width: 34em; color: var(--ink); font-size: clamp(19px, 2.4vw, 22px); line-height: 1.5; }
.compat { margin: 10px auto 0; color: var(--dim); text-align: center; }
.status { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.pill {          /* pills show a STATE, never an action */
  display: inline-block; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; background: var(--pill-off); border: 1px solid var(--pill-rim); color: var(--dim);
}
.pill.on { color: var(--cyan); border-color: rgba(114, 233, 233, .55); box-shadow: 0 0 10px rgba(114, 233, 233, .15); }

/* an iPad screen in a machined bezel */
.device {
  margin: 40px auto 0; max-width: 1040px; padding: clamp(6px, 1.2vw, 14px); border-radius: clamp(14px, 2.4vw, 28px);
  background: linear-gradient(var(--bezel-top), var(--bezel-bot));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px rgba(0, 0, 0, .55);
}
.device img { width: 100%; border-radius: clamp(8px, 1.4vw, 16px); background: var(--glass); }
.hero figcaption { margin-top: 12px; color: var(--dim); font-size: 15px; }

/* ---- sections */
.section { padding-top: 64px; }
.section > h2, .section-head h2 { margin: 0; font-size: clamp(24px, 3vw, 30px); }
.section-head p { margin: 6px 0 0; color: var(--dim); }

/* screenshots: a swipeable row on phones, a grid from tablet width */
.shots {
  list-style: none; margin: 24px 0 0; padding: 0 0 12px;
  display: grid; gap: 16px; grid-auto-flow: column; grid-auto-columns: min(84%, 420px);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
}
.shots li { scroll-snap-align: start; }
.shots figure { margin: 0; }
.shots a { display: block; border-radius: 10px; }
.shots img { width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; border: 1px solid #2C333B; background: var(--glass); }
.shots figcaption { margin-top: 8px; font-size: 15px; line-height: 1.45; }
@media (min-width: 760px) {
  .shots { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; gap: 28px 20px; }
}

/* features: rack-module cards in balanced columns */
.features { margin-top: 24px; columns: 2 380px; column-gap: 20px; }
.card {
  break-inside: avoid; margin: 0 0 20px; padding: 20px 22px 10px; border-radius: 6px;
  background: linear-gradient(var(--face-top), var(--face-mid) 55%, var(--face-bot));
  border: 1px solid #0B0D10; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .35);
}
.card h3, .silk {    /* engraved silkscreen: neutral ink, never a phosphor */
  margin: 0 0 14px; color: var(--text); font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .75), 0 -1px 0 rgba(255, 255, 255, .06);
}
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 0 0 12px; font-size: 16px; line-height: 1.55; }
.card li ul { margin-top: 6px; }
.card li li { margin-bottom: 4px; }
li::marker { color: var(--dim); }

.about { max-width: 720px; text-align: center; }

/* ---- reading pages (support, privacy) */
.prose { max-width: 720px; padding-top: 48px; }
.prose h1 { margin: 6px 0 6px; font-size: clamp(28px, 4vw, 34px); }
.prose h2 { margin: 40px 0 8px; font-size: 21px; }
.prose h3 { margin: 28px 0 6px; font-size: 18px; }
.prose p, .prose li { margin: 0 0 12px; }
.prose ul, .prose ol { padding-left: 22px; }
.date { margin: 0 0 32px; color: var(--dim); }
.summary {     /* a line on the glass */
  margin: 0 0 8px; padding: 14px 18px; border-radius: 6px; background: var(--glass);
  border: 1px solid #0F2A31; border-left: 3px solid var(--cyan);
}
.contact { margin: 16px 0 0; padding: 18px 20px; border-radius: 6px; background: linear-gradient(var(--face-top), var(--face-bot)); border: 1px solid #0B0D10; }
.contact p:last-child { margin-bottom: 0; }
.big-link { font-size: 20px; font-weight: 700; }

/* ---- footer */
.site-foot { margin-top: 80px; border-top: 1px solid var(--rule); padding: 28px 0 44px; color: var(--dim); font-size: 14px; text-align: center; }
.site-foot p { margin: 0 auto 10px; max-width: 60em; }
.site-foot ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin: 0 0 16px; padding: 0; }
.site-foot a { color: var(--text); }
.site-foot a:hover { color: var(--ink); }
