/* sumi website. Colors are taken from the canal-town painting on the page:
   dusk indigo sky, whitewashed walls, roof grey, lantern red, low sun. */
:root {
  --dusk: #262b4f;
  --dusk-deep: #1b1f3b;
  --wall: #eef0f3;
  --ink: #1c2035;
  --roof: #535a6b;
  --lantern: #b8352a;
  --lantern-dark: #962a21;
  --sun: #f0a868;
  --measure: 66ch;
  --latin: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --han: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --brush: "KaiTi", "STKaiti", "Kaiti SC", "BiauKai", serif;
}

* { box-sizing: border-box; }

html { background: var(--wall); }

body {
  margin: 0;
  color: var(--ink);
  font: 17px/1.6 var(--latin), var(--han);
}
html[lang="zh-CN"] body { font-family: var(--han); line-height: 1.75; }

a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 2px; }

.wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }

/* The painting is the page's one loud element; everything after it stays quiet. */
.stage {
  background: var(--dusk);
  color: #f3f1f6;
}
.stage-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem 1rem;
  font-size: 0.95rem;
}
.stage-bar a { color: #cfd3e6; }
.wordmark {
  margin: 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.wordmark .han { font-family: var(--brush); font-weight: 400; color: var(--sun); margin-left: 0.25em; font-size: 1.1em; }
.painting {
  display: block;
  width: min(100%, 1280px);
  margin-inline: auto;
}
.painting img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.painting figcaption {
  max-width: calc(var(--measure) + 2.5rem);
  padding: 0.8rem 1.25rem 1.4rem;
  color: #b9bdd3;
  font-size: 0.92rem;
}
.painting figcaption a { color: #e7e9f4; }

.intro { padding-block: 3rem 3.5rem; }
.lede {
  max-width: 30ch;
  margin: 0 0 1.8rem;
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
html[lang="zh-CN"] .lede { max-width: 20em; line-height: 1.5; letter-spacing: 0; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem 1.6rem; }
.download {
  display: inline-block;
  padding: 0.75rem 1.4rem;
  border-radius: 4px;
  background: var(--lantern);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.download:hover { background: var(--lantern-dark); }
.fine { max-width: var(--measure); margin: 1.2rem 0 0; color: var(--roof); font-size: 0.95rem; }

.window { margin: 0 auto 4rem; width: min(100% - 2.5rem, 1180px); }
.window img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #c9ccd4;
}
.window figcaption { margin-top: 0.7rem; color: var(--roof); font-size: 0.95rem; max-width: var(--measure); }

.points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 4rem;
  padding-block: 1rem 4rem;
}
.points h2, .ai h2, .get h2 { margin: 0 0 0.4rem; font-size: 1.25rem; line-height: 1.35; }
.points p { margin: 0; max-width: 52ch; }

.ai, .get { padding-block: 3rem; border-top: 1px solid #d3d6dd; }
.ai p, .get p { max-width: var(--measure); }
pre {
  max-width: min(100%, 40rem);
  overflow-x: auto;
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  background: var(--dusk-deep);
  color: #e7e9f4;
  border-radius: 4px;
  font: 0.9rem/1.5 Consolas, "Cascadia Mono", monospace;
}

footer {
  padding-block: 2rem 3rem;
  border-top: 1px solid #d3d6dd;
  color: var(--roof);
  font-size: 0.92rem;
}
footer p { margin: 0.2rem 0; }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .points { grid-template-columns: 1fr; gap: 1.8rem; }
  .intro { padding-block: 2.2rem 2.6rem; }
}
