@font-face {
  font-family: Host;
  src: url('/assets/fonts/host-grotesk.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #f7f8f1;
  --ink: #19251d;
  --green: #216c4c;
  --line: #d1d8cb;
  font:
    16px/1.55 Host,
    system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 0.2em;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  background: #fff;
  padding: 8px;
}
.skip:focus {
  top: 8px;
  z-index: 2;
}
.top,
main,
footer {
  width: min(1100px, calc(100% - 48px));
  margin: auto;
}
.top,
footer,
.top nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.top {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.top a,
footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}
.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 25px;
  letter-spacing: -0.07em;
}
.top nav {
  font-size: 14px;
}
.button {
  border-radius: 8px;
  background: var(--ink);
  color: #fff !important;
  padding: 8px 12px;
}
.intro {
  padding: clamp(46px, 8vw, 102px) 0 44px;
  border-bottom: 1px solid var(--line);
}
.label,
.contents h2 {
  font:
    700 11px/1.4 ui-monospace,
    monospace;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
}
.intro h1 {
  margin: 12px 0 18px;
  font-size: clamp(48px, 7.5vw, 90px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}
.intro h1 em {
  color: var(--green);
  font-style: normal;
}
.intro p:last-child {
  max-width: 54ch;
  font-size: clamp(17px, 2vw, 21px);
  margin: 0;
}
.layout {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(0, 3.3fr);
  gap: clamp(24px, 6vw, 88px);
  padding: 32px 0 60px;
}
.contents {
  align-self: start;
  position: sticky;
  top: 15px;
}
.contents a {
  display: block;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 4px 0;
}
.contents a:hover {
  text-decoration: underline;
}
.chapters {
  max-width: 70ch;
}
.chapters section {
  padding: 0 0 28px;
  margin: 0 0 27px;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 15px;
}
.chapters section:last-child {
  border: 0;
}
.chapters h2 {
  font-size: clamp(26px, 3.5vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.055em;
  margin: 0 0 12px;
}
.chapters p {
  margin: 10px 0;
}
.chapters li {
  padding-left: 3px;
  margin: 7px 0;
}
.chapters ol {
  padding-left: 1.5em;
}
code {
  font:
    0.86em ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
pre {
  background: #20382a;
  color: #e2f3dc;
  border-radius: 9px;
  padding: 15px 17px;
  white-space: pre-wrap;
}
summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--green);
}
dt {
  font-weight: 650;
}
dd {
  margin: 5px 0 12px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 38px;
  font-size: 14px;
}
@media (max-width: 720px) {
  .layout {
    display: block;
  }
  .contents {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 3px 15px;
    border-bottom: 1px solid var(--line);
    padding: 0 0 18px;
    margin-bottom: 28px;
  }
  .contents h2 {
    width: 100%;
    margin: 0 0 4px;
  }
  .contents a {
    font-size: 13px;
  }
  .top,
  main,
  footer {
    width: calc(100% - 30px);
  }
  .top nav > a:first-child {
    display: none;
  }
}
