/*
  Kimi 视觉协作层 · 第二阶段正式交付
  ----------------------------------
  方向：A/B 混合 —— 首页与作品区 = A 纸上画廊；阅读写作页与项目列表 = 吸收 B 档案编号编排。
  分工：森林绿 = 结构、描边、编号、强调；活力橙 = 题签、批注、状态、少量点缀。
  边界：本文件只做视觉覆盖，不依赖任何 HTML / base.css / scripts / data 的改动。
  性能：纸纹与晕染均为压缩静态 WebP（alpha 已烘焙），不使用全屏 feTurbulence、
        不使用大面积运行时 blur / mix-blend-mode；装饰动画只有局部 opacity 过渡，
        且被 base.css 的 prefers-reduced-motion 规则一并降级。
*/

:root {
  /* 新增变量（不改动 base.css 既有变量） */
  --kai: "Kaiti SC", "STKaiti", "KaiTi", serif;
  --paper-deep: #ece5d5;                 /* 纸阶第三档：层次用，不做阴影堆叠 */
  --mat-edge: #e0d7c4;                   /* 衬卡细边：暖灰 1px */
  --orange-ink: #a84f10;                 /* 小字橙：纸色上对比度约 4.9:1（#ff8c42 仅作图形点缀） */
  --note-peach: #ffc9a3;                 /* 深绿底上的批注橙：对比度约 5.2:1 */
}

/* ============================================================
   首页长期结构：作品优先的个人创作档案
   ============================================================ */
.home-page .section-block {
  padding-block: clamp(4.5rem, 7vw, 7rem);
}

.home-page .section-heading {
  max-width: 48rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
}

.home-page .section-heading > p {
  max-width: 40rem;
  margin-top: 1rem;
  color: var(--muted);
}

.home-page .eyebrow::before,
.home-page .hero::after,
.home-page .service-card::before {
  display: none;
}

.home-page .hero {
  min-height: min(690px, calc(100dvh - var(--header-height) - 28px));
  padding: clamp(2.8rem, 5vw, 4.6rem);
  gap: clamp(2.5rem, 5vw, 5rem);
}

.home-page .hero h1 {
  max-width: none;
  margin-bottom: 1.2rem;
  font-size: clamp(3.25rem, 5.15vw, 4.9rem);
  line-height: 1.08;
}

.home-page .hero h1 span:not(:where(.type-copy, .type-word)) {
  display: block;
  white-space: nowrap;
}

.home-page .hero-intro {
  max-width: 29rem;
  margin-bottom: 1.6rem;
  font-size: 1rem;
}

.home-page .hero-paper {
  height: min(56vh, 520px);
  min-height: 0;
}

.home-page .hero-artwork {
  position: absolute;
  inset: 0;
}

.home-page .hero-picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.home-page .visual-section {
  background: linear-gradient(180deg, var(--sage-light), #e7ece3);
  color: var(--ink);
}

.home-page .visual-columns {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: clamp(2.5rem, 6vw, 6rem);
}

.home-page .subsection-title {
  border-color: rgba(67, 91, 71, .2);
}

.home-page .subsection-title span:not(:where(.type-copy, .type-word)),
.home-page .art-card figcaption,
.home-page .photo-card figcaption {
  color: var(--muted);
}

.home-page .art-card img,
.home-page .photo-card img {
  border: 8px solid var(--paper-bright);
  box-shadow: 0 18px 36px -32px rgba(38, 49, 41, .7);
}

.gallery-toggle {
  margin-top: 1.5rem;
  padding: .7rem 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--forest-ui);
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
}

.gallery-toggle:active {
  transform: translateY(1px);
}

.writing-home-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  margin-bottom: clamp(2.2rem, 4vw, 3.5rem);
  align-items: end;
}

.writing-home-head .large-note {
  max-width: 44rem;
  margin-top: 1rem;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.8;
}

.home-page .article-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.home-page .article-card:first-child {
  min-height: 520px;
  grid-row: 1 / 3;
}

.home-page .article-card:not(:first-child) {
  min-height: 250px;
}

.home-page .article-card:first-child h3 {
  font-size: clamp(2rem, 3.2vw, 3rem);
}

.home-page .service-card {
  min-height: 0;
}

.home-page .service-card--pilot {
  display: grid;
  grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
  gap: 1rem 3rem;
  background: var(--sage);
}

.home-page .service-card--pilot .service-card-head,
.home-page .service-card--pilot h3,
.home-page .service-card--pilot .service-link {
  grid-column: 1;
}

.home-page .service-card--pilot .service-summary,
.home-page .service-card--pilot .service-facts,
.home-page .service-card--pilot .service-boundary {
  grid-column: 2;
}

.home-page .service-card--pilot .service-summary {
  grid-row: 1 / span 2;
  margin-top: 0;
}

.home-page .service-card--pilot .service-facts {
  grid-row: 3;
}

.home-page .service-card--pilot .service-boundary {
  grid-row: 4;
}

.home-page .project-card {
  grid-template-columns: minmax(0, 1fr) auto;
}

.home-page .project-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  padding-right: 1rem;
  border-right: 0;
}

.home-page .project-qr {
  grid-column: 1 / -1;
}

.home-page .about-band {
  background: color-mix(in srgb, var(--orange) 12%, var(--paper));
  color: var(--ink);
}

.home-page .about-grid {
  grid-template-columns: minmax(260px, .85fr) minmax(220px, .55fr) minmax(0, .8fr);
}

.home-page .inquiry-section {
  padding-top: clamp(4.5rem, 7vw, 7rem);
}

.home-page .inquiry-intro {
  display: block;
}

.home-page .inquiry-intro h2 {
  font-size: clamp(2.5rem, 4vw, 3.9rem);
}

.home-page .inquiry-intro > div > p {
  max-width: 31rem;
  color: var(--muted);
}

.home-page .contact-panel {
  margin-top: 2rem;
  padding: 1.4rem;
  border-radius: 14px;
}

.contact-anchor {
  position: relative;
  top: calc(-1 * var(--header-height));
}

