/* revu -- a dial, not a list.
 *
 * The portfolio already has a column of cards, a comparison table, a serif
 * appraisal note, a dark monitor, and a standings board. This one is a plate
 * with a single two-decimal figure on it, a scale underneath showing where that
 * figure sits among the marks buyers notice, and a sentence about the date it is
 * going to change on. Lilac-plum, because nothing else here is.
 *
 * script-src 'none' and style-src 'self': no client JavaScript, and no inline
 * style attribute -- which is why positions on the scale are bucket classes
 * generated at the bottom of this file rather than percentages.
 */

:root {
  --page: #f6f3f7;
  --panel: #ffffff;
  --plate: #efe8f1;
  --ink: #241d29;
  --soft: #5d5364;
  --faint: #8b8292;
  --line: #e0d6e3;

  --plum: #6b2d5c;
  --good: #1f6f4a;
  --bad: #9c3427;
  --link: #6b2d5c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
}

h1 { font-size: 27px; font-weight: 660; line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 14px; max-width: 24ch; }
p { margin: 0 0 12px; }
a { color: var(--link); }

main { max-width: 760px; margin: 0 auto; padding: 24px 18px 64px; }

/* ---------------------------------------------------------------- chrome */

.top { display: flex; align-items: baseline; gap: 16px; padding: 14px 18px;
  background: var(--panel); border-bottom: 1px solid var(--line); }
.mark { font-size: 19px; font-weight: 700; letter-spacing: -0.05em; color: var(--plum);
  text-decoration: none; margin-right: auto; }
.top nav a { font-size: 12px; color: var(--faint); text-decoration: none; margin-left: 14px; }
.top nav a:hover { color: var(--ink); }

.note { margin: 0; padding: 9px 18px; font-size: 13px; background: var(--plate);
  color: var(--soft); border-bottom: 1px solid var(--line); }
.note.ok { color: var(--good); }
.note.no { color: var(--bad); }

/* --------------------------------------------------------- the shop panel */

.shop { display: grid; grid-template-columns: 10.5rem 1fr; background: var(--panel);
  border: 1px solid var(--line); margin-bottom: 14px; }

.figure { background: var(--plate); border-right: 1px solid var(--line);
  padding: 18px 16px; display: flex; flex-direction: column; gap: 3px; }
.big { font-size: 44px; font-weight: 700; line-height: 1; letter-spacing: -0.045em;
  color: var(--plum); font-variant-numeric: tabular-nums; }
.asseen { font-size: 11px; color: var(--faint); }
.moved { font-size: 11px; margin-top: 6px; }
.moved.up { color: var(--good); }
.moved.down { color: var(--bad); }
.moved.flat { color: var(--faint); }

.about { padding: 16px 18px 14px; min-width: 0; }
.name { font-size: 16px; font-weight: 640; margin: 0 0 3px; }
.name a { color: var(--ink); text-decoration: none; }
.name a:hover { text-decoration: underline; }
.basis { font-size: 12px; color: var(--faint); margin-bottom: 14px; }

/* the scale ------------------------------------------------------------- */

