/*
Design system — Taichung Leather Studio
Aesthetic: editorial, warm paper ground, hairline rules, asymmetric grids, large serif display.

Utilities and components defined here (usage):
.wrap (fixed max-width container)
.section (vertical block with rhythm); .section--ruled (top hairline); .section--tight (reduced spacing)
.eyebrow (small label above headings)
.display (hero headline scale); .lead (intro paragraph)
.rule (standalone hairline); .rule--v (vertical hairline)
.grid-2 / .grid-3 (responsive grids); .grid-asym (image-dominant asymmetry)
.media (image wrapper), .media--cover (object-fit cover), .ratio-16x9 / .ratio-4x3 / .ratio-square
.num (large step/section numeral)
.btn, .btn--primary, .btn--ghost (buttons)
.list-inline (horizontal list without bullets)
.faq (details/summary accordion style)
.card-line (list card with top rule and compact spacing)
.kicker (inline highlight using inline-block, for short emphasis)
.meta (small secondary text)
.badge (tiny accent chip for states)

Global resets are included for a, ul, li, p, table, img.
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+TC:wght@400;500;700;900&family=Cormorant+Garamond:wght@500;600&display=swap');

:root{
  /* Palette */
  --ground:#F5EFE6; /* warm paper */
  --paper:#FAF7F1;  /* lighter panel */
  --ink:#1E1A17;   /* primary text */
  --muted:#6B5E58; /* secondary text */
  --rule:#DCD2C4;  /* hairline */
  --accent:#8C3F2F; /* terracotta accent */
  --accent-ink:#fff;

  /* Typography scale */
  --fz-hero:clamp(2.2rem, 4vw + 1rem, 3.6rem);
  --fz-h1:clamp(1.8rem, 2.5vw + 1rem, 2.6rem);
  --fz-h2:clamp(1.4rem, 1.2vw + 1rem, 1.8rem);
  --fz-body:1rem; /* base 16px */
  --fz-meta:0.85rem;
  --lh-tight:1.2;
  --lh-body:1.75;

  /* Spacing */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px; --s-6:32px; --s-7:48px; --s-8:72px; --s-9:96px;
  --radius:6px;
  --focus: 0 0 0 3px rgba(140,63,47,.25);
}

/* Base */
html{ box-sizing:border-box; }
*,*::before,*::after{ box-sizing:inherit; }
html,body{ height:100%; }
body{
  margin:0; color:var(--ink); background:var(--ground);
  font-family:'Noto Serif TC', serif; font-size:16px; line-height:var(--lh-body);
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:var(--ink); text-decoration:none; border-bottom:1px solid transparent; transition:color .15s ease,border-color .15s ease; }
a:hover{ color:var(--accent); border-color:var(--accent); }
a:focus-visible{ outline:none; box-shadow:var(--focus); }
ul,ol{ margin:0; padding:0; list-style:none; }
p{ margin:0 0 var(--s-5); }
small,.meta{ font-size:var(--fz-meta); color:var(--muted); }
hr,.rule{ border:0; border-top:1px solid var(--rule); margin:var(--s-6) 0; height:0; }
.rule--v{ width:1px; background:var(--rule); }
table{ width:100%; border-collapse:collapse; font-size:0.95rem; }
td,th{ border:1px solid var(--rule); padding:10px 12px; text-align:left; }

/* Headings */
h1,h2,h3{ font-weight:700; margin:0 0 var(--s-4); letter-spacing:0; }
h1{ font-size:var(--fz-h1); line-height:var(--lh-tight); }
h2{ font-size:var(--fz-h2); line-height:1.35; }
h3{ font-size:1.125rem; line-height:1.4; }
.display{ font-size:var(--fz-hero); line-height:1.08; font-weight:900; }

/* Eyebrow / meta label */
.eyebrow{ font-family:'Cormorant Garamond', serif; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-size:.85rem; display:block; margin-bottom:var(--s-2); }

/* Layout */
.wrap{ width:100%; max-width:1100px; margin:0 auto; padding:0 var(--s-5); }
.section{ padding:var(--s-7) 0; }
.section--tight{ padding:var(--s-5) 0; }
.section--ruled{ border-top:1px solid var(--rule); }

