:root {
  --sky: #f6e4da;
  --foam: #fff4ee;
  --blush: #e7b09a;
  --rose: #c46b66;
  --mint: #f3b7aa;
  --ink: #1c1412;
  --deep: #4a2c28;
  --body: #2c1e1a;
  --cream: #fff6f1;
}

::selection {
  background: var(--rose);
  color: var(--cream);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #2a1816;
  background-image:
    radial-gradient(ellipse 48% 70% at 78% 58%, #8a4e42 0%, transparent 64%),
    radial-gradient(ellipse 36% 42% at 8% 0%, #5c342e 0%, transparent 70%),
    linear-gradient(180deg, #4a2c28 0%, #1a1210 100%);
  color: var(--cream);
}

.hero,
.about,
.howto,
.community,
.footer {
  background: none;
  color: var(--cream);
}

body {
  margin: 0;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.65;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  background: var(--foam);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.skip:focus {
  top: 0.6rem;
}

h1,
h2,
.hero-name,
.about-name,
.btn-comic,
.navbar-brand strong,
.nav-link,
.ca-label,
.footer strong {
  font-family: "Great Vibes", "Segoe Script", cursive;
  font-weight: 400;
  letter-spacing: 0.01em;
}

section {
  scroll-margin-top: 6.5rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #1a1210;
  border-bottom: 3px solid var(--blush);
}

.topbar .navbar {
  background: transparent;
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-right: 1rem;
  padding: 0;
  color: var(--cream);
  text-decoration: none;
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: var(--cream);
}

.navbar-brand img {
  width: 56px;
  height: 56px;
  max-width: none;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 2.5rem;
  color: var(--cream);
}

.brand-text small {
  max-width: 9.5rem;
  margin-top: 0.15rem;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
  color: var(--blush);
}

.navbar-nav .nav-link {
  font-size: 1.7rem;
  color: var(--cream);
  padding: 0.35rem 0.8rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--blush);
}

.navbar-toggler {
  border: 2px solid var(--cream);
  border-radius: 0.7rem;
}

.navbar-toggler:focus {
  box-shadow: none;
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23fff4ee' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-comic {
  --bs-btn-color: #fff6f1;
  --bs-btn-bg: #1c1412;
  --bs-btn-border-color: #1c1412;
  --bs-btn-hover-color: #fff6f1;
  --bs-btn-hover-bg: #3a2824;
  --bs-btn-hover-border-color: #1c1412;
  --bs-btn-active-color: #fff6f1;
  --bs-btn-active-bg: #1c1412;
  --bs-btn-active-border-color: #1c1412;
  --bs-btn-disabled-color: #fff6f1;
  --bs-btn-disabled-bg: #1c1412;
  --bs-btn-disabled-border-color: #1c1412;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-width: 3px;
  border-radius: 999px;
  padding: 0.35rem 1.15rem 0.45rem;
  font-size: 1.65rem;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: 4px 4px 0 var(--rose);
}

.btn-comic:hover,
.btn-comic:focus {
  color: var(--foam);
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--rose);
}

.btn-comic:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 var(--ink);
}

.btn-copy {
  font-size: 1.45rem;
  padding: 0.2rem 0.95rem 0.3rem;
  box-shadow: 3px 3px 0 var(--rose);
}

.topbar .btn-comic,
.community .btn-comic {
  --bs-btn-color: #1c1412;
  --bs-btn-bg: #f6d7cc;
  --bs-btn-border-color: #f6d7cc;
  --bs-btn-hover-color: #1c1412;
  --bs-btn-hover-bg: #e7b09a;
  --bs-btn-hover-border-color: #e7b09a;
  --bs-btn-active-color: #1c1412;
  --bs-btn-active-bg: #e7b09a;
  --bs-btn-active-border-color: #e7b09a;
  box-shadow: 4px 4px 0 #a85a56;
}

.topbar .btn-comic:hover,
.topbar .btn-comic:focus,
.community .btn-comic:hover,
.community .btn-comic:focus {
  color: #1c1412;
  box-shadow: 2px 2px 0 #a85a56;
}

.topbar .btn-comic .ico,
.community .btn-comic .ico {
  background: #1c1412;
  color: #f6d7cc;
}

.btn-comic .ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--mint);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.btn-comic .ico img {
  width: 1rem;
  height: 1rem;
  max-width: none;
}

.btn-comic .ico .bi {
  font-size: 0.85rem;
  line-height: 1;
}

.hero {
  display: grid;
}

.hero-bg,
.hero-copy {
  grid-area: 1 / 1;
}

.hero-bg {
  width: 100%;
  height: auto;
  align-self: start;
  justify-self: stretch;
  display: block;
  object-fit: contain;
}

.hero-copy {
  z-index: 1;
  align-self: end;
  justify-self: stretch;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem 2rem;
  padding: 0 4vw 1.35rem;
}

