/* Lowkey Tea LLC. Palette and shapes follow the Scylla's Band voice gallery. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-vietnamese.woff2") format("woff2");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;

  /* Brand stripe: identical in both themes. */
  --red: #c83b2d;
  --coral: #ed6241;
  --orange: #f29a59;
  --apricot: #ffc375;
  --seafoam: #9bcfc3;
  --teal: #0c7d86;

  --ink: #113452;
  --muted: #4f5f6e;
  --paper: #fffdf8;
  --wash: #fff7e8;
  --card: #fffdf8;
  --cream: #f2dfb2;
  --line: #173b59;
  --line-soft: rgba(17, 52, 82, .16);
  --link: #b8352a;
  --link-hover: #0a6e76;
  --kicker: #0a6e76;
  --title-shadow: #f2dfb2;
  --shadow: 6px 7px 0 rgba(17, 52, 82, .09);
  --shadow-hard: 5px 5px 0 #113452;
  --bar: #ed6241;
  --bar-track: rgba(17, 52, 82, .08);
  --term-bg: #113452;
  --term-ink: #fff7e8;
  --term-muted: #9bcfc3;
  --art-fill: #fffdf8;
  --art-ink: #113452;
  --art-tea: #113452;
  --art-shadow: #f2dfb2;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --ink: #fff3dc;
    --muted: #b9c6d2;
    --paper: #0c1f33;
    --wash: #10283f;
    --card: #12304b;
    --cream: #2a4664;
    --line: #f2dfb2;
    --line-soft: rgba(242, 223, 178, .18);
    --link: #ff8f74;
    --link-hover: #7fd6cf;
    --kicker: #7fd6cf;
    --title-shadow: #c83b2d;
    --shadow: 6px 7px 0 rgba(0, 0, 0, .28);
    --shadow-hard: 5px 5px 0 #c83b2d;
    --bar: #ff8f74;
    --bar-track: rgba(242, 223, 178, .1);
    --term-bg: #081726;
    --term-ink: #fff3dc;
    --term-muted: #7fd6cf;
    --art-fill: #fff7e8;
    --art-ink: #f2dfb2;
    --art-tea: #113452;
    --art-shadow: #081726;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(180deg, var(--wash) 0, var(--paper) 34rem) no-repeat, var(--paper);
  font: 400 17px/1.6 var(--font);
  font-optical-sizing: auto;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1.5px; text-underline-offset: .18em; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { :focus-visible { outline-color: var(--apricot); } }
::selection { background: var(--apricot); color: #113452; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 50; padding: 10px 14px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
main:focus { outline: none; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--wash) 88%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 34px; height: 34px; color: var(--ink); }
.brand-name { font-size: 1.28rem; font-weight: 800; letter-spacing: -.035em; font-stretch: 92%; }
.site-header nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.site-header nav a {
  padding: 6px 13px; border: 1.5px solid var(--line-soft); border-radius: 999px;
  color: var(--ink); background: var(--card); font-size: .9rem; font-weight: 700; text-decoration: none;
}
.site-header nav a:hover { border-color: var(--line); color: var(--link); }

/* Shared pieces */
.stripe {
  width: min(460px, 78vw); height: 14px; margin-bottom: 30px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 20%, var(--coral) 20% 40%, var(--orange) 40% 60%,
    var(--apricot) 60% 76%, var(--seafoam) 76% 90%, var(--teal) 90% 100%);
  box-shadow: 4px 4px 0 var(--title-shadow);
}
.eyebrow {
  margin: 0 0 14px; color: var(--link); font-size: .9rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase;
}
.button {
  display: inline-flex; align-items: center; gap: .5em; padding: 12px 20px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-weight: 800; text-decoration: none; box-shadow: var(--shadow-hard);
  transition: transform .15s ease, box-shadow .15s ease;
}
@media (prefers-color-scheme: light) { .button { box-shadow: 5px 5px 0 var(--apricot); } }
.button:hover { color: var(--paper); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--apricot); }
@media (prefers-color-scheme: dark) { .button:hover { box-shadow: 7px 7px 0 var(--red); } }
.button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--apricot); }
.text-link { font-weight: 800; }

h1, h2, h3 { text-wrap: balance; }
.section-head { margin: 0 0 28px; }
.section-head h2 {
  display: inline-block; margin: 0; border-bottom: 6px solid var(--apricot);
  font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; line-height: 1.05; letter-spacing: -.04em;
}
.section-head p { max-width: 640px; margin: 12px 0 0; color: var(--muted); font-size: 1.08rem; }

/* Hero */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px;
  padding: 72px 0 84px;
}
.hero h1 {
  margin: 0; font-size: clamp(4rem, 13vw, 9.6rem); font-weight: 800; font-stretch: 88%;
  line-height: .84; letter-spacing: -.055em; text-shadow: 4px 4px 0 var(--title-shadow);
}
.lede { max-width: 34rem; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.32rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 32px; }

