@font-face {
  font-family: Inter;
  src: url(/ui/inter/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans SC sample";
  src: url(/media/chinese-samples.ttf) format("truetype");
  font-display: swap;
  unicode-range: U+3002, U+4E00, U+4E4B, U+4EE5, U+4EEC, U+516C, U+53BB, U+56ED, U+6211, U+6563, U+6B65, U+8CAB, U+8D2F;
}

/* Tokens. Black and white with greys between; the only colour is in the apps' own screens
   and in Huigan's tone colours. */
:root {
  --sans: Inter, "Noto Sans SC sample", -apple-system, BlinkMacSystemFont, sans-serif;
  --gutter: clamp(1rem, 5vw, 5rem);
  --max: 76rem;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  font: 16px/1.5 var(--sans);
  font-feature-settings: "cv11", "ss03";
  -webkit-text-size-adjust: 100%;
}
.dark,
.ink {
  --bg: #0e0e0d;
  --fg: #f4f3ef;
  --muted: #a8a7a0;
  --faint: #6f6e69;
  --line: #2c2c29;
  --surface: #171716;
  --surface-2: #20201e;
  --button-bg: #f4f3ef;
  --button-fg: #0e0e0d;
  --art: #ffffff;
  color-scheme: dark;
}
.light,
.paper {
  --bg: #f6f5f1;
  --fg: #121211;
  --muted: #5b5a55;
  --faint: #8b8a83;
  --line: #d9d7cf;
  --surface: #ffffff;
  --surface-2: #ecebe5;
  --button-bg: #121211;
  --button-fg: #f6f5f1;
  --art: #000000;
  color-scheme: light;
}
.light .paper {
  --bg: #ebeae4;
  --surface-2: #e2e1da;
}
body,
.paper,
.ink {
  background: var(--bg);
  color: var(--fg);
}
* {
  box-sizing: border-box;
}
body,
h1,
h2,
h3,
p,
figure,
ol,
ul,
dl,
dd,
blockquote {
  margin: 0;
}
ol,
ul {
  padding: 0;
}
[role="list"],
ol {
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
.num,
.price-card dd,
.step {
  font-variant-numeric: lining-nums tabular-nums;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.frame {
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.7rem 1rem;
  background: var(--fg);
  color: var(--bg);
  border-radius: 8px;
}
.skip:focus {
  top: 0.5rem;
}

/* Type */
h1,
h2,
h3 {
  font-weight: 560;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
  line-height: 1;
  letter-spacing: -0.05em;
  max-width: 13ch;
}
h2 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
  max-width: 20ch;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
p {
  max-width: 54ch;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  margin-top: 1.5rem;
}
small {
  display: block;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted);
}
.small-h {
  max-width: none;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
}
[lang="zh-Hans"],
[lang="zh-Hant"] {
  letter-spacing: 0;
}

/* Header and footer */
header.site {
  position: relative;
  z-index: 3;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 44px;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.wordmark .glyph {
  stroke-width: 2.1px;
  overflow: visible;
  margin-right: 0.1rem;
  translate: 0 0.04em;
}
.study .wordmark .glyph {
  stroke-width: 1.6px;
}
.study .wordmark {
  gap: 0.45rem;
}
.wordmark.small {
  font-size: 1rem;
}
header.site nav {
  display: flex;
  gap: clamp(0.25rem, 2vw, 1.75rem);
}
header.site nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: color 150ms var(--ease);
}
header.site nav a[aria-current="page"] {
  color: var(--fg);
}
footer.site {
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
}
.foot {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 2rem;
  align-items: start;
}
.foot p {
  font-size: 0.9375rem;
  margin-top: 0.5rem;
  max-width: 36ch;
}
.foot nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0 2rem;
}
.foot nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.colophon {
  opacity: 0.7;
  margin-top: 0.8rem;
}
.dark .colophon {
  filter: invert(1);
}

/* Links and buttons */
@media (hover: hover) {
  header.site nav a:hover,
  .foot nav a:hover {
    color: var(--fg);
  }
  .text-link:hover,
  .back:hover,
  .prose p a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2rem;
}
.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid var(--button-bg);
  background: var(--button-bg);
  color: var(--button-fg);
  font: inherit;
  font-weight: 560;
  font-size: 1rem;
  cursor: pointer;
  transition:
    transform 120ms var(--ease),
    opacity 150ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.button.quiet {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
button.small {
  min-height: 36px;
  padding: 0.35rem 0.9rem;
  font-size: 0.875rem;
}
.button:active,
button:active {
  transform: scale(0.97);
}
@media (hover: hover) {
  .button:hover,
  button:hover {
    opacity: 0.86;
  }
  .button.quiet:hover {
    opacity: 1;
    border-color: var(--fg);
  }
}
.text-link,
.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 520;
}
.back {
  display: flex;
  width: max-content;
  color: var(--muted);
  margin-bottom: 1rem;
}
.text-link {
  margin-top: 1.5rem;
}

/* Sections */
.section {
  padding-block: clamp(4rem, 9vw, 8rem);
}
.section.tight {
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
}
.head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 3rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.head p {
  justify-self: end;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}
.split > div > p {
  margin-top: 1.25rem;
}
.split > div > .button {
  margin-top: 2rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7.5rem);
  isolation: isolate;
}
.hero.slim {
  padding-block: clamp(2rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
}
.hero.slim h1 {
  max-width: 18ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}
.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.hero-copy {
  position: relative;
}
/* Home. The 72 thread is the hero art and has its own column: it never runs behind copy
   or screens. The family follows straight after, with each app's real mark and screen. */
.home {
  padding-block: clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
}
.home-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
.home h1 {
  max-width: 11ch;
  font-size: clamp(2.4rem, 4.6vw, 4.1rem);
  line-height: 1.02;
}
.home .lede {
  max-width: 34ch;
}
.thread {
  display: block;
  width: 100%;
  max-width: 36rem;
  height: auto;
  color: var(--fg);
  stroke-width: 0.62;
  overflow: visible;
}
.thread path {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .thread path {
    animation: draw 2.4s cubic-bezier(0.55, 0, 0.15, 1) 0.1s both;
  }
  @keyframes draw {
    from {
      stroke-dashoffset: 1;
    }
  }
}

/* The family shelf */
.shelf {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 1rem;
}
.tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1.1rem 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 180ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.tile-id {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8125rem;
  line-height: 1.25;
  color: var(--muted);
}
.tile-id b {
  display: block;
  color: var(--fg);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.tile-id .glyph {
  flex: none;
  stroke-width: 1.5px;
  transition: transform 300ms var(--ease);
}
.shot {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  margin-top: 1.1rem;
  overflow: hidden;
  border-radius: 9px;
}
.shot.on-light {
  background: #f6f5f1;
}
.shot.on-dark {
  background: #000;
  box-shadow: inset 0 0 0 1px var(--line);
}
.shot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 0 0);
  transform: scale(var(--zoom, 1));
  transform-origin: var(--pos, 0 0);
}
.tile.pollen .shot {
  --pos: 8% 6%;
  --zoom: 1.55;
}
.tile.huigan .shot {
  --pos: 34% 38%;
  --zoom: 1.5;
}
.tile.tonnum .shot {
  --pos: 0 0;
}
.tile.tamato .shot {
  --pos: 50% 36%;
}
.tile.yinzhen .shot {
  --pos: 84% 36%;
  --zoom: 1.6;
}
.tile-line {
  display: block;
  margin-top: 1rem;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--fg);
  text-wrap: balance;
}
.tile small {
  margin-top: auto;
  padding-top: 0.9rem;
  font-size: 0.8125rem;
}
@media (hover: hover) {
  .tile:hover {
    border-color: var(--fg);
  }
  .tile:hover .tile-id .glyph {
    transform: rotate(-8deg) scale(1.06);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .shelf li {
    animation: rise 500ms var(--ease) both;
  }
  .shelf li:nth-child(2) {
    animation-delay: 50ms;
  }
  .shelf li:nth-child(3) {
    animation-delay: 100ms;
  }
  .shelf li:nth-child(4) {
    animation-delay: 150ms;
  }
  .shelf li:nth-child(5) {
    animation-delay: 200ms;
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}
.home .also {
  margin-top: 1.5rem;
}

/* Connect on the home page: the offer, the price and one recipe drawn as a single line */
.eyebrow {
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--muted);
}
.split > div > .eyebrow {
  margin: 0 0 1rem;
}
.plan {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}
.plan dt {
  font-size: 0.875rem;
  color: var(--muted);
}
.plan dd {
  color: var(--muted);
}
.plan .num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.split > div > p.fine {
  margin-top: 0.9rem;
  font-size: 0.9375rem;
}
.recipe-thread {
  padding: 1.6rem 1.75rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}
.recipe-thread .curl {
  display: block;
  width: 30px;
  height: 22.5px;
  overflow: visible;
  color: var(--fg);
  stroke-width: 1.25px;
}
.recipe-thread .curl.end {
  scale: 1 -1;
}
.recipe-thread ol {
  position: relative;
  display: grid;
  gap: 1.5rem;
  padding-block: 0.5rem;
}
.recipe-thread ol::before {
  content: "";
  position: absolute;
  left: 11.5px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--fg);
}
.recipe-thread li {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--fg);
}
.recipe-thread li .glyph {
  stroke-width: 1.4px;
  background: var(--surface);
  box-shadow: 0 0 0 5px var(--surface);
}
.recipe-thread li small {
  font-size: 0.8125rem;
  margin-bottom: 0.1rem;
}
.recipe-thread li.agent > span {
  color: var(--muted);
}
.recipe-thread .hz {
  font-size: 1.3em;
  line-height: 1.2;
}
.recipe-thread figcaption {
  display: grid;
  justify-items: start;
  gap: 0.3rem;
  margin-top: 1.25rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
}
.recipe-thread figcaption .status {
  font-size: 0.8125rem;
}
.recipe-thread figcaption a {
  font-size: 1.0625rem;
  font-weight: 560;
  letter-spacing: -0.01em;
}
.recipe-thread figcaption small {
  font-size: 0.875rem;
}
.recipe-rows {
  margin-top: 1rem;
  border-top: 1px solid var(--line);
}
.recipe-rows a {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 44px;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.recipe-rows b {
  display: block;
  font-weight: 560;
}
.recipe-rows .status {
  font-size: 0.875rem;
}
.recipe-rows .pair {
  gap: 0.3rem;
}
.recipe-rows .glyph {
  stroke-width: 1.4px;
}
@media (hover: hover) {
  .recipe-thread figcaption a:hover {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
  .recipe-rows a:hover b {
    text-decoration: underline;
    text-underline-offset: 0.25em;
  }
}

/* Kilobat line under the shelf */
.also {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-block: 1.25rem;
  border-block: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9688rem;
}
.also b {
  display: block;
  color: var(--fg);
  font-weight: 560;
}
.glyph.kilobat {
  border-radius: 24%;
}

/* Recipes */
.recipes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.recipes.two-up {
  grid-template-columns: repeat(2, 1fr);
}
.recipes.stack {
  grid-template-columns: 1fr;
}
.recipe-card {
  display: flex;
  flex-direction: column;
  min-height: 17rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition:
    border-color 180ms var(--ease),
    transform 180ms var(--ease);
}
.recipes.stack .recipe-card {
  min-height: 0;
}
.recipe-card h2,
.recipe-card h3 {
  font-size: 1.3rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 1.5rem;
  max-width: 24ch;
}
.recipe-card p {
  font-size: 0.9688rem;
  margin-top: 0.6rem;
}
.recipe-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1.5rem;
  font-size: 0.875rem;
}
.status,
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
}
.status::before,
.badge::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
}
.pair {
  display: flex;
  align-items: center;
}
.pair .glyph {
  stroke-width: 1.5px;
}
.tie {
  width: 1.75rem;
  height: 1px;
  margin-inline: 0.5rem;
  background: repeating-linear-gradient(90deg, var(--faint) 0 3px, transparent 3px 6px);
}
@media (hover: hover) {
  .recipe-card:hover {
    border-color: var(--fg);
  }
}
.legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 3rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.legend dt {
  font-weight: 560;
}
.legend dd {
  color: var(--muted);
  max-width: 48ch;
  margin-top: 0.2rem;
}