.hero-lockup {
  max-width: min(32rem, 52%);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.eyebrow img {
  width: 1.05rem;
  height: 1.05rem;
  max-width: none;
}

.hero h1 {
  margin: 0;
  color: #fff6f1;
  font-size: clamp(4.6rem, 9vw, 7.5rem);
  line-height: 1.05;
  text-shadow: 0 2px 0 rgba(28, 20, 18, 0.28), 0 12px 22px rgba(28, 20, 18, 0.22);
}

.hero-name {
  margin: 0.2rem 0 0;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
}

.hero-lead {
  max-width: 28rem;
  margin: 0.35rem 0 0;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
  max-width: 24rem;
}

.about {
  width: 100%;
  margin: 0;
  padding: 4.5rem max(1.2rem, calc((100% - 1180px) / 2)) 5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.about-art {
  width: min(100%, 420px);
  height: auto;
  display: block;
  object-fit: contain;
  flex: none;
}

.about-copy {
  max-width: 38rem;
}

.section-title {
  width: fit-content;
  margin: 0 0 0.8rem;
  color: var(--cream);
  font-size: clamp(3.4rem, 7vw, 5.6rem);
  line-height: 1.15;
  border-bottom: 4px solid var(--blush);
  padding-bottom: 0.12rem;
}

.about-name {
  margin: 0 0 0.8rem;
  font-weight: 400;
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1.2;
  color: var(--cream);
}

.story {
  margin: 0;
}

.story + .story {
  margin-top: 0.8rem;
}

.wrap {
  width: min(860px, calc(100% - 2.4rem));
  margin: 0 auto;
  padding: 4.5rem 0 5rem;
}

.script {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1.8rem;
  padding-left: 1.25rem;
  border-left: 4px solid var(--blush);
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 0.95rem;
}

.step-ico {
  width: 3.25rem;
  height: 3.25rem;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--foam);
  box-shadow: 3px 3px 0 var(--rose);
  display: grid;
  place-items: center;
  flex: none;
}

.step-ico img {
  width: 1.65rem;
  height: 1.65rem;
  max-width: none;
  object-fit: contain;
}

.step h3 {
  margin: 0 0 0.15rem;
  font-family: "Quicksand", "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--cream);
}

.step p {
  margin: 0;
  color: var(--cream);
}

.ca-panel {
  margin-top: 2.2rem;
  padding: 1.15rem 1.2rem 1.25rem;
  color: var(--ink);
  background: var(--foam);
  border: 3px solid var(--ink);
  border-radius: 1.3rem;
  box-shadow: 6px 6px 0 #a85a56;
}

.ca-label {
  margin: 0 0 0.45rem;
  color: var(--ink);
  font-size: 2.6rem;
  line-height: 1.2;
}

.ca-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.ca {
  flex: 1 1 16rem;
  margin: 0;
  font-weight: 800;
  font-size: 0.98rem;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.ca-note {
  margin: 0.8rem 0 0.95rem;
  font-size: 0.98rem;
}

.ca-panel .hero-actions {
  justify-content: flex-start;
  max-width: none;
}

.community {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 3.5rem 1.2rem 1rem;
}

.community-art {
  width: min(100%, 420px);
  height: auto;
  display: block;
  object-fit: contain;
  flex: none;
}

.community-copy {
  width: min(34rem, calc(100% - 2.4rem));
  padding: 0 0 2.5rem;
}

.community-copy .hero-actions {
  justify-content: flex-start;
  max-width: none;
  margin-top: 1.4rem;
}

.footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.4rem 6vw 1.6rem;
}

.footer img {
  width: 84px;
  height: 84px;
  max-width: none;
  object-fit: contain;
  flex: none;
}

.footer strong {
  display: block;
  font-size: 2.6rem;
  font-weight: 400;
  line-height: 1.15;
  color: var(--cream);
}

.footer p {
  margin: 0.2rem 0 0;
  max-width: 36rem;
  font-size: 0.98rem;
}

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

.topbar :focus-visible,
.community :focus-visible,
.footer :focus-visible {
  outline-color: var(--blush);
}

@media (min-width: 901px) {
  .navbar-brand img {
    width: 72px;
    height: 72px;
  }

  .about {
    flex-direction: row;
    align-items: center;
    gap: 4rem;
  }

  .about-art {
    width: min(40vw, 460px);
  }

  .about-copy {
    flex: 1;
  }

  .community {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 4.5rem;
    padding: 4rem 6vw 2rem;
  }

  .community-art {
    width: min(36vw, 440px);
    max-width: 42%;
  }

  .community-copy {
    flex: 0 1 34rem;
    width: auto;
    max-width: 34rem;
    padding: 0;
  }
}

@media (max-width: 900px) {
  .hero {
    display: block;
  }

  .hero-copy {
    margin-top: -1rem;
    padding: 0 1.1rem 1.8rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-lockup,
  .hero-actions {
    max-width: 36rem;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .eyebrow,
  .hero-actions,
  .community-copy .hero-actions {
    justify-content: center;
  }

  .section-title,
  .about-copy {
    margin-inline: auto;
  }

  .about-copy,
  .community-copy {
    text-align: center;
  }

  .ca-panel .hero-actions {
    justify-content: center;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding-bottom: 0.85rem;
  }

  .topbar .btn-comic {
    margin-top: 0.35rem;
  }
}

.click-heart {
  position: fixed;
  z-index: 80;
  width: var(--size, 2rem);
  height: var(--size, 2rem);
  margin: 0;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 8px 10px rgba(176, 42, 74, 0.32));
  animation: heart-float var(--life, 1200ms) cubic-bezier(0.16, 0.72, 0.28, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

.click-heart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

@keyframes heart-float {
  0% {
    opacity: 0;
    transform: translate(-50%, -30%) scale(0.2) rotate(0deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -58%) scale(1.06) rotate(calc(var(--spin) * 0.2));
  }

  52% {
    opacity: 1;
    transform: translate(calc(-50% + var(--sway)), calc(-50% + var(--rise) * 0.46)) scale(1) rotate(calc(var(--spin) * 0.65));
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--drift)), calc(-50% + var(--rise))) scale(0.78) rotate(var(--spin));
  }
}

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

  .btn-comic:hover,
  .btn-comic:focus,
  .btn-comic:active {
    transform: none;
  }

  .click-heart {
    animation: heart-fade 420ms linear forwards;
  }
}

@keyframes heart-fade {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}
