/* MediaMax Software client area: the website's brand, one stylesheet, no framework. */

@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --paper-2: #ebe8e0;
  --white: #ffffff;
  --ink: #14161a;
  --ink-2: #3c4047;
  --ink-3: #5f636b;
  --line: #d9d5ca;
  --line-soft: #e6e2d8;
  --signal: #ff5b1f;
  --signal-deep: #b63a0c;
  --signal-soft: #ffe4d8;
  --ok: #1f7a4d;
  --ok-soft: #dcefe4;
  --wait: #8a5800;
  --wait-soft: #fbecc8;
  --bad: #a3261b;
  --bad-soft: #fbe1dd;

  --display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --fs-h1: clamp(1.9rem, 1.4rem + 2vw, 2.6rem);
  --fs-h2: 1.35rem;
  --fs-body: 1rem;
  --fs-small: 0.9rem;
  --fs-tiny: 0.8rem;

  --gutter: clamp(16px, 4vw, 32px);
  --wrap: 980px;
  --radius: 16px;
  --radius-s: 10px;
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.06), 0 10px 28px -14px rgba(20, 22, 26, 0.22);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--text);
  font-size: var(--fs-body); line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.1; }
h2 { font-size: var(--fs-h2); line-height: 1.2; }
h3 { font-size: 1.05rem; line-height: 1.3; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* the top bar */
.bar { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.bar .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand small { font-family: var(--text); font-weight: 500; color: var(--ink-3); font-size: var(--fs-small); }
.bar nav { margin-left: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.bar nav a { text-decoration: none; font-size: var(--fs-small); font-weight: 500; }
.bar nav a:hover { text-decoration: underline; }
.who { color: var(--ink-3); font-size: var(--fs-small); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar form { margin: 0; }
/* Back to the website, for anyone not signed in: the short words where the bar is narrow. */
.back-site { margin-left: auto; }
.back-site .short { display: none; }

main { padding: 36px 0 80px; }
.lead { color: var(--ink-2); font-size: 1.1rem; margin-top: 10px; max-width: 60ch; }
.muted { color: var(--ink-3); }
.small { font-size: var(--fs-small); }
.tiny { font-size: var(--fs-tiny); }
.stack > * + * { margin-top: 16px; }
.section { margin-top: 40px; }
.section > h2 { margin-bottom: 14px; }
.crumb { font-size: var(--fs-small); margin-bottom: 14px; display: inline-block; color: var(--ink-3); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; border: 1.5px solid var(--ink); background: var(--ink); color: var(--paper);
  font: 600 var(--fs-small)/1 var(--text); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #2a2d33; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--white); }
.btn-signal { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #ff7743; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: var(--fs-tiny); }
.btn-bad { background: transparent; color: var(--bad); border-color: var(--bad); }
.btn-bad:hover { background: var(--bad-soft); }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; font-size: var(--fs-small); font-weight: 500; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* cards and lists */
.card { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.folder-card { display: block; text-decoration: none; transition: transform .15s ease; }
.folder-card:hover { transform: translateY(-2px); }
.folder-card h2 { font-size: 1.2rem; }
.folder-card p { margin-top: 6px; }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.item { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; }
.item .icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); font-family: var(--display); font-weight: 700; font-size: var(--fs-tiny); letter-spacing: .04em; }
.item.demo .icon { background: var(--signal-soft); color: var(--signal-deep); }
.item.note .icon { background: var(--ok-soft); color: var(--ok); }
.item.link .icon { background: #e3e8f6; color: #2b3d7a; }
.item .meta { color: var(--ink-3); font-size: var(--fs-tiny); margin-top: 2px; }
.item .note-text { margin-top: 8px; white-space: pre-line; color: var(--ink-2); }
.item .row { margin-top: 12px; }
.earlier { margin-top: 12px; font-size: var(--fs-small); }
.earlier summary { cursor: pointer; color: var(--ink-3); }
.earlier ul { margin: 8px 0 0; padding-left: 18px; }
.earlier li { margin: 4px 0; }

.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: var(--fs-tiny); font-weight: 600; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
.pill-wait { background: var(--wait-soft); color: var(--wait); }
.pill-off { background: var(--paper-2); color: var(--ink-3); }

table { width: 100%; border-collapse: collapse; font-size: var(--fs-small); }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-weight: 600; color: var(--ink-3); font-size: var(--fs-tiny); text-transform: uppercase; letter-spacing: .05em; }
td form { margin: 0; }

/* forms */
label { display: block; font-weight: 600; font-size: var(--fs-small); margin-bottom: 6px; }
.hint { font-weight: 400; color: var(--ink-3); font-size: var(--fs-tiny); }
input[type=text], input[type=email], input[type=url], textarea, select, input[type=file] {
  width: 100%; font: inherit; font-size: 16px; padding: 10px 12px; border-radius: var(--radius-s);
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink);
}
input[type=file] { padding: 9px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
.field + .field { margin-top: 16px; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; border: 0; padding: 0; margin: 0 0 18px; }
.choices legend { font-weight: 600; font-size: var(--fs-small); margin-bottom: 8px; padding: 0; }
.choices label { margin: 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 500; }
.choices input { accent-color: var(--ink); }
.choices label:has(input:checked) { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.code-input { font-family: var(--mono); font-size: 1.6rem !important; letter-spacing: .3em; text-align: center; max-width: 14rem; }

.note-ok, .note-bad { border-radius: var(--radius-s); padding: 12px 16px; font-size: var(--fs-small); }
.note-ok { background: var(--ok-soft); color: #134c30; }
.note-bad { background: var(--bad-soft); color: #6e170f; }
.copybox { background: var(--paper); border: 1.5px dashed var(--line); border-radius: var(--radius-s); padding: 14px; font-size: var(--fs-small); white-space: pre-line; }
.progress { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress span { display: block; height: 100%; width: 0; background: var(--signal); transition: width .2s ease; }

.hero { min-height: calc(100vh - 65px); display: grid; align-items: center; }
.hero .card { max-width: 30rem; }
.qr { width: 220px; height: 220px; image-rendering: pixelated; border: 1px solid var(--line-soft); border-radius: var(--radius-s); }
.secret { font-family: var(--mono); font-size: 1rem; letter-spacing: .08em; word-break: break-all; }

details.fold > summary { cursor: pointer; font-weight: 600; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: "+ "; color: var(--ink-3); }
details.fold[open] > summary::before { content: "− "; }

.foot { border-top: 1px solid var(--line); padding: 20px 0 32px; color: var(--ink-3); font-size: var(--fs-tiny); }
.foot a { color: inherit; }

/* small helpers (the page's security policy allows no style="" in the markup) */
[hidden] { display: none !important; }
.narrow { max-width: 36rem; }
.mt-s { margin-top: 12px; }
.mt-l { margin-top: 20px; }
.mb-l { margin-bottom: 18px; }
.pre { white-space: pre-line; }
.spread { justify-content: space-between; align-items: flex-start; }
.spread > div { flex: 1 1 22rem; }

@media (max-width: 640px) {
  .bar .wrap { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
  .bar nav { margin-left: 0; width: 100%; justify-content: flex-start; }
  .brand small { display: none; }
  .back-site .long { display: none; }
  .back-site .short { display: inline; }
  .who { max-width: 100%; }
  .card { padding: 18px; }
  .item { grid-template-columns: 40px 1fr; gap: 12px; }
  .item .icon { width: 40px; height: 40px; }
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  tr { border-bottom: 1px solid var(--line-soft); padding: 8px 0; }
  td { border: 0; padding: 4px 0; }
}