/* Flow */
.flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.flow li {
  position: relative;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1.1rem 1.5rem 0 0;
  font-size: 1.0625rem;
}
.flow li .glyph {
  flex: none;
  margin-top: 0.15rem;
  stroke-width: 1.4px;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: -4px;
  right: 1.5rem;
  width: 7px;
  height: 7px;
  border-top: 1px solid var(--muted);
  border-right: 1px solid var(--muted);
  rotate: 45deg;
}
.flow small {
  font-size: 0.8125rem;
}
.flow.vertical {
  grid-template-columns: 1fr;
  margin-top: 0;
  border-top: 0;
  border-left: 1px solid var(--line);
}
.flow.vertical li {
  padding: 0 0 2rem 1.25rem;
}
.flow.vertical li:last-child {
  padding-bottom: 0;
}
.flow.vertical li::after {
  display: none;
}

/* Product pages */
.identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
  max-width: none;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.3;
}
.identity b {
  display: block;
  color: var(--fg);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.identity .glyph {
  stroke-width: 1.6px;
}
.product h1 {
  max-width: 12ch;
}
.facts {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  max-width: 34rem;
  border-top: 1px solid var(--line);
}
.facts div {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1rem;
  padding-block: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
}
.facts dt {
  color: var(--muted);
}
.screen {
  min-width: 0;
}
.screen img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.35);
}
.screen.tonnum img,
.screen.tamato img {
  width: auto;
  max-height: min(74vh, 40rem);
  margin-inline: auto;
}
.screen.tonnum img {
  border-radius: 32px;
}
.screen figcaption {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  color: var(--muted);
}
.screen.tonnum figcaption,
.screen.tamato figcaption {
  text-align: center;
}
.screen.wide img {
  max-width: 62rem;
  margin-inline: auto;
}
.screen.wide figcaption {
  text-align: center;
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
}
.two h2,
.guide-steps h2 {
  font-size: clamp(1.4rem, 2vw, 1.75rem);
  letter-spacing: -0.03em;
  margin-top: 0.75rem;
}
.two p {
  margin-top: 0.75rem;
}
.uses {
  border-top: 1px solid var(--line);
}
.step {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}
.scopes {
  display: grid;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.scopes li {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  color: var(--fg);
}
.verb {
  flex: none;
  display: inline-block;
  min-width: 3.4rem;
  padding: 0.1rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8125rem;
  text-align: center;
  color: var(--muted);
}
.verb.save {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.pager {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  padding-block: 2rem;
  border-top: 1px solid var(--line);
}
.pager a {
  display: grid;
  gap: 0.15rem;
  min-height: 44px;
}
.pager span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 560;
  font-size: 1.125rem;
}
.pager .glyph {
  stroke-width: 1.4px;
}
.pager [rel="next"] {
  justify-items: end;
  text-align: right;
}
.pager .all {
  align-content: center;
}

/* Connect */
.permission-table {
  border-top: 1px solid var(--line);
}
.permission-table li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
}
.permission-table .who {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 560;
}
.permission-table .glyph {
  stroke-width: 1.4px;
}
.permission-table .what {
  display: grid;
  gap: 0.45rem;
}
.permission-table .what > span {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}
.steps li {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.25rem;
}
.steps p {
  font-size: 0.9688rem;
  margin-top: 0.5rem;
}
.copyline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
}
code {
  font: 500 0.9375rem/1.4 ui-monospace, "SF Mono", Menlo, monospace;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: var(--surface-2);
  overflow-wrap: anywhere;
  user-select: all;
}
.copied {
  font-size: 0.875rem;
  color: var(--muted);
}
.price-card {
  display: grid;
  gap: 0;
  padding: 0.5rem 1.75rem 1.5rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.price-card dl {
  display: grid;
}
.price-card div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
}
.price-card dt {
  color: var(--muted);
}
.price-card dd {
  font-size: 1.125rem;
  text-align: right;
  color: var(--muted);
}
.price-card dd .num {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  color: var(--fg);
}
.price-card .note dd {
  font-size: 0.9375rem;
  max-width: 22ch;
}
.price-card .note:last-child,
.price-card dl div:last-child {
  border-bottom: 0;
}
.price-card .actions {
  margin-top: 1rem;
}

