:root {
  --kraft: #DAD3C2;
  --kraft-deep: #C7BC9F;
  --surface: #E7E1D1;
  --ink: #21262F;
  --text: #3A404A;
  --text-muted: #4A515C;
  --line: #B3A98F;
  --accent: #21654F;
  --accent-strong: #164A3A;
  --accent-soft: #D2E2D8;
  --shadow: 0 2px 4px rgba(33, 38, 47, 0.08), 0 12px 28px rgba(33, 38, 47, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --kraft: #191C1F;
    --kraft-deep: #212528;
    --surface: #212528;
    --ink: #E5DFCF;
    --text: #BFC5CC;
    --text-muted: #8B9299;
    --line: #3D4247;
    --accent: #4E9C81;
    --accent-strong: #6DBBA0;
    --accent-soft: #1C3129;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 12px 28px rgba(0, 0, 0, 0.25);
  }
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--kraft);
  color: var(--text);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: "Noto Serif TC", "Noto Sans TC", serif;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}

.slab {
  font-family: "Zilla Slab", "Noto Sans TC", serif;
}

a { color: inherit; }

/* ---------- placeholder marker ---------- */
.todo {
  display: inline;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px dashed var(--accent);
  border-radius: 4px;
  padding: 1px 8px;
  font-size: 0.85em;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- nav ---------- */
nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--kraft) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 12px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Serif TC", serif;
  font-weight: 900;
  font-size: 24px;
  color: var(--ink);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-decoration: none;
}

.logo-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
}

@media (prefers-color-scheme: dark) {
  .logo-mark { filter: invert(1); }
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

nav a:hover { color: var(--accent-strong); }

/* ---------- hero ---------- */
.hero {
  padding: 88px 0 72px;
  position: relative;
  overflow: hidden;
}

.tape {
  position: absolute;
  height: 46px;
  background: repeating-linear-gradient(
    -45deg,
    var(--kraft-deep),
    var(--kraft-deep) 14px,
    transparent 14px,
    transparent 28px
  );
  opacity: 0.65;
}

.tape.t1 { top: 30px; left: -60px; width: 340px; transform: rotate(-6deg); }
.tape.t2 { bottom: 10px; right: -80px; width: 300px; transform: rotate(5deg); }

.eyebrow {
  font-family: "Zilla Slab", serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 18px;
  position: relative;
}

.hero h1 {
  font-size: clamp(36px, 5.5vw, 56px);
  line-height: 1.3;
  max-width: 15ch;
  margin-bottom: 22px;
}

.hero .lede {
  font-size: 19px;
  color: var(--text);
  max-width: 46ch;
  margin: 0 0 36px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  border: 1px solid transparent;
}

.btn.primary {
  background: var(--accent);
  color: #F3F5F2;
}

.btn.primary:hover { background: var(--accent-strong); }

.btn.ghost {
  border-color: var(--ink);
  color: var(--ink);
}

.btn.ghost:hover { background: var(--surface); }

/* ---------- section shell ---------- */
section.block {
  padding: 76px 0;
}

section.block.alt {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.block-head {
  max-width: 56ch;
  margin-bottom: 44px;
}

.block-head .eyebrow { margin-bottom: 12px; }

.block-head h2 {
  font-size: clamp(25px, 3.2vw, 31px);
  margin-bottom: 14px;
}

.block-head p {
  font-size: 17px;
  color: var(--text);
  margin: 0;
}

/* ---------- product grid ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 18px;
}

.product {
  background: var(--kraft-deep);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px 22px;
}

.product .icon {
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  stroke: var(--accent-strong);
  fill: none;
  stroke-width: 1.6;
}

.product h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.product p {
  font-size: 15.5px;
  color: var(--text);
  margin: 0;
}

/* ---------- feature split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split .copy h2 {
  font-size: clamp(23px, 3vw, 29px);
  margin-bottom: 16px;
}

.split .copy p {
  font-size: 17px;
  color: var(--text);
  max-width: 48ch;
}

.split .visual {
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------- registration footnote ---------- */
.registry {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 68ch;
}

.registry .label {
  font-family: "Zilla Slab", serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
}

/* ---------- contact / footer ---------- */
footer {
  padding: 64px 0 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.contact-item {
  display: block;
  text-decoration: none;
}

.contact-item .k {
  font-family: "Zilla Slab", serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.contact-item .v {
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
}

.foot-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

@media (max-width: 760px) {
  .split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .split .visual { order: -1; }

  nav ul { gap: 10px 18px; }

  .hero .lede { font-size: 20px; }

  .block-head p,
  .split .copy p {
    font-size: 18.5px;
  }

  .product h3 { font-size: 19px; }
  .product p { font-size: 16.5px; }

  .contact-item .k { font-size: 14px; }
  .contact-item .v { font-size: 21px; }

  .btn { font-size: 18px; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 56px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease; }
}
