:root {
  color-scheme: light;
  --cream: #fff8f0;
  --maroon: #8b1a2b;
  --ink: #1f2937;
  --muted: #6b7280;
  --line: rgba(139, 26, 43, 0.14);
}

* { box-sizing: border-box; }

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  background: var(--cream);
  color: var(--ink);
}

body { margin: 0; background: var(--cream); }
a { color: var(--maroon); text-underline-offset: 0.15em; }
nav, footer { border-color: var(--line); }
nav { border-bottom: 1px solid var(--line); }
footer { border-top: 1px solid var(--line); margin-top: 3rem; }

nav > div, footer > div, main {
  width: min(100% - 3rem, 48rem);
  margin-inline: auto;
}

nav > div, footer > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
}

nav > div > a:first-child {
  font-size: 1.5rem;
  font-weight: 750;
  text-decoration: none;
}

nav > div > div, footer > div > div {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

nav a, footer a { text-decoration: none; }
main { padding-block: 3rem; }
h1, h2, h3 { line-height: 1.25; color: var(--ink); }
h1 { margin: 0 0 0.5rem; color: var(--maroon); font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { margin: 0 0 0.75rem; font-size: 1.3rem; }
h3 { margin: 1.25rem 0 0.5rem; font-size: 1.08rem; }
p, ul { margin: 0.65rem 0; }
ul { padding-left: 1.5rem; }
li + li { margin-top: 0.35rem; }
section { margin-top: 2rem; scroll-margin-top: 1rem; }
strong { font-weight: 700; }

.notice, details, section > .bg-white, section > div > .bg-white, section > div > .bg-cream {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}

.notice { border-left: 4px solid var(--maroon); margin: 1.25rem 0; }
.notice h2, .notice h3 { color: var(--maroon); }
details { margin-top: 1rem; }
summary { cursor: pointer; font-weight: 650; }
details > div { margin-top: 0.75rem; }
.text-maroon { color: var(--maroon); }
.text-gray-500, .text-gray-600 { color: var(--muted); }
.font-bold, .font-semibold { font-weight: 700; }
.underline { text-decoration: underline; }

@media (max-width: 40rem) {
  nav > div, footer > div { align-items: flex-start; flex-direction: column; }
  nav > div > div, footer > div > div { flex-wrap: wrap; gap: 0.75rem 1rem; }
  main { padding-block: 2rem; }
}