/* Recipe detail */
.badge {
  display: flex;
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  max-width: none;
}
.recipe-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
label {
  display: block;
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}
.hint {
  font-size: 0.9375rem;
  margin-top: 0.35rem;
}
textarea {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  field-sizing: content;
  min-height: 9rem;
}
textarea:focus-visible {
  outline-offset: 2px;
}
.prompt-block .actions {
  margin-top: 1rem;
}
.prompt-block .small-h {
  margin-top: 2.5rem;
  margin-bottom: 0;
}
.prompt-block .scopes + .hint {
  margin-top: 1.25rem;
}
#copied {
  font-size: 0.9375rem;
  color: var(--muted);
}
.example {
  position: sticky;
  top: 1.5rem;
}
.bubble {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}
.bubble + .bubble {
  margin-top: 0.75rem;
  margin-left: 2rem;
}
.bubble.out {
  background: var(--fg);
  border-color: var(--fg);
  --muted: color-mix(in srgb, var(--bg) 70%, var(--fg));
}
.bubble.out p {
  color: var(--bg);
}
.bubble small {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  margin-bottom: 0.4rem;
}
.bubble .glyph {
  stroke-width: 1.3px;
}
.bubble p {
  color: var(--fg);
  font-size: 1.0625rem;
}
.example .button {
  margin-top: 1.5rem;
}

