:root {
  --lime: #d2dac6;
  --lime-deep: #b6c2a4;
  --lime-high: #e8efdc;
  --lime-ink: #2a3224;
  --lime-mute: #58624c;
  --olive: #4d5e36;
  --olive-soft: #6a7b52;
  --warn: #6a532c;
  --halt: #6a3830;
  --edge: 7px;
  --edge-tight: 5px;
  --raise: 6px 6px 12px #b0bb9c, -5px -5px 11px #eaf1de;
  --raise-sm: 3px 3px 7px #b3be9f, -3px -3px 7px #e7eedb;
  --press: inset 4px 4px 8px #b0bb9c, inset -3px -3px 8px #eaf1de;
  --press-sm: inset 3px 3px 6px #b3be9f, inset -2px -2px 6px #e7eedb;
  --line: 1px solid rgba(74, 90, 52, 0.16);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--lime-ink);
  background:
    radial-gradient(1200px 700px at 8% -10%, #e4ecd6 0%, transparent 52%),
    radial-gradient(900px 500px at 100% 8%, #c8d2b8 0%, transparent 46%),
    var(--lime);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--olive);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--lime-ink);
}

:focus-visible {
  outline: 2px solid var(--olive);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 40;
  padding: 8px 12px;
  background: var(--lime-high);
  color: var(--lime-ink);
  border-radius: var(--edge-tight);
  box-shadow: var(--raise-sm);
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px 0;
  background: color-mix(in srgb, var(--lime) 88%, #eef4e2);
}

.mast.is-held {
  box-shadow: 0 8px 18px rgba(80, 94, 58, 0.12);
}

.mast-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}

.mark img {
  width: 42px;
  height: 42px;
  border-radius: var(--edge-tight);
  box-shadow: var(--raise-sm);
  background: var(--lime);
}

.mark strong,
.mark small {
  display: block;
}

.mark strong {
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.mark small {
  color: var(--lime-mute);
  font-size: 0.75rem;
}

.opener {
  margin-left: auto;
  border: 0;
  background: var(--lime);
  color: var(--lime-ink);
  padding: 10px 14px;
  border-radius: var(--edge-tight);
  box-shadow: var(--raise-sm);
  font: inherit;
  cursor: pointer;
}

.opener:active,
.opener:focus-visible,
.opener[aria-expanded="true"] {
  box-shadow: var(--press-sm);
}

.drawer {
  margin-left: auto;
}

.drawer ul {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.drawer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--edge-tight);
  text-decoration: none;
  color: var(--lime-ink);
  box-shadow: var(--raise-sm);
  background: var(--lime);
}

.drawer a:hover,
.drawer a[aria-current="page"] {
  box-shadow: var(--press-sm);
}

.drawer a:active,
.drawer a:focus-visible {
  box-shadow: var(--press);
}

.drawer .press-cta {
  background: color-mix(in srgb, var(--lime) 70%, #8aa05c);
  color: var(--lime-ink);
  font-weight: 700;
}

body.nav-lock {
  overflow: hidden;
}

.stage {
  padding: 28px 0 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: start;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: var(--edge-tight);
  background: var(--lime);
  box-shadow: var(--press-sm);
  font-size: 0.8rem;
  color: var(--lime-mute);
}

.tag.is-on {
  color: var(--olive);
  font-weight: 600;
}

h1,
h2,
h3 {
  line-height: 1.25;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.45rem;
}

h3 {
  font-size: 1.05rem;
}

.lead {
  margin: 0 0 18px;
  color: var(--lime-mute);
  font-size: 1.05rem;
}

.notice {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--press);
}

.notice h3 {
  margin-bottom: 6px;
}

.notice.warn {
  color: var(--warn);
}

.notice.halt {
  color: var(--halt);
}

.acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 22px;
}

.press {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: var(--edge-tight);
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  font-weight: 700;
  box-shadow: var(--raise);
}

.press:hover {
  color: var(--lime-ink);
}

.press:active,
.press:focus-visible {
  box-shadow: var(--press);
}

.press-main {
  background: color-mix(in srgb, var(--lime) 62%, #7f9754);
}

.press-side {
  font-weight: 600;
}

.shot {
  margin: 0;
  padding: 10px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.shot img {
  width: 100%;
  border-radius: var(--edge-tight);
  box-shadow: var(--press-sm);
}

.shot figcaption {
  margin-top: 8px;
  color: var(--lime-mute);
  font-size: 0.85rem;
}

.meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 0;
}

.meter {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  min-height: 148px;
  padding: 14px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.meter-bar {
  position: relative;
  border-radius: 4px;
  background: var(--lime);
  box-shadow: var(--press-sm);
  overflow: hidden;
}

.meter-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--fill, 62%);
  background: linear-gradient(180deg, #8aa05c, #5d7040);
}

.meter b {
  display: block;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
}

.meter span,
.meter em {
  display: block;
  color: var(--lime-mute);
  font-size: 0.86rem;
  font-style: normal;
}

.block {
  margin-top: 42px;
}

.block > p {
  color: var(--lime-mute);
  margin-top: 0;
}

.slabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.slab {
  position: relative;
  display: block;
  padding: 16px 16px 16px 22px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
  color: inherit;
  text-decoration: none;
  min-height: 168px;
}

.slab::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 14px;
  bottom: 14px;
  width: 5px;
  border-radius: 3px;
  background: var(--olive-soft);
  box-shadow: var(--press-sm);
}

