:root {
  color-scheme: light;
  --background: #FFFFFF;
  --ink: #59321F;
  --ink-deep: #59321F;
  --brown: #713D28;
  --terracotta: #C17052;
  --facebook: #813F25;
  --instagram: #D77550;
  --soft: #F4E5DA;
  --accent: #EDA980;
  --muted: #7C6256;
  --footer: #94776A;
  --max-width: 1040px; /* tighter centered pack so buttons sit closer to the still life */
  --page-pad: clamp(16px, 3vw, 40px);
  --hero-gap: 0px; /* optical gutter is the display asset's documented 16px conservative pad, scaled */
  --logo-width: clamp(210px, 25vw, 300px);
  --logo-ratio: 314 / 1253;
  --logo-height: calc(var(--logo-width) * 314 / 1253);
  --header-pad-top: 28px;
  --header-pad-bottom: 12px; /* was hero padding-top; keeps rest logo-to-hero gap at 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, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--ink-deep);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-padding-top: var(--header-height);
}

/* min-height (not height) so short viewports can grow and scroll.
   Body is a column so mobile .page can fill the space below the header
   using the header's real height. Body is not a scroll container and has
   no overflow clip, so position:sticky on the header can pin to the viewport. */
body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}

/* Full-width sticky bar. Opaque ZIP white so scrolled content passing
   underneath is covered across the viewport, not only the 1040px pack. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  width: 100%;
  background: var(--background);
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

@supports not (position: sticky) {
  .site-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
  }
  body { padding-top: var(--header-height); }
}

a { text-decoration: none; color: inherit; }

.page {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--page-pad) 16px; /* top 28px moved onto the sticky header */
  display: flex;
  flex-direction: column;
  background: var(--background);
  container-type: inline-size;
  container-name: pack;
}

.header-inner,
.brand {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  padding: var(--header-pad-top) var(--page-pad) var(--header-pad-bottom);
}

.brand-logo {
  display: block;
  width: var(--logo-width);
  height: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--hero-gap);
  align-items: center;
  padding: 0 0 8px; /* 12px top now lives in --header-pad-bottom; rest gap unchanged */
}

.copy { position: relative; z-index: 1; }

h1 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(40px, 4.6vw, 59px);
  font-size: clamp(40px, 5.67cqw, 59px);
  line-height: 1.35;
  letter-spacing: -0.025em;
  color: var(--ink-deep);
}

.launch {
  position: relative;
  display: inline-block;
  color: var(--terracotta);
  white-space: nowrap;
}

.date-wrap {
  position: relative;
  display: inline-block;
}

.underline {
  position: absolute;
  left: -2%;
  width: 104%;
  height: 0.22em;
  bottom: -0.08em;
  overflow: visible;
  pointer-events: none;
}

.sparkles {
  position: absolute;
  left: 100%;
  top: -0.35em;
  width: 0.85em;
  height: 0.7em;
  margin-left: 0.12em;
  overflow: visible;
  pointer-events: none;
}

.intro {
  margin: 28px 0 32px;
  max-width: 22em;
  font-size: clamp(16px, 1.5vw, 19px);
  font-size: clamp(16px, 1.83cqw, 19px);
  line-height: 1.95;
  letter-spacing: 0.045em;
  color: var(--ink-deep);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.social {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-width: 190px;
  min-height: 54px;
  padding: 12px 22px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.social:hover { transform: translateY(-2px); filter: brightness(0.96); }

.social:focus-visible {
  outline: 3px solid #333;
  outline-offset: 4px;
}

.social--facebook { background: var(--facebook); }
.social--instagram { background: var(--instagram); }

.social-symbol {
  font-family: Arial, sans-serif;
  font-weight: 800;
  font-size: 23px;
  background: #fff;
  color: var(--facebook);
  border-radius: 50%;
  height: 25px;
  width: 25px;
  display: grid;
  place-items: center;
  padding-top: 3px;
  line-height: 1;
}

.social-icon { display: block; flex: none; }
.social-arrow { font-size: 15px; line-height: 1; }

.art,
.art picture {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Display art is a whitespace-trimmed copy of the original (16px conservative
   pad around the thr-255 subject bbox). No negative translations — the box
   follows the natural bbox so visible left/right outer space can balance. */
.art {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  transform: none;
}

.art img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 889 / 952;
  object-fit: contain;
}

.footer {
  color: var(--footer);
  font-size: 12px;
  padding-top: 16px;
  letter-spacing: 0.04em;
}

/* Temporary brand-index link: added 2026-11-30, do not change approved hero copy or art. */
.archive-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 0 0 10px;
  padding: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
}
.archive-links a { color: var(--brown); }
.archive-links a:hover { color: var(--terracotta); }
.archive-links a:focus-visible { outline: 3px solid #333; outline-offset: 3px; }
.footer .copyright { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  .social { transition: none; }
}

@media (max-width: 800px) {
  /* Logo lives in the sticky header (not the centered group).
     Main (headline+intro+socials) centers in the space BELOW the header.
     Footer stays on a modest gap under that group. Art stays hidden. */
  :root {
    --logo-width: 220px;
    --header-pad-top: 20px;
    --header-pad-bottom: 12px;
  }
  .page {
    padding: 20px var(--page-pad);
    /* flex: 1 0 auto (from the base rule) fills leftover space under the
       real header and will not shrink below content, so nothing is clipped. */
  }
  .brand { justify-content: center; margin-top: 0; }
  .hero {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 8px;
    padding: 0;
    margin-top: auto; /* share leftover with footer margin-bottom:auto */
  }
  h1 {
    font-size: clamp(32px, 8.5vw, 46px);
    line-height: 1.4;
  }
  .intro {
    margin: 20px auto 16px;
    font-size: 15px;
    line-height: 1.9;
    max-width: 26em;
  }
  .socials {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: min(100%, 340px);
    margin: 0 auto;
  }
  .social { min-height: 50px; }
  .art { display: none; }
  .footer {
    text-align: center;
    padding-top: 16px; /* nearby unobtrusive gap under the group */
    margin-bottom: auto;
  }
  .archive-links { justify-content: center; }
  .sparkles {
    width: 0.75em;
    height: 0.62em;
  }
}

@media (max-width: 390px) {
  :root { --logo-width: 200px; }
  .page, .header-inner { padding-inline: 16px; }
  h1 { font-size: clamp(30px, 8.2vw, 34px); }
  .launch { white-space: nowrap; }
}

@media (max-width: 360px) {
  :root { --logo-width: 190px; }
  .page, .header-inner { padding-inline: 16px; }
  h1 { font-size: 29px; }
}
