:root {
  --ink: #1c1712;
  --ink-soft: #4a433a;
  --paper: #f6f1e8;
  --paper-deep: #ebe3d4;
  --white: #fffdf8;
  --brass: #8d6840;
  --brass-bright: #c6a36a;
  --pine: #17332e;
  --pine-mid: #245046;
  --clay: #8d3d34;
  --line: rgba(28, 23, 18, 0.12);
  --serif: "Noto Serif TC", "Songti TC", "PMingLiU", serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  --display: "Cormorant Garamond", "Noto Serif TC", serif;
  --max: 1120px;
  --header: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-120%);
  background: var(--white);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { transform: none; top: 12px; }

.topbar {
  background: var(--pine);
  color: #f3eadc;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.topbar-inner,
.header-inner,
.wrap,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}
.wrap,
.split,
.table-scroll,
.gallery,
.reasons,
.series,
.contact-grid,
.hero-copy {
  min-width: 0;
}
.split > *,
.contact-grid > * { min-width: 0; }
.topbar-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
}
.topbar a { text-decoration: none; }
.topbar a:hover { color: var(--brass-bright); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 241, 232, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-mark {
  width: 42px;
  height: 42px;
  border: 1px solid var(--brass);
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 26px;
  color: var(--brass);
}
.brand strong {
  display: block;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
}
.brand small {
  display: block;
  margin-top: 3px;
  color: var(--ink-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.nav-toggle {
  display: none;
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 8px 12px;
}
.site-nav { display: flex; align-items: center; gap: 4px 18px; }
.site-nav .menu {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current_page_parent > a,
.site-nav a[aria-current="page"] {
  color: var(--ink);
  box-shadow: inset 0 -1px 0 var(--brass);
}
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}
.site-nav a {
  text-decoration: none;
  font-size: 15px;
  color: var(--ink-soft);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}
.site-nav a[aria-current="page"] {
  box-shadow: inset 0 -1px 0 var(--brass);
}
.nav-cta {
  margin-left: 8px;
  padding: 8px 14px;
  background: var(--pine);
  color: #f6f1e8 !important;
  box-shadow: none !important;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 640px;
  background: var(--pine);
  color: #f7f1e6;
}
.hero-copy {
  padding: 72px 0 72px max(20px, calc((100% - var(--max)) / 2 + 20px));
  padding-right: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.kicker {
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-bright);
  margin-bottom: 18px;
}
.hero h1,
.page-hero h1,
.section h2,
.prose h2 {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.hero h1 { font-size: clamp(36px, 4.4vw, 58px); max-width: 12em; }
.lede { margin-top: 18px; max-width: 38em; color: rgba(247, 241, 230, 0.82); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--brass-bright);
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(247, 241, 230, 0.4);
  color: #f7f1e6;
}
.btn-pine { background: var(--pine); color: #f7f1e6; }
.btn-line { background: transparent; border-color: var(--ink); color: var(--ink); }
.hero-photo {
  position: relative;
  min-height: 420px;
  background: #0e2420 center / cover no-repeat;
}
.hero-photo figcaption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  max-width: 260px;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--ink);
  font-size: 14px;
}
.hero-photo strong { display: block; font-family: var(--serif); font-size: 22px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.stats div { padding: 22px 8px; text-align: center; }
.stats strong {
  display: block;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
}
.stats span { color: var(--ink-soft); font-size: 14px; }

.section { padding: 84px 0; }
.section-head { max-width: 680px; margin-bottom: 36px; }
.section h2 { font-size: clamp(28px, 3vw, 40px); }
.section-head p { margin-top: 12px; color: var(--ink-soft); }
.kicker-dark { color: var(--brass); }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  background: var(--white);
  border-top: 2px solid var(--brass);
  padding: 22px 18px 26px;
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--display);
  font-size: 28px;
  color: var(--brass);
  margin-bottom: 10px;
}
.step h3 { font-family: var(--serif); font-size: 22px; font-weight: 600; margin-bottom: 8px; }

.reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
}
.reason {
  padding: 28px 26px;
  background: var(--white);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.reason:nth-child(2n) { border-right: 0; }
.reason h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 8px; }

.band { background: var(--paper-deep); }
.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}
.photo-frame { background: var(--white); padding: 12px; box-shadow: 0 18px 40px rgba(28, 23, 18, 0.08); }
.photo-frame figcaption { padding: 10px 4px 2px; font-size: 14px; color: var(--ink-soft); }

.price-snapshot { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.price-snapshot th,
.price-snapshot td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
.price-snapshot th:first-child,
.price-snapshot td:first-child { text-align: left; }
.price-snapshot thead th {
  background: var(--pine);
  color: #f7f1e6;
  font-weight: 500;
  text-align: right;
}
.price-snapshot thead th:first-child { text-align: left; }
.save { color: var(--clay); font-variant-numeric: tabular-nums; }
.num { font-variant-numeric: tabular-nums; }
.table-note { margin-top: 12px; color: var(--ink-soft); font-size: 14px; }
.section-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 12px; }

