/* MyCorner home page: "Editorial ivory".
   A quiet monograph on warm paper: a large display serif, thin rules, numbered sections and the real
   themes hung like matted prints. Only this stylesheet loads on the home page (not app.css).
   System fonts only (the CSP allows no outside fonts). */

:root {
  --paper: #f4efe5;
  --paper-deep: #ece5d8;
  --mat: #fbf8f2;
  --ink: #1b1814;
  --ink-2: #4a433a;
  --muted: #675e51;
  --rule: rgba(27, 24, 20, 0.16);
  --rule-strong: rgba(27, 24, 20, 0.42);
  --brass: #a08154;        /* hairlines, numerals at display size */
  --brass-text: #7a6036;   /* small text on paper, 5.2:1 */
  --night: #16130f;
  --night-2: #201c17;
  --on-night: #f1eadd;
  --on-night-muted: #b4ab9b;
  --brass-light: #cdae76;

  --display: "Didot", "Bodoni 72", "Bodoni MT", "Iowan Old Style", "Hoefler Text", Georgia, "Songti SC", "STSong", serif;
  --serif: "Iowan Old Style", "Hoefler Text", "Baskerville", Georgia, "Songti SC", "STSong", serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(20px, 5.2vw, 88px);
  --col-gap: clamp(20px, 2.6vw, 40px);
  --section: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(0.2, 0.7, 0.15, 1);
}

:root:lang(zh-CN) {
  --display: "Songti SC", "STSong", "Noto Serif CJK SC", "Source Han Serif SC", serif;
  --serif: "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.62 var(--serif);
  font-feature-settings: "kern", "liga", "onum";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}
.closing :focus-visible, .footer :focus-visible { outline-color: var(--brass-light); }

.sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 10px 16px;
  font: 500 14px/1 var(--sans); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: 1520px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Shared type ---------- */

.kicker {
  display: flex; align-items: baseline; gap: 14px;
  font: 500 11.5px/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: clamp(20px, 2.4vw, 32px);
}
.kicker__no {
  font: 400 15px/1 var(--display);
  letter-spacing: 0.04em;
  color: var(--ink);
  padding-right: 14px;
  border-right: 1px solid var(--rule-strong);
}
:lang(zh-CN) .kicker { letter-spacing: 0.24em; font-size: 12.5px; }

.h2 {
  font: 400 clamp(38px, 5vw, 76px)/1.02 var(--display);
  letter-spacing: -0.012em;
  max-width: 16ch;
  text-wrap: balance;
}
:lang(zh-CN) .h2 { letter-spacing: 0.02em; line-height: 1.2; font-weight: 400; }

