:root {
  --bg: #fffaf0;
  --bg-pattern: #ffe7ab;
  --ink: #111111;
  --paper: #fffef8;
  --muted: #3f3d3d;
  --accent: #ff6b3d;
  --accent-alt: #00d0aa;
  --outline: #111111;
  --shadow: 8px 8px 0 #111111;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Space Grotesk", "Trebuchet MS", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 14%, var(--bg-pattern) 0 14%, transparent 14%),
    radial-gradient(circle at 93% 12%, #b9fff3 0 12%, transparent 12%),
    radial-gradient(circle at 90% 92%, #ffd2f3 0 10%, transparent 10%),
    var(--bg);
  line-height: 1.5;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(255, 250, 240, 0.95);
  border-bottom: 3px solid var(--outline);
  backdrop-filter: blur(4px);
}

.brand {
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  padding: 5px 8px;
}

.nav a:hover,
.nav a:focus-visible {
  border-color: var(--outline);
  background: #fff;
  outline: none;
}

main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 26px 18px 34px;
  display: grid;
  gap: 20px;
}

.hero,
.card {
  border: 3px solid var(--outline);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 22px;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -16px;
  width: 140px;
  height: 140px;
  background: repeating-linear-gradient(
    45deg,
    #111111,
    #111111 6px,
    #ffe8dc 6px,
    #ffe8dc 12px
  );
  border: 3px solid var(--outline);
  transform: rotate(8deg);
}

.hero > * {
  position: relative;
  z-index: 1;
}

.chip {
  display: inline-block;
  margin: 0;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 2px solid var(--outline);
  background: var(--accent-alt);
}

.hero h1 {
  margin: 11px 0 12px;
  max-width: 18ch;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  font-size: clamp(2rem, 6vw, 4.2rem);
  line-height: 0.95;
}

.lead {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1rem, 2.2vw, 1.22rem);
}

.hint {
  margin: 10px 0 0;
  font-weight: 600;
  font-size: 0.92rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.btn {
  appearance: none;
  border: 3px solid var(--outline);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 #111;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 #111;
  outline: none;
}

.btn:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 #111;
}

.btn.primary {
  background: var(--accent);
}

h2,
h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
}

h2 {
  font-size: clamp(1.4rem, 4vw, 2.2rem);
}

.card p {
  margin-top: 10px;
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.grid article {
  border: 3px solid var(--outline);
  padding: 14px;
  background: #fff;
}

.grid h3 {
  font-size: 1.15rem;
}

.grid p {
  margin: 8px 0 0;
}

.flow ol {
  margin: 14px 0 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.flow li span {
  display: inline-block;
  margin-right: 5px;
  background: #ffe16a;
  border: 2px solid var(--outline);
  padding: 0 6px;
  font-weight: 700;
}

.download-card {
  background: linear-gradient(145deg, #fffef8, #ffe8dc);
}

.policy-card {
  background: linear-gradient(145deg, #fffef8, #e9fff9);
}

.policy-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.policy-list li {
  border: 3px solid var(--outline);
  background: #fff;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.policy-link {
  color: var(--ink);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.policy-url {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.status {
  margin: 12px 0 0;
  font-weight: 700;
  min-height: 1.4em;
}

.status.ok {
  color: #0f7a5f;
}

.status.warn {
  color: #7b4b00;
}

.status.error {
  color: #b00020;
}

.delete-hero h1 {
  max-width: 16ch;
}

.delete-card {
  background: linear-gradient(145deg, #fffef8, #ffe6de);
}

.delete-form {
  margin-top: 14px;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.delete-form label {
  font-weight: 700;
}

.delete-form input {
  border: 3px solid var(--outline);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}

.delete-form input:focus-visible {
  outline: 3px solid var(--accent-alt);
  outline-offset: 2px;
}

footer {
  text-align: center;
  padding: 18px;
  font-weight: 700;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

main > section {
  animation: riseIn 360ms ease both;
}

main > section:nth-child(2) {
  animation-delay: 80ms;
}

main > section:nth-child(3) {
  animation-delay: 150ms;
}

main > section:nth-child(4) {
  animation-delay: 220ms;
}

main > section:nth-child(5) {
  animation-delay: 300ms;
}

main > section:nth-child(6) {
  animation-delay: 360ms;
}

@media (max-width: 860px) {
  .hero::after {
    width: 100px;
    height: 100px;
  }

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

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 14px;
  }

  .brand {
    font-size: 1rem;
  }

  main {
    padding: 20px 12px 28px;
  }

  .hero,
  .card {
    padding: 16px;
    box-shadow: 5px 5px 0 #111111;
  }

  .cta-row {
    gap: 10px;
  }
}
