:root {
  color-scheme: light;
  --ink: #211817;
  --muted: #6e5f5a;
  --paper: #fff7e7;
  --panel: #fffdf7;
  --line: #ead9bf;
  --coral: #ff6f61;
  --teal: #007c75;
  --yellow: #ffd166;
  --lav: #9180ff;
  --danger: #a8324a;
  --shadow: 0 24px 70px rgba(58, 36, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 209, 102, 0.45), transparent 18rem),
    radial-gradient(circle at 88% 4%, rgba(145, 128, 255, 0.28), transparent 20rem),
    linear-gradient(180deg, #fffaf0, var(--paper));
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px min(5vw, 56px);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(234, 217, 191, 0.8);
}

a {
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 900;
}

.mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--yellow);
  font-weight: 950;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a {
  padding: 9px 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 800;
}

nav a:hover {
  background: #fff;
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.view {
  scroll-margin-top: 92px;
}

.hero {
  min-height: 52vh;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  align-items: center;
  gap: 28px;
}

.hero-copy {
  padding: 24px 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.1rem, 8vw, 7.6rem);
  line-height: 0.88;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
}

h3 {
  margin: 10px 0 6px;
  font-size: 1.1rem;
}

.lede {
  max-width: 620px;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.45;
  color: var(--muted);
}

.note {
  display: inline-block;
  max-width: 620px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.95rem;
}

.hero-art {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}

.confession-panel,
.result,
.resume-box,
.page {
  margin-top: 24px;
  background: rgba(255, 253, 247, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.confession-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
}

.panel-head h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.panel-head p {
  max-width: 420px;
  margin: 0;
  color: var(--muted);
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  color: var(--muted);
  font-weight: 750;
}

.check input {
  width: auto;
  flex: 0 0 auto;
}

textarea,
input,
button {
  font: inherit;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 180px;
  resize: vertical;
  padding: 16px;
  line-height: 1.45;
}

input {
  padding: 12px 13px;
}

button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 950;
  cursor: pointer;
}

.primary {
  justify-self: start;
  background: var(--coral);
  color: #fff;
  box-shadow: 0 10px 0 #b84138;
}

.primary:active {
  transform: translateY(4px);
  box-shadow: 0 6px 0 #b84138;
}

.quiet {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger {
  color: var(--danger);
}

.result {
  padding: 22px;
  border-color: rgba(0, 124, 117, 0.35);
}

.score-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: center;
}

.score {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--teal), var(--yellow), var(--coral), var(--teal));
  color: #fff;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 950;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.18);
}

.task {
  margin: 10px 0 0;
  font-size: 1.3rem;
  line-height: 1.35;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff3d1;
  color: #5d4420;
  font-weight: 850;
}

.warning {
  color: var(--danger);
  font-weight: 850;
}

.turnstile-slot {
  min-height: 65px;
}

.gift-links {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gift-links ul {
  margin-bottom: 0;
}

.resume-box {
  padding: 14px 18px;
}

summary {
  cursor: pointer;
  font-weight: 900;
}

.resume-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  margin-top: 14px;
}

.page {
  padding: 34px;
}

.steps,
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.steps article,
.help-grid a {
  min-height: 160px;
  padding: 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.steps strong {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--yellow);
}

.steps p,
.help-grid span,
.page li,
.page p {
  color: var(--muted);
  line-height: 1.55;
}

.bands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.bands span {
  padding: 10px 12px;
  border-radius: 999px;
  background: #e9fbf7;
  color: #075f59;
  font-weight: 850;
}

.help-grid a {
  display: grid;
  align-content: start;
  gap: 8px;
  text-decoration: none;
  transition: transform 160ms ease;
}

.help-grid a:hover {
  transform: translateY(-3px);
}

.help-grid strong {
  font-size: 1.18rem;
}

ul {
  padding-left: 20px;
}

@media (max-width: 780px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .score-card,
  .steps,
  .help-grid,
  .resume-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 20px;
  }

  .hero-art {
    transform: none;
  }

  .panel-head {
    display: block;
  }

  .primary,
  .resume-row button {
    width: 100%;
  }
}