.h3 {
  font: 400 clamp(25px, 2.15vw, 31px)/1.15 var(--display);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
:lang(zh-CN) .h3 { letter-spacing: 0.04em; line-height: 1.35; }

.h4 {
  font: 400 clamp(22px, 1.8vw, 26px)/1.2 var(--display);
}

.body-lg {
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 34em;
}

/* ---------- Buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 54px;
  padding: 16px 26px 16px 28px;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink);
  font: 500 15px/1.25 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.btn:hover { background: #2e2922; border-color: #2e2922; }
.btn__arrow {
  position: relative; flex: none;
  width: 22px; height: 1px; background: var(--brass-light);
  transition: width 0.5s var(--ease);
}
.btn__arrow::after {
  content: ""; position: absolute; right: 0; top: -3.5px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--brass-light); border-right: 1px solid var(--brass-light);
  transform: rotate(45deg);
}
.btn:hover .btn__arrow { width: 32px; }

.btn--small {
  min-height: 40px; padding: 10px 18px;
  font-size: 13.5px; letter-spacing: 0.04em;
  background: transparent; color: var(--ink);
  border-color: var(--rule-strong);
}
.btn--small:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn--light { background: var(--on-night); color: var(--night); border-color: var(--on-night); }
.btn--light:hover { background: #fffaf0; border-color: #fffaf0; }
.btn--light .btn__arrow, .btn--light .btn__arrow::after { background-color: var(--brass); border-color: var(--brass); }
.btn--light .btn__arrow::after { background: none; }

.textlink {
  display: inline-block;
  font: 500 15px/1.4 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 6px 0 5px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s;
}
.textlink:hover { background-size: 0 1px; background-position: 100% 100%; }
.textlink--small { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.textlink--small::after { content: "  \2192"; color: var(--brass-text); }
:lang(zh-CN) .textlink--small { letter-spacing: 0.12em; font-size: 13.5px; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky; top: 0; z-index: 20;
  background: rgba(244, 239, 229, 0.9);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.5s var(--ease);
}
.masthead.is-scrolled { border-bottom-color: var(--rule); }
.masthead__inner {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 40px);
  min-height: 80px;
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; margin-right: auto;
}
.brand .seal { width: 26px; height: 26px; flex: none; }
.brand__name {
  font: 400 25px/1 var(--display);
  letter-spacing: 0.005em;
}
:lang(zh-CN) .brand__name { font-size: 22px; letter-spacing: 0.12em; }

.nav {
  display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px);
  font: 400 14px/1 var(--sans);
  letter-spacing: 0.03em;
}
.nav a {
  text-decoration: none; padding: 8px 0; color: var(--ink-2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.nav a:hover { color: var(--ink); background-size: 100% 1px; }

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font: 400 14px/1 var(--sans);
}
.nav .lang a { color: var(--muted); }
.nav .lang a[aria-current="true"] { color: var(--ink); font-weight: 600; }
.lang__sep { color: var(--rule-strong); }

/* ---------- Hero ---------- */

.hero { padding-top: clamp(8px, 1.2vw, 16px); padding-bottom: clamp(24px, 4vw, 64px); }

.hero__meta {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  font: 500 11.5px/1.4 var(--sans);
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
}
:lang(zh-CN) .hero__meta { letter-spacing: 0.22em; font-size: 12.5px; }

.hero__title {
  padding-top: clamp(40px, 5vw, 76px);
  font: 400 clamp(44px, 7.3vw, 120px)/1 var(--display);
  letter-spacing: -0.02em;
}
.hero__title .line { display: block; text-wrap: balance; }
.hero__title em { font-style: italic; color: var(--ink); }
.hero__title .line--indent { padding-left: 1.55em; position: relative; }
.hero__title .line--indent::before {
  content: ""; position: absolute; left: 0.18em; top: 0.56em;
  width: 1.05em; height: 1px; background: var(--brass);
}
:lang(zh-CN) .hero__title { line-height: 1.28; letter-spacing: 0.05em; font-size: clamp(42px, 6.4vw, 104px); }
:lang(zh-CN) .hero__title em { font-style: normal; }
:lang(zh-CN) .hero__title .line--indent { padding-left: 2em; }
:lang(zh-CN) .hero__title .line--indent::before { left: 0.3em; top: 0.64em; width: 1.3em; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.3fr);
  gap: clamp(40px, 6vw, 120px);
  align-items: start;
  padding-top: clamp(40px, 4.6vw, 72px);
}

.hero__lead {
  text-wrap: pretty;
  margin-top: clamp(4px, 1vw, 16px);
  max-width: 30em;
  font-size: clamp(18px, 1.35vw, 20px);
  line-height: 1.62;
  color: var(--ink-2);
}
.hero__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px;
  margin-top: clamp(30px, 3vw, 44px);
}
.hero__note {
  display: flex; align-items: center; gap: 12px;
  margin-top: 28px;
  font: 400 13.5px/1.4 var(--sans); letter-spacing: 0.02em;
  color: var(--muted);
}
.hero__note::before { content: ""; width: 24px; height: 1px; background: var(--brass); flex: none; }