@media (max-width: 900px) {
  .home-page .hero {
    min-height: auto;
  }

  .home-page .visual-columns,
  .home-page .service-card--pilot,
  .home-page .about-grid {
    grid-template-columns: 1fr;
  }

  .home-page .service-card--pilot > * {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}

@media (max-width: 720px) {
  .home-page .section-block {
    padding-block: 4.25rem;
  }

  .home-page .hero {
    gap: 2rem;
    padding: 2.25rem 1.25rem 1.25rem;
  }

  .home-page .hero h1 {
    font-size: clamp(2.35rem, 10.7vw, 3.15rem);
  }

  .home-page .hero h1 span:not(:where(.type-copy, .type-word)) {
    white-space: nowrap;
  }

  .home-page .hero-paper {
    height: 82vw;
    min-height: 0;
  }

  .writing-home-head {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .home-page .article-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .home-page .article-card:first-child {
    min-height: 340px;
    grid-row: auto;
  }

  .home-page .inquiry-section {
    padding-top: 4.25rem;
  }
}

/* ============================================================
   0. 全局纸纹：静态 WebP 平铺，替换 base.css 的圆点径向渐变
   ============================================================ */
body::before {
  background-image: url("../assets/visual/paper-texture.webp");
  background-size: 512px 512px;
  opacity: .16;                         /* Keep the paper visible without dimming text pages. */
}

/* ============================================================
   1. 导航：当前页标记由橙色块改为墨色细线（结构归墨/绿）
   ============================================================ */
.site-nav a.is-current::after {
  height: 1px;
  background: var(--ink);
}

/* ============================================================
   2. 按钮：主按钮改为绿描边透明底（去实心色块的 SaaS 感）
   ============================================================ */
.button-primary {
  background: transparent;
  border-color: var(--forest);
  color: var(--forest);
}
.button-primary:hover {
  background: var(--forest);
  color: var(--paper-bright);
}

/* ============================================================
   3. 首屏：案头陈列（A 纸上画廊）
   衬卡 + 细边 + 单层弥散投影 + 轻旋转；晕染为静态 WebP
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
}
/* 作品区背后的淡绿晕染（静态图，不透明度一次性设定，无动画） */
.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 6%;
  left: 46%;
  width: min(46vw, 600px);
  aspect-ratio: 900 / 720;
  background: url("../assets/visual/bloom-green-01.webp") center / contain no-repeat;
  opacity: 0.17;
  pointer-events: none;
}
/* 右上角一滴橙色小晕染：全屏仅此一处橙色装饰 */
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 3%;
  right: 2%;
  width: 150px;
  aspect-ratio: 640 / 560;
  background: url("../assets/visual/bloom-orange-01.webp") center / contain no-repeat;
  opacity: 0.1;
  pointer-events: none;
}
.hero-paper {
  z-index: 1;
  background: var(--paper-bright);
  border-width: 12px;                    /* 白色衬卡（mat） */
  box-shadow:
    0 0 0 1px var(--mat-edge),
    0 30px 50px -20px rgba(32, 36, 31, 0.22),
    0 4px 10px rgba(32, 36, 31, 0.05);
  transform: rotate(-1.1deg);
}
/* 题签纸条：楷体、微旋转、去毛玻璃 */
.hero-signature {
  background: var(--paper-bright);
  backdrop-filter: none;
  padding: 0.5rem 0.9rem;
  box-shadow: 0 2px 6px rgba(32, 36, 31, 0.1);
  transform: rotate(-0.6deg);
  color: #4a4e47;
}
.hero-signature span:not(:where(.type-copy, .type-word)) {
  font-family: var(--kai);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.hero-signature strong {
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

/* ============================================================
   3A. 服务入口：保持纸上档案感，绿承担结构，橙只做开放状态
   ============================================================ */
.services-section {
  position: relative;
  overflow: hidden;
  overflow: clip;
}
.services-section::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: -10%;
  width: min(42vw, 520px);
  aspect-ratio: 900 / 720;
  background: url("../assets/visual/bloom-green-01.webp") center / contain no-repeat;
  opacity: .07;
  pointer-events: none;
}
.service-card {
  position: relative;
  transition: background .25s ease;
}
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 72px;
  background: var(--forest);
}
.service-card:hover { background: var(--paper-bright); }
.service-status {
  border-color: color-mix(in srgb, var(--orange-ink) 42%, transparent);
  color: var(--orange-ink);
}

/* ============================================================
   4. 编号归绿：区块号 / 项目编号（橙色退出编号角色）
   ============================================================ */
.section-number,
.project-index {
  color: var(--forest);
}
.project-index {
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   5. 作品区（A）：深绿满版改为纸上画廊墙
   ============================================================ */
.visual-section {
  background: #eef0e8;
  background: color-mix(in srgb, var(--paper) 95%, var(--forest));
  color: var(--ink);
  border-block: 1px solid var(--line);
  overflow: hidden;
  overflow: clip;
}
.light-heading .eyebrow {
  color: var(--forest);
}
.light-heading p {
  color: var(--muted);
}
.subsection-title {
  border-bottom-color: var(--line);
}
.subsection-title span:not(:where(.type-copy, .type-word)) {
  color: var(--muted);
}
.visual-section .empty-state {
  background: rgba(251, 248, 241, 0.55);
  border-color: rgba(45, 95, 63, 0.3);
}
.visual-section .empty-state p {
  color: var(--muted);
}
/* 作品 = 装裱衬卡：白衬卡 + 暖灰细边 + 单层浅投影 */
.art-card,
.photo-card {
  position: relative;
  z-index: 0;
  background: var(--paper-bright);
  border: 1px solid var(--mat-edge);
  padding: 12px;
  box-shadow: 0 14px 28px -16px rgba(32, 36, 31, 0.18);
}
/* 悬停时作品背后泛出一次淡晕染（静态 WebP，仅 opacity 过渡） */
.art-card::before,
.photo-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12%;
  background: url("../assets/visual/bloom-green-01.webp") center / contain no-repeat;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.art-card:hover::before,
.photo-card:hover::before {
  opacity: 0.16;
}
.art-card figcaption,
.photo-card figcaption {
  color: var(--muted);
}
/* 作品题签：楷体（习作档案身份） */
.art-card figcaption span:not(:where(.type-copy, .type-word)):first-child,
.photo-card figcaption span:not(:where(.type-copy, .type-word)):first-child {
  font-family: var(--kai);
  font-size: 0.88rem;
  color: #4a4e47;
}

/* ============================================================
   6. 项目列表（B 档案编号编排）
   ============================================================ */
.project-card {
  transition: background 0.25s ease;
}
a.project-card:hover {
  background: var(--paper-bright);
}
/* 状态戳归橙（小字用深橙保证对比度） */
.project-status {
  border-color: rgba(168, 79, 16, 0.4);
  border-color: color-mix(in srgb, var(--orange-ink) 40%, transparent);
  color: var(--orange-ink);
}

/* ============================================================
   7. ABOUT：撤销满屏橙块，回到纸色；橙色只留一条细批注线
   ============================================================ */
.about-band {
  background: var(--paper);
  color: var(--ink);
  border-block: 1px solid var(--line);
}
.about-band .section-number,
.about-band .eyebrow {
  color: var(--forest);
}
.about-portrait img {
  border-color: var(--paper-bright);
  box-shadow:
    0 0 0 1px var(--mat-edge),
    0 18px 34px -18px rgba(32, 36, 31, 0.22);
}
.about-portrait figcaption {
  color: var(--muted);
}
/* 图注前的橙色细线：ABOUT 区域唯一橙色元素 */
.about-portrait figcaption::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-right: 0.5rem;
  background: var(--orange);
  vertical-align: middle;
}
.about-copy {
  color: var(--ink);
}

