:root {
  color-scheme: light;
  --canvas: #fffaf8;
  --surface: #ffffff;
  --surface-blush: #f8e4e2;
  --shell-accent: #f3d5dc;
  --action: #b63d68;
  --ink: #35252b;
  --ink-muted: #6f535d;
  --ribbon: #e79a88;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:
    Manrope, Avenir, "Avenir Next", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-tap-highlight-color: rgb(182 61 104 / 16%);
}

button,
input {
  font: inherit;
}

button,
a,
input {
  touch-action: manipulation;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: max(0.75rem, env(safe-area-inset-top));
  left: max(0.75rem, env(safe-area-inset-left));
  padding: 0.7rem 1rem;
  border-radius: 0.75rem;
  background: var(--ink);
  color: var(--surface);
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.5rem);
}

.skip-link:focus-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-header {
  display: flex;
  width: min(74rem, calc(100% - 3rem));
  min-height: 5.5rem;
  margin: 0 auto;
  padding-top: max(1rem, env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand img {
  width: 2.75rem;
  height: auto;
}

.brand span {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.site-nav a {
  min-height: 2.75rem;
  padding: 0.55rem 0.8rem;
  border-radius: 0.75rem;
  color: var(--ink-muted);
  font-size: 0.93rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a[aria-current="page"] {
  background: var(--surface-blush);
  box-shadow: inset 0 -2px 0 var(--action);
  color: var(--ink);
}

.site-nav a:hover {
  background: var(--shell-accent);
  color: var(--ink);
}

.site-main {
  width: min(74rem, calc(100% - 3rem));
  margin: 1rem auto 0;
  padding-bottom: 5rem;
}

.page-hero {
  position: relative;
  display: grid;
  min-height: 25rem;
  padding: 4.8rem clamp(1.5rem, 6vw, 5.5rem) 5.5rem;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.6fr);
  align-items: center;
  gap: 3rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 43rem;
}

.page-kicker,
.panel-kicker {
  margin: 0 0 0.75rem;
  color: var(--action);
  font-size: 0.88rem;
  font-weight: 750;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 3vw, 2.2rem);
  line-height: 1.12;
  scroll-margin-top: 2rem;
}

.page-lead {
  max-width: 39rem;
  margin: 1.6rem 0 0;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.updated-at {
  margin: 1.25rem 0 0;
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.hero-mark {
  position: relative;
  z-index: 2;
  justify-self: center;
  width: min(18rem, 100%);
  padding: 3.25rem 2.4rem;
  border-radius: 50%;
  background: var(--surface-blush);
}

.hero-mark img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-ribbon {
  position: absolute;
  z-index: 1;
  right: -2rem;
  bottom: 1rem;
  left: -2rem;
  width: calc(100% + 4rem);
  height: 9.4rem;
  overflow: visible;
}

.hero-ribbon path {
  fill: none;
  stroke: var(--ribbon);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.paper-sheet {
  position: relative;
  z-index: 2;
  display: grid;
  max-width: 62rem;
  margin: -1.25rem auto 0;
  padding: clamp(2rem, 5vw, 5rem);
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 3px 8px rgb(53 37 43 / 8%);
  gap: 0;
}

.legal-section {
  display: grid;
  grid-template-columns: minmax(10rem, 0.34fr) minmax(0, 0.66fr);
  column-gap: clamp(2rem, 7vw, 6rem);
  padding: 2.35rem 0;
  border-bottom: 1px solid var(--shell-accent);
}

.legal-section:first-child {
  padding-top: 0;
}

.legal-section:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-section h2 {
  grid-row: 1 / span 6;
}

.legal-section p,
.soft-list {
  margin: 0;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.legal-section p + p,
.legal-section p + .soft-list,
.legal-section .soft-list + p {
  margin-top: 1rem;
}

.soft-list {
  padding: 0;
  list-style: none;
}

.soft-list li {
  position: relative;
  padding-left: 1.45rem;
}

.soft-list li + li {
  margin-top: 0.75rem;
}

.soft-list li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 0.44rem;
  height: 0.44rem;
  border: 2px solid var(--ribbon);
  border-radius: 50%;
  content: "";
}

.text-link,
.site-footer a {
  color: var(--action);
  font-weight: 700;
  text-decoration-color: var(--ribbon);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.2em;
}

.text-link:hover,
.site-footer a:hover {
  color: var(--ink);
  text-decoration-thickness: 0.12em;
}

.deletion-summary,
.flow-steps,
.action-panel {
  padding: 2.35rem 0;
  border-bottom: 1px solid var(--shell-accent);
}

.deletion-summary:first-child {
  padding-top: 0;
}

.flow-steps ol {
  display: grid;
  margin: 1.5rem 0 0;
  padding: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
}

.flow-steps li {
  padding: 1.25rem;
  border-radius: 0.875rem;
  background: var(--surface-blush);
}

.flow-steps li span {
  display: grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--surface);
  color: var(--action);
  font-weight: 800;
  place-items: center;
}

.flow-steps li p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.45;
}

.action-panel {
  max-width: 44rem;
  margin: 0 auto;
}

.action-panel:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.confirmation-panel {
  max-width: none;
  margin: 0 0 0.5rem;
  padding: 2rem;
  border: 0;
  border-radius: 1rem;
  background: var(--surface-blush);
}

.confirmation-panel[hidden] {
  display: none;
}

.action-panel > p:not(.panel-kicker, .form-status) {
  margin: 0 0 1.4rem;
  color: var(--ink-muted);
}

.field {
  display: grid;
  gap: 0.5rem;
}

.field label {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
}

.field input {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--ink-muted);
  border-radius: 0.75rem;
  background: var(--surface);
  color: var(--ink);
}

.field input::placeholder {
  color: var(--ink-muted);
}

.primary-button {
  width: 100%;
  min-height: 3.25rem;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  border: 0;
  border-radius: 0.75rem;
  background: var(--action);
  color: #ffffff;
  cursor: pointer;
  font-weight: 750;
}

.primary-button:hover:not(:disabled) {
  background: var(--ink);
}

.primary-button:active:not(:disabled) {
  transform: translateY(1px);
}

.primary-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.primary-button[data-state="loading"]::after {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  margin-left: 0.65rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: button-progress 0.8s linear infinite;
  content: "";
  transform-origin: center;
}

@keyframes button-progress {
  to {
    transform: rotate(1turn);
  }
}

.destructive-button {
  max-width: 28rem;
}

.confirmation-control {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  cursor: pointer;
  line-height: 1.45;
}

.confirmation-control input {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0.15rem 0 0;
  flex: 0 0 auto;
  accent-color: var(--action);
}

.form-status {
  min-height: 1.6rem;
  margin: 1rem 0 0;
  color: var(--ink-muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.site-footer {
  display: flex;
  width: min(74rem, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.5rem 0 max(2rem, env(safe-area-inset-bottom));
  border-top: 1px solid var(--shell-accent);
  justify-content: space-between;
  gap: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.site-footer p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}

@media (max-width: 48rem) {
  .site-header {
    width: min(100% - 2rem, 38rem);
    padding-bottom: 0.5rem;
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .site-nav a {
    flex: 1 0 auto;
    text-align: center;
  }

  .site-main {
    width: min(100% - 1.5rem, 38rem);
    margin-top: 0;
    padding-bottom: 2.5rem;
  }

  .page-hero {
    min-height: 29rem;
    padding: 3.5rem 0.75rem 4.75rem;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(3.25rem, 15vw, 4.7rem);
  }

  .hero-mark {
    width: 9.5rem;
    padding: 1.7rem 1.4rem;
    justify-self: end;
  }

  .hero-ribbon {
    bottom: 0.5rem;
  }

  .paper-sheet {
    margin-top: -0.25rem;
    padding: 2rem 1.35rem;
  }

  .legal-section {
    display: block;
    padding: 2rem 0;
  }

  .flow-steps ol {
    grid-template-columns: 1fr;
  }

  .confirmation-panel {
    padding: 1.4rem;
  }

  .site-footer {
    width: min(100% - 2rem, 38rem);
    flex-direction: column;
    gap: 0.25rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
  }

  .primary-button[data-state="loading"]::after {
    animation: none;
    border-right-color: currentColor;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-mark,
  .hero-ribbon,
  .action-panel,
  .flow-steps {
    display: none;
  }

  body {
    background: #ffffff;
  }

  .site-main,
  .paper-sheet {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .page-hero {
    min-height: auto;
    padding: 0 0 2rem;
    grid-template-columns: 1fr;
  }
}