/* Framed prints */
.print__mat {
  display: block;
  background: var(--mat);
  padding: clamp(10px, 1.4vw, 22px);
  box-shadow:
    0 0 0 1px rgba(27, 24, 20, 0.08),
    0 1px 2px rgba(43, 32, 15, 0.06),
    0 24px 48px -28px rgba(43, 32, 15, 0.42),
    0 60px 90px -60px rgba(43, 32, 15, 0.35);
}
.print__mat img {
  width: 100%;
  outline: 1px solid rgba(27, 24, 20, 0.55);
  outline-offset: 0;
}
.print figcaption {
  display: flex; gap: 12px; align-items: baseline;
  margin-top: 14px;
  font: 400 12px/1.4 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
}
:lang(zh-CN) .print figcaption { letter-spacing: 0.18em; }

.hero__art {
  position: relative;
  padding-bottom: 13%;
  padding-right: 11%;
}
.print--wide { position: relative; }
.print--wide figcaption { justify-content: flex-start; }
.print--tall {
  position: absolute; right: 0; bottom: 0;
  width: 24%;
}
.print--tall .print__mat { padding: clamp(7px, 0.9vw, 14px); }
.print--tall .print__mat img { aspect-ratio: 9 / 16; object-fit: cover; object-position: top; }


/* ---------- Sections ---------- */

.section { padding-block: var(--section) 0; }
.section__head { margin-bottom: clamp(48px, 6vw, 96px); }
.section__head--split {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: var(--col-gap); align-items: end;
}

/* Promises */
.promises {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}
.promise {
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}
.promise__no {
  display: block;
  font: italic 400 22px/1 var(--display);
  color: var(--brass-text);
  margin-bottom: 40px;
}
.promise .h3 { margin-bottom: 16px; max-width: 14em; }
.promise p { color: var(--ink-2); max-width: 30em; }

/* Editor band */
.band {
  margin-top: var(--section);
  padding-block: var(--section);
  background: var(--paper-deep);
  border-block: 1px solid var(--rule);
}
.prompts { display: flex; flex-direction: column; border-top: 1px solid var(--rule); }
.prompts__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px 10px;
}
.prompts__hint {
  font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-text);
}
:lang(zh-CN) .prompts__hint { letter-spacing: 0.24em; font-size: 12px; }
.prompts__list { padding: 0 22px 10px; }
.prompts__list li { border-top: 1px solid var(--rule); }
.prompt {
  position: relative;
  display: block; width: 100%;
  padding: 11px 26px 11px 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  font: italic 400 15.5px/1.42 var(--serif);
  color: var(--ink);
  transition: color 0.3s, padding-left 0.5s var(--ease);
}
:lang(zh-CN) .prompt { font-style: normal; font-size: 14.5px; }
.prompt::before { content: "\201C"; color: var(--brass); margin-right: 1px; }
.prompt::after { content: "\201D"; color: var(--brass); margin-left: 1px; }
:lang(zh-CN) .prompt::before { content: "\300C"; }
:lang(zh-CN) .prompt::after { content: "\300D"; }
.prompt:hover:not(:disabled) { padding-left: 6px; }
.prompt[aria-pressed="true"] { color: var(--muted); }
.prompt[aria-pressed="true"] span::after {
  content: ""; position: absolute; right: 4px; top: 50%;
  width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%;
  background: var(--brass);
}
.prompt:disabled { cursor: progress; }