.series {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--white);
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card h3 { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1; }
.card .tag { font-size: 13px; letter-spacing: 0.08em; color: var(--brass); }
.firm { height: 6px; background: var(--paper-deep); margin: 6px 0 2px; }
.firm span { display: block; height: 100%; background: var(--pine-mid); }
.card ul { margin: 8px 0 0; padding-left: 18px; }
.card li { margin: 4px 0; }

.defs { display: grid; gap: 16px; }
.defs article {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.defs h3 { font-family: var(--serif); font-size: 20px; }

.faq details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-family: var(--serif); font-size: 20px; }
.faq details p { margin-top: 8px; color: var(--ink-soft); max-width: 70ch; }

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.gallery a {
  display: block;
  overflow: hidden;
  height: 320px;
  background: var(--paper-deep);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }

.page-hero {
  padding: 56px 0 28px;
  background:
    linear-gradient(180deg, rgba(23, 51, 46, 0.06), transparent 70%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(32px, 4vw, 48px); max-width: 16em; }
.crumbs { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.crumbs a { color: var(--brass); }
.page-hero p { margin-top: 12px; max-width: 46em; color: var(--ink-soft); }

.prose { padding: 48px 0 80px; }
.prose h2 { font-size: 30px; margin: 36px 0 12px; }
.prose h3 { font-family: var(--serif); font-size: 22px; margin: 22px 0 8px; }
.prose p, .prose li { max-width: 72ch; }
.prose ul, .prose ol { margin: 8px 0 0; padding-left: 1.2em; }
.prose li { margin: 6px 0; }
.narrow { max-width: 760px; }

.post-list article {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.post-list article:last-child { border-bottom: 1px solid var(--line); }
.post-list time {
  display: block;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--brass);
}
.post-list h2 { font-size: 28px; margin: 6px 0 8px; }
.post-list h2 a { text-decoration: none; }
.post-list h2 a:hover { color: var(--brass); }
.post-list p { color: var(--ink-soft); }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  display: inline-block;
  min-width: 2.2em;
  padding: 4px 10px;
  text-align: center;
  text-decoration: none;
  border: 1px solid var(--line);
  background: var(--white);
}
.page-numbers.current {
  background: var(--pine);
  color: #f6f1e8;
  border-color: var(--pine);
}

.table-scroll { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); background: var(--white); }
.matrix { width: 100%; min-width: 1080px; border-collapse: collapse; font-size: 14px; }
.matrix th, .matrix td { padding: 11px 10px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: middle; white-space: nowrap; }
.matrix thead th:first-child,
.matrix thead th:nth-child(2),
.matrix tbody th { text-align: left; }
.matrix thead th { background: var(--pine); color: #f7f1e6; font-weight: 500; position: sticky; top: 0; }
.matrix tbody th { font-weight: 500; }
.group { background: #f3eee4; font-family: var(--serif); }

.check { width: 100%; border-collapse: collapse; background: var(--white); font-size: 15px; }
.check th, .check td { border: 1px solid var(--line); padding: 12px; text-align: center; }
.check th:first-child, .check td:first-child { text-align: left; }
.check thead th { background: var(--paper-deep); }

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 36px;
  align-items: start;
}
.contact-list { list-style: none; margin: 18px 0 0; padding: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { display: block; font-size: 13px; letter-spacing: 0.08em; color: var(--brass); }
.form {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 22px;
  display: grid;
  gap: 12px;
}
.form label { display: grid; gap: 6px; font-size: 14px; }
.form input, .form select, .form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 10px 12px;
}
.form textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.site-footer { background: var(--ink); color: #efe7da; padding: 48px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer a { color: #efe7da; }
.site-footer h2 { font-family: var(--display); font-size: 32px; font-weight: 600; }
.site-footer ul { margin: 10px 0 0; padding: 0; list-style: none; }
.site-footer li { margin: 6px 0; }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(239, 231, 218, 0.15);
  font-size: 13px;
  color: rgba(239, 231, 218, 0.7);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 10, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1000px, 100%); max-height: 86vh; }
.lightbox button {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,.4);
  padding: 6px 12px;
  cursor: pointer;
}

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

@media (max-width: 700px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero h1 { font-size: 34px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 20px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
  .site-nav .menu { flex-direction: column; align-items: stretch; }
  .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero, .split, .contact-grid, .reasons, .steps, .series, .stats, .footer-grid, .defs article, .form-row {
    grid-template-columns: 1fr;
  }
  .hero-copy { padding: 48px 20px 28px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery a { height: 240px; }
  .reason:nth-child(2n) { border-right: 0; }
  .topbar-inner { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
