:root {
  --cream: #fff8ef;
  --cream-2: #fff1e6;
  --paper: #fffaf4;
  --peach: #efd2bf;
  --peach-2: #f7dfcc;
  --terracotta: #c96f3f;
  --terracotta-dark: #8c4d30;
  --olive: #8e9270;
  --olive-dark: #4f5238;
  --brown: #44281f;
  --brown-soft: #7a4e3c;
  --rose: #d58b7d;
  --shadow: 0 30px 80px rgba(91, 54, 33, 0.22);
  --radius-lg: 34px;
  --radius-md: 22px;
  --max-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--brown);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 6% 18%, rgba(142, 146, 112, 0.20), transparent 20%),
    radial-gradient(circle at 92% 8%, rgba(201, 111, 63, 0.16), transparent 22%),
    radial-gradient(circle at 20% 94%, rgba(213, 139, 125, 0.14), transparent 20%),
    linear-gradient(135deg, #fbefe3 0%, #fff8ef 48%, #f0d8c8 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  width: 230px;
  height: 230px;
  z-index: -1;
  filter: blur(1px);
  opacity: 0.45;
  border-radius: 50%;
  pointer-events: none;
}

body::before {
  left: -70px;
  top: 160px;
  background: radial-gradient(circle, rgba(142, 146, 112, 0.30), transparent 62%);
}

body::after {
  right: -80px;
  bottom: 120px;
  background: radial-gradient(circle, rgba(201, 111, 63, 0.24), transparent 62%);
}

a {
  color: inherit;
}

.page-shell {
  width: 100%;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.studio-card {
  width: min(100%, var(--max-width));
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 250, 244, 0.92), rgba(255, 246, 236, 0.98)),
    var(--paper);
  box-shadow: var(--shadow);
  border: 1px solid rgba(140, 77, 48, 0.12);
  animation: pageIn 900ms cubic-bezier(.2,.8,.2,1) both;
}

.hero {
  height: clamp(270px, 34vw, 390px);
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  animation: heroZoom 14s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 248, 239, 0.02), rgba(255, 248, 239, 0.28)),
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.32), transparent 34%);
  pointer-events: none;
}

.wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 145px;
  z-index: 2;
}

.wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave path {
  fill: var(--cream);
}

.top-pill {
  position: absolute;
  top: 22px;
  right: 24px;
  z-index: 4;
  display: flex;
  gap: 14px;
  padding: 12px 19px;
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.88);
  box-shadow: 0 16px 34px rgba(71, 43, 28, 0.14);
  backdrop-filter: blur(12px);
  animation: slideDown 900ms ease 400ms both;
}

.top-pill a {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--terracotta-dark);
  font-weight: 900;
  transition: transform 200ms ease, color 200ms ease;
}

.top-pill a:hover {
  transform: translateY(-3px) scale(1.08);
  color: var(--terracotta);
}

.menu-btn {
  display: none;
  position: absolute;
  top: 22px;
  right: 20px;
  z-index: 6;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(140, 97, 68, 0.92);
  box-shadow: 0 14px 26px rgba(71, 43, 28, 0.16);
  cursor: pointer;
  place-items: center;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  margin: 2px 0;
  display: block;
  background: var(--cream);
  border-radius: 999px;
  transition: transform 240ms ease, opacity 240ms ease;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.profile-area {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 clamp(24px, 7vw, 88px);
  margin-top: -145px;
}

.profile-ring {
  width: clamp(190px, 27vw, 255px);
  height: clamp(190px, 27vw, 255px);
  margin: 0 auto 26px;
  position: relative;
  border-radius: 50%;
  padding: 8px;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: 0 24px 52px rgba(79, 48, 31, 0.20);
}

.profile-ring img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  border: 5px solid #ffffff;
}

.heart-badge {
  position: absolute;
  right: -5px;
  bottom: 26px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--peach-2);
  color: var(--terracotta-dark);
  font-size: 32px;
  font-weight: 800;
  box-shadow: 0 13px 26px rgba(79, 48, 31, 0.16);
  animation: pulseHeart 2.7s ease-in-out infinite;
}

.brand {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 8vw, 70px);
  line-height: 0.98;
  font-weight: 500;
  letter-spacing: -1.8px;
  color: var(--brown);
  text-transform: uppercase;
}

.divider {
  width: min(380px, 78%);
  margin: 18px auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.divider span {
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, rgba(201, 111, 63, 0.75), transparent);
}