/* The editor window */
.studio {
  background: var(--mat);
  box-shadow:
    0 0 0 1px rgba(27, 24, 20, 0.1),
    0 30px 60px -36px rgba(43, 32, 15, 0.45),
    0 80px 120px -80px rgba(43, 32, 15, 0.4);
}
.studio__bar {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 22px;
  border-bottom: 1px solid var(--rule);
  font: 400 12.5px/1.3 var(--sans);
  color: var(--muted);
}
.studio__addr { margin-right: auto; font-family: var(--mono); font-size: 12px; letter-spacing: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.studio__state {
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 11px;
}
.studio__publish {
  padding: 8px 14px;
  background: var(--ink); color: var(--paper);
  font-size: 12px; letter-spacing: 0.06em;
}
.studio__body {
  display: grid;
  grid-template-columns: minmax(300px, 0.56fr) minmax(0, 1fr);
}
.studio__chat {
  display: flex; flex-direction: column;
  border-right: 1px solid var(--rule);
  min-width: 0;
  contain: size;   /* the preview sets the window height; the log scrolls */
  min-height: 520px;
}
.chat {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 22px 22px 8px;
  scroll-behavior: smooth;
}
.msg {
  display: block;
  padding: 12px 0 14px;
  animation: msg-in 0.7s var(--ease) both;
}
.msg:first-child { padding-top: 0; }
.msg__who {
  display: block;
  font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-text);
  margin-bottom: 6px;
}
:lang(zh-CN) .msg__who { letter-spacing: 0.2em; font-size: 11.5px; }
.msg__text { display: block; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.msg--you .msg__who { color: var(--muted); }
.msg--you .msg__text { color: var(--ink); font-style: italic; }
:lang(zh-CN) .msg--you .msg__text { font-style: normal; }
.msg__typing { display: inline-flex; gap: 5px; padding: 8px 0 4px; }
.msg__typing i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--brass);
  animation: dot 1.2s ease-in-out infinite;
}
.msg__typing i:nth-child(2) { animation-delay: 0.15s; }
.msg__typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.chat__reset {
  padding: 2px 0;
  background: none; border: 0; cursor: pointer;
  font: 500 10.5px/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-2);
  border-bottom: 1px solid var(--rule-strong);
}
.chat__reset[hidden] { display: none; }

.studio__preview {
  position: relative;
  min-width: 0;
  padding: clamp(16px, 2.4vw, 36px) clamp(16px, 2.4vw, 36px) clamp(14px, 1.6vw, 22px);
  background: #efe9de;
  display: flex; flex-direction: column; gap: 14px;
}
.studio__label {
  display: flex; justify-content: space-between; gap: 12px;
  font: 500 10.5px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
}
:lang(zh-CN) .studio__label { font-size: 11.5px; }
.studio__status { color: var(--brass-text); transition: opacity 0.6s; }
.pv {
  position: relative;
  container-type: inline-size;
  box-shadow: 0 0 0 1px rgba(27, 24, 20, 0.35), 0 18px 30px -22px rgba(0, 0, 0, 0.5);
  transition: opacity 0.6s var(--ease);
}
.studio__preview img { width: 100%; transition: filter 1.2s var(--ease); }
.studio__preview.is-updating .pv { opacity: 0.55; }
.studio__preview.is-green img { filter: hue-rotate(128deg) saturate(0.62) brightness(1.05); }

/* Who */
.who {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--col-gap);
}
.who__item {
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 30px 0 0;
  border-top: 1px solid var(--ink);
}
.who__item .h3 { font-style: italic; font-size: clamp(30px, 2.8vw, 42px); margin-bottom: 18px; }
:lang(zh-CN) .who__item .h3 { font-style: normal; }
.who__item p { color: var(--ink-2); margin-bottom: 26px; max-width: 28em; }
.who__item .textlink { margin-top: auto; }

.gift {
  margin: clamp(72px, 8vw, 128px) auto 0;
  max-width: 34em;
  text-align: center;
}
.gift p {
  font: italic 400 clamp(24px, 2.4vw, 34px)/1.35 var(--display);
  text-wrap: balance;
}
:lang(zh-CN) .gift p { font-style: normal; line-height: 1.6; font-size: clamp(20px, 2vw, 28px); letter-spacing: 0.04em; }
.gift::before, .gift::after {
  content: ""; display: block; width: 1px; height: 48px; background: var(--brass); margin: 0 auto 32px;
}
.gift::after { margin: 32px auto 0; }

