* {
  box-sizing: border-box;
}
html {
  color-scheme: light dark;
  --bg: light-dark(#f4f6f2,#111a18);
  --paper: light-dark(#fff,#202c28);
  --ink: light-dark(#192c26,#e7f1ed);
  --muted: light-dark(#475f55,#b3c6bb);
  --accent: light-dark(#165e49,#96dfc1);
  --line: light-dark(#cedad2,#47594e);
  font: 16px/1.65 system-ui,sans-serif;
  background: var(--bg);
  color: var(--ink);
}
html[data-theme=dark] {
  color-scheme: dark;
}
html[data-theme=light] {
  color-scheme: light;
}
body {
  margin: 0;
  display: grid;
  grid-template-columns: 13rem minmax(0,52rem);
  min-height: 100vh;
}
aside {
  padding: 2rem 1rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
}
strong {
  font-size: 1.45rem;
  color: var(--accent);
}
nav {
  display: grid;
  gap: .45rem;
  margin-top: 2rem;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .6rem;
  padding: .4rem .8rem;
}
button:hover,
button[aria-current=page] {
  background: var(--accent);
  color: var(--paper);
}
main {
  padding: 2rem clamp(1rem,4vw,3rem);
  min-width: 0;
}
h1 {
  font-size: 1.75rem;
  margin: .35rem 0 1rem;
}
h2 {
  font-size: 1.15rem;
  margin: .35rem 0;
}
#stamp,
small,
summary {
  color: var(--muted);
}
#notice:empty {
  display: none;
}
article,
form,
.panel {
  padding: 1.25rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  margin: .9rem 0;
  overflow-wrap: anywhere;
}
article p {
  white-space: pre-line;
}
button,
details,
a {
  touch-action: manipulation;
}
textarea,
input,
select {
  padding: .55rem;
  border-radius: .4rem;
  border: 1px solid var(--line);
  background: var(--bg);
  max-width: 100%;
}
textarea,
input {
  display: block;
  width: 100%;
  margin: .35rem 0 .8rem;
}
label {
  display: block;
  margin: .7rem 0;
}
a {
  color: var(--accent);
}
summary {
  cursor: pointer;
}
details button,
details select {
  margin: .5rem .5rem 0 0;
}
#notice {
  white-space: pre-line;
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
@media (max-width:700px) {
  body {
    display: block;
  }
  aside {
    border: 0;
    background: transparent;
    padding: .7rem 1rem 0;
  }
  aside strong {
    font-size: 1rem;
  }
  nav {
    position: fixed;
    inset: auto 0 0;
    z-index: 1;
    display: flex;
    justify-content: space-around;
    margin: 0;
    padding: .6rem .15rem max(.6rem,env(safe-area-inset-bottom));
    background: var(--paper);
    border-top: 1px solid var(--line);
  }
  nav button {
    font-size: .78rem;
    padding: .45rem .3rem;
  }
  main {
    padding: 1rem 1rem 6rem;
  }
}
