:root {
  color-scheme: light;
  --paper: #f4eddf;
  --ink: #211e1a;
  --muted: #5e5449;
  --red: #aa2e20;
  --line: #aa9f90;
  --serif: "Songti SC", "Noto Serif CJK SC", SimSun, serif;
  --sans: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [role="tabpanel"]:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}
[hidden] { display: none !important; }

.page { max-width: 1360px; padding-inline: clamp(22px, 5vw, 72px); margin: 0 auto; }
.skip { position: fixed; inset: 12px auto auto 12px; z-index: 2; translate: 0 -180%; padding: 12px 18px; background: var(--ink); color: var(--paper); }
.skip:focus { translate: 0; }
.masthead { display: flex; align-items: center; justify-content: space-between; min-height: 79px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 700 23px Georgia, serif; letter-spacing: -.045em; }
.brand-mark { display: inline-block; width: 15px; height: 15px; background: var(--red); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 100%, 50% 50%, 0 50%); }
.masthead nav { display: flex; gap: clamp(18px, 3vw, 42px); font-size: 13px; font-weight: 650; }
.masthead a:hover, footer a:hover { color: var(--red); }
.masthead nav span { color: var(--red); margin-left: 3px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, 1fr);
  gap: clamp(26px, 5vw, 74px);
  align-items: center;
  padding: clamp(30px, 5vw, 70px) 0 clamp(36px, 5vw, 65px);
}
.intro { padding-bottom: 16px; }
.eyebrow { display: flex; align-items: center; gap: 11px; color: var(--red); margin: 0 0 13px; font-size: 13px; font-weight: 750; letter-spacing: .13em; }
.dash { width: 20px; height: 2px; background: currentColor; }
.intro h1 { margin: 0 0 22px -.055em; font: 400 clamp(96px, 12.7vw, 186px)/.78 Georgia, "Times New Roman", serif; letter-spacing: -.092em; }
.intro h1 span { color: var(--red); }
.hero-line { margin: 0; font: 700 clamp(32px, 4.05vw, 59px)/1.18 var(--serif); letter-spacing: -.04em; }
.intro-copy { max-width: 34ch; margin: 23px 0 24px; color: var(--muted); font-size: clamp(15px, 1.3vw, 18px); line-height: 1.85; }
.jump { display: inline-flex; align-items: center; gap: 18px; font-weight: 700; font-size: 14px; }
.arrow { display: grid; place-items: center; height: 39px; width: 39px; color: var(--paper); background: var(--red); border-radius: 50%; font-size: 19px; transition: transform 170ms ease; }
.jump:hover .arrow { transform: translate(3px, 3px); }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; height: auto; background: var(--red); }
.hero-art figcaption { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.hero-art figcaption span[lang] { font-family: var(--mono); }

.work { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; gap: clamp(30px, 6vw, 88px); padding: clamp(39px, 6vw, 86px) 0; border-top: 1px solid var(--ink); }
.work h2 { margin: 0; font: 700 clamp(46px, 6.3vw, 89px)/1.04 var(--serif); letter-spacing: -.055em; }
.work-intro > p:last-child { max-width: 28ch; margin: 20px 0 0; color: var(--muted); line-height: 1.85; }
.examples { color: var(--paper); background: var(--ink); padding: clamp(17px, 3vw, 37px); }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid #726759; }
.tabs button { border: 0; border-bottom: 3px solid transparent; background: transparent; padding: 10px clamp(5px, 1.3vw, 15px); color: #d6cabc; cursor: pointer; font-size: 14px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: #fae8d3; border-color: #fa8168; }
.tabs button:hover { color: white; }
.panel { padding: 23px 0 16px; min-height: 178px; }
.panel .sample { margin: 0 0 15px; font: 700 clamp(23px, 2.45vw, 35px)/1.4 var(--serif); letter-spacing: -.03em; }
.panel p { margin: 0; color: #e4d7c4; font-size: 14px; line-height: 1.75; }
.example-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.example-actions button { color: var(--paper); background: transparent; border: 1px solid #8e8070; padding: 9px 12px; cursor: pointer; font-size: 13px; }
.example-actions button:hover { border-color: #fa8168; }
.example-actions button span { color: #fa8168; margin-left: 4px; }
#copy-status { color: #ffd5c6; font-size: 12px; }
footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: var(--muted); min-height: 75px; font-size: 13px; }
.footer-dot { color: var(--red); margin-inline: 4px; }

@media (max-width: 760px) {
  .masthead { min-height: 63px; }
  .hero, .work { grid-template-columns: 1fr; }
  .hero { gap: 22px; padding-top: 40px; }
  .intro h1 { font-size: clamp(94px, 19vw, 150px); margin-bottom: 18px; }
  .hero-line { font-size: clamp(33px, 7.1vw, 53px); }
  .intro-copy { margin: 17px 0 21px; }
  .work h2 br { display: none; }
  .work-intro > p:last-child { margin-top: 13px; }
  .panel { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