/* Themes gallery */
.section--gallery { padding-bottom: 40px; }
.section--gallery .body-lg { justify-self: end; max-width: 24em; }
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(40px, 6vw, 112px);
  row-gap: clamp(64px, 7vw, 112px);
}
.plate:nth-child(even) { margin-top: clamp(64px, 9vw, 150px); }
.plate__frame { display: block; text-decoration: none; }
.plate__frame .print__mat { padding: clamp(12px, 1.8vw, 28px); overflow: hidden; transition: box-shadow 0.8s var(--ease); }
.plate__frame img { transition: transform 1.4s var(--ease); }
.plate__frame:hover img { transform: scale(1.015); }
.plate__frame:hover .print__mat {
  box-shadow:
    0 0 0 1px rgba(27, 24, 20, 0.12),
    0 30px 60px -28px rgba(43, 32, 15, 0.5),
    0 80px 110px -60px rgba(43, 32, 15, 0.4);
}

.plate__cap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 22px;
  margin-top: 26px;
}
.plate__no {
  grid-row: span 2;
  min-width: 2.2em;
  padding-top: 6px;
  font: 400 21px/1 var(--display);
  letter-spacing: 0.04em;
  color: var(--brass-text);
  border-top: 1px solid var(--brass);
}
.plate__text { border-top: 1px solid var(--rule-strong); padding-top: 14px; }
.plate__name { font: 400 clamp(26px, 2.3vw, 34px)/1.1 var(--display); margin-bottom: 10px; }
.plate__alt {
  font: 400 15px/1 var(--sans); letter-spacing: 0.14em;
  color: var(--muted);
  margin-left: 8px;
  vertical-align: 0.3em;
}
.plate__alt:lang(zh-CN) { font-family: "Songti SC", "STSong", serif; letter-spacing: 0.2em; }
:lang(zh-CN) .plate__name { letter-spacing: 0.08em; }
.plate__text p { font-size: 15.5px; line-height: 1.6; color: var(--ink-2); max-width: 32em; }
.plate__text .plate__for {
  margin-top: 12px;
  font: 500 11px/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brass-text);
}
:lang(zh-CN) .plate__text .plate__for { font-size: 12.5px; letter-spacing: 0.2em; }
.plate__open { grid-column: 2; justify-self: start; margin-top: 14px; }

/* Steps */
.steps {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}
.step {
  padding: 30px clamp(16px, 2vw, 32px) 0 0;
  border-right: 1px solid var(--rule);
  padding-left: clamp(16px, 2vw, 32px);
}
.step:first-child { padding-left: 0; }
.step:last-child { border-right: 0; padding-right: 0; }
.step__no {
  display: block;
  font: 400 clamp(56px, 5.4vw, 84px)/0.9 var(--display);
  color: var(--brass);
  margin-bottom: 34px;
  font-feature-settings: "lnum";
}
.step .h4 { margin-bottom: 12px; }
:lang(zh-CN) .step .h4 { letter-spacing: 0.06em; }
.step p { color: var(--ink-2); font-size: 16px; }
.addr { font-family: var(--mono); font-size: 0.86em; letter-spacing: 0; color: var(--ink); white-space: nowrap; }

/* FAQ */
.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: var(--col-gap) clamp(40px, 6vw, 112px);
  padding-bottom: var(--section);
}
.faq__head .h2 { max-width: 8ch; }
:lang(zh-CN) .faq__head .h2 { max-width: none; }
.faq__more { margin-top: 28px; color: var(--ink-2); font-size: 16px; }
.faq__more a { text-decoration-thickness: 1px; text-underline-offset: 4px; text-decoration-color: var(--brass); }
.faq__list { border-top: 1px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--rule); }
.faq__list summary {
  position: relative;
  display: block;
  padding: 26px 56px 26px 0;
  cursor: pointer;
  list-style: none;
  font: 400 clamp(21px, 1.8vw, 26px)/1.3 var(--display);
}
:lang(zh-CN) .faq__list summary { letter-spacing: 0.04em; font-size: clamp(19px, 1.6vw, 23px); }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::before, .faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 16px; height: 1px; background: var(--ink);
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
.faq__list summary::after { transform: rotate(90deg); }
.faq__list details[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq__list summary:hover { color: var(--ink-2); }
.faq__list details p {
  padding: 0 56px 30px 0;
  max-width: 40em;
  color: var(--ink-2);
}
.faq__list details[open] p { animation: msg-in 0.6s var(--ease) both; }

/* Closing */
.closing {
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(96px, 12vw, 180px) clamp(80px, 9vw, 140px);
}
.closing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(48px, 6vw, 120px);
  align-items: end;
}
.closing__title {
  font: italic 400 clamp(48px, 7.4vw, 124px)/0.98 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
:lang(zh-CN) .closing__title { font-style: normal; line-height: 1.24; letter-spacing: 0.04em; font-size: clamp(40px, 5.2vw, 84px); }
.closing__text {
  margin-top: 28px;
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--on-night-muted);
  display: flex; align-items: center; gap: 14px;
}
.closing__text::before { content: ""; width: 40px; height: 1px; background: var(--brass-light); flex: none; }

