:root {
  color-scheme: light;
  --ink: #182e25;
  --muted: #52645a;
  --accent: #216145;
  --paper: #f6f7f2;
  --line: #dbe4da;
  --content-width: 65rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 1.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.8 system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

a { color: var(--accent); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; left: .75rem; top: .75rem; padding: .5rem .8rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .layout, .site-footer {
  width: min(calc(100% - 3rem), var(--content-width));
  margin-inline: auto;
}
.header-inner { display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 4.25rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; color: var(--ink); font-weight: 750; text-decoration: none; }
.brand span { border-left: 1px solid var(--line); padding-left: .65rem; color: var(--muted); font-size: .875rem; font-weight: 500; }
.shop-link { font-weight: 650; font-size: .925rem; white-space: nowrap; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 13.5rem; gap: clamp(2rem, 6vw, 5rem); padding-block: 3.5rem 3rem; }
.intro { padding-bottom: 1.9rem; }
.updated, .note { color: var(--muted); font-size: .875rem; }
.updated { margin: 0 0 .65rem; }
h1, h2 { line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.28rem, 2.5vw, 1.63rem); }
p, ol { margin: .95rem 0; }
li + li { margin-top: .45rem; }
.intro > p:not(.updated) { font-size: 1.075rem; }
.actions { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.25rem; }
.button {
  display: inline-block;
  padding: .58rem .95rem;
  border: 1px solid var(--accent);
  border-radius: .45rem;
  background: var(--accent);
  color: white;
  font-size: .935rem;
  font-weight: 660;
  text-decoration: none;
}
.button:hover { background: #194a35; }
.button.secondary { background: transparent; color: var(--accent); }
.button.secondary:hover { background: #e8f0e8; }
section { padding-block: 1.65rem; border-top: 1px solid var(--line); }
table { width: 100%; max-width: 29rem; background: #fcfdf9; border: 1px solid var(--line); border-collapse: collapse; }
caption { margin-bottom: .45rem; color: var(--muted); font-size: .875rem; text-align: left; }
th, td { padding: .45rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
th { background: #eaf0e8; font-size: .875rem; font-weight: 660; }
code { overflow-wrap: anywhere; border-radius: .25rem; padding: .12rem .25rem; background: #e8eee7; }
.contents { position: sticky; top: 2rem; align-self: start; border-left: 1px solid var(--line); padding-left: 1rem; font-size: .875rem; }
.contents p { margin: 0 0 .4rem; font-weight: 700; }
.contents a { display: block; padding-block: .3rem; }
.site-footer { border-top: 1px solid var(--line); padding-block: 1rem 1.75rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 48rem) {
  .layout { grid-template-columns: 1fr; gap: 1.1rem; padding-top: 1.5rem; }
  .contents { position: static; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .75rem; border: 0; border-bottom: 1px solid var(--line); padding: 0 0 .75rem; }
  .contents p, .contents a { margin: 0; }
}

@media (max-width: 27rem) {
  .header-inner, .layout, .site-footer { width: calc(100% - 2rem); }
  .intro { padding-bottom: 1.45rem; }
}
