:root {
  color-scheme: light;
  --ink: #362014;
  --muted: #624a3b;
  --orange: #e86b2d;
  --paper: #fff8ef;
  --max-width: 1050px;
  --art: url("./brand-art.png");
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible { outline: 2px solid #a63f12; outline-offset: 4px; }
.skip { position: absolute; left: 1rem; z-index: 2; padding: .65rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }

.site-header { background: #fffaf3; border-bottom: 1px solid #f0e2d2; }
.header-inner {
  max-width: var(--max-width);
  min-height: 68px;
  margin-inline: auto;
  padding: 0 clamp(1rem, 4.2vw, 2.6rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.wordmark { font-size: clamp(1.2rem, 3.2vw, 1.55rem); font-weight: 850; text-decoration: none; white-space: nowrap; }
nav { display: flex; align-items: center; gap: clamp(.9rem, 3.6vw, 2.15rem); }
nav a { font-size: .9rem; text-decoration: none; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .25em; }

.page { max-width: var(--max-width); margin-inline: auto; }
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(480px, 55vw, 575px);
  padding: clamp(2rem, 5vw, 4rem);
  background: radial-gradient(ellipse at 12% 42%, #fff7e9, #f5dcc4 63%, #dfbba0);
  overflow: hidden;
  isolation: isolate;
}
.hero-copy { position: relative; z-index: 1; max-width: 57%; }
.hero-name, .hero-description, h1, h2, .story p, .site-footer p { margin: 0; }
.hero-name { font-size: clamp(1rem, 2.7vw, 1.5rem); font-weight: 780; }
.hero-name::after, h2::after {
  content: "";
  display: block;
  width: 2.45rem;
  height: 3px;
  margin-top: .65rem;
  background: var(--orange);
}
h1 { margin: 1.25rem 0 1rem; font-size: clamp(2.3rem, 6.7vw, 4.65rem); font-weight: 900; line-height: 1.12; letter-spacing: -.035em; }
.hero-description { font-size: clamp(1rem, 2.2vw, 1.23rem); line-height: 1.55; }
.hero-art {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: 50%;
  translate: 0 -50%;
  width: 50%;
  aspect-ratio: 463 / 536;
  background: var(--art) no-repeat 100% 6.22% / 171.27% 369.96%;
  mask-image: linear-gradient(to right, transparent, black 18%), linear-gradient(to bottom, transparent, black 12%, black 86%, transparent);
  mask-composite: intersect;
}
.art-label { position: absolute; bottom: 1rem; right: clamp(1rem, 3vw, 2rem); font-size: .78rem; color: #513723; }

.story {
  margin: clamp(1rem, 2.6vw, 1.6rem) clamp(.75rem, 3.1vw, 1.6rem) 0;
  padding: clamp(1rem, 3.3vw, 2.2rem);
  border-radius: 25px;
  background: linear-gradient(138deg, #f9ebdc, #fdf1e5);
  scroll-margin-top: 1rem;
}
.story-copy { padding: 0 .2rem; }
h2 { font-size: clamp(1.65rem, 4.4vw, 2.65rem); line-height: 1.22; letter-spacing: -.035em; }
.story p { margin-top: .85rem; max-width: 41rem; font-size: clamp(1rem, 2.2vw, 1.12rem); line-height: 1.78; text-wrap: pretty; color: var(--muted); }
.story-art { margin-top: 1.1rem; border-radius: clamp(.8rem, 2vw, 1.25rem); background-image: var(--art); background-repeat: no-repeat; }
/* CSS crops only the three illustrations from the approved artwork. Page copy is real HTML. */
.porthole { aspect-ratio: 709 / 372; background-size: 111.85% 533.06%; background-position: 50% 53.51%; }
.sketchbook { aspect-ratio: 709 / 345; background-size: 111.85% 574.78%; background-position: 50% 88.22%; }

.site-footer {
  max-width: var(--max-width);
  margin: 1.55rem auto 0;
  padding: 1.35rem 1rem 2rem;
  border-top: 1px solid #e7d6c5;
  text-align: center;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.7;
}
.site-footer .icp-row { margin-top: .35rem; }
.icp-row a { color: #9f3d14; text-decoration: underline; text-underline-offset: .2em; }

@media (max-width: 700px) {
  .header-inner { min-height: 61px; }
  .hero { min-height: clamp(370px, 92vw, 520px); padding: 1.2rem; }
  .hero-copy { max-width: 59%; }
  .hero-art { width: 61%; }
  h1 { font-size: clamp(1.9rem, 8.3vw, 3.4rem); }
}
@media (max-width: 365px) {
  .header-inner { gap: .6rem; }
  nav { gap: .65rem; }
  .hero { padding-inline: 1rem; }
  .hero-description { font-size: .92rem; }
}