:root {
  --ink: #201c2b;
  --muted: #6e6878;
  --paper: #fffdf8;
  --panel: #fff5e9;
  --coral: #ff5b4d;
  --coral-dark: #d83b34;
  --yellow: #ffd95a;
  --purple: #7959d8;
  --line: #e9e1d8;
  --shadow: 0 18px 45px rgb(77 51 31 / 10%);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  color: var(--ink);
  background: var(--paper);
  font-family: ui-rounded, "SF Pro Rounded", "Avenir Next", system-ui, sans-serif;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header,
.site-footer,
main {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--coral-dark);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink);
  background: var(--yellow);
  box-shadow: inset 0 -3px 0 rgb(146 97 0 / 14%);
  font-size: 1.35rem;
}

.hero {
  position: relative;
  min-height: 440px;
  margin: 22px 0 72px;
  padding: clamp(42px, 7vw, 86px);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 38px;
  background:
    radial-gradient(circle at 88% 17%, rgb(255 255 255 / 68%) 0 7%, transparent 8%),
    linear-gradient(135deg, #ffe7a5 0%, #ffd1cb 55%, #e4d8ff 100%);
  box-shadow: var(--shadow);
}

.hero__copy {
  position: relative;
  z-index: 1;
  max-width: 750px;
}

.hero h1,
.page-intro h1,
.emoji-detail h1,
.prose-page h1 {
  margin: 0;
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.hero__lede {
  max-width: 650px;
  margin: 24px 0 30px;
  color: #4f4653;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  line-height: 1.55;
}

.hero__sparkles span {
  position: absolute;
  font-weight: 900;
  opacity: 0.65;
}

.hero__sparkles span:nth-child(1) {
  top: 15%;
  right: 9%;
  color: var(--coral);
  font-size: 3.7rem;
  transform: rotate(12deg);
}

.hero__sparkles span:nth-child(2) {
  right: 13%;
  bottom: -4%;
  color: var(--purple);
  font-size: 14rem;
  transform: rotate(-12deg);
}

.hero__sparkles span:nth-child(3) {
  top: 28%;
  right: 26%;
  color: #b27700;
  font-size: 2.7rem;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--coral-dark);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.search-form {
  display: flex;
  width: min(100%, 720px);
  padding: 7px;
  border: 1px solid rgb(45 31 50 / 8%);
  border-radius: 18px;
  background: white;
  box-shadow: 0 12px 30px rgb(80 49 40 / 12%);
}

.search-form input[type="search"] {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  padding: 14px 16px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.search-form input[type="submit"],
.button-link {
  border: 0;
  border-radius: 13px;
  padding: 13px 22px;
  background: var(--coral);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  box-shadow: inset 0 -3px 0 rgb(89 20 18 / 15%);
}

.search-form input[type="submit"]:hover,
.button-link:hover {
  background: var(--coral-dark);
}

.search-hints,
.fine-print,
.result-count {
  color: var(--muted);
  font-size: 0.88rem;
}

.content-section {
  margin: 0 0 82px;
}

.content-section--flush {
  margin-top: 38px;
}

.section-heading {
  margin-bottom: 26px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  letter-spacing: -0.045em;
}

.text-link {
  color: var(--coral-dark);
  font-weight: 900;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.emoji-card {
  min-width: 0;
}

.emoji-card__link {
  display: block;
  height: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 8px 25px rgb(59 40 25 / 5%);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.emoji-card__link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.emoji-card__art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 17px;
  background:
    radial-gradient(circle at 30% 24%, white 0 7%, transparent 8%),
    linear-gradient(145deg, #fff2c7, #f7e5ff);
}

.emoji-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.emoji-card h3 {
  margin: 15px 7px 5px;
  font-size: 1.04rem;
  letter-spacing: -0.025em;
}

.emoji-card p {
  margin: 0 7px 10px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.emoji-placeholder {
  width: 58%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 36%;
  background: var(--yellow);
  color: #6a4400;
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 900;
  box-shadow: inset 0 -12px 25px rgb(164 86 0 / 15%);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.category-card {
  min-height: 126px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border-radius: 22px;
  color: var(--ink);
  background: var(--panel);
  text-decoration: none;
}

.category-card:nth-child(3n + 2) {
  background: #ebe3ff;
}

.category-card:nth-child(3n) {
  background: #dff4e9;
}

.category-card span {
  font-size: 1.25rem;
  font-weight: 900;
}

.category-card small {
  margin-top: 5px;
  color: var(--muted);
}

.page-intro {
  max-width: 900px;
  padding: 65px 0 28px;
}

.page-intro h1,
.prose-page h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.page-intro > p:not(.eyebrow) {
  max-width: 650px;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.6;
}

.emoji-detail {
  padding: 55px 0 90px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(42px, 8vw, 100px);
  align-items: center;
}

.emoji-detail__art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 36px;
  background: linear-gradient(145deg, #fff1bc, #f2e7ff);
  box-shadow: var(--shadow);
}

.emoji-detail__art img {
  width: 88%;
  height: 88%;
  object-fit: contain;
}

.emoji-placeholder--large {
  max-width: 300px;
}

.emoji-detail h1 {
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
}

.emoji-detail__description {
  margin: 23px 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.tag-list {
  margin: 0 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-list a {
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--panel);
  color: #5c4d44;
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.fine-print {
  margin-top: 26px;
}

.empty-state {
  padding: 70px 30px;
  border-radius: 28px;
  background: var(--panel);
  text-align: center;
}

.empty-state h2 {
  margin-top: 0;
  font-size: 2rem;
}

.empty-state p {
  margin: 0 auto 28px;
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
}

.pagination {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.pagination a {
  color: var(--coral-dark);
  font-weight: 900;
}

.pagination .disabled {
  opacity: 0.35;
  pointer-events: none;
}

.prose-page {
  max-width: 780px;
  min-height: 62vh;
  padding: 80px 0;
}

.prose-page p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.16rem;
  line-height: 1.75;
}

.site-footer {
  min-height: 190px;
  padding: 45px 0;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--muted);
}

.admin-page {
  min-height: 72vh;
  padding: 54px 0 90px;
}

.admin-heading,
.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 44px;
  align-items: start;
}

.admin-heading h1,
.review-form h1 {
  margin: 0;
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  letter-spacing: -0.055em;
}

.admin-heading p:not(.eyebrow) {
  color: var(--muted);
}

.admin-summary {
  padding: 25px;
  border-radius: 22px;
  background: var(--panel);
}

.admin-summary strong,
.admin-summary span {
  display: block;
}

.admin-summary strong {
  font-size: 2.7rem;
}

.admin-summary span {
  color: var(--muted);
  font-weight: 800;
}

.status-tabs {
  margin: 36px 0 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.status-tabs a {
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 800;
  text-decoration: none;
}

.status-tabs a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: white;
}

.status-tabs span {
  opacity: 0.7;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.review-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: white;
  color: inherit;
  text-decoration: none;
}

.review-card:hover {
  box-shadow: var(--shadow);
}

.review-card__art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 14px;
  background: var(--panel);
}

.review-card__art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.review-card strong,
.review-card span {
  display: block;
  margin-top: 10px;
}

.review-card span {
  color: var(--muted);
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.generation-summary {
  margin-top: 38px;
  padding: 22px;
  border-radius: 18px;
  background: var(--panel);
}

.generation-summary h2 {
  margin-top: 0;
}

.review-layout {
  margin-top: 24px;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.review-preview {
  position: sticky;
  top: 20px;
  padding: 24px;
  border-radius: 28px;
  background: var(--panel);
}

.review-preview > img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.asset-facts {
  margin: 24px 0 0;
}

.asset-facts div {
  padding: 9px 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border-top: 1px solid var(--line);
}

.asset-facts dt {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.asset-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.review-form form {
  margin-top: 28px;
  display: grid;
  gap: 8px;
}

.review-form label {
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 900;
}

.review-form input[type="text"],
.review-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: white;
  color: var(--ink);
  font: inherit;
}

.review-form input[type="submit"] {
  margin-top: 14px;
  justify-self: start;
}

.generation-detail {
  margin-top: 28px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.generation-detail summary {
  cursor: pointer;
  font-weight: 900;
}

.review-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.button-link--quiet {
  background: #766e7c;
}

.flash {
  margin: 20px 0;
  padding: 13px 16px;
  border-radius: 12px;
  font-weight: 800;
}

.flash--notice {
  background: #ddf6e7;
  color: #175d34;
}

.flash--alert {
  background: #ffe1df;
  color: #8a2420;
}

@media (max-width: 900px) {
  .emoji-grid,
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero__sparkles {
    opacity: 0.3;
  }

  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .review-preview {
    position: static;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  main {
    width: min(100% - 24px, 1200px);
  }

  .site-header {
    min-height: 72px;
  }

  .site-header nav {
    gap: 14px;
    font-size: 0.85rem;
  }

  .site-header nav a:nth-child(3),
  .site-header nav a:nth-child(4) {
    display: none;
  }

  .hero {
    min-height: 470px;
    margin-top: 8px;
    padding: 36px 22px;
    align-items: flex-start;
  }

  .hero h1 {
    font-size: 3.35rem;
  }

  .search-form {
    flex-direction: column;
  }

  .search-form input[type="submit"] {
    width: 100%;
  }

  .emoji-grid {
    gap: 12px;
  }

  .emoji-card__link {
    padding: 8px;
    border-radius: 18px;
  }

  .emoji-card p {
    display: none;
  }

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

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    flex-direction: column;
  }

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

/* Pre-launch landing page */
.coming-soon-body {
  min-height: 100vh;
  color: #211d2c;
  background:
    radial-gradient(circle at 7% 8%, rgb(255 214 92 / 30%), transparent 23rem),
    radial-gradient(circle at 91% 86%, rgb(138 108 226 / 18%), transparent 26rem),
    #fff9ef;
}

.coming-soon {
  width: min(1240px, calc(100% - 48px));
  min-height: 100vh;
  margin-inline: auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.coming-soon__header,
.coming-soon__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.coming-soon__header {
  min-height: 100px;
}

.coming-soon__brand {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-size: 1.45rem;
  font-weight: 950;
  text-decoration: none;
}

.coming-soon__wordmark {
  display: inline-flex;
  gap: 0.22em;
  align-items: baseline;
  letter-spacing: -0.05em;
  line-height: 1;
}

.coming-soon__wordmark span:last-child {
  color: #625b70;
  font-weight: 800;
}

.coming-soon__status {
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgb(33 29 44 / 10%);
  border-radius: 999px;
  background: rgb(255 255 255 / 58%);
  color: #6e6878;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.04em;
}

.coming-soon__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66bd88;
  box-shadow: 0 0 0 4px rgb(102 189 136 / 15%);
}

.coming-soon__hero {
  padding: clamp(54px, 9vh, 110px) 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(400px, 0.92fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: center;
}

.coming-soon__copy {
  position: relative;
  z-index: 2;
}

.coming-soon__eyebrow {
  margin: 0 0 18px;
  color: #d94d41;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.coming-soon__copy h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(4rem, 7.4vw, 7.5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.coming-soon__lede {
  max-width: 650px;
  margin: 30px 0 28px;
  color: #5f5869;
  font-size: clamp(1.08rem, 1.8vw, 1.36rem);
  line-height: 1.6;
}

.coming-soon__note {
  margin: 0;
  color: #80798a;
  font-size: 0.88rem;
}

.coming-soon__art {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.coming-soon__art::before,
.coming-soon__art::after {
  position: absolute;
  content: "";
  border-radius: 50%;
}

.coming-soon__art::before {
  width: min(100%, 470px);
  aspect-ratio: 1;
  border: 1px dashed rgb(95 78 134 / 20%);
}

.coming-soon__art::after {
  width: min(76%, 350px);
  aspect-ratio: 1;
  background: linear-gradient(145deg, #ffe177, #ffc55d);
  box-shadow: inset -20px -24px 45px rgb(180 94 0 / 14%), 0 32px 80px rgb(84 50 6 / 15%);
}

.coming-soon__face {
  position: relative;
  z-index: 1;
  width: min(76%, 350px);
  aspect-ratio: 1;
  animation: face-float 5s ease-in-out infinite;
}

.coming-soon__eye {
  position: absolute;
  top: 35%;
  width: 31px;
  height: 44px;
  border-radius: 50%;
  background: #211d2c;
  box-shadow: inset 7px 7px 0 rgb(255 255 255 / 22%);
}

.coming-soon__eye--left {
  left: 28%;
}

.coming-soon__eye--right {
  right: 28%;
}

.coming-soon__smile {
  position: absolute;
  left: 31%;
  bottom: 27%;
  width: 38%;
  height: 19%;
  border-bottom: 12px solid #211d2c;
  border-radius: 0 0 999px 999px;
}

.coming-soon__blush {
  position: absolute;
  top: 52%;
  width: 48px;
  height: 22px;
  border-radius: 50%;
  background: rgb(239 91 81 / 24%);
  filter: blur(2px);
}

.coming-soon__blush--left {
  left: 13%;
}

.coming-soon__blush--right {
  right: 13%;
}

.emoji-orbit {
  position: absolute;
  z-index: 3;
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(33 29 44 / 8%);
  border-radius: 26px;
  background: rgb(255 255 255 / 88%);
  box-shadow: 0 18px 45px rgb(77 51 31 / 12%);
  font-size: 2.6rem;
  backdrop-filter: blur(8px);
}

.emoji-orbit--one {
  top: 2%;
  left: 10%;
  transform: rotate(-10deg);
}

.emoji-orbit--two {
  top: 18%;
  right: 1%;
  transform: rotate(8deg);
}

.emoji-orbit--three {
  right: 9%;
  bottom: 3%;
  transform: rotate(-6deg);
}

.emoji-orbit--four {
  left: 2%;
  bottom: 16%;
  transform: rotate(7deg);
}

.coming-soon__footer {
  min-height: 90px;
  border-top: 1px solid rgb(33 29 44 / 9%);
  color: #817a8b;
  font-size: 0.78rem;
}

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

@media (prefers-reduced-motion: reduce) {
  .coming-soon__face {
    animation: none;
  }
}

@media (max-width: 880px) {
  .coming-soon__hero {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .coming-soon__copy {
    text-align: center;
  }

  .coming-soon__copy h1,
  .coming-soon__lede {
    margin-inline: auto;
  }

  .coming-soon__art {
    width: min(100%, 540px);
    min-height: 470px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .coming-soon {
    width: min(100% - 28px, 1240px);
  }

  .coming-soon__header {
    min-height: 82px;
  }

  .coming-soon__status {
    padding: 8px 10px;
    font-size: 0.7rem;
  }

  .coming-soon__hero {
    padding: 48px 0 38px;
  }

  .coming-soon__copy h1 {
    font-size: clamp(3.45rem, 17vw, 5rem);
    line-height: 1;
    letter-spacing: -0.045em;
  }

  .coming-soon__art {
    min-height: 350px;
  }

  .emoji-orbit {
    width: 62px;
    height: 62px;
    border-radius: 19px;
    font-size: 1.9rem;
  }

  .coming-soon__footer {
    padding: 24px 0;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }
}