.claim { display: flex; flex-direction: column; align-items: flex-start; gap: 0; }
.claim__label {
  font: 500 11.5px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 14px;
}
:lang(zh-CN) .claim__label { letter-spacing: 0.24em; font-size: 12.5px; }
.claim__field {
  display: flex; align-items: baseline; width: 100%;
  border-bottom: 1px solid rgba(241, 234, 221, 0.45);
  transition: border-color 0.4s;
}
.claim__field:focus-within { border-bottom-color: var(--on-night); }
.claim__field input {
  flex: 1 1 auto; min-width: 0; width: 100%;
  background: none; border: 0; outline: 0;
  padding: 10px 0 12px;
  font: 400 clamp(26px, 2.4vw, 36px)/1.2 var(--display);
  color: var(--on-night);
  text-align: right;
}
.claim__field input::placeholder { color: rgba(241, 234, 221, 0.56); }
.claim__suffix {
  flex: none;
  font: 400 clamp(17px, 1.5vw, 22px)/1.2 var(--display);
  color: var(--on-night-muted);
  padding-left: 2px;
}
.claim__field:focus-within { box-shadow: 0 1px 0 0 var(--on-night); }
.claim__field input:focus-visible { outline: none; }
.claim__msg {
  min-height: 1.6em;
  margin: 12px 0 22px;
  font-size: 15px;
  color: var(--on-night-muted);
}

/* Footer */
.footer {
  background: var(--night);
  color: var(--on-night-muted);
  font: 400 14px/1.5 var(--sans);
}
.footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px 48px;
  padding-block: 40px;
  border-top: 1px solid rgba(241, 234, 221, 0.16);
}
.brand--light { color: var(--on-night); margin-right: 0; }

