:root {
  --bg: #140c0b;
  --field: #c43c34;
  --ink: #f7f0ea;
  --ink-soft: rgba(247, 240, 234, 0.86);
  --ink-dim: rgba(247, 240, 234, 0.5);
  --font: Inter, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: clamp(1.1rem, 3vw, 1.75rem);
  --measure: 44rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font);
  font-size: clamp(1.05rem, 0.96rem + 0.45vw, 1.28rem);
  line-height: 1.55;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: #fff;
}

a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.skip {
  position: absolute;
  left: 0.8rem;
  top: 0.8rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
  transform: translateY(-180%);
}

.skip:focus {
  transform: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: var(--space);
}

.logo {
  display: inline-flex;
  line-height: 0;
}

.logo img {
  width: min(18rem, 72vw);
  height: auto;
}

.back {
  font-size: 0.78em;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
}

.back:hover,
.back:focus-visible {
  text-decoration: underline;
}

.wrap {
  width: min(72rem, calc(100% - (var(--space) * 2)));
  margin: 0 auto;
}

.home-main {
  padding: clamp(1.5rem, 8vh, 6rem) var(--space) clamp(4rem, 12vh, 8rem);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.manifesto-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: clamp(1.65rem, 1.05rem + 3.1vw, 3.15rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.03em;
}

.manifesto-list a {
  display: flex;
  gap: 0.55em;
  padding: 0.18em 0;
  color: var(--ink);
  text-decoration: none;
}

.manifesto-list .num {
  flex: none;
  width: 2.7ch;
  font-variant-numeric: tabular-nums;
}

.manifesto-list a:hover,
.manifesto-list a:focus-visible {
  color: #fff;
}

@media (hover: hover) and (pointer: fine) {
  .manifesto-list:hover a:not(:hover) {
    color: var(--ink-dim);
  }
}

.essay {
  width: min(var(--measure), calc(100% - (var(--space) * 2)));
  margin: 0 auto;
  padding-bottom: clamp(4rem, 12vh, 8rem);
}

.essay-title {
  margin: 0 0 2.4rem;
  color: var(--ink);
  font-size: clamp(2rem, 1.3rem + 3.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.essay-title .num {
  display: inline-block;
  margin-right: 0.28em;
  font-variant-numeric: tabular-nums;
}

.essay h2 {
  margin: 2.8em 0 0.5em;
  color: var(--ink);
  font-size: clamp(1.7rem, 1.15rem + 2.3vw, 2.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.essay h2:first-of-type {
  margin-top: 0;
}

.essay p,
.essay li {
  margin: 0 0 1em;
}

.essay ul {
  margin: 0 0 1.2em;
  padding-left: 1.15em;
}

.essay li + li {
  margin-top: 0.35em;
}

.essay li::marker {
  color: var(--field);
}

.note {
  color: var(--ink-dim);
  font-weight: 500;
}

.essay strong {
  color: var(--ink);
  font-weight: 700;
}

.essay-end {
  margin-top: 3.2rem;
}

.essay-end a {
  text-decoration: none;
}

.essay-end a:hover,
.essay-end a:focus-visible {
  text-decoration: underline;
}

::selection {
  background: rgba(196, 60, 52, 0.45);
  color: #fff;
}

@media (max-width: 40rem) {
  .manifesto-list a {
    align-items: baseline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
