:root {
  --yellow: #ffc400;
  --ink: #141412;
  --paper: #fff;
  --soft: #f2f2ed;
  --muted: #d4d4ca;
  --inset: clamp(1.25rem, 5vw, 5.5rem);
  color-scheme: light;
  font: 100%/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, p, ol, dl, dd, fieldset { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
a, button { color: inherit; }
a { text-decoration: none; }
button, summary, label { cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px dashed currentColor; outline-offset: 5px; }
::selection { background: var(--ink); color: var(--yellow); }
.night ::selection, footer ::selection { background: var(--yellow); color: var(--ink); }
.frame { width: min(100%, 100rem); padding-inline: var(--inset); margin-inline: auto; }
.skip { position: fixed; top: 0; left: 1rem; z-index: 5; transform: translateY(-140%); background: var(--yellow); color: var(--ink); padding: .65rem 1rem; }
.skip:focus { transform: none; }
.mast, footer { background: var(--ink); color: var(--yellow); }
.mast-inner { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }
.home { display: flex; align-items: center; width: clamp(8.8rem, 14vw, 12.5rem); min-height: 44px; flex: none; }
.mast nav { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 3.5rem); }
.mast nav a, footer a { display: inline-flex; align-items: center; min-height: 44px; }
.mast nav a { font-weight: 650; }
.mast nav .parent { color: var(--paper); }
nav a:hover, footer a:hover, .inline-link:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero { background: var(--yellow); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); align-items: center; min-height: clamp(32rem, 43vw, 43rem); gap: clamp(.5rem, 2.5vw, 3rem); padding-block: clamp(2.8rem, 4.2vw, 5rem); }
.hero h1, h2, h3 { font-weight: 850; letter-spacing: -.055em; }
.hero h1 { font-size: clamp(3.5rem, 6.9vw, 7rem); line-height: 1.08; }
.hero h1 span { display: block; white-space: nowrap; }
.lead { font-size: clamp(1rem, 1.45vw, 1.35rem); font-weight: 600; margin: 1.65rem 0 1.8rem; }
.hero-art img { width: 100%; height: auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 48px; padding: .75rem 1.4rem; font-weight: 750; transition: transform .16s ease; }
.dark { color: var(--yellow); background: var(--ink); }
.button::before { content: ''; width: .55rem; height: .8rem; background: currentColor; clip-path: polygon(0 0,35% 0,35% 18%,65% 18%,65% 35%,100% 35%,100% 65%,65% 65%,65% 82%,35% 82%,35% 100%,0 100%); }
.button:focus-visible { outline-color: var(--ink); }
.button:hover, .text-action:hover { transform: translateY(-2px); }
.button:active, .text-action:active { transform: translateY(1px); }
.night { background: var(--ink); color: var(--paper); }
.counter { display: grid; grid-template-columns: 1fr 1.12fr; gap: clamp(2.5rem, 7vw, 8rem); padding-block: clamp(3.5rem, 6vw, 6.5rem); }
.story h2, .standards h2 { font-size: clamp(2.6rem, 4.45vw, 4.6rem); line-height: 1.12; }
.story h2, .guide h2 { color: var(--yellow); }
.story p { color: var(--muted); max-width: 25em; margin-top: 1.4rem; }
.guide { align-self: center; }
.guide h2 { font-size: clamp(1.6rem, 2.3vw, 2.45rem); line-height: 1.2; }
.guide ol { padding-left: 1.6rem; margin: 1.15rem 0 .65rem; max-width: 32em; }
.guide li { padding-left: .35rem; margin-bottom: .4rem; }
.guide li::marker { font-weight: 800; color: var(--yellow); }
.text-action, .inline-link { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: .1em; font-weight: 700; }
.text-action { border: 0; color: var(--yellow); background: transparent; padding: .45rem 0; min-height: 44px; transition: transform .16s ease; }
.copy-feedback { display: inline-block; color: var(--muted); margin-left: .7em; font-size: .875rem; }
.standards { background: var(--paper); padding-block: clamp(4rem, 7vw, 7rem); }
.standard-intro { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.3rem; margin-bottom: clamp(2rem, 4vw, 4rem); }
.standard-intro p { margin-top: 1rem; font-size: 1.1rem; }
.format { font-size: .8em; font-weight: 550; }
.specimen { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 6vw, 6rem); }
.pair { position: relative; border: 0; background: var(--soft); padding: clamp(1rem, 2vw, 1.8rem); min-width: 0; font-size: 0; }
.pair legend, .pair input { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.pair label { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .45rem 1rem; font-weight: 700; font-size: .94rem; color: var(--ink); background: var(--paper); }
.pair input:checked + label { background: var(--ink); color: var(--yellow); }
.pair input:focus-visible + label { outline: 3px dashed var(--ink); outline-offset: 2px; position: relative; z-index: 1; }
.mark-stage { margin-top: 1rem; background: var(--ink); width: 100%; min-height: 9rem; aspect-ratio: 3 / 1; display: grid; place-items: center; }
.mark-stage img { width: 77%; }
.mark-stage .black-mark, #pair-yellow:checked ~ .mark-stage .yellow-mark { display: none; }
#pair-yellow:checked ~ .mark-stage { background: var(--yellow); }
#pair-yellow:checked ~ .mark-stage .black-mark { display: block; }
.inks { display: grid; gap: 2rem; }
.ink { display: flex; gap: 1.35rem; align-items: flex-start; }
.chip { width: clamp(3.5rem, 6vw, 6rem); aspect-ratio: 1; flex: none; clip-path: polygon(8% 0,92% 0,92% 8%,100% 8%,100% 92%,92% 92%,92% 100%,8% 100%,8% 92%,0 92%,0 8%,8% 8%); }
.chip.yellow { background: var(--yellow); } .chip.black { background: var(--ink); }
.ink h3 { font-size: clamp(1.15rem, 1.65vw, 1.65rem); line-height: 1.3; }
.ink h3 span { white-space: nowrap; letter-spacing: -.025em; margin-left: .15em; }
.ink p { font-size: .9375rem; line-height: 1.5; margin-top: .2rem; }
.materials { margin-top: clamp(2.5rem, 5vw, 5rem); }
.materials h3 { font-size: clamp(1.6rem, 2.3vw, 2.45rem); }
.print-samples { display: grid; grid-template-columns: 2.35fr 1fr 1fr; gap: clamp(.75rem, 2vw, 2rem); margin-top: 1.15rem; }
.print-samples figure { margin: 0; }
.print-samples img { width: 100%; }
.print-samples figcaption { margin-top: .45rem; font-size: .94rem; }
.rules { margin-top: clamp(2.5rem, 5vw, 5rem); display: grid; gap: .65rem; }
details { background: var(--soft); }
summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.05rem clamp(1rem, 2vw, 2rem); min-height: 56px; font-size: 1.1rem; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.45em; line-height: 1; font-weight: 600; }
details[open] summary::after { content: '−'; }
.rule-body { padding: 0 clamp(1rem, 2vw, 2rem) 1.35rem; }
.rule-body p { max-width: 40em; }
.rule-body p + p, .inline-link { margin-top: .65rem; }
.inline-link { display: inline-block; padding-block: .4rem; }
.logo-files { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.ui-colours, .tolerance { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-block: .9rem; }
.ui-colours dt, .tolerance dt { font-weight: 720; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(2rem, 4vw, 4.5rem); }
.footer-inner img { width: clamp(9rem, 22vw, 22rem); }
.footer-inner div { display: flex; flex-direction: column; align-items: flex-end; color: var(--muted); font-size: .9rem; }
.footer-inner a { min-height: 32px; }
@media (max-width: 760px) {
  .hero-inner { grid-template-columns: 1fr 1fr; min-height: 27rem; gap: 0; }
  .hero h1 { font-size: clamp(3rem, 7vw, 4rem); }
  .counter { gap: 2.3rem; }
  .specimen { grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 1.5rem; }
  .ink { gap: .75rem; }
  .ink h3 span { display: block; margin: 0; }
}
@media (max-width: 580px) {
  .mast-inner { min-height: 3.75rem; gap: .65rem; }
  .home { width: 7.7rem; }
  .mast nav { gap: 1rem; font-size: .94rem; }
  .mast nav .parent { display: none; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 2.45rem; padding-bottom: 1.25rem; }
  .hero h1 { font-size: clamp(2.65rem, 11vw, 4.05rem); }
  .lead { margin: 1rem 0 1.15rem; }
  .hero-art { width: min(92%, 27rem); justify-self: end; margin-top: .5rem; }
  .counter, .specimen { grid-template-columns: 1fr; }
  .counter { gap: 2.5rem; }
  .story h2 br { display: none; }
  .story h2 { font-size: clamp(1.95rem, 6.7vw, 2.65rem); }
  .story p { margin-top: .9rem; }
  .specimen { gap: 2rem; }
  .inks { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
  .ink { flex-direction: column; gap: .65rem; }
  .ink h3 span { display: inline; }
  .chip { width: 3rem; }
  .print-samples { grid-template-columns: 1fr 1fr; }
  .print-samples figure:first-child { grid-column: 1 / -1; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .footer-inner div { align-items: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span, .hero .lead, .hero .button { animation: rise-in .55s ease-out backwards; }
  .hero h1 span:nth-child(2) { animation-delay: 65ms; }
  .hero .lead { animation-delay: 120ms; }
  .hero .button { animation-delay: 175ms; }
  .hero-art img { animation: slide-in .7s ease-out backwards; }
  .seen { animation: rise-in .48s ease-out; }
  @keyframes rise-in { from { transform: translateY(12px); } to { transform: translateY(0); } }
  @keyframes slide-in { from { transform: translate(-12px, 10px); } to { transform: translate(0); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