.slab:hover {
  color: inherit;
}

.slab:active,
.slab:focus-visible {
  box-shadow: var(--press);
}

.slab h3 {
  margin-top: 8px;
}

.slab p,
.os p {
  margin: 0;
  color: var(--lime-mute);
  font-size: 0.95rem;
}

.ico {
  width: 36px;
  height: 36px;
  border-radius: var(--edge-tight);
  box-shadow: var(--raise-sm);
  background: var(--lime);
  position: relative;
}

.ico::before,
.ico::after {
  content: "";
  position: absolute;
  background: var(--olive);
}

.ico-core::before {
  inset: 10px 8px 8px;
  height: 4px;
  box-shadow: 0 7px 0 var(--olive), 0 14px 0 var(--olive);
}

.ico-yaml::before {
  left: 9px;
  right: 9px;
  top: 10px;
  height: 3px;
  box-shadow: 0 6px 0 var(--olive), 0 12px 0 var(--olive);
}

.ico-theme::before {
  width: 12px;
  height: 12px;
  left: 8px;
  top: 8px;
}

.ico-theme::after {
  width: 12px;
  height: 12px;
  right: 8px;
  bottom: 8px;
  opacity: 0.55;
}

.ico-guard::before {
  width: 14px;
  height: 16px;
  left: 11px;
  top: 9px;
  clip-path: polygon(50% 0, 100% 22%, 100% 68%, 50% 100%, 0 68%, 0 22%);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.tick-list {
  margin: 0 0 16px;
  padding: 0 0 0 18px;
}

.tick-list li + li {
  margin-top: 8px;
}

.os-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.os {
  padding: 16px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.os h3 {
  margin-top: 8px;
}

.faq details {
  margin-bottom: 10px;
  padding: 4px 14px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
  font-weight: 700;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq details[open] {
  box-shadow: var(--press);
}

.faq p {
  margin: 0 0 14px;
  color: var(--lime-mute);
}

.crumb {
  margin: 0 0 10px;
  color: var(--lime-mute);
  font-size: 0.9rem;
}

.page-top {
  padding: 18px 20px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.sheet {
  overflow: auto;
  border-radius: var(--edge);
  box-shadow: var(--press-sm);
  background: var(--lime);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

th,
td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: var(--line);
  vertical-align: top;
}

th {
  background: color-mix(in srgb, var(--lime-deep) 35%, var(--lime));
}

code {
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.88em;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: press-step;
}

.steps li {
  position: relative;
  margin-bottom: 12px;
  padding: 14px 16px 14px 56px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.steps li::before {
  counter-increment: press-step;
  content: counter(press-step);
  position: absolute;
  left: 14px;
  top: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--edge-tight);
  box-shadow: var(--raise-sm);
  font-weight: 700;
}

.well {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--press);
}

.well header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--lime-mute);
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.well pre {
  margin: 0;
  overflow: auto;
  font-size: 0.88rem;
}

.rail {
  position: sticky;
  top: 92px;
  padding: 14px;
  border-radius: var(--edge);
  background: var(--lime);
  box-shadow: var(--raise);
}

.rail h2 {
  font-size: 1rem;
}

.rail ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.rail a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding: 4px 8px;
  border-radius: var(--edge-tight);
  text-decoration: none;
  color: var(--lime-ink);
}

.rail a::before {
  content: "";
  width: 5px;
  height: 22px;
  border-radius: 3px;
  background: var(--lime-deep);
  box-shadow: var(--press-sm);
}

.rail a[aria-current="location"] {
  box-shadow: var(--press-sm);
}

.rail a[aria-current="location"]::before {
  background: var(--olive);
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 22px;
  align-items: start;
}

.base {
  padding: 36px 0 22px;
  margin-top: 8px;
  background: color-mix(in srgb, var(--lime) 80%, #c2ccb0);
}

.base-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 22px;
}

.base h3 {
  font-size: 0.95rem;
}

.base ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.base li + li {
  margin-top: 8px;
}

.legal {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: var(--line);
  color: var(--lime-mute);
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .hero,
  .split,
  .layout,
  .base-grid,
  .slabs,
  .os-grid,
  .pair,
  .meters {
    grid-template-columns: 1fr 1fr;
  }

  .layout {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }
}

@media (max-width: 760px) {
  .opener {
    display: inline-flex;
  }

  .drawer {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: 80px;
    padding: 12px;
    border-radius: var(--edge);
    background: var(--lime);
    box-shadow: var(--raise);
  }

  .drawer.is-open {
    display: block;
  }

  .drawer ul {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .split,
  .slabs,
  .os-grid,
  .pair,
  .meters,
  .base-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) {
  .opener {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .meter-bar::after,
  .press,
  .slab,
  .drawer a,
  .opener {
    transition: none;
  }
}