/* ============================================================
   8. 阅读写作页（B 专栏存档）
   ============================================================ */
/* 分类 = 目录签（去 pill 实心按钮） */
.filter-button {
  padding: 0.3rem 0.1rem;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
}
.filter-button:hover {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.filter-button.is-active {
  background: transparent;
  color: var(--forest);
  border-color: transparent;
  border-bottom-color: var(--forest);
  font-weight: 700;
}
/* 文章档案编号：纯 CSS 计数器，无需 data-index / 不改 JS */
.article-list {
  counter-reset: archive-row;
}
.article-row {
  counter-increment: archive-row;
  grid-template-columns: 3.2rem 9rem 1fr 2fr auto;
}
.article-row::before {
  content: counter(archive-row, decimal-leading-zero);
  padding-top: 0.35rem;
  color: var(--forest);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}
.article-row:hover {
  background: var(--paper-bright);
  box-shadow: 0 0 0 0.6rem var(--paper-bright); /* 背景外扩，不改变布局 */
}
.article-row:hover::before {
  color: var(--orange-ink);
}
/* 公众号首发说明带：保持森林绿结构色，批注橙提亮到可读 */
.publishing-note .eyebrow {
  color: var(--note-peach);
}
.timeline-list li::before {
  color: var(--note-peach);
}
/* 荐书 = 案头便签 */
.book-card {
  background: var(--paper-bright);
  border-color: var(--mat-edge);
  box-shadow: 0 10px 22px -14px rgba(32, 36, 31, 0.16);
}

/* ============================================================
   9. 文章详情页：编者注用楷体（批注角色）
   ============================================================ */
.source-callout {
  background: #f7e8dc;
  background: color-mix(in srgb, var(--orange) 9%, var(--paper-bright));
  border-left-width: 2px;
}
.source-callout > p {
  font-family: var(--kai);
}

/* ============================================================
   10. 水滴指针：换用水滴 SVG（尺寸沿用 base.css，JS 定位偏移不变）
   ============================================================ */
.water-pointer {
  border: 0;
  background: url("../assets/visual/water-drop-cursor.svg") center / contain no-repeat;
}
.water-pointer.is-blooming {
  background: url("../assets/visual/water-drop-cursor.svg") center / contain no-repeat;
}

/* ============================================================
   11. 移动端适配（≤900px / ≤680px）：档案编号列宽同步调整
   ============================================================ */
@media (max-width: 900px) {
  .hero::before {
    top: 34%;
    left: auto;
    right: -18%;
    width: 88vw;
    opacity: 0.12;
  }
  .hero::after {
    top: 30%;
    right: 4%;
    width: 96px;
    opacity: 0.09;
  }
  .article-row {
    grid-template-columns: 2.6rem 7rem 1fr auto;
  }
  .article-row > p {
    grid-column: 3 / -1;
  }
}

@media (max-width: 680px) {
  .services-section::after { display: none; }
  .hero-paper {
    transform: rotate(-0.7deg);
  }
  .article-row {
    grid-template-columns: 2.4rem minmax(0, 1fr);
    gap: 0.7rem 1rem;
  }
  .article-row::before {
    grid-column: 1;
    grid-row: 1;
  }
  .article-row > .meta:first-child {
    grid-column: 2;
    grid-row: 1;
  }
  .article-row > h3 {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    writing-mode: horizontal-tb;
  }
  .article-row > p {
    grid-column: 2;
    grid-row: 3;
  }
  .article-row > .meta:last-child {
    grid-column: 2 / -1;
    grid-row: 4;
  }
}

/* ============================================================
   12. 减少动态：静态装饰全部保留（非动画），
       过渡动画由 base.css 的全局 prefers-reduced-motion 规则降级；
       水滴指针在触屏与减少动态下由 base.css / site.js 关闭。
   ============================================================ */

/* ============================================================
   13. 2026-08-27 小程序同源升级
   网站保留纸上画廊与编辑档案的空间感，只同步品牌标记、
   色阶、细线和商业入口层级，不复制小程序的卡片栈与底部栏。
   ============================================================ */

body {
  background: var(--paper);
}

.site-header {
  background: color-mix(in srgb, var(--paper) 90%, transparent);
}

.brand {
  gap: .65rem;
  color: var(--forest-ui);
  font-family: var(--sans);
  font-size: .92rem;
  font-weight: 720;
  letter-spacing: .04em;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1.5px solid var(--forest-ui);
  border-radius: 50%;
  background: var(--paper-bright);
  color: var(--orange-soft);
  font-family: Georgia, serif;
  font-size: .94rem;
  font-weight: 700;
  letter-spacing: -.08em;
  transform: none;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .62rem;
  color: var(--forest-ui);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--orange-soft);
}

.hero {
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, .84fr);
  min-height: min(760px, calc(100vh - var(--header-height) - 34px));
  margin-top: 28px;
  padding: clamp(3.6rem, 6vw, 6.2rem) clamp(2rem, 5vw, 5.2rem);
  border: 1px solid rgba(67, 91, 71, .14);
  border-radius: 28px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 253, 248, .86) 0 12%, transparent 37%),
    linear-gradient(138deg, #e5ebdf 0%, #edf0e7 48%, var(--paper) 100%);
}

.hero::before {
  top: auto;
  right: -8%;
  bottom: -34%;
  left: auto;
  width: min(52vw, 680px);
  border: 1px solid rgba(67, 91, 71, .11);
  border-radius: 50%;
  background: transparent;
  opacity: 1;
}

.hero::after {
  top: 2rem;
  right: 2rem;
  width: 11px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange-soft);
  opacity: 1;
}

.hero h1 {
  max-width: 9ch;
  margin-bottom: 1.35rem;
  color: var(--ink);
  font-size: clamp(3.5rem, 5.6vw, 5.35rem);
  line-height: 1.06;
}

.hero-intro {
  max-width: 33rem;
  margin-bottom: 1.45rem;
  color: var(--muted);
  font-size: clamp(.98rem, 1.2vw, 1.08rem);
}