/* Grids */
.grid-2{ display:grid; grid-template-columns:1fr; gap:var(--s-5); }
.grid-3{ display:grid; grid-template-columns:1fr; gap:var(--s-5); }
.grid-asym{ display:grid; grid-template-columns:1.3fr 1fr; gap:var(--s-6); align-items:start; }
@media (min-width:760px){
  .grid-2{ grid-template-columns:1.1fr 1fr; }
  .grid-3{ grid-template-columns:repeat(3,1fr); }
}

/* Media */
.media{ background:var(--paper); border:1px solid var(--rule); }
.media img{ display:block; width:100%; height:auto; }
.media--cover img{ width:100%; height:100%; object-fit:cover; }
.ratio-16x9{ aspect-ratio:16/9; }
.ratio-4x3{ aspect-ratio:4/3; }
.ratio-square{ aspect-ratio:1/1; }

/* Step numeral */
.num{ font-family:'Cormorant Garamond', serif; font-weight:600; font-size:2rem; color:var(--accent); line-height:1; margin-right:var(--s-3); flex:none; }

/* Buttons */
.btn{ display:inline-block; padding:10px 18px; font-weight:600; border:1px solid var(--ink); color:var(--ink); background:transparent; border-radius:0; transition:background .15s ease,color .15s ease,border-color .15s ease; }
.btn:hover{ color:var(--accent); border-color:var(--accent); }
.btn:focus-visible{ outline:none; box-shadow:var(--focus); }
.btn--primary{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.btn--primary:hover{ background:transparent; color:var(--accent); }
.btn--ghost{ border-color:var(--rule); color:var(--ink); }

/* Inline emphasis */
.kicker{ display:inline-block; background:rgba(140,63,47,.09); padding:2px 6px; line-height:1.05; border-radius:2px; }

/* Card list with top rule */
.card-line{ padding-top:var(--s-5); border-top:1px solid var(--rule); }
.card-line h3{ margin-bottom:var(--s-2); }

/* FAQ */
.faq details{ border-top:1px solid var(--rule); padding:var(--s-4) 0; }
.faq details:last-child{ border-bottom:1px solid var(--rule); }
.faq summary{ cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; font-weight:600; }
.faq summary::-webkit-details-marker{ display:none; }
.faq .answer{ margin-top:var(--s-3); color:var(--ink); }

/* Meta bits */
.meta{ color:var(--muted); }
.badge{ display:inline-block; font-size:.75rem; padding:2px 6px; border:1px solid var(--rule); color:var(--muted); border-radius:var(--radius); }

/* Header */
.site-header{ background:var(--paper); border-bottom:1px solid var(--rule); position:relative; z-index:10; }
.nav-row{ display:flex; align-items:flex-end; gap:var(--s-5); padding-top:var(--s-4); padding-bottom:var(--s-3); }
.brand{ text-decoration:none; border:0; line-height:1; }
.brand-zh{ display:block; font-weight:900; letter-spacing:.02em; }
.brand-en{ display:block; font-family:'Cormorant Garamond', serif; font-size:.82rem; letter-spacing:.1em; color:var(--muted); margin-top:2px; }
.site-nav ul{ display:flex; flex-wrap:wrap; gap:18px; margin-left:auto; }
.site-nav a{ border:0; padding-bottom:6px; }
.site-nav a[aria-current="page"], .site-nav a:hover{ border-bottom:2px solid var(--accent); color:var(--ink); }

/* Footer */
.site-footer{ background:#3E2A25; color:#EFE7DD; margin-top:var(--s-8); }
.site-footer a{ color:#EFE7DD; border-color:transparent; }
.site-footer a:hover{ color:#fff; border-color:#fff; }
.footer-grid{ display:grid; grid-template-columns:1fr; gap:var(--s-6); padding-top:var(--s-7); padding-bottom:var(--s-6); }
.footer-brand .brand-zh{ color:#EFE7DD; }
.footer-brand .brand-en{ color:#CDBEAF; }
.footer-col h3{ font-size:1rem; margin-bottom:var(--s-3); color:#EFE7DD; }
.footer-bottom{ border-top:1px solid #5A4038; padding:var(--s-4) 0; font-size:.9rem; color:#CDBEAF; display:flex; align-items:center; gap:var(--s-4); justify-content:space-between; flex-wrap:wrap; }

/* Hero pattern */
.hero{ padding:var(--s-8) 0 var(--s-7); }
.hero .grid-asym{ align-items:center; }
.hero-lead{ max-width:36ch; }

/* Accessibility */
@media (prefers-reduced-motion:reduce){
  *{ transition:none !important; animation:none !important; }
}