.scale { margin: 0 0 15px; padding-bottom: 17px; }
.track { position: relative; height: 6px; border-radius: 3px;
  background: linear-gradient(to right, #ded2e2 0%, #cdbcd3 55%, var(--plum) 100%); }
.tick { position: absolute; top: -3px; width: 1px; height: 12px; background: #b8a8bf; }
.tick i { position: absolute; top: 14px; left: 0; transform: translateX(-50%);
  font-size: 9.5px; font-style: normal; color: var(--faint); white-space: nowrap; }
.pin { position: absolute; top: -6px; width: 3px; height: 18px; margin-left: -1px;
  background: var(--ink); border-radius: 1px; box-shadow: 0 0 0 2px var(--panel); }

/* what happens next ----------------------------------------------------- */

.soon { font-size: 13.5px; color: var(--soft); border-left: 3px solid var(--line);
  padding: 2px 0 2px 11px; margin-bottom: 11px; }
.soon b { color: var(--ink); }
.soon.good { border-left-color: var(--good); }
.soon.bad { border-left-color: var(--bad); }
.soon.unsure { border-left-color: #c9ba8f; font-size: 12.5px; }
.target { font-size: 13px; color: var(--soft); margin-bottom: 12px; }
.target b { color: var(--plum); font-size: 15px; }

/* ---------------------------------------------------------------- chooser */

.picks { list-style: none; margin: 0 0 18px; padding: 0; }
.pick { display: grid; grid-template-columns: 4.5rem 1fr auto; gap: 14px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; margin-bottom: 8px; }
.pickfig { font-size: 22px; font-weight: 700; color: var(--plum); font-variant-numeric: tabular-nums; }
.pickwho { display: flex; flex-direction: column; min-width: 0; }
.picksub { font-size: 11.5px; color: var(--faint); }

/* ------------------------------------------------------------------ forms */

.add { background: var(--panel); border: 1px solid var(--line); padding: 16px; margin-bottom: 18px; }
.cap { display: block; font-size: 11px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 11px; }
label { display: block; font-size: 12px; color: var(--soft); margin-bottom: 11px; }
input[type="text"] { display: block; width: 100%; margin-top: 4px; padding: 9px 11px;
  font: inherit; font-size: 14px; color: var(--ink); background: var(--page);
  border: 1px solid var(--line); border-radius: 4px; }
input:focus-visible { outline: none; border-color: var(--plum); }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 2px; }

.go { font: inherit; font-size: 14px; font-weight: 600; padding: 9px 17px; cursor: pointer;
  color: #fff; background: var(--plum); border: 0; border-radius: 4px;
  text-decoration: none; display: inline-block; }
.go:hover { background: #55234a; }
.go.small { font-size: 12.5px; padding: 7px 12px; }
.quietlink { font: inherit; font-size: 12px; background: none; border: 0; padding: 0;
  color: var(--link); cursor: pointer; text-decoration: underline; }
.quietlink.dim { color: var(--faint); }
.inline { display: inline; margin: 0; }

.count { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px; }
.lede { font-size: 16.5px; color: var(--soft); max-width: 58ch; }
.aside { font-size: 12.5px; color: var(--faint); max-width: 64ch; }
.crumb { font-size: 12px; }
.enter { margin: 24px 0 8px; }
.blank { padding: 22px; border: 1px dashed var(--line); color: var(--soft); }

/* -------------------------------------------------------------- documents */

main.doc { background: var(--panel); border: 1px solid var(--line);
  padding: 28px 30px 36px; margin: 24px auto 64px; }
.doc h1 { max-width: none; }
.doc h2 { font-size: 15px; font-weight: 650; margin: 26px 0 8px; color: var(--ink); }
.doc p, .doc li { color: var(--soft); }
.doc li { margin-bottom: 7px; }
.doc strong, .doc b { color: var(--ink); }
.doc ul { padding-left: 19px; }
.doc code { font-family: ui-monospace, Consolas, monospace; font-size: 0.88em;
  background: var(--plate); padding: 1px 5px; }
.doc .when { font-size: 12px; color: var(--faint); margin-top: -8px; }
.doc table { border-collapse: collapse; width: 100%; margin: 8px 0 16px; font-size: 13.5px; }
.doc th, .doc td { text-align: left; padding: 7px 10px; border: 1px solid var(--line); color: var(--soft); }
.doc th { background: var(--plate); color: var(--ink); font-weight: 600; }

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

.base { border-top: 1px solid var(--line); background: var(--panel); padding: 18px; }
.base a { font-size: 12px; color: var(--faint); text-decoration: none; margin-right: 16px; }
.base a:hover { color: var(--ink); }
.base p { margin: 10px 0 0; font-size: 11px; color: var(--faint); max-width: 68ch; }

@media (max-width: 560px) {
  .shop { grid-template-columns: 1fr; }
  .figure { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row;
    align-items: baseline; gap: 10px; }
  .moved { margin-top: 0; }
  .pick { grid-template-columns: 3.5rem 1fr; }
  h1 { font-size: 22px; }
}

/* --- generated: positions on the 3.50-5.00 scale, 0.05 per bucket ------
   style-src 'self' forbids the inline style attribute, so every position a
   marker or tick can take needs a class of its own. 31 each, which is the
   price of shipping zero JavaScript. */

.at-0 { left: 0.0000%; }
.at-1 { left: 3.3333%; }
.at-2 { left: 6.6667%; }
.at-3 { left: 10.0000%; }
.at-4 { left: 13.3333%; }
.at-5 { left: 16.6667%; }
.at-6 { left: 20.0000%; }
.at-7 { left: 23.3333%; }
.at-8 { left: 26.6667%; }
.at-9 { left: 30.0000%; }
.at-10 { left: 33.3333%; }
.at-11 { left: 36.6667%; }
.at-12 { left: 40.0000%; }
.at-13 { left: 43.3333%; }
.at-14 { left: 46.6667%; }
.at-15 { left: 50.0000%; }
.at-16 { left: 53.3333%; }
.at-17 { left: 56.6667%; }
.at-18 { left: 60.0000%; }
.at-19 { left: 63.3333%; }
.at-20 { left: 66.6667%; }
.at-21 { left: 70.0000%; }
.at-22 { left: 73.3333%; }
.at-23 { left: 76.6667%; }
.at-24 { left: 80.0000%; }
.at-25 { left: 83.3333%; }
.at-26 { left: 86.6667%; }
.at-27 { left: 90.0000%; }
.at-28 { left: 93.3333%; }
.at-29 { left: 96.6667%; }
.at-30 { left: 100.0000%; }

.t-0 { left: 0.0000%; }
.t-1 { left: 3.3333%; }
.t-2 { left: 6.6667%; }
.t-3 { left: 10.0000%; }
.t-4 { left: 13.3333%; }
.t-5 { left: 16.6667%; }
.t-6 { left: 20.0000%; }
.t-7 { left: 23.3333%; }
.t-8 { left: 26.6667%; }
.t-9 { left: 30.0000%; }
.t-10 { left: 33.3333%; }
.t-11 { left: 36.6667%; }
.t-12 { left: 40.0000%; }
.t-13 { left: 43.3333%; }
.t-14 { left: 46.6667%; }
.t-15 { left: 50.0000%; }
.t-16 { left: 53.3333%; }
.t-17 { left: 56.6667%; }
.t-18 { left: 60.0000%; }
.t-19 { left: 63.3333%; }
.t-20 { left: 66.6667%; }
.t-21 { left: 70.0000%; }
.t-22 { left: 73.3333%; }
.t-23 { left: 76.6667%; }
.t-24 { left: 80.0000%; }
.t-25 { left: 83.3333%; }
.t-26 { left: 86.6667%; }
.t-27 { left: 90.0000%; }
.t-28 { left: 93.3333%; }
.t-29 { left: 96.6667%; }
.t-30 { left: 100.0000%; }