.hero-openings {
  display: grid;
  max-width: 35rem;
  margin-bottom: 1.8rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-block: 1px solid rgba(67, 91, 71, .2);
}

.hero-openings span:not(:where(.type-copy, .type-word)) {
  display: flex;
  min-height: 54px;
  padding: .72rem .7rem;
  align-items: center;
  gap: .45rem;
  color: var(--forest-ui);
  font-size: .73rem;
  line-height: 1.45;
}

.hero-openings span:not(:where(.type-copy, .type-word)) + span:not(:where(.type-copy, .type-word)) {
  border-left: 1px solid rgba(67, 91, 71, .18);
}

.hero-openings b {
  color: var(--rust);
  font-family: Georgia, serif;
  font-size: .68rem;
  font-weight: 400;
}

.hero-paper {
  min-height: min(62vh, 600px);
  border-color: var(--paper-bright);
  border-radius: 4px;
  box-shadow: 0 24px 48px -30px rgba(38, 49, 41, .38);
  transform: rotate(-.65deg);
}

.hero-signature {
  border: 1px solid rgba(67, 91, 71, .14);
  box-shadow: 0 8px 20px -15px rgba(38, 49, 41, .38);
}

.button-primary {
  border-color: var(--forest-ui);
  color: var(--forest-ui);
}

.button-primary:hover {
  background: var(--forest-ui);
}

.services-section {
  border-top: 0;
}

.service-grid {
  gap: 18px;
  background: transparent;
  border: 0;
}

.service-card {
  min-height: 440px;
  border: 1px solid rgba(67, 91, 71, .17);
  border-radius: 20px;
  background: var(--paper-soft);
  box-shadow: 0 16px 40px -38px rgba(38, 49, 41, .55);
}

.service-card::before {
  top: 2rem;
  left: 2rem;
  width: 34px;
  height: 1px;
  background: var(--forest-ui);
}

.service-card:hover {
  background: var(--paper-bright);
}

.service-card--pilot {
  background: var(--sage);
}

.service-card--pilot:hover {
  background: #dbe5d7;
}

.service-status,
.project-status {
  border-color: rgba(160, 75, 34, .38);
  color: var(--rust);
}

.article-grid {
  gap: 16px;
  background: transparent;
}

.article-card {
  min-height: 275px;
  border: 1px solid rgba(67, 91, 71, .16);
  border-radius: 16px;
  background: var(--paper-soft);
}

.visual-section {
  background: linear-gradient(180deg, var(--sage-light), #e7ece3);
}

.art-card,
.photo-card,
.contact-panel,
.account-panel,
.book-card,
.journey-card {
  border-color: rgba(67, 91, 71, .16);
  background: var(--paper-bright);
}

.about-band {
  background: var(--paper-soft);
}

.contact-section {
  position: relative;
  margin-block: clamp(3rem, 7vw, 7rem);
  padding: clamp(2.4rem, 5vw, 4.8rem);
  border: 1px solid rgba(67, 91, 71, .15);
  border-radius: 24px;
  background: linear-gradient(140deg, var(--sage) 0%, var(--sage-light) 58%, var(--paper) 100%);
}

.contact-panel {
  border-radius: 16px;
}

.inquiry-section {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
  padding-top: clamp(2rem, 4vw, 4rem);
}

.inquiry-intro {
  display: grid;
  grid-template-columns: 3.2rem minmax(0, 1fr);
  gap: 1rem;
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.inquiry-intro h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2.65rem, 4vw, 4rem);
}

.inquiry-intro h2 span:not(:where(.type-copy, .type-word)) {
  display: block;
  white-space: nowrap;
}

.inquiry-intro p:last-child {
  max-width: 30rem;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.5rem, 3.5vw, 3rem);
  border: 1px solid rgba(67, 91, 71, .17);
  border-radius: 22px;
  background: var(--paper-bright);
  box-shadow: 0 28px 70px rgba(45, 95, 63, .07);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: .55rem;
  color: var(--forest-ui);
  font-size: .92rem;
  font-weight: 700;
}

.form-field small,
.field-hint {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 400;
}

.form-field strong {
  color: var(--rust);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid rgba(67, 91, 71, .22);
  border-radius: 12px;
  padding: .9rem 1rem;
  color: var(--ink);
  background: #fffdf8;
  font: inherit;
  font-weight: 400;
  line-height: 1.6;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.form-field textarea {
  resize: vertical;
  min-height: 11rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: 0;
  border-color: var(--forest);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(45, 95, 63, .1);
}

.field-hint {
  justify-self: end;
  margin-top: -.3rem;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.consent-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .7rem;
  align-items: start;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.65;
}

.consent-field input {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: .15rem;
  accent-color: var(--forest);
}

.form-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.inquiry-submit {
  border: 0;
  cursor: pointer;
}

.inquiry-submit:disabled {
  cursor: wait;
  opacity: .6;
}

.form-status {
  flex: 1 1 16rem;
  min-height: 1.5rem;
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

.form-status[data-state="success"] { color: var(--forest); }
.form-status[data-state="error"] { color: #9b342b; }
.form-status[data-state="notice"] { color: var(--rust); }

.guestbook-invite {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, .7fr);
  gap: clamp(2rem, 7vw, 8rem);
  align-items: end;
  border-top: 1px solid rgba(67, 91, 71, .2);
}

.guestbook-invite h2 {
  font-size: clamp(2.7rem, 5.2vw, 5.4rem);
  line-height: 1.05;
}

.guestbook-invite > div:last-child {
  display: grid;
  gap: 1.4rem;
  justify-items: start;
  color: var(--muted);
}

.guestbook-page {
  background: var(--paper);
}

.guestbook-hero {
  display: grid;
  grid-template-columns: .25fr minmax(0, 1.25fr) minmax(240px, .62fr);
  gap: clamp(1.4rem, 4vw, 4rem);
  align-items: end;
  min-height: 580px;
  margin-top: 28px;
  padding: clamp(3rem, 7vw, 6rem);
  border: 1px solid rgba(67, 91, 71, .14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 140, 66, .18), transparent 26%),
    linear-gradient(145deg, var(--sage) 0%, var(--sage-light) 58%, var(--paper) 100%);
}

.guestbook-hero-number {
  align-self: start;
  color: var(--orange-ink);
  font: 700 .76rem/1.5 var(--sans);
  letter-spacing: .18em;
}

.guestbook-hero-copy h1 {
  margin-bottom: 1.8rem;
  font-size: clamp(3.5rem, 5.8vw, 6.3rem);
  line-height: .98;
  letter-spacing: -.04em;
}

.guestbook-hero-copy h1 span:not(:where(.type-copy, .type-word)) {
  display: block;
  white-space: nowrap;
}

.guestbook-hero-copy > p:last-child {
  max-width: 37rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.guestbook-note {
  padding: 1.35rem 1.5rem;
  border-left: 3px solid var(--orange);
  background: rgba(255, 253, 248, .7);
}

.guestbook-note strong {
  color: var(--forest-ui);
}

.guestbook-note p {
  margin-top: .55rem;
  color: var(--muted);
  font-size: .86rem;
}

.guestbook-compose {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.32fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.guestbook-compose-intro {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}

.guestbook-compose-intro h2,
.guestbook-wall-head h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 5vw, 5rem);
}

.guestbook-compose-intro > p:last-child {
  max-width: 25rem;
  color: var(--muted);
}

.guestbook-form {
  border-top: 5px solid var(--forest);
}

.form-field.is-required > span:not(:where(.type-copy, .type-word)) small {
  color: var(--rust);
  font-weight: 700;
}

.guestbook-check {
  padding: .3rem 0;
}

.guestbook-wall {
  background: var(--forest-ui);
  color: var(--paper-bright);
}

.guestbook-wall-head {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.guestbook-wall-head .eyebrow,
.guestbook-wall-head > p {
  color: var(--note-peach);
}

.guestbook-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 253, 248, .18);
  border: 1px solid rgba(255, 253, 248, .18);
}

