/* Jana Audio — janaaudio.com
 * Generated site stylesheet. Colours are the brand's: amber #e2b961 and cream #e8eaef
 * (decisions 2026-09-10-brand-brief-and-sourcing, 2026-09-11-panel-lockup-brief).
 * Every text/background pair below is measured by brand/tools/build_site.py, which refuses
 * to emit the site if any of them falls under WCAG AA. Do not edit a colour without rerunning
 * the build. No JavaScript is used or loaded anywhere on this site.
 */

@font-face {
  font-family: "Jana Plex Sans";
  src: url("/assets/fonts/IBMPlexSans-var.woff") format("woff-variations"),
       url("/assets/fonts/IBMPlexSans-var.woff") format("woff");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #faf9f7;
  --bg-2: #f1efea;
  --ink: #1b1d21;
  --dim: #55595f;
  --accent: #7d5e12;
  --amber: #e2b961;
  --rule: #e0dcd3;
  --rule-strong: #c9c4b8;
  --measure: 34rem;
  /* chart series (card pages): the dataviz reference palette's slots 1-5, light steps */
  --s1: #2a78d6;
  --s2: #eb6834;
  --s3: #1baf7a;
  --s4: #eda100;
  --s5: #e87ba4;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17181b;
    --bg-2: #1e2024;
    --ink: #e8eaef;
    --dim: #a5abb6;
    --accent: #e2b961;
    --amber: #e2b961;
    --rule: #2e3136;
    --rule-strong: #43474e;
    --s1: #3987e5;
    --s2: #d95926;
    --s3: #199e70;
    --s4: #c98500;
    --s5: #d55181;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Jana Plex Sans", "IBM Plex Sans", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------------- header and nav */

.site-head {
  border-bottom: 1px solid var(--rule);
  padding: 1.75rem 0 1.25rem;
}

.site-head .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 2rem;
  justify-content: space-between;
}

.mark {
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  font-size: 1.25rem;
  letter-spacing: 0.07em;
  font-kerning: none;              /* the approved lockup is drawn unkerned (JA kerns -0.0166 em) */
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}

.mark .amber { color: var(--accent); }

nav.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.9375rem;
}

nav.site-nav a {
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}

nav.site-nav a:hover { color: var(--ink); border-bottom-color: var(--rule-strong); }
nav.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------------------------------------------------------------- text */

main { padding: 3rem 0 4rem; }

h1, h2, h3 {
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  max-width: var(--measure);
}

h1 {
  font-size: clamp(1.875rem, 1.35rem + 2.2vw, 2.75rem);
  letter-spacing: -0.012em;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.375rem;
  letter-spacing: -0.006em;
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
}

h3 {
  font-size: 1.125rem;
  margin-top: 2rem;
}

p, ul, ol { max-width: var(--measure); margin: 0 0 1.15rem; }

li { margin-bottom: 0.35rem; }

a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }

strong { font-weight: 600; font-variation-settings: "wght" 600, "wdth" 100; }
em { font-style: italic; }

.lede {
  font-size: 1.1875rem;
  color: var(--ink);
}

p em:only-child, .note {
  color: var(--dim);
  font-size: 0.9375rem;
  line-height: 1.55;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

/* ---------------------------------------------------------------- the lockup */

/* The approved lockup grammar, applied to the web (brand/specs/panel-lockup-965-v1.md).
   Every number here is that spec's, expressed in ems of LINE ONE so the block scales as one
   thing: tracking 0.070 em; the word gap 0.620 em from JANA's last advance to the 9's pen,
   of which 0.070 is already there as line 1's own trailing tracking, leaving 0.550 as the
   margin; line 2 at 8.865/16.682 of line 1's em, carried in --gus-h by the generator, which
   measures the drawing rather than guessing it. Line 1 is live text in the licensed variable
   font at wght 600; line 2 is that font's italic set as outlines. */

.lockup {
  margin: 0 0 2.25rem;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem);
  line-height: 1;
}

.lockup .line1 {
  display: block;
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  font-size: 1em;
  letter-spacing: 0.07em;
  font-kerning: none;              /* the approved lockup is drawn unkerned (JA kerns -0.0166 em) */
  line-height: 1;
  margin: 0;
}

