/* awaitinginput: preview site. Same tokens as the public placeholder
   (site/index.html): the page is the garment, the mark is the thread. */
:root {
  --garment: #0a0a0a;
  --ink: #ededea;
  --dim: #7b7b76;
  --thread: #ededea;
  --line: #262624;
  --green: #00ff41;
  --red: #ff2b2b;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--garment); color: var(--ink);
  font: 400 clamp(.8rem, 3.3vw, .95rem)/1.55 var(--mono);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .2em; }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; padding: 0; }
pre { margin: 0; font: inherit; white-space: pre; overflow-x: auto; }
p { margin: 0; }

.screen {
  min-height: 100%; display: grid; grid-template-rows: auto 1fr auto;
  padding-inline: 16px; max-width: 72rem; margin: 0 auto;
}
main { padding-block: 8vh 6vh; width: 100%; }
body.page-login main { align-self: center; justify-self: center; width: min(100%, 34rem); padding-block: 0 10vh; }

/* Header: mark left, zsh-style right prompt (user@host) far right */
header.brand {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1ch;
  padding-block: 1.4rem 0; font-size: clamp(1.1rem, 5vw, 1.6rem); line-height: 1; color: var(--dim);
}
header.brand .home { color: var(--thread); display: block; }
header.brand .mark { display: block; height: .845em; width: auto; overflow: visible; position: relative; top: .0525em; }
header.brand .rprompt { display: flex; gap: 1.5ch; align-items: baseline; white-space: nowrap; font-size: .69em; }
header.brand .rprompt b { font-weight: 400; color: var(--ink); }
header.brand form { margin: 0; display: inline; }
header.brand button {
  font: inherit; color: var(--dim); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: .2em;
}
header.brand button:hover, header.brand button:focus-visible { color: var(--ink); }

footer { padding-block: 2rem 1.4rem; color: var(--dim); font-size: .8rem; display: flex; gap: 2ch; flex-wrap: wrap; }

/* Terminal session */
.term { display: grid; gap: .9rem; }
.cmd { display: flex; align-items: center; gap: .55em; color: var(--ink); }
.cmd .chev { height: .8em; width: auto; color: var(--thread); flex: none; overflow: visible; }
.cmd span:empty::after {
  content: ""; display: inline-block; width: .9em; height: .16em; background: var(--thread);
  vertical-align: baseline; animation: blink 1.06s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.term > .cmd:not(:first-child) { margin-top: 1.4rem; }

/* Login: login: / password: prompts as one terminal form */
form.login { display: grid; gap: .1rem; }
form.login label { display: flex; gap: 1ch; align-items: baseline; }
form.login label span { flex: none; }
form.login input {
  flex: 1; min-width: 0; font: inherit; color: var(--ink); caret-color: var(--thread);
  background: transparent; border: 0; padding: 0; outline: none; border-radius: 0;
}
form.login input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s; }
.err { color: var(--ink); }

/* Drop listing */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 2rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
}
.card { display: grid; gap: .5rem; text-decoration: none; }
.card .garment { width: 100%; height: auto; aspect-ratio: 1; display: block; background: #0f0f0e; border: 1px solid var(--line); transition: border-color .2s; }
.card:hover .garment, .card:focus-visible .garment { border-color: var(--dim); }
.card .row { display: flex; justify-content: space-between; gap: 1ch; }
.card:hover .name, .card:focus-visible .name { text-decoration: underline; }

/* Product */
.product { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 52rem) { .product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.product figure { margin: 0; }
.product .garment { width: 100%; height: auto; aspect-ratio: 1; display: block; background: #0f0f0e; border: 1px solid var(--line); }
.info { display: grid; gap: 1.1rem; align-content: start; }
.info h1 { font-size: clamp(1.45rem, 5vw, 2.2rem); font-weight: 300; margin: 0; letter-spacing: -.01em; }
.details { color: var(--dim); display: grid; grid-template-columns: max-content 1fr; gap: 0 2ch; margin: 0; }
.details dd { margin: 0; }
.flags { display: grid; gap: .5rem; }
.flag { display: grid; grid-template-columns: 10ch 1fr; gap: 1ch; align-items: baseline; }
.opts { display: flex; flex-wrap: wrap; gap: .2rem 1.4ch; }
.opts a { color: var(--dim); text-decoration: none; display: inline-flex; align-items: center; gap: .5ch; }
.opts a:hover, .opts a:focus-visible { color: var(--ink); text-decoration: underline; }
.opts a.on { color: var(--ink); }
.opts a.on::before { content: "["; }
.opts a.on::after { content: "]"; }
.opts a.out { text-decoration: line-through; text-decoration-color: var(--dim); }
.sw { display: inline-block; width: .7em; height: .7em; border: 1px solid var(--dim); }
.sw-white { background: #ededea; }
.sw-black { background: #0a0a0a; }
.sw-green { background: var(--green); border-color: var(--green); }
.sw-red { background: var(--red); border-color: var(--red); }
.buy { display: flex; gap: 2ch; align-items: baseline; flex-wrap: wrap; }
.buy .price { font-size: 1.35em; }
.avail-instock, .avail-mto { color: var(--green); }
.avail-low { color: var(--ink); }
.avail-soldout, .avail-unavailable { color: var(--dim); }
.sku { font-size: .8em; }
form.add { display: flex; gap: 2ch; align-items: baseline; flex-wrap: wrap; margin: 0; }
form.add button {
  font: inherit; color: var(--garment); background: var(--ink); border: 0; padding: .55em 1.2em; cursor: pointer;
}
form.add button:disabled { background: var(--line); color: var(--dim); cursor: not-allowed; }

@media (prefers-reduced-motion: reduce) { .cmd span:empty::after { animation: none; } }