.guestbook-card,
.guestbook-empty {
  padding: clamp(1.5rem, 3vw, 2.8rem);
  background: var(--forest-ui);
}

.guestbook-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--note-peach);
  font-size: .73rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.guestbook-card blockquote {
  margin: clamp(1.6rem, 3vw, 2.5rem) 0 1.2rem;
  color: var(--paper-bright);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.55;
}

.guestbook-byline,
.guestbook-empty p,
.guestbook-load-error {
  color: rgba(255, 253, 248, .68);
  font-size: .84rem;
}

.guestbook-reply {
  margin-top: 1.6rem;
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--orange);
  background: rgba(255, 253, 248, .08);
}

.guestbook-reply strong {
  display: block;
  margin-bottom: .35rem;
  color: var(--note-peach);
  font-size: .76rem;
}

.guestbook-reply p {
  color: rgba(255, 253, 248, .84);
}

.guestbook-empty,
.guestbook-load-error {
  grid-column: 1 / -1;
}

.guestbook-empty strong {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--serif);
  font-size: 1.8rem;
}

.publishing-note {
  background: var(--forest-ui);
}

.page-hero {
  min-height: 520px;
  margin-top: 28px;
  padding: clamp(3.5rem, 7vw, 6.5rem) clamp(2rem, 5vw, 5rem);
  grid-template-columns: .22fr 1.18fr .72fr;
  border: 1px solid rgba(67, 91, 71, .14);
  border-radius: 26px;
  background:
    radial-gradient(circle at 85% 22%, rgba(255, 253, 248, .8) 0 8%, transparent 32%),
    linear-gradient(140deg, var(--sage) 0%, var(--sage-light) 58%, var(--paper) 100%);
}

.page-hero h1,
.page-hero--compact h1 {
  font-size: clamp(3.5rem, 6.6vw, 6.3rem);
}

.page-hero-copy {
  padding-top: 1.6rem;
}

.archive-section {
  padding-top: clamp(3.5rem, 6vw, 6rem);
}

.article-row {
  padding: 1.65rem .5rem;
}

.article-row:hover {
  border-radius: 8px;
  background: rgba(226, 233, 222, .55);
  box-shadow: none;
}

.article-title {
  max-width: 100%;
  font-size: clamp(2.65rem, 5vw, 4.8rem);
}

.source-callout {
  background: color-mix(in srgb, var(--orange-soft) 9%, var(--paper-bright));
  border-left-color: var(--rust);
}

@media (max-width: 900px) {
  .hero,
  .page-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero::before {
    right: -28%;
    bottom: -18%;
    width: 94vw;
    opacity: 1;
  }

  .page-hero-copy {
    grid-column: 1;
  }
}

@media (max-width: 680px) {
  .brand-mark {
    width: 29px;
    height: 29px;
    font-size: .82rem;
  }

  .hero,
  .page-hero {
    grid-template-columns: minmax(0, 1fr);
    width: calc(100% - 24px);
    margin-top: 12px;
    padding: 2.4rem 1.25rem 1.35rem;
    border-radius: 20px;
  }

  .hero {
    gap: 2rem;
  }

  .hero-copy,
  .page-hero > * {
    min-width: 0;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.85rem, 13.6vw, 4rem);
  }

  .hero-intro {
    margin-bottom: 1.1rem;
    font-size: .94rem;
  }

  .hero-openings {
    grid-template-columns: 1fr;
  }

  .hero-openings span:not(:where(.type-copy, .type-word)) {
    min-height: 42px;
    padding: .55rem .2rem;
  }

  .hero-openings span:not(:where(.type-copy, .type-word)) + span:not(:where(.type-copy, .type-word)) {
    border-top: 1px solid rgba(67, 91, 71, .16);
    border-left: 0;
  }

  .hero-actions {
    gap: 1rem;
  }

  .hero-paper {
    min-height: 103vw;
    border-width: 8px;
  }

  .hero-signature {
    right: .65rem;
    bottom: .65rem;
  }

  .service-grid {
    gap: 12px;
  }

  .service-card {
    min-height: 0;
    border-radius: 16px;
  }

  .service-card::before {
    top: 1.45rem;
    left: 1.6rem;
  }

  .contact-section {
    width: calc(100% - 24px);
    padding: 2.3rem 1.25rem;
    border-radius: 20px;
  }

  .inquiry-section,
  .form-grid,
  .guestbook-invite,
  .guestbook-compose,
  .guestbook-list {
    grid-template-columns: 1fr;
  }

  .inquiry-intro {
    position: static;
  }

  .guestbook-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 2.6rem 1.35rem;
  }

  .guestbook-hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
  }

  .guestbook-compose-intro {
    position: static;
  }

  .guestbook-wall-head {
    align-items: start;
    flex-direction: column;
  }

  .inquiry-form {
    padding: 1.25rem;
    border-radius: 18px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .inquiry-submit {
    width: 100%;
  }

  .form-status {
    flex: 0 0 auto;
    width: 100%;
  }

  .page-hero {
    gap: .65rem;
    padding-bottom: 2.4rem;
  }

  .page-hero h1,
  .page-hero--compact h1 {
    font-size: clamp(2.75rem, 12vw, 4rem);
  }

  .page-hero-copy {
    padding-top: .5rem;
  }

  .article-row {
    padding-inline: .25rem;
  }
}

