/* Hallmark · v2.0.0 · theme: Grid (deal: manual) · genre: editorial · posture: full-palette · job: 看完作品，写信 · hero: Ledge · nav: 纸面齐边一行 · footer: 报头 · signature: 四件作品排成索引，字号即版面 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest P: 工作室页本身没有论点，论点让「一页只放一件事」承担，用不配图和索引大字兑现 */
/* Hallmark · waive 1 · 离线单文件，中文只信系统黑体 · the display is a system CJK grotesk, weight and tracking set by hand */

/* ============================================================
   ① 令牌 —— 换皮肤只改这一段
   颜色：6 个 --color-* 决定整页长相
   字体：2 行 --font-*
   字号/间距：不用动
   ============================================================ */
:root {
  /* 纸 */
  --color-paper: oklch(97.5% 0.005 90);
  --color-paper-2: oklch(94.2% 0.006 90);
  /* 墨 */
  --color-ink: oklch(19% 0.022 266);
  --color-ink-2: oklch(31% 0.02 266);
  --color-muted: oklch(47% 0.016 266);
  --color-rule: oklch(87.5% 0.008 90);
  /* 蓝场：首屏整块底色 */
  --color-field: oklch(44% 0.2 266);
  --color-field-ink: oklch(97.5% 0.005 90);
  /* 红标：只在末屏、悬停、选中时出现 */
  --color-mark: oklch(53% 0.2 29);
  --color-mark-ink: oklch(97.5% 0.005 90);
  /* 焦点圈 */
  --color-focus: oklch(46% 0.2 266);

  /* 字体：只改这两行。系统字体保证离线打开也一致 */
  --font-display: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
  --font-body: var(--font-display);

  /* 字号 */
  --text-display: clamp(3rem, 10.5vw, 9rem);
  --text-display-s: clamp(2.1rem, 4.6vw, 3.9rem);
  --text-section: clamp(1.9rem, 3.3vw, 3.25rem);
  --text-title: 1.5rem;
  --text-lead: 1.3125rem;
  --text-md: 1.0625rem;
  --text-sm: 0.9375rem;

  /* 间距 */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 40px;
  --space-2xl: 64px;
  --space-3xl: 96px;
  --space-4xl: 144px;

  /* 版面 */
  --container: 1440px;
  --gutter: clamp(20px, 4.2vw, 72px);
  --gap-columns: 32px;
  --nav-h: 72px;
  --section-gap-s: 120px;
  --section-gap: 144px;
  --section-gap-l: 176px;

  /* 其他 */
  --radius: 0;
  --dur-short: 220ms;
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --z-nav: 300;
}

/* 想换一套配色？把下面这段的注释去掉，再把上面同名的 6 个颜色注释掉。
:root {
  --color-paper: oklch(95.5% 0.018 82);   --color-paper-2: oklch(92% 0.02 82);
  --color-ink: oklch(24% 0.03 60);        --color-ink-2: oklch(36% 0.03 60);
  --color-muted: oklch(48% 0.025 60);     --color-rule: oklch(85% 0.02 82);
  --color-field: oklch(32% 0.06 150);     --color-field-ink: oklch(96% 0.01 90);
  --color-mark: oklch(52% 0.17 45);       --color-mark-ink: oklch(97% 0.01 90);
  --color-focus: oklch(40% 0.1 150);
}
*/

/* ============================================================
   ② 基础：重置、字、链接、焦点
   ============================================================ */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: var(--space-lg);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--color-ink);
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
}

h1 { font-size: var(--text-display); line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: var(--text-section); line-height: 1.15; letter-spacing: -0.015em; }
h3 { font-size: var(--text-title); line-height: 1.3; letter-spacing: 0; }

p {
  margin: 0;
  max-width: 32em;
  text-wrap: pretty;
}

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

::selection { background: var(--color-mark); color: var(--color-mark-ink); }

html { scrollbar-color: var(--color-muted) var(--color-paper); }

:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.field { --color-focus: var(--color-field-ink); }
.field--mark { --color-focus: var(--color-mark-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 1ms !important;
    animation-duration: 1ms !important;
  }
}

/* ============================================================
   ③ 骨架：容器、十二栏网格
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-columns);
  row-gap: var(--space-xl);
}

.skip {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: var(--z-nav);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-ink);
  color: var(--color-paper);
}
.skip:focus-visible { top: var(--space-md); }

/* ============================================================
   ④ 顶栏：桌面 72px，字在纸面上
   ============================================================ */
.site-head { height: var(--nav-h); }

.site-head__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.wordmark::before {
  content: "";
  flex-shrink: 0;
  width: 12px;
  height: 12px;
  background: var(--color-mark);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  font-weight: 500;
}

.nav-list a {
  white-space: nowrap;
  transition: color var(--dur-short) var(--ease-out);
}
.nav-list a:hover { color: var(--color-mark); }

/* ============================================================
   ⑤ 首屏：整块蓝场，字压在底边（Ledge）
   ============================================================ */
.hero {
  min-height: calc(100dvh - var(--nav-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: var(--space-3xl);
  background: var(--color-field);
  color: var(--color-field-ink);
}

.hero .container { width: 100%; }

.hero__head { max-width: 12em; }

.hero__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg) var(--space-2xl);
  margin-top: var(--space-xl);
}

.hero__lede {
  max-width: 26em;
  font-size: var(--text-lead);
  line-height: 1.55;
}

.hero__acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
}