.lockup .line1 .amber { color: var(--accent); margin-left: 0.55em; }

.lockup .line2 { display: block; margin-top: 0.20em; }
/* "JANA is cream; 965 and line 2 are amber" — panel-lockup-965-v1.md §1. */
.lockup .line2 svg {
  display: block;
  height: var(--gus-h, 0.449em);
  width: auto;
  fill: var(--accent);
}

.status {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  color: var(--dim);
  background: var(--bg-2);
}

/* ---------------------------------------------------------------- tables */

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border-top: 1px solid var(--rule-strong);
  border-bottom: 1px solid var(--rule-strong);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 30rem;
  font-size: 0.9375rem;
}

th, td {
  text-align: left;
  padding: 0.55rem 1.25rem 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: baseline;
}

tbody tr:last-child td { border-bottom: none; }

th {
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 0.75rem;
  padding-bottom: 0.5rem;
}

td:last-child, th:last-child { padding-right: 0; }

/* The facts table on the 965 page and every card page: one plain fact per row, built by
   build_site.py. Its caption is the table's name; row heads read as labels, not as shouting. */

table.facts-table { min-width: 0; }
table.facts-table caption {
  caption-side: top;
  text-align: left;
  padding: 0.75rem 0 0.25rem;
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
table.facts-table th[scope="row"] { width: 11rem; white-space: nowrap; vertical-align: baseline; }
@media (max-width: 40rem) {
  table.facts-table th[scope="row"] { width: auto; white-space: normal; }
}

/* A card page's breadcrumb: Cards, its deck's group, the card. */
.crumbs { font-size: 0.875rem; color: var(--dim); margin: 0 0 1.25rem; }
.crumbs a { color: var(--dim); }
.crumbs a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- placeholders */
/* [[FOUNDER: ...]] in the copy: a hole the founder fills before publishing.
   Drawn so it cannot be mistaken for copy; the build lists every one. */

mark.placeholder {
  color: var(--ink);
  background: var(--bg-2);
  outline: 1px dashed var(--accent);
  outline-offset: 1px;
  padding: 0 0.3em;
  font-style: italic;
}

/* ---------------------------------------------------------------- figures */

figure {
  margin: 2rem 0;
  max-width: 100%;
}

figure img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--bg-2);
}

figcaption {
  margin-top: 0.6rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--dim);
  max-width: var(--measure);
}

/* ---------------------------------------------------------------- card charts */
/* Frequency-response figures on the card pages, drawn by build_site.py from measured curves.
   Lines and swatches take the series tokens; text stays in ink and dim, never a series colour. */

figure.chart { margin: 2rem 0 2.5rem; }
.chart-scroll { max-width: 100%; overflow-x: auto; }
.chart-svg { display: block; width: 100%; min-width: 30rem; height: auto; background: var(--bg-2); }
.chart-svg .grid { stroke: var(--rule); stroke-width: 1; }
.chart-svg .zero { stroke: var(--rule-strong); stroke-width: 1.5; }
.chart-svg .ax { fill: var(--dim); font-size: 12px; font-family: inherit; }
.chart-svg .dl { fill: var(--ink); font-size: 13px; font-weight: 600; font-family: inherit; }
.chart-svg .s { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.s0 { stroke: var(--dim); background: var(--dim); }
.s1 { stroke: var(--s1); background: var(--s1); }
.s2 { stroke: var(--s2); background: var(--s2); }
.s3 { stroke: var(--s3); background: var(--s3); }
.s4 { stroke: var(--s4); background: var(--s4); }
.s5 { stroke: var(--s5); background: var(--s5); }
.chart-svg .s0 { stroke-dasharray: 5 4; }
.sw { display: inline-block; width: 1.1rem; height: 3px; margin: 0 0.5rem 0.25rem 0; vertical-align: middle;
  border-radius: 2px; }
table.chart-table { font-size: 0.8125rem; min-width: 0; }
@media (max-width: 40rem) {
  /* a phone: the chart fits the column and its text grows in chart units to stay legible */
  .chart-svg { min-width: 0; }
  .chart-svg .ax { font-size: 21px; }
  .chart-svg .dl { font-size: 23px; }
  .chart-svg .minor { display: none; }
}
table.chart-table th[scope="row"] { font-size: 0.8125rem; letter-spacing: 0; text-transform: none;
  color: var(--ink); white-space: nowrap; font-weight: 500; }

/* ---------------------------------------------------------------- the product card */

.card {
  margin: 1.5rem 0 0;
  padding: 1.5rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  max-width: var(--measure);
}

.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- the Buy button */
/* The 965 page's Buy button: accent ground, page-ground ink (the gated accent/bg pair, reversed).
   Until checkout exists it is a placeholder (aria-disabled) and says so beside it. */

.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1.5rem 0; }