.hero-art { margin: 0; justify-self: center; width: min(100%, 440px); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }
.art-shadow { fill: var(--art-shadow); stroke: var(--art-shadow); }
.art-saucer { fill: var(--art-fill); stroke: var(--art-ink); stroke-width: 3.5; }
.art-handle-outer { fill: none; stroke: var(--art-ink); stroke-width: 24; stroke-linecap: round; }
.art-handle-inner { fill: none; stroke: var(--art-fill); stroke-width: 15; stroke-linecap: round; }
.art-body { fill: var(--art-fill); }
.art-line { fill: none; stroke: var(--art-ink); stroke-width: 3.5; }
.art-outline { fill: none; stroke: var(--art-ink); stroke-width: 4; }
.art-rim { fill: var(--art-tea); stroke: var(--art-ink); stroke-width: 4; }
.steam rect { stroke: var(--art-ink); stroke-width: 3.5; transform-box: fill-box; transform-origin: 50% 100%; }

@media (prefers-reduced-motion: no-preference) {
  .steam rect { animation: steam 2.8s ease-in-out infinite alternate; }
  .steam rect:nth-child(2) { animation-delay: -.55s; }
  .steam rect:nth-child(3) { animation-delay: -1.1s; }
  .steam rect:nth-child(4) { animation-delay: -1.65s; }
  .steam rect:nth-child(5) { animation-delay: -2.2s; }
  @keyframes steam { from { transform: scaleY(.62); } to { transform: scaleY(1); } }
}

/* Work */
.work { padding: 24px 0 56px; scroll-margin-top: 80px; }
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px 48px;
  padding: clamp(24px, 4vw, 44px);
  border: 1.5px solid var(--line); border-top: 8px solid var(--red); border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow);
}
.kicker { margin: 0 0 8px; color: var(--kicker); font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.feature h3 {
  margin: 0; font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 800; font-stretch: 90%;
  line-height: .95; letter-spacing: -.05em; text-shadow: 3px 3px 0 var(--title-shadow);
}
.feature-lede { margin: 18px 0 0; font-size: 1.25rem; font-weight: 600; line-height: 1.45; }
.feature-main > p:not(.kicker):not(.feature-lede) { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.chips li {
  padding: 6px 13px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); font-size: .95rem;
}
.chips strong { color: var(--link); font-variant-numeric: tabular-nums; }
.feature-links { display: grid; justify-items: start; gap: 18px; margin-top: 28px; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; font-weight: 800; }
.platforms .size { margin-left: 4px; color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }

.feature-side { display: grid; gap: 24px; align-content: start; }
.speed { margin: 0; }
.speed figcaption { display: grid; gap: 2px; margin-bottom: 14px; }
.speed-title { font-weight: 800; font-size: 1.05rem; }
.speed-note, .speed-source { color: var(--muted); font-size: .86rem; }
.speed-source { margin: 10px 0 0; }
.speed-list { margin: 0; padding: 0; list-style: none; }
.speed-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "device num" "bundle num" "bar bar";
  column-gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-soft);
}
.speed-list li::after {
  content: ""; grid-area: bar; height: 10px; margin-top: 8px; border-radius: 4px;
  background: linear-gradient(var(--bar), var(--bar)) 0 0 / max(6px, calc(var(--v) / 220 * 100%)) 100% no-repeat, var(--bar-track);
}
.speed-list li:nth-child(1) { --v: 220; }
.speed-list li:nth-child(2) { --v: 92; }
.speed-list li:nth-child(3) { --v: 34; }
.speed-list li:nth-child(4) { --v: 27; }
.speed-list .device { grid-area: device; font-weight: 700; font-size: .98rem; }
.speed-list .bundle { grid-area: bundle; color: var(--muted); font-size: .88rem; }
.speed-list .num {
  grid-area: num; align-self: center; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.terminal {
  overflow: hidden; border: 1.5px solid var(--line); border-radius: 14px;
  background: var(--term-bg); color: var(--term-ink); box-shadow: 5px 5px 0 var(--apricot);
}
@media (prefers-color-scheme: dark) { .terminal { box-shadow: 5px 5px 0 var(--red); } }
.terminal-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid rgba(255, 247, 232, .14); }
.terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.terminal-bar span:nth-child(2) { background: var(--apricot); }
.terminal-bar span:nth-child(3) { background: var(--seafoam); }
.terminal pre { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font: 500 .84rem/1.7 var(--mono); }
.terminal .prompt { color: var(--term-muted); user-select: none; }

.platforms {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0;
}
.platforms div {
  padding: 16px 18px; border: 1.5px solid var(--line-soft); border-radius: 14px; background: var(--paper);
  border-top: 5px solid var(--orange);
}
.platforms div:nth-child(2) { border-top-color: var(--teal); }
.platforms div:nth-child(3) { border-top-color: var(--seafoam); }
.platforms div:nth-child(4) { border-top-color: var(--apricot); }
.platforms dt { font-weight: 800; font-size: 1.05rem; }
.platforms dd { margin: 4px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }
.feature-foot {
  grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line-soft);
  color: var(--muted); font-size: .95rem;
}