/* 2026-08-28 首屏作品完整展示：正方形原图不裁切，题签移出画框。 */
.home-page .hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-end;
  gap: .85rem;
}

.home-page .hero-paper {
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
}

.home-page .hero-artwork {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: var(--paper-bright);
}

.home-page .hero-signature {
  position: static;
  right: auto;
  bottom: auto;
  width: max-content;
  max-width: 100%;
  margin-right: clamp(.2rem, 4vw, 1.6rem);
}

@media (max-width: 680px) {
  .home-page .hero h1 {
    font-size: clamp(2rem, 10vw, 2.65rem);
  }

  .home-page .hero h1 span:not(:where(.type-copy, .type-word)) {
    white-space: normal;
  }

  .home-page .hero-signature {
    margin-right: .2rem;
  }
}

/* 完整呈现作品；缩略图与大图都不强行裁切原始构图。 */
.home-page .art-card img,
.home-page .photo-card img { aspect-ratio:auto; height:auto; object-fit:contain; }
.artwork-open-link { display:block; cursor:zoom-in; }
.artwork-open-link:focus-visible { outline:3px solid var(--forest); outline-offset:4px; }
body.artwork-open { overflow:hidden; }
.artwork-lightbox { width:min(1100px,94vw); max-width:94vw; max-height:94dvh; padding:clamp(.75rem,2vw,1.5rem); border:1px solid var(--line); background:var(--paper-bright); color:var(--ink); }
.artwork-lightbox::backdrop { background:rgb(15 30 20 / .82); }
.artwork-lightbox button { display:block; margin:0 0 .75rem auto; min-height:44px; padding:.5rem 1rem; font:inherit; color:var(--forest); border:1px solid var(--forest); background:var(--paper-bright); cursor:pointer; }
.artwork-lightbox img { display:block; width:100%; max-height:calc(94dvh - 150px); object-fit:contain; }
.artwork-lightbox p { margin:.75rem 0 0; font-size:1rem; overflow-wrap:anywhere; }

/* September review: keep the paper gallery, bring current work within reach. */
.home-discover{display:grid;grid-template-columns:1.25fr 1fr;gap:2rem;padding-block:2.5rem;border-bottom:1px solid var(--line)}
.home-discover>a{display:block;color:var(--ink);text-decoration:none;min-width:0}
.home-discover .discover-map{display:grid;grid-template-columns:150px 1fr;gap:1.5rem;align-items:center}
.home-discover img{width:100%;height:150px;object-fit:cover;border:6px solid var(--paper-bright)}
.home-discover .discover-ask{padding-left:2rem;border-left:1px solid var(--line)}
.home-discover h2{font-size:1.8rem;margin:0 0 .6rem;line-height:1.4}
.home-discover .eyebrow{margin:0 0 .6rem}.home-discover p:not(.eyebrow){color:var(--muted);margin-bottom:.8rem;font-size:.95rem}
.home-discover a:hover .text-link{color:var(--rust)}
.home-page .section-block{padding-block:clamp(3rem,5vw,5rem)}
.writing-index .page-hero{display:block;min-height:0;padding:2rem 2.5rem;margin-bottom:1.25rem}
.writing-index .page-hero h1{font-size:clamp(2.3rem,4vw,3.5rem);line-height:1.25;margin:.75rem 0 1rem}
.writing-index .page-hero h1 br{display:none}
.writing-index .page-hero-copy{padding:0;max-width:52rem;font:inherit;color:var(--muted)}
.writing-index .page-hero-copy p{margin:0}.writing-index .page-hero-copy p+p{margin-top:.5rem}
.timeline-shortcut{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding-block:1rem;border-top:1px solid var(--line)}
.timeline-shortcut h2{font-family:var(--sans);font-size:1rem;line-height:1.5;margin:0}
.timeline-shortcut a{font-size:.9rem}
.writing-index .archive-tools{padding-block:1.25rem;gap:1rem}
.writing-index .archive-section{padding-top:2rem}
.writing-index .archive-heading{margin-bottom:1.25rem}.writing-index .archive-heading h2{font-size:1.9rem}
.writing-index .article-row{padding-block:1.5rem}
.button,.ask-card button,.ask-history-head button{border-radius:6px;min-height:44px}
@media(max-width:680px){
 .home-discover{grid-template-columns:1fr;gap:1.4rem;padding-block:1.5rem}
 .home-discover .discover-map{grid-template-columns:100px 1fr;gap:1rem}.home-discover img{height:115px}
 .home-discover .discover-ask{padding:1.4rem 0 0;border-left:0;border-top:1px solid var(--line)}
 .home-discover h2{font-size:1.5rem}.home-page .section-heading{margin-bottom:1.5rem}
 .writing-index .page-hero{padding:1.5rem 1.25rem}.writing-index .page-hero h1{font-size:2rem;letter-spacing:-.03em}
 .writing-index .page-hero-copy{font-size:.95rem;line-height:1.75}
 .timeline-shortcut{display:block}.timeline-shortcut h2{margin-bottom:.4rem}
 .writing-index .archive-tools{gap:1rem}.writing-index .archive-section{padding-top:1.5rem}
}

/* Second refinement: clearer reading rows and a shorter mobile gallery. */
.writing-index .article-row{grid-template-columns:2.5rem 8rem minmax(0,1.05fr) minmax(0,1.5fr);gap:.8rem 1.5rem}
.writing-index .article-row::before{grid-column:1;grid-row:1}
.writing-index .article-row>.meta:first-child{grid-column:2;grid-row:1}
.writing-index .article-row>h3{grid-column:3;grid-row:1;line-height:1.5}
.writing-index .article-row>p:not(.meta){grid-column:4;grid-row:1;line-height:1.85}
.writing-index .article-row>.meta:last-child{grid-column:3 / -1;grid-row:2;letter-spacing:.02em;line-height:1.75;font-size:.75rem}
.home-page .contact-links .social-link-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
.home-page .social-link-button{border-radius:6px;text-decoration:none}
.filter-button{min-height:44px}.gallery-toggle{min-height:44px}
@media(max-width:900px){
 .writing-index .article-row{grid-template-columns:minmax(0,1fr);gap:.65rem;padding:1.5rem 0}
 .writing-index .article-row::before{display:none}
 .writing-index .article-row>.meta:first-child{grid-column:1;grid-row:1}
 .writing-index .article-row>h3{grid-column:1;grid-row:2;font-size:1.4rem}
 .writing-index .article-row>p:not(.meta){grid-column:1;grid-row:3}
 .writing-index .article-row>.meta:last-child{grid-column:1;grid-row:4}
}
@media(max-width:680px){
 .home-page .art-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
 .home-page .art-card figcaption{display:block;font-size:.75rem;line-height:1.6}
 .home-page .art-card figcaption>span{display:block}
 .home-page .art-card img{border-width:5px}
 .home-page .article-card:first-child,.home-page .article-card:not(:first-child){min-height:0;padding:1.5rem}
 .home-page .article-card:first-child h3{font-size:1.75rem;line-height:1.5}
 .home-page .article-card .article-arrow{margin-top:1rem}
 .home-page .project-card,.home-page .project-card:nth-child(odd),.home-page .project-card:nth-child(even){min-height:0;padding-block:1.25rem;gap:1rem}
}

