
:root {
  color-scheme: light;
  --background: #FFFFFF;
  --ink: #59321F;
  --ink-deep: #59321F;
  --brown: #713D28;
  --terracotta: #C17052;
  --peach: #EDA980;
  --footer: #94776A;
  --soft: #F7F3EE;
  --line: #E8DCD3;
  --max-width: 1040px;
  --page-pad: clamp(16px, 3vw, 40px);
  --logo-width: clamp(210px, 25vw, 300px);
  --logo-height: calc(var(--logo-width) * 314 / 1253);
  --header-pad-top: 28px;
  --header-pad-bottom: 12px;
  --header-height: calc(env(safe-area-inset-top, 0px) + var(--header-pad-top) + var(--logo-height) + var(--header-pad-bottom));
  --font-heading: "Noto Serif TC", "Songti TC", "PMingLiU", "STSong", serif;
  --font-body: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-top: var(--header-height); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brown); text-decoration: none; }
a:hover { color: var(--terracotta); }
.site-header {
  position: sticky; top: 0; z-index: 20; width: 100%;
  background: var(--background);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--header-pad-top) var(--page-pad) var(--header-pad-bottom);
  display: flex; align-items: center; justify-content: flex-start;
}
.brand-logo { display: block; width: var(--logo-width); height: auto; }
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px var(--page-pad) 64px;
}
.crumb { margin: 0 0 16px; font-size: 13px; color: var(--footer); letter-spacing: 0.04em; }
.crumb a { color: var(--brown); }
h1 {
  margin: 0 0 12px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 42px);
  font-weight: 700;
  color: var(--ink-deep);
  letter-spacing: 0.02em;
  line-height: 1.3;
}
.lede { margin: 0 0 28px; max-width: 40em; font-size: 16px; line-height: 1.85; }
.brand-hero {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 28px;
  align-items: start;
  margin: 0 0 36px;
}
.cover {
  width: 200px; height: 200px; object-fit: cover;
  border-radius: 8px; background: var(--soft);
}
.meta { margin: 0; }
.meta div { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }
.meta .label { color: var(--footer); margin-right: 0.4em; }
.ext-links { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; }
h2 {
  margin: 32px 0 12px;
  font-family: var(--font-heading);
  font-size: 22px;
  color: var(--brown);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}
.prose { font-size: 16px; line-height: 1.9; max-width: 46em; }
.prose img {
  display: block; max-width: 100%; height: auto;
  margin: 14px 0; border-radius: 6px;
}
.shop-card {
  background: var(--soft);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 14px;
  max-width: 46em;
}
.shop-card h3 { margin: 0 0 8px; font-size: 17px; color: var(--ink-deep); }
.shop-card p { margin: 0 0 4px; font-size: 15px; line-height: 1.6; }
.brand-list { list-style: none; margin: 0; padding: 0; }
.brand-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 24px;
  padding: 12px 0;
  border-bottom: 1px solid var(--soft);
  align-items: baseline;
}
.brand-list a { color: var(--ink-deep); font-size: 17px; }
.brand-list a:hover { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.brand-list .district { color: var(--footer); font-size: 14px; }
.footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px var(--page-pad) 32px;
  color: var(--footer);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.archive-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 10px; font-size: 13px; }
.archive-links a { color: var(--brown); }
.archive-links a:hover { color: var(--terracotta); }
.footer .copyright { margin: 0; }
@media (max-width: 800px) {
  :root { --logo-width: 220px; --header-pad-top: 20px; }
  .header-inner { justify-content: center; }
  .brand-hero { grid-template-columns: 1fr; }
  .cover { width: 160px; height: 160px; }
  .brand-list li { grid-template-columns: 1fr; gap: 2px; }
  .archive-links, .footer { text-align: center; }
  .archive-links { justify-content: center; }
}
@media (max-width: 390px) {
  :root { --logo-width: 200px; }
  .header-inner, .page, .footer { padding-inline: 16px; }
}
