/* Sinai Audio: the plugin's "Survey" look on the web (bone, orange and ultramarine).
   Colours come from Orthrus's source/PanelStyle.h; keep them in step with it.
   Fonts: Archivo (wide cuts made for the plugin) and IBM Plex Mono, SIL OFL (see assets/fonts). */

@font-face { font-family: "Archivo Expanded"; src: url("../fonts/ArchivoExpandedMedium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Archivo Wide"; src: url("../fonts/ArchivoWideSemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Archivo SemiCondensed"; src: url("../fonts/ArchivoSemiCondensedMedium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("../fonts/IBMPlexMonoRegular.woff") format("woff"); font-weight: 400; font-display: swap; }

:root {
  --surface: #d8d5ca;      /* windowColour: the one surface everything sits on (bone) */
  --control: #c3c0b3;      /* menus and small buttons */
  --button: #e6e3da;       /* buttons with a word on them */
  --print: #141414;        /* textColour / edgeColour */
  --quiet: #2a2a28;
  --faint: #5c5a53;
  --line: rgba(20, 20, 20, 0.35);
  --screen: #1b1b1a;
  --screen-print: #eeeae0;
  --on: #141414;           /* "on" is the print itself */
  --on-print: #ffffff;
  --marked: #ffd400;       /* marked things */
  --a: #ec6a28;  --a-print: #141414;   /* Layer A: signal orange */
  --b: #2a3cb8;  --b-print: #ffffff;   /* Layer B: ultramarine */
  --plate-gap: 6px;
  --plate-radius: 16px;

  --wordmark: "Archivo Expanded", Arial, sans-serif;
  --title: "Archivo Wide", Arial, sans-serif;
  --label: "Archivo SemiCondensed", Arial, sans-serif;
  --mono: "Plex Mono", Consolas, monospace;
  --body: Arial, Helvetica, sans-serif;   /* the plugin's menus and names are Arial */

  --gutter: 16px;
  --measure: 44rem;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--print);
  font: 17px/1.55 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--print); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 3px; }
:focus-visible { outline: 2px solid var(--print); outline-offset: 2px; }

.wrap { max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header: the surface itself, a wordmark and a few links, a rule beneath */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 18px; padding-bottom: 14px; }
.wordmark { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--wordmark); font-weight: 500; font-size: 24px; text-decoration: none; letter-spacing: 0.01em; }
/* the angel after "audio": its middle sits on the middle of the o (about 0.27em above the baseline) */
.wordmark img { transform: translateY(calc(50% - 0.27em)); }
.site-nav { display: flex; gap: 1.25rem; font-family: var(--label); font-size: 15px; }
.site-nav a { text-decoration: none; }
.site-nav a[aria-current="page"] { text-decoration: underline; }

/* The two heads: an orange plate and an ultramarine plate, each with its giant letter */
.heads { display: grid; grid-template-columns: 1fr 1fr; gap: var(--plate-gap); padding: var(--plate-gap); }
.head { position: relative; border-radius: var(--plate-radius); box-shadow: 0 2px 3px rgba(20,20,20,0.25), inset 0 1px 0 rgba(255,255,255,0.3), inset 0 -1px 0 rgba(0,0,0,0.25); min-height: 300px; padding: 24px 24px 24px 96px; display: flex; flex-direction: column; justify-content: flex-end; }
.head-a { background: var(--a); color: var(--a-print); }
.head-b { background: var(--b); color: var(--b-print); }
.head .letter { position: absolute; left: 14px; bottom: 6px; font: bold 78px/1 Arial, sans-serif; }
.head p { margin: 0; font-family: var(--title); font-weight: 600; font-size: clamp(22px, 3.2vw, 34px); line-height: 1.15; }

.intro { padding-top: 40px; padding-bottom: 8px; }
.intro h1 { display: flex; align-items: center; gap: 14px; font-family: var(--wordmark); font-weight: 500; font-size: clamp(40px, 7vw, 64px); line-height: 1; margin: 0 0 12px; }
.intro h1 .arms { height: 1.1em; width: auto; }
.intro .lead { font-family: var(--title); font-weight: 600; font-size: 20px; margin: 0 0 16px; max-width: var(--measure); }
.intro p { max-width: var(--measure); }

/* Product page sections */
.block { padding-top: 8px; padding-bottom: 8px; }
.block h2 { font-family: var(--title); font-weight: 600; font-size: 24px; line-height: 1.2; margin: 1.6em 0 0.4em; text-transform: lowercase; }
.block p { max-width: var(--measure); }
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: var(--plate-gap); }
.features li { background: var(--button); border-radius: 10px; padding: 14px 16px; margin: 0; }
.features strong { display: block; font-family: var(--label); font-weight: 500; font-size: 17px; margin-bottom: 2px; }
.shot { background: var(--screen); border-radius: 10px; min-height: 280px; display: flex; align-items: center; justify-content: center; padding: 16px; }
.shot img { border-radius: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Small mono readouts, like the plugin's values */
.readout { font-family: var(--mono); font-size: 14px; color: var(--quiet); }
.status { display: inline-block; font-family: var(--mono); font-size: 13px; padding: 2px 12px; border-radius: 999px; background: var(--on); color: var(--on-print); }

/* Text pages */
.page { padding-top: 32px; padding-bottom: 48px; }
.page h1 { font-family: var(--title); font-weight: 600; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; margin: 0 0 6px; text-transform: lowercase; }
.page h2 { font-family: var(--title); font-weight: 600; font-size: 21px; line-height: 1.25; margin: 2.2em 0 0.4em; padding-top: 0.8em; border-top: 1px solid var(--line); }
.page h3 { font-family: var(--label); font-weight: 500; font-size: 17px; margin: 1.5em 0 0.3em; }
.page p, .page ul, .page ol, .page dl, .page table { max-width: var(--measure); }
.page li { margin: 0.25em 0; }
.summary { background: var(--button); padding: 16px 20px; border-radius: 10px; max-width: var(--measure); }
.summary ul { margin: 0; padding-left: 1.2em; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); }
th { font-family: var(--label); font-weight: 500; }
.table-scroll { overflow-x: auto; max-width: var(--measure); }

/* A detail still to fill in: marked, like the plugin's yellow markers. Shown only on a local
   preview (assets/js/preview.js adds html.preview); hidden on the live site. */
.todo, .pending { display: none; }
html.preview .todo { display: inline; }
html.preview .pending { display: revert; }
.todo { background: var(--marked); color: var(--print); padding: 0 6px; border-radius: 999px; font-family: var(--mono); font-size: 0.85em; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 16px; padding-bottom: 28px; font-family: var(--label); font-size: 14px; color: var(--faint); }
.site-footer nav { display: flex; gap: 1.25rem; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .heads { grid-template-columns: 1fr; }
  .head { min-height: 170px; padding-left: 64px; }
  .head .letter { font-size: 60px; }
}