/* September 6: a quieter gallery, with the work and reading paths first. */
.home-page .hero { min-height:0; margin-top:1rem; padding:clamp(2rem,5vw,4.5rem) 0; border:0; border-radius:0; background:none; gap:clamp(2rem,5vw,5rem); }
.home-page .hero::before,.home-page .hero::after { display:none; }
.home-page .hero-paper { border:0; border-radius:0; box-shadow:none; transform:none; background:none; }
.home-page .hero-signature { display:flex; gap:1rem; align-items:baseline; margin:0; padding:.5rem 0; border:0; box-shadow:none; background:none; transform:none; }
.home-page .hero-signature strong { font-size:1rem; }
.home-page .art-card,.home-page .photo-card { border:0; background:none; box-shadow:none; }
.home-page .art-card img,.home-page .photo-card img { border:0; border-radius:0; box-shadow:none; }
.home-discover img { border:0; height:auto; object-fit:contain; }
.writing-index .page-hero { border:0; border-radius:0; background:none; padding:1.5rem 0; }
.writing-index .page-hero::before,.writing-index .page-hero::after { display:none; }
.article-row { scroll-margin-top:calc(var(--header-height) + 1.5rem); }
@media(max-width:680px) {
  .home-page .hero { margin-top:0; padding:2rem 0 1.25rem; gap:1.5rem; }
  .home-page .hero-copy { padding:0; }
  .home-page .hero-visual { width:min(100%,340px); justify-self:center; gap:.25rem; }
  .home-page .hero-signature { margin:0; }
  .writing-index .page-hero { padding:.75rem 0 1rem; margin-bottom:.5rem; }
  .writing-index .page-hero h1 { margin:.5rem 0 .75rem; font-size:1.9rem; }
  .writing-index .page-hero-copy { font-size:.9rem; line-height:1.7; }
  .writing-index .timeline-shortcut { padding-block:.75rem; }
  .writing-index .article-row>p:not(.meta) { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; font-size:.95rem; }
  .writing-index .article-row>.meta:last-child { font-size:.75rem; color:var(--muted); }
  .article-shell { padding-top:2rem; }
  .article-title { font-size:clamp(2rem,8.5vw,2.75rem); line-height:1.4; }
  .article-deck { margin-block:1.5rem; font-size:1.1rem; line-height:1.8; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation:none !important; transition:none !important; }
}

@media(min-width:1081px){.service-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}

.tevia-home-entry{margin-block:2rem 0}.tevia-home-entry>a{display:flex;align-items:center;gap:24px;border-block:1px solid var(--line);padding:28px 0}.tevia-home-entry img{width:90px;height:90px;border-radius:50%;object-fit:cover;object-position:50% 32%}.tevia-home-entry h2{font-size:1.75rem;margin:.25rem 0}.tevia-home-entry p{margin:0;font-size:1rem;color:var(--muted)}.tevia-home-entry span{font-size:.8rem;color:var(--forest)}.tevia-entry-link{margin-left:auto;white-space:nowrap}@media(max-width:680px){.tevia-home-entry>a{gap:16px;flex-wrap:wrap}.tevia-home-entry img{width:68px;height:68px}.tevia-home-entry h2{font-size:1.4rem}.tevia-home-entry p{font-size:.8rem}.tevia-entry-link{width:100%;margin-left:84px}}

/* 2026-09: shorter entry paths, preserving full artwork proportions. */
.purpose-links{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding-block:24px}
.purpose-links a{padding:18px;border:1px solid var(--line,#d4d9cf);border-radius:8px;color:inherit;text-decoration:none;font-size:18px}
.purpose-links a:hover{background:#e9eee4}.purpose-links span{display:block;font-size:13px;color:#2d5f3f;margin-top:6px}
.fact-early-actions{margin:22px 0;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
img[width][height]{height:auto}
@media(max-width:680px){
.purpose-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-block:16px}
.purpose-links a{font-size:16px;padding:14px}
.writing-home .article-card p,.article-row>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.section-block{padding-top:48px;padding-bottom:48px}
.hero{padding-top:28px;padding-bottom:20px}
}

/* Clear reading on service pages and the home/contact journey. */
body.home-page, body:has(.fact-page--service) {
  --paper: #fcfaf6;
  --paper-soft: #fffdf9;
  --ink: #202b24;
  --muted: #414d43;
  background: var(--paper);
}
body.home-page::before, body:has(.fact-page--service)::before { opacity: .16; }
.home-page .service-summary, .home-page .inquiry-section p,
.home-page .inquiry-section label, .home-page .contact-panel p {
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.85;
}
.home-page .service-card h3 { font-weight: 600; }
.inquiry-service-price { padding: 1rem 1.2rem; border: 1px solid var(--line); background: var(--paper-bright); border-radius: 10px; }

/* Home writing: four equal cards instead of one oversized lead story. */
.home-page #featured-writing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto;
  grid-auto-rows: 1fr;
  gap: 18px;
}
.home-page #featured-writing .article-card {
  grid-row: auto;
  min-height: 0;
  padding: clamp(1.5rem, 2.6vw, 2rem);
}
.home-page #featured-writing .article-card h3 {
  margin-block: 1.4rem .9rem;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.4;
}
.home-page #featured-writing .article-card p:not(.meta) { font-size: 1rem; line-height: 1.85; }
.home-page #featured-writing .card-arrow { padding-top: .8rem; }
@media (max-width: 700px) {
  .home-page #featured-writing { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
}

