:root {
  color-scheme: light;
  --paper: #f2efe8;
  --ink: #20221f;
  --muted: #686b64;
  --line: #c9c6bd;
  --accent: #285c46;
  --accent-ink: #f7f5ef;
  font-family:
    "Helvetica Neue", "Avenir Next", Avenir, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(
      90deg,
      transparent 0,
      transparent calc(100% - 1px),
      rgba(32, 34, 31, 0.04) calc(100% - 1px)
    ),
    var(--paper);
  background-size: 8.333vw 100%;
}

a {
  color: inherit;
}

.shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 1600px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 30px clamp(22px, 4vw, 72px) 24px;
}

.masthead,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.masthead {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  place-items: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.status,
.footer,
.back-link {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.farewell {
  display: grid;
  grid-template-columns: minmax(150px, 0.65fr) minmax(0, 1.35fr);
  align-items: center;
  gap: clamp(48px, 8vw, 150px);
  padding: clamp(72px, 11vh, 142px) 0;
}

.farewell-index {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-self: stretch;
  color: rgba(32, 34, 31, 0.11);
  font-size: clamp(3.6rem, 9vw, 10rem);
  font-weight: 700;
  letter-spacing: -0.09em;
  line-height: 0.72;
  user-select: none;
}

.farewell-index span:nth-child(2),
.farewell-index span:nth-child(4) {
  text-align: right;
}

.farewell-index span:nth-child(3),
.farewell-index span:nth-child(4) {
  align-self: end;
}

.farewell-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3rem, 6.5vw, 6.9rem);
  font-weight: 560;
  letter-spacing: -0.065em;
  line-height: 0.94;
  text-wrap: balance;
}

.message {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  max-width: 720px;
  margin-top: clamp(42px, 7vh, 72px);
  color: #444740;
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.62;
}

.message p {
  margin: 0;
}

.actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 42px;
}

.primary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 0 20px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.84rem;
  font-weight: 650;
  text-decoration: none;
  transition:
    transform 180ms cubic-bezier(0.16, 1, 0.3, 1),
    background-color 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.primary-action:hover {
  background: #1e4937;
}

.primary-action:active {
  transform: translateY(1px);
}

.primary-action svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-width: 1.5;
}

.text-action,
.back-link,
.footer a,
.legal-copy a {
  text-underline-offset: 4px;
}

.text-action {
  color: var(--muted);
  font-size: 0.8rem;
}

.footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
}

.legal-shell {
  display: block;
}

.legal-copy {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(72px, 10vw, 138px) 0;
}

.legal-copy h1,
.not-found h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 6vw, 5.8rem);
}

.legal-copy h2 {
  margin: 56px 0 14px;
  font-size: 1.08rem;
  letter-spacing: -0.02em;
}

.legal-copy p {
  margin: 0 0 18px;
  color: #484b44;
  font-size: 1rem;
  line-height: 1.72;
}

.legal-copy .legal-lead {
  margin-top: 44px;
  color: var(--ink);
  font-size: clamp(1.18rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.not-found {
  display: flex;
  min-height: 100dvh;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;
  padding: clamp(24px, 8vw, 120px);
  background: var(--paper);
}

.not-found .eyebrow {
  margin: 0;
}

@media (max-width: 760px) {
  body {
    background-size: 25vw 100%;
  }

  .shell {
    padding: 20px 18px;
  }

  .status {
    max-width: 17ch;
    text-align: right;
  }

  .farewell {
    grid-template-columns: 1fr;
    gap: 46px;
    padding: 70px 0 80px;
  }

  .farewell-index {
    display: flex;
    justify-content: space-between;
    font-size: clamp(3.7rem, 23vw, 6.5rem);
  }

  .farewell-index span:nth-child(even) {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .message {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-action {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