/* About */
.about { padding: 56px 0; scroll-margin-top: 80px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: start; }
.about-lede { margin: 0 0 18px; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
.about-copy p:not(.about-lede) { max-width: 38rem; color: var(--muted); font-size: 1.06rem; }
.facts {
  margin: 0; padding: 8px 24px; border: 1.5px solid var(--line); border-top: 6px solid var(--teal);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 12px; padding: 13px 0; }
.facts div + div { border-top: 1px solid var(--line-soft); }
.facts dt { color: var(--muted); font-size: .88rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* Contact */
.contact { padding: 40px 0 88px; scroll-margin-top: 80px; }
.contact-card {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px;
  padding: clamp(24px, 4vw, 44px);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background:
    linear-gradient(90deg, var(--red) 0 20%, var(--coral) 20% 40%, var(--orange) 40% 60%,
      var(--apricot) 60% 76%, var(--seafoam) 76% 90%, var(--teal) 90% 100%) top / 100% 8px no-repeat,
    var(--wash);
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; }
.contact-card p { max-width: 36rem; margin: 0; color: var(--muted); }
.email {
  padding: 14px 24px; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--card); color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem); font-weight: 800; letter-spacing: -.02em; text-decoration: none;
  box-shadow: var(--shadow-hard); transition: transform .15s ease, box-shadow .15s ease;
}
.email:hover { color: var(--link); transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
@media (prefers-color-scheme: dark) { .email:hover { box-shadow: 7px 7px 0 var(--red); } }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 26px 34px; }
.footer-row p { margin: 0; color: var(--muted); font-size: .92rem; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-row nav a { font-size: .92rem; font-weight: 700; }

/* Document pages: privacy, support, 404 */
.doc { padding: 64px 0 96px; }
.doc-head { max-width: 48rem; }
.doc-head h1 {
  margin: 0; font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 800; font-stretch: 90%;
  line-height: .92; letter-spacing: -.05em; text-shadow: 4px 4px 0 var(--title-shadow);
}
.doc-head .lede { margin-top: 22px; }
.updated { margin: 18px 0 0; color: var(--muted); font-size: .92rem; }
.doc-layout { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: 56px; margin-top: 56px; align-items: start; }
.toc { position: sticky; top: 88px; }
.toc p { margin: 0 0 10px; color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.toc a { color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; }
.toc a:hover { color: var(--link); text-decoration: underline; }
.prose h2 {
  margin: 48px 0 12px; font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.15;
  scroll-margin-top: 88px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.15rem; font-weight: 800; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--ink); }
.prose ul { padding-left: 1.2em; }
.prose li + li { margin-top: 6px; }
.summary {
  margin: 0 0 40px; padding: 22px 26px; border: 1.5px solid var(--line); border-top: 6px solid var(--teal);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.summary h2 { margin: 0 0 10px; font-size: 1.25rem; }
.summary ul { margin: 0; }
.summary li { color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 48px; }
.card {
  padding: 24px 26px; border: 1.5px solid var(--line); border-top: 6px solid var(--red);
  border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow);
}
.card:nth-child(2) { border-top-color: var(--orange); }
.card:nth-child(3) { border-top-color: var(--teal); }
.card:nth-child(4) { border-top-color: var(--seafoam); }
.card h2 { margin: 0 0 8px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); }
.card p + p { margin-top: 10px; }
.card ul { margin: 10px 0 0; padding-left: 1.2em; color: var(--muted); }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding: 52px 0 64px; gap: 28px; }
  .hero-art { width: min(78%, 380px); justify-self: start; order: -1; }
  .feature { grid-template-columns: 1fr; }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .doc-layout { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; padding: 18px 20px; border: 1.5px solid var(--line-soft); border-radius: 14px; background: var(--card); }
  .toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 16px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .site-header { position: static; }
  .site-header nav { justify-content: flex-start; }
  .hero-art { width: min(64%, 300px); }
  .contact-card { grid-template-columns: 1fr; }
  .email { justify-self: start; }
  .cards { grid-template-columns: 1fr; }
  .work, .about, .contact { scroll-margin-top: 16px; }
  .toc { position: static; }
}
@media (max-width: 480px) {
  .platforms { grid-template-columns: 1fr; }
  .facts { padding: 4px 18px; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .email { font-size: 1.05rem; padding: 12px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button, .email { transition: none; }
}

@media print {
  .site-header nav, .skip, .hero-art, .stripe { display: none; }
  body { background: #fff; color: #000; }
  .feature, .facts, .contact-card, .summary, .card { box-shadow: none; }
}

.prose code { padding: 1px 6px; border-radius: 6px; background: var(--bar-track); color: var(--ink); font: 500 .9em var(--mono); }
.site-header nav a[aria-current="page"] { border-color: var(--line); background: var(--wash); }
.footer-row nav a[aria-current="page"] { color: var(--ink); text-decoration: none; }

.table-wrap { overflow-x: auto; margin: 16px 0; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
.prose table { width: 100%; min-width: 34rem; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: 12px 14px; text-align: left; vertical-align: top; }
.prose thead th { color: var(--ink); font-size: .82rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1.5px solid var(--line); }
.prose tbody td { color: var(--muted); }
.prose tbody tr + tr td { border-top: 1px solid var(--line-soft); }