/* The sketch map is a lightweight visual stop between service and writing cards. */
.home-map-section { padding-block: clamp(2rem, 4vw, 4rem); scroll-margin-top: 100px; }
.home-map-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2rem; }
.home-map-heading h2 { margin-bottom: 0; }
.home-map-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(240px, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.home-map-figure { margin: 0; }
.home-map-canvas { position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-soft); }
.home-map-image { display: block; overflow: hidden; border-radius: inherit; }
.home-map-image img { width: 100%; height: auto; }
.home-map-pin { position: absolute; left: var(--pin-x); top: var(--pin-y); transform: translate(-50%, -50%); min-width: 44px; min-height: 44px; display: flex; flex-direction: column; justify-content: center; align-items: center; color: #173825; font-family: var(--sans); font-size: .8rem; font-weight: 650; text-align: center; white-space: nowrap; }
.home-map-dot { width: 13px; height: 13px; border: 3px solid #fffdf8; border-radius: 50%; background: #2d5f3f; box-shadow: 0 0 0 1px #2d5f3f; }
.home-map-pin>span:last-child { margin-top: 4px; padding: 2px 7px; border-radius: 4px; background: #fffdf8; box-shadow: 0 2px 8px #26312912; }
.home-map-pin:hover .home-map-dot, .home-map-pin:focus-visible .home-map-dot { background: #a04b22; }
.home-map-pin:focus-visible { outline: 2px solid #173825; outline-offset: 4px; border-radius: 4px; }
.home-map-figure figcaption { padding-top: .8rem; color: var(--muted); font-size: .8rem; line-height: 1.7; }
.home-map-story>p { color: var(--muted); line-height: 1.85; }
.home-map-story .home-map-lead { color: var(--ink); font-family: var(--serif); font-size: clamp(1.4rem, 2vw, 1.9rem); font-weight: 600; }
.home-map-work { display: block; margin-top: 1.5rem; }
.home-map-work img { width: 100%; max-height: 240px; object-fit: contain; background: var(--paper-bright); border-radius: 10px; }
.home-map-work span { display: block; padding-top: .7rem; color: var(--forest-dark); font-size: .9rem; font-weight: 600; }
@media (max-width: 800px) {
 .home-map-layout { grid-template-columns: minmax(0, 1fr); }
 .home-map-heading { align-items: start; flex-direction: column; gap: 1rem; }
 .home-map-story { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
 .home-map-work { grid-column: 2; grid-row: 1 / 3; margin-top: 0; }
 .home-map-pin { font-size: .7rem; }
 .home-map-pin>span:last-child { padding: 1px 3px; }
}
@media (max-width: 440px) {
 .home-map-story { display: block; }
 .home-map-work { margin-top: 1rem; }
 .home-map-work img { max-height: 210px; }
}

/* Keep helper links, price and form in a single column; no sticky overlap. */
.home-page .inquiry-intro { position: static; top: auto; min-width: 0; }
.inquiry-details { display: grid; align-content: start; gap: 1.25rem; min-width: 0; }
.inquiry-details > .text-link { justify-self: start; }
.inquiry-details > .inquiry-service-price { margin: 0; }
.inquiry-details .inquiry-form { min-width: 0; }
@media (max-width: 900px) {
 .home-page .inquiry-section { grid-template-columns: minmax(0, 1fr); }
}

/* 2026-09-11: consistent reading across articles, archives and forms. */
.article-body, .article-deck, .article-excerpt {
  font-family: var(--sans);
  font-size: 1.125rem;
  font-weight: 400;
  line-height: 1.9;
  color: var(--ink);
}
.article-body h2, .article-body h3 { font-family: var(--sans); font-weight: 600; }
.article-title { font-weight: 600; }
.page-hero > p:not(.eyebrow), .page-hero-copy p { font-size: 1rem; }
.search-box input { font-size: 1rem; min-height: 44px; }
.filter-button { min-width: 44px; font-size: .875rem; }
.site-nav a.is-current { color: var(--forest); font-weight: 650; }
.archive-count-controls { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem 1rem; }
.archive-count-controls p { margin: 0; color: var(--muted); }
#archive-reset { min-height: 44px; padding: .5rem .8rem; border: 1px solid var(--forest); border-radius: 6px; background: var(--paper-bright); color: var(--forest); font: inherit; font-size: .875rem; cursor: pointer; }
#archive-reset[hidden] { display: none; }
#archive-reset:hover { background: var(--sage-light); }
#archive-reset:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; }
@media (max-width: 680px) { .archive-count-controls { flex-direction: column; align-items: flex-end; } }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea { font-size: 1rem; }
.guestbook-page .consent-field, .guestbook-page .form-note { font-size: .875rem; }
@media (min-width: 701px) { .article-deck { font-size: 1.25rem; } }

/* Reading starts sooner, with a direct route past the cover and source note. */
.article-page .article-shell { padding-top: clamp(2rem, 4vw, 3.5rem); }
.article-page .article-title { font-size: clamp(2rem, 4.8vw, 3.5rem); line-height: 1.2; margin-block: 1rem 1.25rem; }
.article-page .article-meta { padding-bottom: 1.25rem; }
.article-reading-actions { margin-top: .75rem; }
.article-reading-actions .text-link { min-height: 44px; font-size: 1rem; }
.article-page .article-cover { margin-block: 1.5rem; }
.article-page .article-deck { margin-block: 1.5rem; }
.article-page .source-callout { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.25rem; margin-block: 1.5rem; padding: .75rem 1rem; }
.article-page .source-callout > p { margin: 0; font-family: var(--sans); font-size: .9375rem; }
.article-page .source-callout .text-link { min-height: 44px; font-size: .9375rem; }
.guestbook-note p { font-size: .9375rem; line-height: 1.8; }

/* Inquiry contact fallback: readable instructions in both languages. */
.inquiry-contact-note { padding: 1.1rem; border: 1px solid rgba(67,91,71,.22); border-radius: 12px; background: #f1f4eb; overflow-wrap: anywhere; }
.inquiry-contact-note[hidden] { display: none; }
.inquiry-contact-note strong { display: block; color: var(--forest-ui); }
.inquiry-contact-note p, .inquiry-contact-help { font-size: .9rem; line-height: 1.7; }
.inquiry-contact-note p { margin: .65rem 0; }
.inquiry-contact-help { margin: 0; }
.inquiry-contact-help span, .inquiry-copy-status { display: block; }
.inquiry-copy-status { margin-top: .5rem; font-size: .8rem; }
.inquiry-contact-note .button { white-space: normal; text-align: center; max-width: 100%; }

.inquiry-account-qr summary { cursor: pointer; color: var(--forest-ui); font-weight: 700; padding: .6rem 0; }
.inquiry-account-qr img { display: block; width: min(100%, 220px); height: auto; margin: .8rem 0; }
.inquiry-contact-note > .button { margin: .35rem .3rem .35rem 0; }