.footer__tag { font: italic 400 17px/1.4 var(--serif); color: var(--on-night-muted); }
:lang(zh-CN) .footer__tag { font-style: normal; letter-spacing: 0.06em; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer__nav a { color: var(--on-night); text-decoration: none; padding: 4px 0; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size 0.4s var(--ease); }
.footer__nav a:hover { background-size: 100% 1px; }
.footer__base {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  padding-block: 22px 32px;
  border-top: 1px solid rgba(241, 234, 221, 0.1);
  font-size: 12.5px; letter-spacing: 0.08em;
}

/* ---------- Motion ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1.3s var(--ease) both; }
.hero__meta.rise { animation-delay: 0.05s; }
.hero__title.rise { animation-delay: 0.15s; }
.hero__lead.rise { animation-delay: 0.35s; }
.hero__actions.rise { animation-delay: 0.45s; }
.hero__note.rise { animation-delay: 0.55s; }
.print--wide.rise { animation-delay: 0.3s; animation-duration: 1.6s; }
.print--tall.rise { animation-delay: 0.65s; animation-duration: 1.6s; }
.hero__trust.rise { animation-delay: 0.8s; }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 1.2s var(--ease), transform 1.2s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .rise, .js .reveal { opacity: 1; transform: none; animation: none; }
  .msg__typing i { opacity: 0.6; }
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__copy { max-width: 36em; }
  .hero__art { max-width: 820px; margin-left: auto; width: 100%; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 0; }
  .step { border-top: 1px solid var(--ink); padding-bottom: 40px; }
  .step:nth-child(2) { border-right: 0; padding-right: 0; }
  .step:nth-child(3) { padding-left: 0; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__head .h2 { max-width: none; }
  .closing__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .masthead__inner { flex-wrap: wrap; min-height: 0; padding-block: 14px 0; row-gap: 6px; }
  .nav {
    order: 3; width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--rule);
    padding-block: 4px;
  }
  .promises, .who { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .promise__no { margin-bottom: 20px; }
  .section__head--split { grid-template-columns: minmax(0, 1fr); }
  .section--gallery .body-lg { justify-self: start; }
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .plate:nth-child(even) { margin-top: 0; }
  .studio__body { grid-template-columns: minmax(0, 1fr); }
  .studio__preview { order: -1; }
  .studio__chat { border-right: 0; border-top: 1px solid var(--rule); contain: none; min-height: 0; }
  .chat { max-height: 280px; min-height: 150px; }
  .footer__top { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .masthead { position: relative; }
  .hero__meta-right { display: none; }
  .hero__art { padding-left: 0; padding-bottom: 0; }
  .print--wide { margin-right: 0; }
  .print--tall { position: relative; width: 44%; margin: -18% 0 0 auto; z-index: 1; }
  .print--wide figcaption { justify-content: flex-start; padding-right: 48%; }
  .hero__actions .btn { width: 100%; justify-content: space-between; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step, .step:nth-child(n) { padding: 26px 0 32px; border-right: 0; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 16px; }
  .step__no { grid-row: span 2; font-size: 52px; margin: 0; }
  .studio__bar { padding-left: 14px; }
  .studio__state { display: none; }
  .plate__cap { column-gap: 14px; }
  .plate__no { min-width: 1.6em; }
  .chat { padding: 18px 16px 8px; }
  .prompts__head { padding-inline: 16px; }
  .prompts__list { padding-inline: 16px; }
  .hero__title .line--indent, :lang(zh-CN) .hero__title .line--indent { padding-left: 0; }
  .hero__title .line--indent::before { display: none; }
  .faq__list summary { padding-right: 40px; }
  .faq__list details p { padding-right: 0; }
  .claim .btn { width: 100%; justify-content: space-between; }
  .nav { font-size: 13.5px; }
  .lang { font-size: 13.5px; }
}

.nb { white-space: nowrap; }

/* ---------- Additions ---------- */

/* The hero print's address bar: a website at its own address, read at a glance */
.print__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  background: #ece6da;
  border: 1px solid rgba(27, 24, 20, 0.2); border-bottom: 0;
  font: 500 11.5px/1 var(--mono); letter-spacing: 0.01em;
  color: var(--ink-2);
}
.print__lock { position: relative; width: 8px; height: 7px; margin-top: 4px; border: 1.2px solid currentColor; border-radius: 1.5px; flex: none; }
.print__lock::before {
  content: ""; position: absolute; left: 0.5px; right: 0.5px; top: -5.5px; height: 5px;
  border: 1.2px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0;
}

/* The trust strip under the hero */
.hero__trust {
  display: flex; flex-wrap: wrap; align-items: center; row-gap: 8px;
  margin-top: clamp(48px, 5.6vw, 88px);
  padding: 14px 0;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
  font: 500 11.5px/1.4 var(--sans); letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-2);
}
.hero__trust li + li::before {
  content: ""; display: inline-block; vertical-align: middle;
  width: 4px; height: 4px; margin: 0 20px; border-radius: 50%; background: var(--brass);
}
:lang(zh-CN) .hero__trust { letter-spacing: 0.22em; font-size: 12.5px; }

