:root {
  --bg: #f0ead6;
  --text: #1c1c1c;
  --link: #5957e5;
  --accent: #f27d6a;
  --muted: #cfc7b2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Mono", "SFMono-Regular", "Menlo", "Monaco", "Consolas", "Liberation Mono", "Courier New", monospace;
  font-size: 16px;
  line-height: 1.5;
}

a {
  color: var(--link);
  text-decoration: underline;
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.home main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 80px;
  text-align: center;
  gap: 18px;
}

.hero-mark {
  width: clamp(180px, 32vw, 260px);
  height: auto;
}

.home h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  margin: 0;
}

.home .nav-link {
  font-size: 14px;
  letter-spacing: 0.2px;
  color: var(--text);
}

.footer-email {
  padding: 24px 0 28px;
  text-align: center;
  font-size: 14px;
}

.problem main {
  flex: 1;
  padding: 110px 24px 40px;
}

.problem .content {
  max-width: 720px;
  margin: 0 auto;
}

.back-link {
  display: inline-block;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 32px;
  letter-spacing: 0.3px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--text);
}

.problem h1 {
  font-size: 28px;
  font-weight: 400;
  margin: 0 0 24px;
}

.problem p {
  margin: 0 0 18px;
}

.problem sup {
  color: var(--accent);
  font-size: 0.7em;
  vertical-align: super;
  margin-left: 1px;
}

.footnotes {
  margin: 24px 0 0;
  padding-left: 18px;
  font-size: 13px;
}

.footnotes li {
  margin-bottom: 6px;
}

.footnotes li::marker {
  color: var(--accent);
}

.page-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 16px 0 8px;
}

.page-dots span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--muted);
}

@media (min-width: 980px) {
  .problem .content {
    margin-left: 160px;
    margin-right: auto;
  }
}

@media (max-width: 600px) {
  .problem h1 {
    font-size: 24px;
  }
}
