@font-face {
  font-family: "Geist Sans";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("https://cdn.jsdelivr.net/npm/geist@1.9.2/dist/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #f5eddb;
  --paper-deep: #eee3c9;
  --ink: #3e4c46;
  --secondary: #525f51;
  --accent: #2f6b4f;
  --accent-soft: rgb(47 107 79 / 0.09);
  --rule: rgb(62 76 70 / 0.16);
  --ring: rgb(62 76 70 / 0.075);
  --tile-line: rgb(62 76 70 / 0.1);
  --tile-shadow: rgb(62 76 70 / 0.18);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Geist Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --paper: #2f383f;
    --paper-deep: #2a3238;
    --ink: #ddd0b2;
    --secondary: #b3bcb1;
    --accent: #8fca9e;
    --accent-soft: rgb(143 202 158 / 0.1);
    --rule: rgb(221 208 178 / 0.2);
    --ring: rgb(221 208 178 / 0.07);
    --tile-line: rgb(221 208 178 / 0.16);
    --tile-shadow: rgb(0 0 0 / 0.38);
  }
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  background:
    radial-gradient(90% 55% at 50% -12%, var(--accent-soft), transparent 62%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper) 58%, var(--paper-deep) 145%);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  overflow-x: clip;
}

::selection {
  background: rgb(47 107 79 / 0.22);
  color: var(--ink);
}

@media (prefers-color-scheme: dark) {
  ::selection {
    background: rgb(143 202 158 / 0.28);
  }
}

main {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
  place-items: center;
  overflow: clip;
}

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

h1,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.032em;
}

p {
  margin-bottom: 0.9rem;
}

a {
  color: inherit;
}

a:hover {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
  font-weight: 560;
  line-height: 1.2;
  text-decoration: none;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  max-width: 100%;
  margin-inline: auto;
}

.eyebrow {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-bottom: 0.4rem;
  color: var(--secondary);
  font-size: 0.75rem;
  font-weight: 600;
}

.closing {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(54rem, calc(100% - 2.5rem));
  padding-block: clamp(2.75rem, 7vh, 4.75rem) clamp(3.25rem, 8vh, 5.5rem);
  text-align: center;
}

/* Faint concentric route rings behind the lockup. Kept near-invisible so the page stays quiet. */
.closing::before,
.closing::after {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  border: 1px solid var(--ring);
  border-radius: 50%;
  pointer-events: none;
}

.closing::before {
  top: 38%;
  width: min(118vw, 780px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.closing::after {
  top: 36%;
  left: 52%;
  width: min(82vw, 540px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}

.closing img {
  width: clamp(96px, 20vw, 118px);
  height: auto;
  aspect-ratio: 1;
  margin-bottom: 1.15rem;
  border: 1px solid var(--tile-line);
  border-radius: clamp(21px, 4.6vw, 26px);
  background: #efe7d0;
  box-shadow:
    0 1px 2px rgb(62 76 70 / 0.06),
    0 18px 38px -18px var(--tile-shadow);
}

.closing .app-name {
  margin-bottom: 0.9rem;
  font-family: var(--sans);
  font-size: clamp(1.3rem, 1.1vw + 1rem, 1.5rem);
  font-weight: 580;
  line-height: 1.1;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.closing h1 {
  margin-bottom: 1.45rem;
  font-size: clamp(2.85rem, 5.1vw + 1rem, 4.9rem);
  line-height: 1.02;
  text-wrap: balance;
}

.closing .eyebrow {
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 0.7rem;
  font-size: 0.8125rem;
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: 0.045em;
  color: var(--secondary);
}

.closing .eyebrow::before,
.closing .eyebrow::after {
  content: "";
  width: 1.9rem;
  height: 1px;
  flex: none;
  background: var(--rule);
}

.closing p {
  max-width: 38rem;
  margin-inline: auto;
  color: var(--secondary);
  font-size: 1.12rem;
}

.closing > p:last-child {
  max-width: 52ch;
  margin-bottom: 0;
  font-size: 1.0625rem;
  line-height: 1.68;
  letter-spacing: -0.008em;
  text-wrap: pretty;
}

.closing > p:last-child::before {
  content: "";
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  vertical-align: 0.14em;
}

@media (max-width: 560px) {
  .wrap,
  .closing {
    width: calc(100% - 2rem);
  }

  .closing {
    padding-block: clamp(1.75rem, 5svh, 2.75rem) clamp(2rem, 6svh, 3.25rem);
  }

  .closing::before {
    width: min(150vw, 780px);
  }

  .closing::after {
    width: min(110vw, 540px);
  }

  .closing img {
    width: clamp(82px, 24vw, 104px);
    margin-bottom: 1rem;
    border-radius: clamp(18px, 5.4vw, 23px);
  }

  .closing .app-name {
    margin-bottom: 0.75rem;
    font-size: 1.22rem;
  }

  .closing h1 {
    font-size: clamp(2.5rem, 12vw, 3.35rem);
    line-height: 1.04;
    margin-bottom: 1.15rem;
  }

  .closing .eyebrow::before,
  .closing .eyebrow::after {
    width: 1.15rem;
  }

  .closing > p:last-child {
    max-width: 36ch;
    font-size: 1rem;
    text-wrap: balance;
  }
}

@media (max-width: 360px) {
  .closing {
    padding-block: 1.5rem 2rem;
  }

  .closing img {
    width: clamp(76px, 24vw, 88px);
    margin-bottom: 0.85rem;
  }

  .closing .app-name {
    font-size: 1.12rem;
  }

  .closing h1 {
    font-size: clamp(2.05rem, 11.2vw, 2.55rem);
  }

  .closing .eyebrow {
    gap: 0.6rem;
    font-size: 0.78rem;
  }

  .closing .eyebrow::before,
  .closing .eyebrow::after {
    width: 0.85rem;
  }

  .closing > p:last-child {
    max-width: 32ch;
    font-size: 0.97rem;
    line-height: 1.6;
  }
}

@media (max-height: 500px) and (orientation: landscape) {
  .closing {
    padding-block: 1rem 1.25rem;
  }

  .closing img {
    width: 60px;
    margin-bottom: 0.55rem;
    border-radius: 14px;
  }

  .closing .app-name {
    margin-bottom: 0.45rem;
    font-size: 1.05rem;
  }

  .closing h1 {
    margin-bottom: 0.7rem;
    font-size: clamp(2rem, 7.5svh + 1rem, 2.6rem);
  }

  .closing .eyebrow {
    margin-bottom: 0.5rem;
  }

  .closing > p:last-child {
    font-size: 0.95rem;
    line-height: 1.55;
  }
}

@media (prefers-contrast: more) {
  :root {
    --secondary: #3f4d3e;
    --rule: rgb(62 76 70 / 0.32);
    --ring: rgb(62 76 70 / 0.14);
  }

  @media (prefers-color-scheme: dark) {
    :root {
      --secondary: #c9d2c6;
      --rule: rgb(221 208 178 / 0.36);
      --ring: rgb(221 208 178 / 0.14);
    }
  }
}

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