/* Hallmark · shape: a one-screen create entry, the headline on the left and one small form card on the right · genre: atmospheric · theme: custom · job: join · idea: "创建我的生日签名墙：写一个名字，拿到朋友链接和管理链接，不用账号" · vibe: "和签名墙同一个夜里，只是更安静"
 * paper: oklch(0.2 0.085 268) · accent: oklch(0.9 0.17 98) · display: Noto Serif SC · body: Manrope · hero: 两行衬线大标题和一句话压在深蓝地面的左边，右边一张只有三个控件的创建卡 · nav: 左边词标，右边一个“看示例”的胶囊 · footer: 没有页脚 · imagery: 没有照片，六个墙面小方块本身就是预览 · signature: 创建卡里的六个墙面小方块，每个都用自己的墙色、字体和笔色写一个“签”字
 * axes: dark/high-contrast-serif/chromatic-yellow · posture: drenched · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E3 S4 R4 V4 · weakest: E, 这一页只有卡片进场一个动作，主角是后面的墙，不和它抢 */
/* Hallmark · waive 37 · the six wall previews each show their own skin's display face and only the six tokens blocks in tokens.css carry them · the page itself sets two families, Noto Serif SC and Manrope */
/* Hallmark · dismissed 41 · --back-ink is the text colour on the back face of a wall, which sits on --back and not on --wall-bg, so the linter pairs it with the wrong ground · measured per skin in the browser, back text on the back is 4.8 or more in all six skins (platform notes in style.css) */
/* Hallmark · waive 79 · the headline column is centred beside a form card that runs to y 742 of 900 at 1440 x 900, so the screen is filled and the gap is under the shorter column only · the linter measures the first column, the card is the tallest thing on the screen and holds the page's one action */
/* Hallmark · dismissed 77 · the page is one screen, a headline and a form card, and the wall it leads to is the product, so there is nothing below to fill */
@import url("./tokens.css");
@import url("./base.css");

/* ---------- 顶栏 ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); max-width: var(--container); margin-inline: auto; padding: var(--space-md) var(--gutter); min-height: var(--bar-h); }
.mark { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.mark:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* ---------- 舞台：左边标题，右边创建卡 ---------- */
.stage { min-height: calc(100svh - var(--bar-h)); align-content: center; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-xl) var(--space-2xl); align-items: center; max-width: var(--container); margin-inline: auto; padding: var(--space-xl) var(--gutter) var(--space-3xl); }
.intro h1 { font-size: clamp(2.6rem, 5.6vw + 0.4rem, 6.2rem); line-height: 1.15; font-weight: 700; color: var(--color-ink); letter-spacing: var(--tracking-display); }
.lead { margin-top: var(--space-md); font-size: var(--text-lead); line-height: 1.55; color: var(--color-ink-2); max-width: 28em; }
.intro__act { margin-top: var(--space-xl); }
.mine { grid-column: 1 / -1; }

/* ---------- 创建卡 ---------- */
.card { color: var(--color-ink); background: var(--color-paper-2); border: 1px solid var(--color-rule); border-radius: var(--radius-card); padding: var(--space-lg); box-shadow: var(--shadow-card); animation: rise var(--dur-long) var(--ease-out) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card h2 { font-size: var(--text-xl); line-height: 1.3; font-weight: 700; margin-bottom: var(--space-md); }
.card h2:focus { outline: none; }
.field { margin: 0 0 var(--space-md); padding: 0; border: 0; min-width: 0; display: grid; gap: var(--space-xs); }
.field label, .field legend { font-size: var(--text-sm); font-weight: 700; color: var(--color-ink); padding: 0; }
.input { width: 100%; min-height: 48px; padding: 0 var(--space-md); background: var(--color-paper); color: var(--color-ink); border: 1px solid var(--color-muted); border-radius: var(--space-sm); transition: border-color var(--dur-micro) var(--ease-out); }
.input::placeholder { color: var(--color-muted); }
.input:hover { border-color: var(--color-ink-2); }
.input:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; border-color: var(--color-ink); }
.note { font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); max-width: none; }
.note[data-kind="error"] { color: var(--color-ink); font-weight: 700; }
.card > div > .note { margin-top: var(--space-md); }

/* ---------- 六个墙面小方块：每个都用自己的墙色、字体和笔色 ---------- */
.chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-xs); }
.chip { position: relative; display: grid; gap: var(--space-2xs); justify-items: center; padding: var(--space-2xs); border-radius: var(--space-sm); border: 2px solid transparent; cursor: pointer; background: none; color: var(--color-ink); transition: border-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip__wall { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--space-xs); background: var(--wall-bg); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--wall-edge); }
.chip__ink { font-family: var(--font-display); font-size: var(--text-lg); line-height: 1; color: var(--pen-2); }
.chip__name { font-size: var(--text-xs); font-weight: 500; color: var(--color-ink-2); }
.chip:hover { transform: translateY(-2px); border-color: var(--color-rule); }
.chip:has(input:checked) { border-color: var(--color-accent); }
.chip:has(input:checked) .chip__name { color: var(--color-ink); font-weight: 700; }
.chip:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- 按钮 ---------- */
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 700; font-size: var(--text-md); text-decoration: none; cursor: pointer; transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), opacity var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.btn:disabled, .btn[aria-busy="true"] { background: var(--color-paper-3); color: var(--color-muted); cursor: not-allowed; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet { min-height: 44px; padding: 0 var(--space-md); background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1px var(--color-rule); font-size: var(--text-sm); }
.btn--quiet:hover { background: var(--color-ink); color: var(--color-paper); }
#create-form .btn { width: 100%; }

/* ---------- 创建好了 ---------- */
.linkbox { margin-top: var(--space-md); padding: var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--space-sm); display: grid; gap: var(--space-xs); }
.linkbox--key { border-color: var(--color-accent); }
.linkbox__title { font-size: var(--text-sm); font-weight: 700; max-width: none; }
.linkbox__url { font-size: var(--text-sm); color: var(--color-ink-2); word-break: break-all; max-width: none; user-select: all; }
.row { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
#view-done > .btn { margin-top: var(--space-md); width: 100%; }
#view-done > .note { margin-top: var(--space-sm); }

/* ---------- 这台设备上的墙 ---------- */
.mine h2 { font-size: var(--text-xl); font-weight: 700; margin-bottom: var(--space-xs); }
.mine__list { list-style: none; margin: 0 0 var(--space-sm); padding: 0; }
.mine__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); padding: var(--space-sm) 0; border-top: 1px solid var(--color-rule); }
.mine__name { flex: 1 1 10em; font-weight: 700; overflow-wrap: anywhere; }

@media (max-width: 60rem) {
  .stage { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); padding-top: var(--space-md); }
  .intro h1 { font-size: var(--text-display-s); }
  .intro__act { margin-top: var(--space-lg); }
}
@media (max-width: 40rem) {
  .card { padding: var(--space-md); }
  .chips { gap: var(--space-2xs); }
}