/* The editor: a real conversation, an input row, a Publish that goes live */
.msg--you { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.msg--you .msg__text {
  display: inline-block; max-width: 88%;
  padding: 9px 13px;
  background: var(--paper-deep); border: 1px solid var(--rule);
  text-align: left;
}
.chat__input {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 4px 22px 18px;
  padding: 10px 10px 10px 14px;
  border: 1px solid var(--rule-strong);
  font: italic 400 14.5px/1.3 var(--serif); color: var(--muted);
}
:lang(zh-CN) .chat__input { font-style: normal; }
.chat__input i { position: relative; width: 26px; height: 26px; background: var(--ink); flex: none; }
.chat__input i::after {
  content: ""; position: absolute; left: 8px; top: 9.5px; width: 7px; height: 7px;
  border-top: 1.4px solid var(--paper); border-right: 1.4px solid var(--paper); transform: rotate(45deg);
}
.studio__publish { border: 0; cursor: pointer; transition: background-color 0.3s; }
.studio__publish:hover { background: #2e2922; }
.studio__state { transition: color 0.4s, background-color 0.4s; }
.studio__state.is-live { color: #2e7046; background: #e3efe6; padding: 4px 9px; border-radius: 999px; letter-spacing: 0.12em; }
.studio__state.is-live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #2e8a4f; vertical-align: 1px; }

/* What each request changes in the preview */
.pv__fx {
  position: absolute; pointer-events: none;
  opacity: 0; transform: translateY(4px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  font-family: var(--sans); color: #dcb36c; white-space: nowrap;
}
.pv__cities {
  top: 6.4%; right: 2.4%;
  padding: 0.45em 0.8em; font-size: max(8px, 0.92cqw); letter-spacing: 0.22em; text-transform: uppercase;
  border: 1px solid rgba(220, 179, 108, 0.6); background: rgba(28, 9, 19, 0.75);
}
.pv__count {
  left: 50%; bottom: 25%; transform: translate(-50%, 4px);
  display: flex; gap: 0.9em; align-items: baseline;
  padding: 0.5em 1.1em; font-size: max(9px, 1.15cqw); letter-spacing: 0.2em; text-transform: uppercase;
  border-top: 1px solid rgba(220, 179, 108, 0.55); border-bottom: 1px solid rgba(220, 179, 108, 0.55);
  background: rgba(28, 9, 19, 0.7);
}
.pv__count b { font: 400 1.25em/1 var(--display); letter-spacing: 0.06em; color: #f7ebe5; font-variant-numeric: tabular-nums; }
.pv__foot {
  left: 0; right: 0; bottom: 0;
  padding: 2.2cqw 0 1.6cqw; text-align: center;
  background: linear-gradient(rgba(16, 5, 11, 0), rgba(16, 5, 11, 0.94) 38%);
  font: italic 400 max(9px, 1.25cqw)/1 var(--display); color: rgba(247, 235, 229, 0.92);
}
:lang(zh-CN) .pv__foot { font-style: normal; letter-spacing: 0.1em; }
.is-fx-2 .pv__cities, .is-fx-5 .pv__foot { opacity: 1; transform: none; }
.is-fx-6 .pv__count { opacity: 1; transform: translate(-50%, 0); }

/* Each theme's colours beside its name */
.plate__swatch { display: inline-flex; gap: 5px; margin-left: 14px; vertical-align: 0.32em; }
.plate__swatch i { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(27, 24, 20, 0.22); }

@media (max-width: 600px) {
  .hero__trust { flex-direction: column; align-items: flex-start; }
  .hero__trust li + li::before { display: none; }
  .chat__input { margin-inline: 16px; }
  .claim__field input { text-align: left; }
}

/* The address field's answer: a small light before the words */
.claim__msg[data-state]:not([data-state=""])::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%;
  vertical-align: 1px; background: var(--on-night-muted);
}
.claim__msg[data-state="checking"]::before { background: var(--brass-light); animation: dot 1.2s ease-in-out infinite; }
.claim__msg[data-state="free"] { color: #cfe3d3; }
.claim__msg[data-state="free"]::before { background: #6fbf86; box-shadow: 0 0 10px rgba(111, 191, 134, 0.6); }
.claim__msg[data-state="taken"]::before, .claim__msg[data-state="error"]::before { background: #d98a6e; }