.divider b {
  color: var(--terracotta);
  font-size: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  padding: 10px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d98f7f, #bd6658);
  color: white;
  font-weight: 800;
  box-shadow: 0 12px 25px rgba(189, 102, 88, 0.26);
}

.intro {
  width: min(100%, 610px);
  margin: 0 auto 30px;
  font-size: clamp(18px, 2.5vw, 26px);
  line-height: 1.48;
  font-weight: 700;
  color: #1d1714;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: min(100%, 620px);
  margin: 0 auto 30px;
}

.features article {
  min-height: 86px;
  border-radius: 22px;
  padding: 15px 12px;
  display: grid;
  place-items: center;
  gap: 6px;
  background: rgba(246, 231, 219, 0.75);
  box-shadow: 0 12px 22px rgba(80, 49, 31, 0.08);
  border: 1px solid rgba(140, 77, 48, 0.08);
  transition: transform 240ms ease, background 240ms ease;
}

.features article:hover {
  transform: translateY(-5px);
  background: rgba(255, 250, 244, 0.95);
}

.features span {
  font-size: 25px;
}

.features strong {
  font-size: 15px;
  line-height: 1.15;
}

.links-section {
  position: relative;
  z-index: 4;
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 0 22px;
  display: grid;
  gap: 18px;
}

.shop-link {
  min-height: 92px;
  border-radius: 24px;
  display: grid;
  grid-template-columns: 74px 1fr 54px;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  text-decoration: none;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 35px rgba(79, 48, 31, 0.16);
  transform-style: preserve-3d;
  transition: transform 260ms ease, box-shadow 260ms ease, filter 260ms ease;
}

.shop-link::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--x, 20%) var(--y, 50%), rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.16) 38%, transparent 62%);
  opacity: 0;
  transition: opacity 240ms ease;
}

.shop-link:hover {
  transform: translateY(-6px) scale(1.012);
  box-shadow: 0 24px 45px rgba(79, 48, 31, 0.23);
  filter: saturate(1.06);
}

.shop-link:hover::before {
  opacity: 1;
}

.etsy {
  background: linear-gradient(135deg, #ef8b46, #b95f34);
}

.gumroad {
  background: linear-gradient(135deg, #999d78, #686d4f);
}

.contact {
  background: linear-gradient(135deg, #f1d4bb, #d29b76);
  color: #57301e;
}

.link-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
  font-size: 33px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.gumroad .link-icon {
  background: #373826;
  font-family: Arial, Helvetica, sans-serif;
}

.contact .link-icon {
  background: #8a4c2c;
  color: white;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 26px;
}

.link-text {
  display: grid;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.link-text strong {
  font-size: clamp(18px, 2.7vw, 25px);
  letter-spacing: 0.7px;
}

.link-text small {
  font-size: clamp(13px, 1.8vw, 17px);
  opacity: 0.92;
}

.arrow {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  justify-self: end;
  position: relative;
  z-index: 2;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--terracotta-dark);
  font-size: 26px;
  font-weight: 800;
  transition: transform 260ms ease;
}

.shop-link:hover .arrow {
  transform: translateX(5px);
}

.quote-card {
  width: min(100% - 44px, 640px);
  margin: 34px auto 34px;
  padding: 26px clamp(20px, 5vw, 48px);
  text-align: center;
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.88);
  border: 1px solid rgba(140, 77, 48, 0.10);
  box-shadow: 0 14px 30px rgba(79, 48, 31, 0.10);
  color: #2a211c;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.5;
  font-weight: 600;
}

.quote-mark {
  display: block;
  color: var(--rose);
  font-family: Georgia, serif;
  font-size: 52px;
  line-height: 0.7;
}

.quote-card b {
  color: #e7668c;
}

.footer {
  display: flex;
  justify-content: center;
  gap: 42px;
  align-items: center;
  padding: 20px 20px 28px;
  font-size: 15px;
  color: #483229;
  border-top: 1px solid rgba(140, 77, 48, 0.08);
}

.decor {
  position: absolute;
  color: rgba(201, 111, 63, 0.42);
  font-size: 34px;
  animation: floatDecor 4.2s ease-in-out infinite;
}

.decor-left {
  left: 11%;
  top: 190px;
}

.decor-right {
  right: 17%;
  top: 150px;
  animation-delay: 1s;
}

.yarn-doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.38;
}

.yarn-doodle span {
  display: block;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 3px solid #d88f4f;
  background:
    repeating-linear-gradient(36deg, transparent 0 8px, rgba(216, 143, 79, 0.28) 8px 11px);
}

.bottom-right {
  right: 48px;
  bottom: 56px;
  transform: rotate(20deg);
}

.bottom-left {
  left: 42px;
  bottom: 260px;
  transform: rotate(-18deg) scale(.72);
}

.quick-panel {
  position: fixed;
  top: 82px;
  right: 22px;
  z-index: 20;
  width: 190px;
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.94);
  box-shadow: 0 22px 50px rgba(68, 40, 31, 0.18);
  transform: translateY(-14px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: 220ms ease;
  backdrop-filter: blur(14px);
}

.quick-panel.is-open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.quick-panel a {
  padding: 13px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--brown);
  font-weight: 800;
  background: rgba(246, 231, 219, 0.7);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.sparkle {
  position: fixed;
  z-index: 100;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  pointer-events: none;
  background: #e0a04c;
  box-shadow: 0 0 12px rgba(224, 160, 76, 0.8);
  animation: sparkleOut 650ms ease forwards;
}

@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.07);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseHeart {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08) rotate(4deg);
  }
}