/* Huigan */
.study h1 {
  max-width: 10ch;
}
.reader {
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -40px rgb(0 0 0 / 0.3);
}
.reader .line {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.4rem 0.6rem;
  max-width: none;
  color: var(--fg);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
}
.word {
  display: inline-flex;
  padding: 0.1rem 0.2rem 0.15rem;
  border-radius: 10px;
  border: 1.5px solid transparent;
}
.word .stop {
  align-self: flex-end;
}
.word.on {
  border-color: var(--fg);
}
ruby {
  ruby-position: over;
  ruby-align: center;
}
rt {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  padding-bottom: 0.25rem;
}
.t1 {
  color: #3e7a3b;
}
.t2 {
  color: #91701e;
}
.t3 {
  color: #2f5ea8;
}
.t4 {
  color: #b1372d;
}
.t5 {
  color: #6c6b66;
}
.lookup {
  position: relative;
  margin-top: 1.4rem;
  margin-left: clamp(2rem, 9vw, 7.5rem);
  max-width: 17rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
}
.lookup::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 2.2rem;
  width: 12px;
  height: 12px;
  background: var(--bg);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  rotate: 45deg;
}
.lookup .hanzi {
  font-size: 2.2rem;
  line-height: 1.2;
  color: var(--fg);
}
.lookup p {
  color: var(--fg);
}
.lookup small {
  margin-top: 0.5rem;
}
.guide-list {
  border-top: 1px solid var(--line);
}
.guide-list a {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.guide-list b {
  display: block;
  font-weight: 560;
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  letter-spacing: -0.025em;
  margin-bottom: 0.3rem;
}
.guide-list a > span:nth-child(2) {
  color: var(--muted);
  max-width: 60ch;
}
.guide-list a > span:last-child {
  transition: translate 200ms var(--ease);
}
@media (hover: hover) {
  .guide-list a:hover > span:last-child {
    translate: 4px 0;
  }
}
.prose {
  max-width: 46rem;
}
.prose h1 {
  max-width: 18ch;
  font-size: clamp(2.3rem, 5vw, 3.8rem);
}
.prose > h2 {
  font-size: 1.5rem;
  margin-top: 3rem;
}
.prose > p {
  margin-top: 1rem;
}
.guide-steps {
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}
.guide-steps li {
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 1rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}
.guide-steps .step {
  padding-top: 1.05rem;
}
.guide-steps h2 {
  margin-top: 0.6rem;
}
.guide-steps p {
  margin-top: 0.6rem;
  color: var(--fg);
}
.prose .price-card {
  margin-top: 2rem;
}
.next-guide {
  display: grid;
  gap: 0.2rem;
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.next-guide span {
  font-size: 1.25rem;
  font-weight: 560;
  letter-spacing: -0.02em;
}

/* Tablet */
@media (max-width: 1080px) {
  .shelf {
    grid-auto-columns: 16rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 0.75rem;
    scrollbar-width: thin;
    scrollbar-color: var(--line) transparent;
  }
  .shelf li {
    scroll-snap-align: start;
  }
  .recipes {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 860px) {
  .product-grid,
  .split,
  .recipe-grid,
  .head,
  .two {
    grid-template-columns: 1fr;
  }
  .head p {
    justify-self: start;
  }
  .home-top {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    align-items: start;
  }
  .home .thread {
    width: min(58vw, 17rem);
    stroke-width: 0.85;
  }
  .example {
    position: static;
  }
  .steps,
  .recipes.two-up {
    grid-template-columns: 1fr;
  }
  .foot {
    grid-template-columns: 1fr;
  }
}

/* Phone */
@media (max-width: 640px) {
  .bar {
    min-height: 60px;
  }
  .wordmark {
    font-size: 1.05rem;
  }
  header.site nav {
    gap: 0;
    margin-right: -0.35rem;
  }
  header.site nav a {
    font-size: 0.875rem;
    padding-inline: 0.45rem;
  }
  h1 {
    font-size: clamp(2.4rem, 11vw, 3.2rem);
  }
  .hero {
    padding-top: 1.75rem;
  }
  .lede {
    margin-top: 1.1rem;
  }
  .actions .button {
    flex: 1 1 auto;
  }
  .shelf {
    grid-auto-columns: min(78vw, 18rem);
    gap: 0.75rem;
  }
  .home .lede {
    margin-top: 0.9rem;
  }
  .home-top {
    margin-bottom: 2rem;
  }
  .recipe-thread {
    padding: 1.25rem 1.25rem 1.2rem;
  }
  .plan {
    gap: 1rem 2rem;
  }
  .recipes {
    grid-template-columns: 1fr;
  }
  .recipe-card {
    min-height: 0;
  }
  .flow {
    grid-template-columns: 1fr;
    border-top: 0;
    border-left: 1px solid var(--line);
    margin-top: 2rem;
  }
  .flow li {
    padding: 0 0 1.4rem 1.1rem;
  }
  .flow li:last-child {
    padding-bottom: 0;
  }
  .flow li:not(:last-child)::after {
    display: none;
  }
  .facts div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .permission-table li {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .legend {
    grid-template-columns: 1fr;
  }
  .bubble + .bubble {
    margin-left: 1rem;
  }
  .price-card {
    padding-inline: 1.25rem;
  }
  .price-card .note {
    display: grid;
    gap: 0.2rem;
  }
  .price-card .note dd {
    text-align: left;
    max-width: none;
  }
  .guide-list a,
  .guide-steps li {
    grid-template-columns: 2.25rem 1fr;
  }
  .guide-list a > span:last-child {
    display: none;
  }
  .pager span {
    font-size: 1rem;
  }
  .reader .line {
    font-size: 1.7rem;
    gap: 0.4rem 0.35rem;
  }
  rt {
    font-size: 0.75rem;
  }
  .lookup {
    margin-left: 1.5rem;
  }
  .foot nav {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 380px) {
  header.site nav a {
    font-size: 0.8125rem;
    padding-inline: 0.3rem;
  }
  .wordmark span {
    font-size: 0.95rem;
  }
}

@media (max-width: 350px) {
  .bar {
    flex-wrap: wrap;
    gap: 0 0.5rem;
  }
  header.site nav {
    flex-wrap: wrap;
    margin-right: 0;
  }
}