a.button {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  font-variation-settings: "wght" 600, "wdth" 100;
  border-radius: 2px;
}

a.button:hover { background: var(--ink); color: var(--bg); }
a.button[aria-disabled="true"] { pointer-events: none; }

.buy-note { font-size: 0.875rem; color: var(--dim); }

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

.site-foot {
  border-top: 1px solid var(--rule);
  padding: 2rem 0 3rem;
  font-size: 0.875rem;
  color: var(--dim);
}

.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: flex-end;
  justify-content: space-between;
}

.site-foot a { color: var(--dim); }
.site-foot a:hover { color: var(--ink); }

.foot-mark { display: flex; align-items: center; gap: 0.9rem; }
.foot-mark svg { display: block; height: 1.6rem; width: auto; fill: var(--ink); }

.foot-links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }

.arabic-block { margin: 0 0 1.5rem; }
.arabic-block svg { display: block; height: 3.5rem; width: auto; fill: var(--accent); }

/* جنا set inline in a sentence, as outlines, so it is the licensed Arabic face and not
   whatever the reader's system falls back to. */
.ar-inline {
  height: 1.05em;
  width: auto;
  display: inline-block;
  vertical-align: -0.2em;
  fill: currentColor;
  margin: 0 0.08em;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  padding: 0.6rem 1rem;
  border: 1px solid var(--accent);
  z-index: 10;
}

.skip-link:focus { left: 0.5rem; top: 0.5rem; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .wrap { padding: 0 1.125rem; }
  main { padding: 2.25rem 0 3rem; }
  h2 { margin-top: 2.25rem; }
  .site-head .wrap { gap: 0.75rem; }
  .site-foot .wrap { align-items: flex-start; }
}

@media print {
  nav.site-nav, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------------- the 2026-10-12 blocks */
/* "At a glance" on the 965 page: six plain facts under the status line, set like the product card. */

.glance {
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.5rem 0.9rem;
  background: var(--bg-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  max-width: var(--measure);
}

.glance p {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}

.glance ul { margin: 0; padding-left: 1.1rem; }
.glance li { margin-bottom: 0.2rem; }

/* The 965 page's one line of anchors. */
.jump p { font-size: 0.9375rem; color: var(--dim); margin-bottom: 1.75rem; }

/* The two cards side by side: two columns in the text column, one on a phone. Layout only. */
.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.75rem 0 2rem;
}

.pair figure { margin: 0; }
.pair figcaption strong { color: var(--ink); }
.pair figcaption span { display: block; margin-top: 0.2rem; }

@media (max-width: 40rem) {
  .pair { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* "Which card?": a row label and one column a card. The first column stays narrow. */
table.which { min-width: 26rem; }
table.which th[scope="row"] { width: 9.5rem; vertical-align: baseline; }
table.which thead th { font-size: 0.875rem; letter-spacing: 0.04em; text-transform: none; color: var(--ink); }
.table-scroll + .note { margin-top: -0.75rem; }
@media (max-width: 40rem) {
  /* a phone: both cards stay in view, so the table gives up its minimum width and wraps instead */
  table.which { min-width: 0; font-size: 0.875rem; }
  table.which th, table.which td { padding-right: 0.75rem; }
  table.which th[scope="row"] { width: 5.75rem; letter-spacing: 0.06em; }
}
