/* Coquina Chinese Community Church / 磐石华人基督教会
   One stylesheet for every page. Tokens come from the brand board in assets/images/brand-board.png. */

@font-face {
  font-family: "Newsreader";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/newsreader:vf@latest/latin-opsz-normal.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("https://cdn.jsdelivr.net/fontsource/fonts/geist:vf@latest/latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #f7f6f3;
  --surface: #ffffff;
  --line: #eaeaea;
  --line-strong: #d9d7d2;
  --ink: #2f3437;
  --ink-soft: #55595c;
  --muted: #787774;
  --accent: #c98a2b;
  --accent-ink: #8a5a13;
  --accent-wash: #fbf3db;
  --blue-wash: #e1f3fe;
  --blue-ink: #1f6c9f;

  --serif: "Newsreader", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", Georgia, serif;
  --sans: "Geist", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --measure: 66ch;
  --wrap: 1180px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* A faint warm light spot behind every page so the paper never reads as flat. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 85% -5%, rgba(201, 138, 43, 0.07), transparent 70%),
    radial-gradient(40% 30% at 0% 100%, rgba(31, 108, 159, 0.045), transparent 70%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(138, 90, 19, 0.4);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--wrap));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 8px;
}
.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name .zh {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.brand-name .en {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-links a:hover {
  color: var(--ink);
  background: rgba(47, 52, 55, 0.05);
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
  border-radius: 0;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.lang-switch:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.lang-switch svg {
  width: 14px;
  height: 14px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg {
  width: 20px;
  height: 20px;
}
.nav-toggle .icon-close {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-open {
  display: none;
}
.nav-toggle[aria-expanded="true"] .icon-close {
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: inline-flex;
    flex: none;
  }
  .nav-bar {
    flex-wrap: wrap;
    gap: 0.75rem;
    min-height: 64px;
  }
  .brand {
    flex: 1 1 0;
    min-width: 0;
    max-width: calc(100% - 6.75rem);
  }
  .brand-name {
    min-width: 0;
  }
  .brand-name .en {
    display: none;
  }
  .brand-name .zh {
    font-size: 1rem;
    line-height: 1.25;
    white-space: normal;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .nav-right {
    flex: none;
    gap: 0.5rem;
  }
  .nav-bar > nav {
    flex: 1 0 100%;
    order: 3;
    min-width: 0;
  }
  .nav-links {
    position: static;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
    margin: 0 0 0.35rem;
    padding: 0.25rem 0 0.5rem;
    border-top: 1px solid var(--line);
    background: transparent;
    max-height: calc(100dvh - 5rem);
    overflow-y: auto;
  }
  .nav-links.is-open {
    display: flex;
  }
  .nav-links a {
    padding: 0.85rem 0.15rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 1.05rem;
  }
  .nav-links a[aria-current="page"] {
    box-shadow: none;
    color: var(--accent-ink);
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 40px;
    height: 40px;
  }
  .lang-switch {
    font-size: 0;
    gap: 0;
    padding: 0.55rem;
  }
  .lang-switch svg {
    width: 18px;
    height: 18px;
  }
}

/* ---------- Typography ---------- */

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.6em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 450;
}
h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}
h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}
h4 {
  font-size: 1.1rem;
}

p {
  margin: 0 0 1.1em;
}
p:last-child {
  margin-bottom: 0;
}

.prose {
  max-width: var(--measure);
}
.prose p,
.prose li {
  color: var(--ink-soft);
}
.prose strong {
  color: var(--ink);
  font-weight: 600;
}
.prose ol,
.prose ul {
  padding-left: 1.4rem;
}
.prose li {
  margin-bottom: 0.7em;
}
.prose li::marker {
  color: var(--accent-ink);
  font-weight: 500;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  line-height: 1.5;
  color: var(--ink);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

html[lang="zh-CN"] .eyebrow {
  letter-spacing: 0.25em;
  text-transform: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 120ms ease;
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: #1d2123;
  color: #fff;
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--ink);
  color: var(--ink);
}
.btn svg {
  width: 16px;
  height: 16px;
}

/* ---------- Home hero ---------- */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-mark {
  width: 96px;
  height: 96px;
  margin-bottom: 1.75rem;
  border-radius: 14px;
  object-fit: cover;
}
.hero h1 {
  margin-bottom: 0.5rem;
}
.hero .hero-sub {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.4rem);
  color: var(--muted);
  margin-bottom: 1.75rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero-visual {
  position: relative;
}
.hero-visual .photo-main {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  width: 100%;
}
.hero-visual .photo-inset {
  position: absolute;
  right: -6%;
  bottom: -12%;
  width: 46%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  border: 6px solid var(--paper);
}
.hero-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 2rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  max-width: 34rem;
}
.hero-meta dt {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.2rem;
}
html[lang="zh-CN"] .hero-meta dt {
  text-transform: none;
  letter-spacing: 0.15em;
}
.hero-meta dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink);
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    margin-top: 2rem;
    padding-bottom: 12%;
  }
}

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