/* 主按钮：全页只有这一种实心按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding-inline: var(--space-lg);
  border: 0;
  border-radius: var(--radius);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-md);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-paper-2); }
.btn:active { background: var(--color-paper-2); transform: translateY(1px); }

.btn-quiet {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding-inline: var(--space-2xs);
  color: var(--color-field-ink);
  font-size: var(--text-md);
  font-weight: 500;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.3em;
  transition: text-decoration-thickness var(--dur-short) var(--ease-out);
}
.btn-quiet:hover { text-decoration-thickness: 2px; }

/* ============================================================
   ⑥ 小节骨架
   ============================================================ */
.section { margin-block-start: var(--section-gap); }

#work { margin-block-start: var(--section-gap); }
.statement { margin-block-start: var(--section-gap-l); }
.section--tint {
  margin-block-start: var(--section-gap-s);
  padding-block: var(--space-3xl);
  background: var(--color-paper-2);
}
#services { margin-block-start: var(--section-gap); }
.contact { margin-block-start: var(--section-gap); }

.section-head {
  max-width: 14em;
  margin-bottom: var(--space-2xl);
}

/* ============================================================
   ⑦ 作品索引：左边标题，右边四行大字，没有图片
   ============================================================ */
.works { align-items: start; }

.works__head {
  grid-column: 1 / 5;
  margin-bottom: 0;
}

.works__list {
  grid-column: 5 / 13;
  margin: 0;
  padding: 0;
  list-style: none;
}

.works__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 4.5em;
  column-gap: var(--space-lg);
  align-items: baseline;
  padding-block: var(--space-lg);
}

.works__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.9vw, 3.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
  min-width: 0;
}

/* 最新的那件最大，往下依次小一档 */
.works__row:first-child .works__name { font-size: clamp(2.4rem, 4.8vw, 4.25rem); }

.works__kind {
  color: var(--color-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.works__year {
  justify-self: end;
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   ⑧ 一句话：偏左压在大字上，右边一段小字
   ============================================================ */
.statement__head {
  grid-column: 1 / 9;
  font-size: var(--text-display-s);
  line-height: 1.28;
  letter-spacing: -0.02em;
}

.statement__body {
  grid-column: 9 / 13;
  align-self: end;
  max-width: 24em;
  color: var(--color-muted);
}

/* ============================================================
   ⑨ 三步：一 / 二 / 三
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap-columns);
  row-gap: var(--space-xl);
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps li {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  min-width: 0;
}

.steps__n {
  font-family: var(--font-display);
  font-size: var(--text-section);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.steps h3 { margin-top: var(--space-2xs); }

.steps p { max-width: 22em; color: var(--color-muted); }

/* ============================================================
   ⑩ 服务表：一行一件事，只有横线
   ============================================================ */
.table {
  width: 100%;
  border-collapse: collapse;
  text-align: start;
}

.table thead th {
  padding-block: var(--space-sm);
  border-bottom: 1px solid var(--color-ink);
  color: var(--color-muted);
  font-size: var(--text-sm);
  font-weight: 500;
  text-align: start;
}

.table tbody th,
.table tbody td {
  padding-block: var(--space-lg);
  border-bottom: 1px solid var(--color-rule);
  vertical-align: baseline;
  text-align: start;
}

.table tbody th {
  width: 32%;
  font-size: var(--text-title);
  font-weight: 700;
  letter-spacing: 0;
}

.table tbody td { color: var(--color-ink-2); }

/* ============================================================
   ⑪ 末屏：红场，一封大邮箱
   ============================================================ */
.contact {
  padding-block: var(--section-gap-l);
  background: var(--color-mark);
  color: var(--color-mark-ink);
}

.contact__head { max-width: 10em; }

.contact__mail {
  display: block;
  width: fit-content;
  margin-top: var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.4vw, 4.25rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
  overflow-wrap: break-word;
  transition: text-decoration-thickness var(--dur-short) var(--ease-out);
}
.contact__mail:hover { text-decoration-thickness: 2px; }

.contact__note {
  margin-top: var(--space-lg);
  max-width: 30em;
}

/* ============================================================
   ⑫ 页脚：报头式大字
   ============================================================ */
.site-foot {
  margin-block-start: var(--section-gap);
  padding-block: var(--space-2xl) var(--space-2xl);
}

.site-foot__mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.site-foot__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md) var(--space-xl);
  margin-top: var(--space-xl);
}

.site-foot__note {
  color: var(--color-muted);
  font-size: var(--text-sm);
}

/* ============================================================
   ⑬ 窄屏：一层层塌下来，字号跟着缩
   ============================================================ */
@media (max-width: 60rem) {
  .grid > *, .steps li { grid-column: 1 / -1; }

  .statement__head, .statement__body { grid-column: 1 / -1; }

  .hero { padding-block: var(--space-2xl); }

  .hero__foot { gap: var(--space-md) var(--space-lg); }

  .hero__lede { max-width: none; }

  .btn, .btn-quiet { min-height: 48px; }

  .works__row {
    grid-template-columns: 1fr auto;
    row-gap: var(--space-2xs);
    padding-block: var(--space-lg);
  }
  .works__name { grid-column: 1 / -1; }
  .works__kind { grid-column: 1 / 2; }
  .works__year { grid-column: 2 / 3; }

  .table thead { display: none; }
  .table tbody tr {
    display: block;
    padding-block: var(--space-lg);
    border-bottom: 1px solid var(--color-rule);
  }
  .table tbody th,
  .table tbody td {
    display: block;
    width: auto;
    padding-block: 0;
    border-bottom: 0;
  }
  .table tbody th { margin-bottom: var(--space-xs); }
}
