@font-face {
  font-family: "Instrument Sans";
  src: url("assets/instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #161c1a;
  --panel: #1f2725;
  --cream: #e3e2da;
  --muted: #b1b9b2;
  --green: #9fc7b8;
  --keyline: #3b4842;
  --paper: #e9eae0;
  --ink: #17271f;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --sans: "Instrument Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--cream);
  background: var(--night);
  font-family: var(--sans);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-padding-top: 84px; }
body { min-width: 0; }
button, input, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #b8e6d6; outline-offset: 3px; }
.catalog :focus-visible { outline-color: #215745; }
::selection { color: var(--night); background: #b5dfc9; }
.wrap { width: min(1280px, calc(100% - clamp(48px, 11.1vw, 160px))); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; left: 16px; top: 10px; padding: 10px; color: var(--night); background: var(--cream); z-index: 3; }
.masthead { position: fixed; inset: 0 0 auto; z-index: 5; border-bottom: 1px solid var(--keyline); background: var(--night); }
.masthead-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { display: inline-flex; min-height: 44px; align-items: center; gap: 11px; font-size: 23px; font-weight: 640; letter-spacing: -.045em; }
.wordmark b { font-weight: 440; }
.lab-mark { display: block; width: 28px; height: 28px; position: relative; border: 3px solid var(--green); border-radius: 50%; }
.lab-mark::after { content: ""; position: absolute; width: 10px; height: 10px; background: var(--green); left: 6px; top: 6px; border-radius: 50%; }
.masthead nav, .quick-picks, .ticket-heading, .ticket-actions, .fingerprint-meta, .snapshot, .section-head, .console-tools, .footer-inner { display: flex; align-items: center; }
.masthead nav { gap: 28px; }
.masthead nav a, .upstream, .snapshot a, .text-link, .footer-inner a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.masthead nav a { font-size: 14px; color: #c4ccc6; }
a:hover, .quick-picks button:hover { text-decoration: underline; text-underline-offset: 4px; }
.hero { position: relative; }
.hero-inner { min-height: 100svh; padding: calc(71px + clamp(48px, 8vh, 88px)) 0 24px; display: flex; flex-direction: column; justify-content: space-between; gap: clamp(42px, 7vh, 80px); }
.hero-columns { flex: 1; display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 24px; align-items: start; align-content:center; }
.intro { grid-column:1 / 7; min-width: 0; }
.hero h1 { font-size: clamp(64px, 7.25vw, 110px); line-height: 1; font-weight: 530; letter-spacing: -.065em; }
.hero h1 span { display: inline-block; font-size: .76em; font-weight: 600; color: var(--green); letter-spacing: -.055em; margin: .06em 0 .06em .03em; }
.hero__lead { max-width: 33em; margin: 24px 0 32px; color: var(--muted); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.85; }
#lookup label { display: block; color: var(--cream); font-size: 14px; font-weight: 550; margin-bottom: 9px; }
.lookup-input { display: flex; align-items: stretch; background: #202a25; border: 1px solid #516159; border-radius: 5px; padding: 4px; }
.lookup-input:focus-within { border-color: var(--green); }
.lookup-input input { border: 0; min-width: 0; flex: 1; background: transparent; color: var(--cream); padding: 8px 12px; font: 15px/1.4 var(--sans); }
.lookup-input input::placeholder { color: #acb5ae; }
.lookup-input input:focus-visible { outline: 2px solid #b8e6d6; outline-offset: -2px; border-radius: 2px; }
.button { min-height: 46px; border: 0; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-size: 15px; font-weight: 610; line-height: 1.35; white-space: nowrap; }
.button:hover { text-decoration: none; }
.button:active { transform: translateY(1px); }
.button span { font-size: 19px; transition: transform .16s ease; }
.search-button { padding: 0 16px; background: var(--green); color: #13221b; }
.search-button:hover span { transform: translateX(3px); }
.lookup-status { font-size: 14px; min-height: 0; line-height: 1.6; color: #bcdfcf; }
.lookup-status:not(:empty) { margin-top: 8px; }
.lookup-status[data-state="error"] { color: #f0bda2; }
.quick-picks { margin-top: 10px; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.quick-label { color: var(--muted); margin-right: 6px; }
.quick-picks button { background: transparent; color: var(--muted); border: 0; padding: 4px 9px; min-height: 36px; font: 14px var(--mono); }
.quick-picks button[aria-pressed="true"] { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }
.file-card { position: relative; grid-column:8 / 13; min-width: 0; padding: clamp(20px, 2.4vw, 36px); margin: 0; border: 1px solid #466055; border-radius: 8px; background-color: #283c32; background-image: linear-gradient(135deg, #31483c 0%, transparent 58%), radial-gradient(#66816f 0.65px, transparent .8px); background-size: auto, 8px 8px; }
.ticket { position: relative; overflow: hidden; color: var(--ink); background: #d9e8d8; border-radius: 3px; box-shadow: 0 5px 0 #142b20, 0 10px 0 -3px #53715e; padding: clamp(20px, 2.45vw, 39px); }
.ticket::after { content: ""; position: absolute; right: 0; top: 0; width: 21px; height: 21px; background: linear-gradient(45deg,#adc7ae 49%, #334c3d 50%); }
.ticket-heading { justify-content: space-between; font-size: 14px; line-height: 20px; }
.ticket-heading > span:first-child { display: inline-flex; align-items: center; gap: 9px; }
.file-icon { width: 13px; height: 16px; display: inline-block; border: 1.5px solid currentColor; border-radius: 1px; }
.file-icon::after { content:""; display:block; margin:6px auto 0; width:6px; height:4px; border-block:1px solid currentColor; }
.file-type { font: 13px var(--mono); }
.ticket-title { margin: clamp(32px, 5.6vh, 60px) 0 8px; }
.ticket-owner { font: 14px/1.5 var(--mono); color: #476251; }
.file-project { display: block; font-size: clamp(50px, 5.2vw, 82px); line-height: 1.05; font-weight: 590; letter-spacing: -.065em; }
.ticket-meta { display:flex; align-items:center; gap: 13px; color: #354c3b; font: 14px/1.4 var(--mono); }
.ticket-meta span + span { border-left: 1px solid #96ad9a; padding-left: 13px; }
.fingerprint { border-top: 1px dashed #93a994; margin-top: clamp(24px, 4vh, 45px); padding-top: 20px; }
.fingerprint img { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.fingerprint-meta { margin-top: 10px; justify-content: space-between; gap: 4px; color: #334a39; font: 12px/1.45 var(--mono); }
.fingerprint-meta strong { font-weight: 550; letter-spacing: .03em; }
.ticket-actions { margin-top: 24px; justify-content: space-between; gap: 12px; }
.download-button { background: var(--green); color: var(--ink); padding: 0 18px; }
.download-button[aria-disabled="true"] { opacity:.62; cursor:default; }
.download-button:hover span, .snapshot a:hover b { transform: translateY(2px); }
.upstream { color: #dde9de; font-size: 14px; }
.snapshot { justify-content: space-between; gap: 10px 25px; border-top: 1px solid var(--keyline); color: var(--muted); font-size: 13px; }
.snapshot > span { display: inline-flex; gap: 10px; align-items: center; }
.snapshot time { font: 13px var(--mono); color: var(--cream); }
.snapshot a { padding: 5px 0; color: var(--cream); }
.snapshot-sign { width: 8px; height: 8px; border: 1px solid var(--green); background: var(--green); display: inline-block; box-shadow: inset 0 0 0 2px var(--night); }
.catalog { min-height: 100svh; background: var(--paper); color: var(--ink); padding: clamp(84px, 12vh, 124px) 0 16px; }
.section-head { align-items: flex-end; justify-content: space-between; gap: 20px; padding-bottom: 26px; }
.section-head h2 { font-size: clamp(34px, 4vw, 62px); line-height: 1.14; letter-spacing: -.055em; }
.section-head p, .verify-intro p { margin-top: 12px; color: #45564b; line-height: 1.8; font-size: 16px; }
.text-link, .row-download { font-size: 14px; font-weight: 560; }
.packages { list-style: none; padding: 0; margin: 0; }
.package-row { display: grid; grid-template-columns: minmax(0,2.7fr) minmax(70px,1fr) minmax(90px,1fr) auto; align-items: center; column-gap: 20px; min-height: 88px; padding: 14px 0; border-bottom: 1px solid #bac5b9; }
.package-name { display: flex; gap: 16px; align-items: center; min-width: 0; }
.pkg-sign { width: 42px; height: 42px; display: grid; place-items: center; background: #cfddc8; color: #264729; font: 500 20px var(--mono); border-radius: 4px; }
.pkg-sign.amber { background: #e4d9bf; color: #614619; }
.pkg-sign.blue { background: #cfdde0; color: #294c59; }
.package-name strong { font: 610 25px/1.15 var(--sans); letter-spacing: -.04em; }
.package-description { display:block; margin-top: 6px; color: #4d5d52; font-size: 14px; }
.package-version, .package-size { color: #35493b; font: 14px var(--mono); }
.row-download { border: 1px solid #819383; border-radius: 3px; padding: 0 14px; min-height: 44px; display:inline-flex; align-items:center; gap: 13px; }
.row-download:hover { background: #d6e2d3; text-decoration: none; }
.verify { display:grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: 24px; padding-top: clamp(40px,6vh,64px); scroll-margin-top: 20px; }
.verify-intro { grid-column:1 / 7; }
.verify-console { grid-column:8 / 13; }
.verify-intro h3 { font-size: clamp(24px,2vw,33px); letter-spacing: -.04em; }
.verify-intro p { max-width: 25em; }
.verify-console { background: #dce2d7; border: 1px solid #b7c5b6; border-radius: 5px; padding: 16px 20px; min-width: 0; }
.console-tools { gap: 20px; flex-wrap: wrap; }
.console-tools label { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: #44564a; }
.console-tools select { background: transparent; border: 0; font: 560 14px var(--sans); color: #233a2b; padding: 2px 4px; min-height: 36px; }
.command-line { display:flex; align-items:center; gap: 12px; padding:12px 0; border-top: 1px solid #becabe; border-bottom: 1px solid #becabe; margin-top: 8px; }
.command-line code, .full-hash code { font: 13px/1.7 var(--mono); overflow-wrap: anywhere; min-width: 0; }
.command-line code { flex: 1; }
.command-line button { color:#233b2b; flex-shrink:0; background:transparent; border:1px solid #819383; border-radius:3px; font-size:14px; min-height:44px; padding:0 10px; }
.full-hash { margin-top: 12px; }
.full-hash span { font-size: 12px; display: block; color:#4a5c50; margin-bottom: 3px; }
.footer-inner { margin-top:14px; min-height: 54px; justify-content:space-between; gap:16px; font-size:13px; color:#45554b; }
.footer-sep { color:#586b5c; margin:0 8px; }
@media (prefers-reduced-motion: no-preference) {
  [data-enter] .intro, [data-enter] .file-card { animation: enter .45s ease-out both; }
  [data-enter] .file-card { animation-delay: .06s; }
  @keyframes enter { from { opacity: .15; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
@media (max-width: 1050px) {
  .hero-columns { gap: 16px; }
  .file-card, .verify-console { grid-column:7 / 13; }
  .hero h1 { font-size: clamp(62px,8.5vw,90px); }
  .file-card { padding: 20px; }
  .ticket { padding: 22px; }
}
@media (max-width: 740px) {
  .wrap { width: calc(100% - 40px); }
  .masthead-inner { min-height: 58px; }
  .wordmark { font-size: 20px; gap: 9px; }
  .lab-mark { transform: scale(.85); }
  .masthead nav { gap: 16px; }
  .masthead nav a { font-size: 13px; }
  html { scroll-padding-top: 64px; }
  .hero-inner { padding: 93px 0 10px; min-height: 100svh; gap: 22px; }
  .hero-columns { grid-template-columns: 1fr; align-content: start; gap: 20px; }
  .intro, .file-card, .verify-intro, .verify-console { grid-column:auto; }
  .hero h1 { font-size: clamp(50px,10.5vw,72px); }
  .hero h1 br { display: none; }
  .hero h1 span { display: block; font-size: .76em; }
  .hero__lead { margin: 14px 0 19px; font-size:16px; line-height:1.65; }
  .lookup-input input { font-size:16px; padding: 6px 8px; }
  .quick-picks { margin-top:4px; }
  .quick-picks button { min-height:44px; }
  .file-card { max-width: 540px; width:100%; padding:16px; margin:0; }
  .ticket { padding:16px 20px; }
  .ticket-title { margin:14px 0 5px; }
  .file-project { font-size:38px; }
  .ticket-meta,.ticket-owner,.file-type,.ticket-heading { font-size:13px; }
  .fingerprint { margin-top:13px; padding-top:12px; }
  .fingerprint img { max-height:39px; }
  .fingerprint-meta { margin-top:5px; }
  .ticket-actions { margin-top:14px; }
  .snapshot { font-size:12px; }
  .snapshot time { font-size:12px; }
  .section-head { align-items: start; }
  .section-head p { font-size:15px; }
  .catalog { padding: 50px 0; }
  .package-row { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
  .package-name { grid-column:1; grid-row:1; gap:11px; }
  .package-name strong { font-size:22px; }
  .package-version { grid-column:1; grid-row:2; margin-left:53px; font-size:13px; }
  .package-size { grid-column:2; grid-row:2; text-align:right; font-size:12px; }
  .package-actions { grid-column:2; grid-row:1; }
  .verify { grid-template-columns:1fr; gap:18px; padding-top:40px; }
  .verify-console { padding:12px 14px; }
  .console-tools select, .command-line button { min-height:44px; }
}
@media (max-width: 390px) {
  .masthead nav { gap: 11px; }
  .wrap { width:calc(100% - 32px); }
  .lookup-input { padding:3px; }
  .search-button { padding:0 10px; gap:6px; }
  .section-head { flex-wrap:wrap; gap:4px; }
  .snapshot > span { gap:5px; }
}
