:root {
  color-scheme: light dark;
  --bg: #fafafa;
  --surface: #f0f0f0;
  --text: #202020;
  --muted: #575757;
  --line: #d5d5d5;
  --accent: #a83c11;
  --focus: #a83c11;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
}
a {
  color: var(--accent);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
a:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 3px;
}
header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1180px;
  margin: auto;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-size: 27px;
}
.brand img {
  border-radius: 10px;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 16px;
  margin-left: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
nav {
  display: flex;
  gap: 6px 22px;
  flex-wrap: wrap;
}
nav a {
  color: var(--muted);
  font-size: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
nav a[aria-current] {
  color: var(--accent);
  text-decoration: underline;
}
main {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 28px 64px;
}
.page-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  font-weight: 700;
}
h1 {
  font-size: clamp(32px, 6vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.14;
  margin: 0 0 24px;
  font-weight: 760;
}
h2 {
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 42px 0 14px;
}
h3 {
  font-size: 19px;
  margin-top: 28px;
}
p {
  margin: 0 0 20px;
}
p,
li {
  overflow-wrap: anywhere;
}
ul,
ol {
  padding-left: 24px;
}
li {
  padding-left: 3px;
  margin: 10px 0;
}
strong {
  font-weight: 650;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.contents {
  border-block: 1px solid var(--line);
  padding: 12px 0;
  margin: 0 0 32px;
}
.contents summary {
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
  min-height: 44px;
  align-content: center;
}
.contents ol {
  margin: 10px 0;
  list-style: none;
  padding: 0;
  font-size: 15px;
  columns: 2;
  column-gap: 24px;
}
.contents li {
  margin: 6px 0;
  break-inside: avoid;
}
.home {
  padding-top: 60px;
}
.home h1 {
  font-size: clamp(64px, 15vw, 108px);
  margin-bottom: 12px;
}
.home h2:first-of-type {
  font-size: 30px;
  margin-top: 12px;
}
.home li {
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  list-style: none;
}
.home ul {
  padding: 0;
}
.home article > p:first-of-type {
  font-size: 21px;
  line-height: 1.55;
  max-width: 630px;
}
.home article > p:nth-of-type(2) {
  color: var(--muted);
  font-size: 15px;
}
footer {
  max-width: 1120px;
  padding: 30px 28px 48px;
  margin: auto;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  display: flex;
  gap: 16px 28px;
  justify-content: space-between;
  flex-wrap: wrap;
}
footer strong {
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--text);
}
footer span {
  margin-left: 16px;
}
footer p {
  width: 100%;
  margin: 0;
}
.skip {
  position: absolute;
  top: -100px;
  left: 16px;
  padding: 12px;
  background: var(--bg);
  z-index: 2;
}
.skip:focus {
  top: 12px;
}
@media (max-width: 640px) {
  .header-inner {
    padding: 20px 22px;
    gap: 12px;
  }
  .brand span {
    display: none;
  }
  nav {
    width: 100%;
    gap: 6px 20px;
  }
  main {
    padding: 32px 22px 48px;
  }
  .contents ol {
    columns: 1;
  }
  footer {
    padding: 24px 22px 36px;
  }
  .home {
    padding-top: 36px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #202020;
    --text: #f5f5f5;
    --muted: #b7b7b7;
    --line: #393939;
    --accent: #ff843d;
    --focus: #ff843d;
  }
}