.section {
  padding-block: var(--section);
}
.section + .section {
  padding-top: 0;
}
.section-head {
  max-width: 44rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.letter {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.letter aside {
  position: sticky;
  top: 6rem;
}
.letter aside .eyebrow {
  margin-bottom: 0.5rem;
}
.letter aside p {
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 24ch;
}
.letter .prose p:first-of-type {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
@media (max-width: 900px) {
  .letter {
    grid-template-columns: 1fr;
  }
  .letter aside {
    position: static;
  }
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.about figure {
  margin: 0;
  order: 2;
}
.about figure img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}
.about .prose {
  order: 1;
}
.about blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.about blockquote p {
  color: var(--ink);
}
@media (max-width: 900px) {
  .about {
    grid-template-columns: 1fr;
  }
  .about figure,
  .about .prose {
    order: initial;
  }
  .about figure img {
    aspect-ratio: 4 / 3;
  }
}

/* Photo gallery: uneven grid, exact cell count. */
.gallery {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 0.75rem;
}
.gallery figure {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--line);
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.gallery figure:hover img {
  transform: scale(1.03);
}
.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: inherit;
}
.gallery-open:focus-visible {
  outline-offset: -3px;
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: rgba(20, 22, 24, 0.97);
  color: #fff;
  opacity: 0;
  transition: opacity 220ms ease;
  touch-action: pan-y;
}
.lightbox[hidden] {
  display: none;
}
.lightbox.is-open {
  opacity: 1;
}
.lightbox-stage {
  display: grid;
  place-items: center;
  padding: clamp(3.5rem, 8vh, 5rem) clamp(1rem, 8vw, 6rem) 1rem;
  min-height: 0;
  overflow: hidden;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100dvh - 9.5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 260ms var(--ease-out), opacity 200ms ease;
  will-change: transform;
}
.lightbox-img.is-swapping {
  opacity: 0;
  transition: none;
}
.lightbox-caption {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0.5rem clamp(1rem, 4vw, 2rem) max(1.25rem, env(safe-area-inset-bottom));
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.78);
}
.lightbox-count {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.16);
}
.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
}
.lightbox-close {
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
}
.lightbox-prev,
.lightbox-next {
  top: 50%;
  transform: translateY(-50%);
}
.lightbox-prev {
  left: max(0.75rem, env(safe-area-inset-left));
}
.lightbox-next {
  right: max(0.75rem, env(safe-area-inset-right));
}
.lightbox :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width: 700px) {
  .lightbox-stage {
    padding: 4rem 0.75rem 0.75rem;
  }
  .lightbox-img {
    max-height: calc(100dvh - 8.5rem);
  }
  .lightbox-prev,
  .lightbox-next {
    top: auto;
    bottom: max(3.25rem, calc(env(safe-area-inset-bottom) + 3rem));
    transform: none;
    width: 40px;
    height: 40px;
  }
  .lightbox-caption {
    padding-right: 6.5rem;
  }
}
body.lightbox-open {
  overflow: hidden;
}

.muted {
  color: var(--muted);
}
.gallery .span-3 {
  grid-column: span 3;
}
.gallery .span-2 {
  grid-column: span 2;
}
.gallery .tall {
  grid-row: span 2;
}
@media (max-width: 900px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 160px;
  }
  .gallery .span-3,
  .gallery .span-2 {
    grid-column: span 1;
  }
  .gallery .wide-m {
    grid-column: span 2;
  }
}

.giving {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem 3rem;
  align-items: center;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.giving h2 {
  margin-bottom: 0.35rem;
}
.giving p {
  color: var(--ink-soft);
  max-width: 48ch;
}
.giving .email {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
}
@media (max-width: 700px) {
  .giving {
    grid-template-columns: 1fr;
  }
}

/* ---------- Inner page header ---------- */

.page-head {
  padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: var(--muted);
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover {
  color: var(--ink);
}
.breadcrumb li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--line-strong);
}
.page-head h1 {
  margin-bottom: 0.5rem;
}
.page-head .lede {
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 50ch;
}

.page-body {
  padding-block: clamp(2.5rem, 5vw, 4rem) var(--section);
}

