:root {
  --ink: #12313a;
  --ink-soft: #41636a;
  --paper: #f7fbfa;
  --sea: #e8f4f2;
  --white: #ffffff;
  --coral: #d85f51;
  --coral-deep: #b9473d;
  --line: #d3e0de;
  --muted: #64797d;
  --display: "Noto Serif TC", "Microsoft JhengHei", serif;
  --body: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); line-height: 1.6; margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.site-header { align-items: center; background: rgba(247, 251, 250, .96); border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 1fr auto auto; padding: 15px clamp(18px, 5vw, 76px); position: sticky; top: 0; z-index: 10; }
.brand { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: .12em; white-space: nowrap; }
.brand span { font-size: 9px; letter-spacing: .17em; margin-left: 4px; vertical-align: middle; }
nav { display: flex; gap: 22px; }
nav a, .header-line { font-size: 13px; font-weight: 700; }
.header-line { background: none; border: 0; border-bottom: 2px solid var(--coral); color: var(--ink); cursor: pointer; padding: 0 0 3px; }

.catalogue-hero { display: grid; grid-template-columns: .9fr 1.1fr; min-height: min(700px, calc(100vh - 55px)); }
.hero-copy { align-self: center; padding: clamp(58px, 10vw, 142px) clamp(24px, 9vw, 134px); }
.eyebrow { color: var(--coral-deep); font-size: 10px; font-weight: 700; letter-spacing: .17em; margin: 0 0 16px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); letter-spacing: 0; line-height: 1.18; }
h1 { font-size: clamp(45px, 6vw, 84px); margin-bottom: 22px; }
.hero-copy > p:not(.eyebrow) { color: var(--ink-soft); font-size: 17px; max-width: 30rem; }
.primary-link { background: var(--coral); color: var(--white); display: inline-flex; font-weight: 700; margin-top: 22px; min-height: 48px; padding: 13px 21px; }
.primary-link:hover { background: var(--coral-deep); }
.hero-media { background: var(--sea); margin: 0; overflow: hidden; position: relative; }
.hero-media img { height: 100%; object-fit: cover; object-position: center top; position: absolute; width: 100%; }
.hero-media::after { background: rgba(10, 38, 45, .22); content: ""; inset: 0; position: absolute; }
.hero-media figcaption { bottom: 26px; color: var(--white); font-size: 11px; letter-spacing: .16em; position: absolute; right: 30px; z-index: 1; }

.catalogue-section, .support-band { padding: clamp(66px, 9vw, 126px) clamp(18px, 5vw, 76px); }
.section-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(260px, .6fr); margin: 0 auto 38px; max-width: 1320px; }
.section-heading .eyebrow { grid-column: 1 / -1; }
.section-heading h2 { font-size: clamp(31px, 4vw, 52px); margin: 0; }
.section-heading > p:last-child { align-self: end; color: var(--muted); margin: 0; max-width: 340px; }
.product-grid { display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 auto; max-width: 1320px; }
.product-card { background: var(--white); min-width: 0; }
.product-image { background: var(--sea); display: block; overflow: hidden; }
.product-image img { aspect-ratio: .74; display: block; object-fit: cover; object-position: center top; transition: transform .45s ease; width: 100%; }
.product-card:hover .product-image img { transform: scale(1.035); }
.product-copy { display: grid; gap: 11px; padding: 16px 4px 6px; }
.product-meta { align-items: baseline; display: flex; gap: 12px; justify-content: space-between; }
.product-meta h3 { font-size: 18px; margin: 0; }
.product-meta span { color: var(--coral-deep); font-size: 12px; font-weight: 700; white-space: nowrap; }
.product-copy p { color: var(--muted); font-size: 13px; margin: 0; }
.product-link { border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; justify-self: start; padding-bottom: 3px; }

.support-band { align-items: start; background: var(--ink); color: var(--white); display: grid; gap: clamp(42px, 8vw, 140px); grid-template-columns: .85fr 1fr; }
.support-band .eyebrow { color: #a9dacf; }
.support-band h2 { font-size: clamp(30px, 4vw, 51px); margin: 0; max-width: 11em; }
.support-actions { max-width: 430px; padding-top: 4px; }
.support-actions p { color: #d0e1de; font-size: 16px; }
.text-link { background: none; border: 0; color: var(--white); cursor: pointer; font-weight: 700; padding: 0; text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 6px; }
footer { align-items: center; background: #0b252c; color: #c9dddd; display: flex; font-size: 12px; gap: 24px; justify-content: space-between; padding: 32px clamp(18px, 5vw, 76px); }
footer p { margin: 0; }
footer .brand { color: var(--white); }

dialog { border: 0; box-shadow: 0 24px 70px rgba(15, 45, 53, .28); max-width: min(440px, calc(100% - 32px)); padding: 32px; }
dialog::backdrop { background: rgba(12, 39, 46, .66); }
dialog h2 { font-size: 26px; margin: 0 0 12px; }
dialog p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin: 0; }
.dialog-close { background: none; border: 0; cursor: pointer; font-size: 27px; line-height: 1; position: absolute; right: 12px; top: 10px; }

@media (max-width: 820px) {
  .site-header { gap: 15px; padding: 14px 18px; }
  nav { display: none; }
  .catalogue-hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding: 64px 24px 50px; }
  .hero-media { aspect-ratio: .88; }
  .section-heading, .support-band { display: block; }
  .section-heading > p:last-child { margin-top: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 34px; }
  .support-actions { margin-top: 30px; }
  footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 390px) {
  .product-meta { align-items: flex-start; flex-direction: column; gap: 5px; }
  .product-copy { padding-top: 13px; }
}
