/*
 * lowbrace.com. One page, read at rest by someone deciding whether a product is worth
 * their time. The rules it follows are in ../DESIGN.md; change that first.
 */
:root{
  --ground:#ebeae3; --plate:#f4f3ee; --ink:#23271f; --muted:#666b5e; --rule:#c9c9bd; --rule-strong:#23271f;
  --accent:#1f4e79;
  --rehit:#d93a26; --ache:#7a4f9e; --voice:#4b6b5e;
  --display:"Archivo","Arial Narrow",Arial,sans-serif;
  --body:"Karla","Segoe UI",system-ui,sans-serif;
  color-scheme:light dark;
}
@media (prefers-color-scheme:dark){
  :root{
    --ground:#1b1d18; --plate:#23261f; --ink:#ecebe1; --muted:#a3a698; --rule:#373b31; --rule-strong:#ecebe1;
    --accent:#7fb0dd;
    --rehit:#ff5a45; --ache:#b48be0; --voice:#8fb8a5;
  }
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--ground);color:var(--ink);font:400 17px/1.55 var(--body);-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration-color:color-mix(in srgb,currentColor 35%,transparent);text-underline-offset:3px}
a:hover{text-decoration-color:currentColor}
a:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
h1,h2,h3{font-family:var(--display);margin:0;text-wrap:balance}
.wrap{max-width:1140px;margin:0 auto;padding-inline:clamp(16px,4vw,44px)}

header.site{display:flex;align-items:center;justify-content:space-between;gap:16px 32px;flex-wrap:wrap;padding-block:22px;border-bottom:2px solid var(--rule-strong)}
.wordmark{font-family:var(--display);font-weight:900;font-stretch:112%;font-size:22px;letter-spacing:-.01em;text-transform:uppercase;text-decoration:none;line-height:1;display:inline-flex;align-items:center;gap:10px}
.wordmark .mark{width:44px;height:44px;flex:none;margin-left:-6px}
.wordmark small{display:block;font:700 9.5px/1 var(--display);font-stretch:80%;letter-spacing:.24em;color:var(--muted);margin-top:5px}
nav.site{display:flex;gap:26px;font:500 14px/1 var(--body);letter-spacing:.02em;color:var(--muted)}
nav.site a{text-decoration:none}
nav.site a:hover{color:var(--ink)}

.hero{padding-block:clamp(44px,8vw,96px) clamp(36px,6vw,64px);display:grid;grid-template-columns:minmax(0,8fr) minmax(0,4fr);gap:28px 48px;align-items:end}
.hero h1{font-size:clamp(42px,7.6vw,96px);line-height:.92;font-weight:800;font-stretch:88%;letter-spacing:-.025em;text-transform:uppercase}
.hero h1 span{display:block;font-weight:500;font-stretch:100%;text-transform:none;letter-spacing:-.02em;font-size:.4em;line-height:1.15;margin-top:.5em;max-width:26ch;color:var(--muted)}
.definition{max-width:34ch;font-size:16px;line-height:1.5;color:var(--muted);border-top:2px solid var(--rule-strong);padding-top:14px;margin:0}
.definition b{color:var(--ink);font-weight:700}

.shelf h2{font-size:clamp(22px,2.6vw,30px);font-weight:800;font-stretch:88%;text-transform:uppercase;letter-spacing:.02em;border-bottom:2px solid var(--rule-strong);padding-bottom:10px;margin-bottom:22px}
.crates{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:18px;align-items:stretch}
/* Crates are not links yet: the product sites are still in progress. The hover colour
   stays, so the family colours are visible; when a crate becomes an <a>, .foot b is the link. */
.crate{--c:var(--accent);background:var(--plate);border:1.5px solid var(--rule-strong);padding:22px 22px 20px;display:grid;gap:14px;position:relative;text-decoration:none;color:inherit;transition:border-color .3s cubic-bezier(.2,.7,.2,1)}
.crate:hover{border-color:var(--c)}
.crate:hover .st.now,.crate:hover .st.dev{color:var(--c)}
.crate:hover .foot b{color:var(--c);text-decoration:underline;text-underline-offset:3px}
/* The shelf: Rehit and the voice tool stacked on the left, AcheMap the full height of both
   on the right (a phone is tall), the bench across the bottom. */