/* Document layout with an optional sticky table of contents. */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.toc {
  position: sticky;
  top: 6rem;
  font-size: 0.9rem;
}
.toc h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1.5rem 0 0.6rem;
}
html[lang="zh-CN"] .toc h2 {
  text-transform: none;
  letter-spacing: 0.2em;
}
.toc h2:first-child {
  margin-top: 0;
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li {
  border-left: 1px solid var(--line);
}
.toc a {
  display: block;
  padding: 0.35rem 0 0.35rem 0.9rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease;
}
.toc a:hover {
  color: var(--ink);
}
.toc a.is-active {
  color: var(--accent-ink);
  border-left-color: var(--accent);
}
@media (max-width: 900px) {
  .doc {
    grid-template-columns: 1fr;
  }
  .toc {
    position: static;
    padding: 1.25rem 1.5rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }
  .toc ol {
    columns: 2;
    column-gap: 1.5rem;
  }
  .toc li {
    break-inside: avoid;
  }
}

.doc-section {
  scroll-margin-top: 6rem;
  padding-top: 0.5rem;
}
.doc-section + .doc-section {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}
.doc-group {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}
.doc-group:first-child {
  margin-top: 0;
}
.doc-group > h2 {
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.75rem;
}
.doc-section h3 {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
}
.doc-section h3 .num {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
  min-width: 1.5rem;
}

/* Statement of faith: numbered articles with titles set in the margin. */
.creed {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: creed;
}
.creed li {
  counter-increment: creed;
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.creed li:last-child {
  border-bottom: 1px solid var(--line);
}
.creed .creed-key {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.creed .creed-key::before {
  content: counter(creed, decimal-leading-zero);
  display: block;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  margin-bottom: 0.2rem;
}
.creed p {
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .creed li {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.callout {
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
}

/* ---------- Meeting time ---------- */

.schedule-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.schedule {
  margin: 0;
  padding: 0;
  list-style: none;
}
.schedule li {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.schedule li:last-child {
  border-bottom: 1px solid var(--line);
}
.schedule time {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
}
.schedule .what {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
}
.schedule .is-main .what {
  font-weight: 600;
}
.schedule .is-main time::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 0.6rem;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}
@media (max-width: 480px) {
  .schedule li {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

.place-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.place-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.4rem;
}
.place-card address {
  font-style: normal;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.place-card .map {
  aspect-ratio: 16 / 10;
  width: 100%;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--line);
  filter: saturate(0.75) contrast(0.95);
}
.place-card .btn {
  margin-top: 1rem;
}

.gallery-strip {
  margin-top: var(--section);
}
@media (max-width: 900px) {
  .schedule-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 0;
}
.contact-item {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.contact-item:last-child {
  border-bottom: 1px solid var(--line);
}
.contact-item h2 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}
.contact-item p,
.contact-item address {
  font-style: normal;
  color: var(--ink-soft);
}
.contact-item .staff {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-item .staff li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.5rem 0;
}
.contact-item .staff li + li {
  border-top: 1px dashed var(--line);
}
.contact-item .staff .who {
  color: var(--ink);
  font-weight: 500;
}

.form-card {
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.form-card h2 {
  margin-bottom: 0.35rem;
}
.form-card .hint {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.5rem;
}
.field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}
.field label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
}
.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  transition: border-color 160ms ease, background-color 160ms ease;
}
.field input::placeholder,
.field textarea::placeholder {
  color: #9a9893;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(201, 138, 43, 0.18);
}
.field textarea {
  min-height: 9rem;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-error {
  display: none;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #fdebec;
  color: #9f2f2d;
  font-size: 0.92rem;
}
.form-error.is-visible {
  display: block;
}
@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  gap: 2.5rem;
  padding-block: clamp(3rem, 5vw, 4.5rem) 2.5rem;
}
.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
}
.footer-brand .zh {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  display: block;
}
.footer-brand .en {
  color: var(--muted);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.75rem;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-col h2 {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
html[lang="zh-CN"] .footer-col h2 {
  text-transform: none;
  letter-spacing: 0.2em;
}
.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-col li {
  margin-bottom: 0.45rem;
}
.footer-col a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-col address {
  font-style: normal;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-col address strong {
  display: block;
  color: var(--ink);
  font-weight: 500;
  margin-top: 0.75rem;
}
.footer-col address strong:first-child {
  margin-top: 0;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1.25rem 1.75rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.footer-bottom a {
  color: var(--muted);
  text-decoration: none;
}
.footer-bottom a:hover {
  color: var(--ink);
}
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}

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

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .gallery img {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .toc,
  .hero-actions {
    display: none;
  }
  body::before {
    display: none;
  }
}