@keyframes floatDecor {
  0%, 100% {
    transform: translateY(0) rotate(0);
  }
  50% {
    transform: translateY(-10px) rotate(8deg);
  }
}

@keyframes sparkleOut {
  to {
    transform: translateY(-28px) scale(0);
    opacity: 0;
  }
}

/* Tablet */
@media (max-width: 760px) {
  .page-shell {
    padding: 0;
  }

  .studio-card {
    min-height: 100vh;
    border-radius: 0;
    box-shadow: none;
  }

  .top-pill {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .hero {
    height: 250px;
  }

  .profile-area {
    margin-top: -102px;
    padding-inline: 18px;
  }

  .profile-ring {
    width: 176px;
    height: 176px;
    margin-bottom: 22px;
  }

  .heart-badge {
    width: 44px;
    height: 44px;
    bottom: 16px;
    font-size: 27px;
  }

  .brand {
    font-size: clamp(31px, 8.3vw, 42px);
    letter-spacing: -1px;
  }

  .tag {
    margin-bottom: 18px;
    padding: 9px 18px;
    font-size: 13px;
  }

  .intro {
    font-size: 17px;
    margin-bottom: 24px;
  }

  .features {
    gap: 10px;
    margin-bottom: 24px;
  }

  .features article {
    min-height: 78px;
    border-radius: 18px;
    padding: 12px 8px;
  }

  .features strong {
    font-size: 12px;
  }

  .links-section {
    padding: 0 18px;
    gap: 14px;
  }

  .shop-link {
    min-height: 76px;
    grid-template-columns: 56px 1fr 42px;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 19px;
  }

  .link-icon {
    width: 50px;
    height: 50px;
    font-size: 28px;
  }

  .contact .link-icon {
    font-size: 22px;
  }

  .arrow {
    width: 39px;
    height: 39px;
    font-size: 22px;
  }

  .quote-card {
    width: calc(100% - 36px);
    margin-top: 28px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 34px;
  }

  .bottom-left {
    display: none;
  }

  .bottom-right {
    right: 18px;
    bottom: 72px;
    transform: scale(.65) rotate(20deg);
  }
}

/* Small mobile */
@media (max-width: 430px) {
  .hero {
    height: 218px;
  }

  .hero-img {
    object-position: center top;
  }

  .wave {
    height: 100px;
  }

  .profile-area {
    margin-top: -88px;
  }

  .profile-ring {
    width: 154px;
    height: 154px;
    padding: 6px;
  }

  .brand {
    font-size: clamp(27px, 8.1vw, 34px);
    letter-spacing: -0.8px;
  }

  .divider {
    margin-top: 13px;
    margin-bottom: 12px;
  }

  .tag {
    font-size: 12px;
  }

  .intro {
    width: 92%;
    font-size: 15px;
    line-height: 1.45;
  }

  .features {
    width: 100%;
  }

  .features span {
    font-size: 21px;
  }

  .shop-link {
    min-height: 72px;
    grid-template-columns: 50px 1fr 38px;
  }

  .link-icon {
    width: 46px;
    height: 46px;
    font-size: 24px;
  }

  .link-text strong {
    font-size: 15px;
  }

  .link-text small {
    font-size: 12px;
  }

  .arrow {
    width: 35px;
    height: 35px;
    font-size: 20px;
  }

  .quote-card {
    font-size: 14px;
  }

  .decor {
    font-size: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