.crate.big{grid-column:1/8;grid-row:1}
.crate.voice{grid-column:1/8;grid-row:2}
.crate.mid{grid-column:8/13;grid-row:1/3;grid-template-rows:auto auto minmax(0,1fr) auto}
.crate.bench{grid-column:1/13;grid-row:3}
.crate .row{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.crate h3{font-size:clamp(28px,3.6vw,46px);font-weight:900;font-stretch:80%;text-transform:uppercase;letter-spacing:.01em;line-height:.95}
.crate.big h3{font-size:clamp(40px,6vw,80px)}
.crate .st{font:700 12px/1 var(--display);font-stretch:82%;letter-spacing:.03em;border:1.5px solid currentColor;padding:6px 8px 5px;white-space:nowrap;transition:color .3s}
.crate .st.now{color:var(--accent)}
.crate .st.dev{color:var(--ink)}
.crate .st.poc{color:var(--muted);border-style:dashed}
.crate p{margin:0;max-width:44ch}
.crate.big p{font-size:19px;max-width:40ch}
.crate .foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;border-top:1px solid var(--rule);padding-top:12px;font-size:13.5px;color:var(--muted);align-self:end}
.crate .foot b{color:var(--accent);font-weight:700;transition:color .3s}
.crate.bench{background:transparent;border-style:dashed;border-width:1.5px;align-content:center;color:var(--muted)}
.crate.bench h3{font-size:clamp(20px,2.4vw,28px);color:var(--muted);font-weight:800}
.crate.bench{grid-template-columns:auto 1fr;align-items:baseline;column-gap:32px}
.crate.bench ul{margin:0;padding:0;list-style:none;font-size:15px;display:flex;flex-wrap:wrap;gap:6px 28px}
.crate.bench li::before{content:"";display:inline-block;width:6px;height:6px;border:1px solid var(--muted);border-radius:50%;margin-right:10px;position:relative;top:-2px}
.crate.bench:hover{border-color:var(--rule-strong)}

/* The captures. Real recordings of the real products; see ../captures/README.md. */
.clip{display:block;width:100%;height:auto;aspect-ratio:16/10;background:#0b0d10;border:1px solid var(--rule)}
/* The phone, whole, centred under the text, as tall as the crate allows. */
.fig{display:block;height:100%;width:auto;max-width:100%;justify-self:center;aspect-ratio:590/1278;border-radius:22px;border:1px solid var(--rule);background:var(--plate);object-fit:cover}

.about{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:24px 64px;padding-block:clamp(56px,8vw,96px) 80px;border-top:2px solid var(--rule-strong);margin-top:56px}
.about h2{font-size:clamp(30px,4vw,48px);font-weight:800;font-stretch:88%;text-transform:uppercase;line-height:.95;letter-spacing:-.01em}
.about p{margin:0 0 14px;max-width:58ch}

footer.site{border-top:2px solid var(--rule-strong);padding-block:20px 56px;display:flex;justify-content:space-between;gap:12px 32px;flex-wrap:wrap;font-size:14px;color:var(--muted)}
footer.site .mail{color:var(--ink);font-weight:500;text-decoration:none}
footer.site .mail:hover{text-decoration:underline}

@media (max-width:840px){
  .hero,.about{grid-template-columns:1fr}
  .definition{border-top-width:1px}
  .crate.big,.crate.mid,.crate.voice,.crate.bench{grid-column:1/13;grid-row:auto}
  .crate.bench{grid-template-columns:1fr}
  .crate.bench ul{flex-direction:column;gap:6px}
  .fig{height:auto;width:min(100%,250px)}
  nav.site{gap:16px}
}
@media (prefers-reduced-motion:reduce){
  .crate,.crate .st,.crate .foot b{transition:none}
}
