/* The Equasonic account pages, in the manner of equasonic.com (site-equasonic/public/css/site.css):
   two grounds that follow the device, Archivo, and Equasonic's orange.
     dark   graphite ground, bone type, orange for what is pressed and what is live
     light  bone ground, graphite type, a deeper orange (the bright one is too faint for text on bone)
   js/account.js reads these same values for Clerk's parts, so a colour is changed here only. */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-var.woff2") format("woff2-variations"), url("/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --ground: #0b0c0e;
  --sheet: #131417;
  --field: #0b0c0e;
  --ink: #f2efe8;
  --ink-2: #b9b7b2;          /* 9.6 to 1 on the ground */
  --ink-3: #8f8d89;          /* 5.9 to 1: small text may use it */
  --line: #26272a;
  --line-2: #3d3e41;
  --accent: #ff7a1a;         /* 7.5 to 1 on the ground */
  --fill: #ff7a1a;
  --fill-hover: #ff8f3d;
  --fill-ink: #0b0c0e;
  --warning: #f0a09a;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f2efe8;
    --sheet: #f8f6f1;
    --field: #fbfaf7;
    --ink: #0b0c0e;
    --ink-2: #44443f;        /* 8.5 to 1 on the ground */
    --ink-3: #62615c;        /* 5.4 to 1 */
    --line: #dcd8cf;
    --line-2: #b9b5ac;
    --accent: #a84300;       /* 5.3 to 1 on the ground */
    --fill: #0b0c0e;
    --fill-hover: #25282d;
    --fill-ink: #f2efe8;
    --warning: #a3261d;
    color-scheme: light;
  }
}

* { box-sizing: border-box; }

html, body { height: 100%; }
html { background: var(--ground); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  background: var(--ground);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-stretch: 100%;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.top { padding: 56px 24px 0; }
.brand { display: block; border-radius: 6px; }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.logo { display: block; width: 196px; height: auto; }

main {
  flex: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 16px 24px;
}

.part { min-height: 120px; display: flex; justify-content: center; width: 100%; }

.wait { margin: 48px 0 0; color: var(--ink-2); font-size: 15px; }

.note {
  width: min(100%, 400px);
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet);
}
.note h1 { margin: 0 0 8px; font-size: 22px; font-weight: 800; font-stretch: 95%; letter-spacing: -0.02em; line-height: 1.15; }
.note p { margin: 0; color: var(--ink-2); }
.note-act { margin-top: 20px; }
/* headings that are given the keyboard after a change, to be read; they need no ring */
h1[tabindex="-1"]:focus, h2[tabindex="-1"]:focus { outline: none; }

/* Clerk's parts mark what has the keyboard too faintly to see on these grounds: ours instead */
[class*="cl-"]:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }

a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.foot { padding: 0 24px 40px; text-align: center; }
.foot p { margin: 0; max-width: 420px; color: var(--ink-3); font-size: 14px; }

@media (max-height: 760px) {
  .top { padding-top: 32px; }
  main { padding-top: 28px; }
}

/* ---- Signed in: the way between the pages, under the logo. */

.top { display: flex; flex-direction: column; align-items: center; }
.nav { display: flex; gap: 28px; align-items: baseline; margin-top: 28px; font-size: 15px; }
.nav[hidden] { display: none; }
.nav a, .nav button {
  padding: 4px 0 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--ink-2);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}
.nav a:hover, .nav button:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

/* ---- Your products. */

.products { width: min(100%, 680px); }
.products .note { margin: 0 auto; }
.products .wait { text-align: center; }
.products-top h1 { margin: 0; font-size: 34px; font-weight: 800; font-stretch: 95%; letter-spacing: -0.03em; line-height: 1.05; }
.products-top .who { margin: 8px 0 0; color: var(--ink-2); overflow-wrap: anywhere; }

.group { margin-top: 36px; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 4px 12px; }
.group-head h2 { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.group-head .aside { color: var(--ink-3); font-size: 14px; font-variant-numeric: tabular-nums; }

.sheet {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet);
}
.sheet > li + li { border-top: 1px solid var(--line); }
.sheet .empty { margin: 0; padding: 24px 28px; color: var(--ink-2); }

.product { padding: 24px 28px 26px; }
.product-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.product h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -0.015em; }
.product-line { margin: 6px 0 0; color: var(--ink); }
.has { margin: 14px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 15px; }
.has li { position: relative; padding-left: 18px; }
.has li + li { margin-top: 4px; }
.has li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.product-words { margin: 16px 0 0; color: var(--ink-2); font-size: 15px; }

.product-buy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 20px; }
.buy-price { color: var(--ink-2); font-size: 15px; }
.buy-said { margin: 0; color: var(--warning); font-size: 15px; }
.buy-said:not(:empty) { margin-top: 12px; }
.loud {
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--fill-ink);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
.loud:hover { background: var(--fill-hover); }
.loud:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.loud:disabled { opacity: 0.6; cursor: default; }
.word { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin: 20px 0 0; padding: 14px 18px; border: 1px solid var(--accent); border-radius: 12px; color: var(--ink); }
.word p { margin: 0; }
.computer .computer-said { margin: 6px 0 0; color: var(--warning); font-size: 14px; }

.tag { flex: none; color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; }
.tag.lit { color: var(--accent); }

.computer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 28px; }
.computer h3 { margin: 0; font-size: 16px; font-weight: 500; overflow-wrap: anywhere; }
.computer p { margin: 3px 0 0; color: var(--ink-2); font-size: 14px; }
.computer-act { display: flex; flex: none; gap: 8px; }

.quiet {
  height: 36px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.quiet:hover { border-color: var(--ink-3); }
.quiet:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiet:disabled { opacity: 0.5; cursor: default; }
.quiet.warn { color: var(--warning); border-color: var(--warning); }

.under { margin: 12px 4px 0; color: var(--ink-3); font-size: 14px; }

@media (max-width: 520px) {
  .nav { gap: 22px; }
  .products-top h1 { font-size: 30px; }
  .product, .sheet .empty { padding-left: 20px; padding-right: 20px; }
  .product-head { flex-direction: column; gap: 4px; }
  .computer { flex-direction: column; align-items: flex-start; padding: 18px 20px; }
}
