:root {
  color-scheme: dark;
  --background: #101827;
  --surface: #172236;
  --text: #f7f3e9;
  --muted: #b7c0ce;
  --line: rgba(247, 243, 233, 0.16);
  --accent: #e8b84a;
  --accent-soft: rgba(232, 184, 74, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--background);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  color: var(--text);
  background:
    linear-gradient(115deg, transparent 0 62%, rgba(255, 255, 255, 0.018) 62% 62.15%, transparent 62.15%),
    var(--background);
}

.closure {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 0.34fr);
  align-items: stretch;
  width: min(100%, 100rem);
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  overflow: hidden;
}

.closure__accent {
  position: absolute;
  top: clamp(2rem, 7vw, 6.5rem);
  bottom: clamp(2rem, 7vw, 6.5rem);
  left: clamp(1rem, 4vw, 4.5rem);
  width: 0.28rem;
  background: var(--accent);
  box-shadow: 0 0 2rem var(--accent-soft);
}

.closure__content {
  align-self: center;
  max-width: 54rem;
  padding: clamp(4rem, 9vw, 8rem) clamp(2.75rem, 9vw, 9rem);
}

.status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 clamp(2rem, 5vw, 4rem);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.status span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.15rem, 7.6vw, 7.2rem);
  font-weight: 400;
  line-height: 0.92;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.message {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 4vw, 3.25rem);
  max-width: 51rem;
  margin-top: clamp(3rem, 7vw, 5.5rem);
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--line);
}

.message p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.thanks {
  max-width: 34rem;
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 0;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 650;
  line-height: 1.55;
}

.signature {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.signature span {
  font-weight: 650;
}

.signature span::after {
  content: "";
  display: inline-block;
  width: 1.75rem;
  height: 1px;
  margin-left: 0.85rem;
  vertical-align: middle;
  background: var(--line);
}

.signature a {
  color: var(--accent);
  text-underline-offset: 0.25em;
  text-decoration-thickness: 1px;
}

.signature a:hover,
.signature a:focus-visible {
  color: var(--text);
}

.signature a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 0.3rem;
}

.closure__mark {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.15em;
  padding: clamp(2rem, 5vw, 4.5rem) clamp(1.5rem, 4vw, 4rem);
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.012);
  color: rgba(247, 243, 233, 0.08);
  font-size: clamp(2rem, 4.8vw, 5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.07em;
  text-align: right;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  user-select: none;
}

@media (max-width: 760px) {
  .closure {
    grid-template-columns: 1fr;
  }

  .closure__accent {
    top: 1.5rem;
    right: 1.5rem;
    bottom: auto;
    left: 1.5rem;
    width: auto;
    height: 0.25rem;
  }

  .closure__content {
    padding: 5rem 1.5rem 3.5rem;
  }

  .message {
    grid-template-columns: 1fr;
  }

  .signature {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .signature span::after {
    display: none;
  }

  .closure__mark {
    display: none;
  }
}

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

@media (forced-colors: active) {
  .closure__accent,
  .status span {
    background: CanvasText;
  }
}
