@font-face {
  font-family: Fredoka;
  src: url("/fonts/fredoka-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Fredoka;
  src: url("/fonts/fredoka-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Bungee;
  src: url("/fonts/bungee.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ink: #1c221e;
  --paper: #fffaf0;
  --green: #b6f0c9;
  --pink: #ff326d;
  --yellow: #ffcd28;
  --line: #d7ded3;
  --muted: #536a61;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    16px/1.55 Fredoka,
    system-ui,
    sans-serif;
}
.top {
  padding: 22px 6vw;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  font-size: 24px;
}
.brand span {
  display: block;
  font-size: 10px;
  letter-spacing: 2.5px;
  margin-left: 0;
  font-family: Bungee, sans-serif;
  letter-spacing: 1px;
}
main {
  max-width: 1150px;
  margin: 48px auto;
  padding: 0 24px;
}
h1 {
  font-family: Bungee, sans-serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05;
  letter-spacing: -2px;
  margin: 14px 0 24px;
}
h2 {
  font-size: 22px;
  margin: 0 0 12px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 800;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.notice {
  font-size: 13px;
  background: var(--green);
  padding: 18px;
  border-radius: 16px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 26px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  padding: 22px;
  border-radius: 18px;
}
.stat strong {
  display: block;
  font-size: 36px;
}
.stat small {
  color: var(--muted);
}
button {
  font: inherit;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  padding: 10px 16px;
  color: var(--ink);
  min-height: 44px;
}
button:hover {
  background: var(--green);
}
button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.primary {
  background: var(--ink);
  color: white;
  border: 0;
}
.primary:hover {
  background: #2f5f4c;
}
nav {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin: 30px 0;
}
nav .active {
  background: var(--ink);
  color: white;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  margin: 18px 0;
}
.login {
  max-width: 650px;
  margin: 70px auto;
}
.list {
  display: grid;
  gap: 16px;
}
.card-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
}
.badge {
  font-size: 12px;
  border-radius: 24px;
  padding: 6px 12px;
  background: var(--green);
  white-space: nowrap;
}
.badge.pending {
  background: var(--pink);
}
.muted,
small {
  color: var(--muted);
}
.review-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
form {
  display: grid;
  gap: 18px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
input,
textarea,
select {
  font: inherit;
  padding: 12px;
  border: 1px solid #adbab0;
  border-radius: 9px;
  width: 100%;
  background: white;
  color: var(--ink);
}
textarea {
  resize: vertical;
}
input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #91ac5d;
  outline-offset: 3px;
}
.review-main {
  max-width: 690px;
}
.check {
  display: flex;
  align-items: start;
  font-size: 13px;
  font-weight: 400;
}
.check input {
  width: 20px;
  min-width: 20px;
  height: 20px;
}
.stars {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  flex-wrap: wrap;
}
.stars label {
  justify-content: center;
  min-height: 48px;
  border: 2px solid transparent;
  background: var(--paper);
  padding: 12px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.stars input {
  width: auto;
  margin: 0;
  accent-color: var(--ink);
}
.stars label:has(input:checked) {
  background: var(--green);
  border-color: var(--ink);
}
.review-main .primary {
  width: 100%;
  background: var(--yellow);
  color: var(--ink);
  border: 2px solid var(--ink);
  font-weight: 600;
}
.review-main .primary:hover {
  background: var(--green);
}
.review-main h1 {
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.5px;
  line-height: 1.25;
}
.review-main .panel {
  box-shadow: 6px 6px 0 var(--yellow);
  border: 2px solid var(--ink);
}
button,
input,
textarea,
select {
  min-width: 0;
}
footer a {
  color: var(--ink);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  margin-bottom: 10px;
  font-weight: 650;
}
.previews {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.previews img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
}
#message {
  background: var(--green);
  padding: 14px;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
#message:empty {
  display: none;
}
#invite-link {
  display: block;
  overflow-wrap: anywhere;
  margin: 14px 0;
}
pre {
  font-size: 12px;
  overflow: auto;
  max-height: 450px;
  background: var(--paper);
  padding: 18px;
  border-radius: 12px;
}
footer {
  padding: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 640px) {
  main {
    margin: 28px auto;
    padding: 0 16px;
  }
  .top {
    padding: 18px;
  }
  .heading {
    display: block;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 14px;
  }
  .stat strong {
    font-size: 28px;
  }
  .stat small {
    font-size: 11px;
  }
  nav {
    overflow: auto;
  }
  nav button {
    font-size: 13px;
    white-space: nowrap;
  }
  .panel {
    padding: 20px;
  }
  .card-top {
    display: block;
  }
  .badge {
    display: inline-block;
    margin: 8px 0;
  }
  .login {
    margin: 28px auto;
  }
  .stars label {
    padding: 8px 2px;
    gap: 2px;
  }
  h1 {
    letter-spacing: -1px;
  }
}

.shop-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
}
.public-main {
  max-width: 900px;
}
.public-main h1 {
  line-height: 1.15;
}
.public-intro {
  max-width: 560px;
  font-size: 20px;
}
.empty-reviews {
  padding: 20px;
  max-width: 680px;
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 var(--yellow);
  margin: 36px 0;
}
.empty-star {
  display: block;
  font-size: 48px;
  color: var(--ink);
}
.button-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 12px 18px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}
@media (max-width: 400px) {
  .brand span {
    display: none;
  }
  .public-main h1 {
    font-size: 34px;
  }
}
.shop-header,
.top {
  background: var(--ink);
  color: white;
  border-bottom: 3px solid var(--yellow);
  padding: 12px max(20px, 6vw);
}
.top .brand,
.top .shop-link {
  color: white;
}
.top .brand img {
  width: 70px;
  height: 50px;
}
.review-main {
  max-width: 720px;
}
.review-main h1 {
  font-size: clamp(27px, 4vw, 40px);
  line-height: 1.15;
}
.product-reviews {
  display: grid;
  gap: 16px;
}
.product-review.panel {
  margin: 0;
  padding: 20px;
  box-shadow: 3px 3px 0 var(--yellow);
}
.product-heading {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.product-heading img {
  flex-shrink: 0;
  border-radius: 12px;
}
.product-heading h2 {
  font-size: 21px;
  margin: 2px 0;
}
.product-heading small {
  font-size: 12px;
}
.product-details summary,
.overall-feedback summary {
  cursor: pointer;
  min-height: 44px;
  padding: 12px 0;
  font-weight: 600;
}
.feedback-fields,
#overall-fields {
  display: grid;
  gap: 14px;
  padding: 6px 0;
}
.skip-product {
  background: transparent;
  border: 0;
  padding: 8px 0;
  min-height: 44px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: underline;
}
.review-progress {
  background: var(--green);
  border: 1px solid var(--ink);
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0;
  font-weight: 600;
}
.overall-feedback {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.overall-feedback summary small {
  display: block;
  font-weight: 400;
}
.shop-footer {
  background: var(--ink);
  color: white;
  text-align: left;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 32px;
  padding: 36px max(24px, 6vw);
  border-top: 3px solid var(--yellow);
}
.shop-footer p {
  font-size: 16px;
}
.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.shop-footer h2 {
  font-family: Bungee, sans-serif;
  color: var(--pink);
  font-size: 15px;
  letter-spacing: 1px;
}
.shop-footer .footer-links > div:nth-child(2) h2 {
  color: #009bc2;
}
.shop-footer a {
  display: block;
  color: white;
  padding: 7px 0;
  font-size: 15px;
  text-decoration: none;
}
@media (max-width: 640px) {
  .shop-footer {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .product-review.panel {
    padding: 16px;
  }
  .review-main {
    padding: 0 16px;
  }
  .product-heading {
    gap: 12px;
  }
  .review-main .stars {
    gap: 4px;
  }
  .review-main .stars label {
    padding: 8px 2px;
  }
  .top .brand span {
    display: none;
  }
}

.public-reviews {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 30px 0;
}
.public-review {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 18px;
  padding: 22px;
}
.public-review p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.public-review .public-stars {
  letter-spacing: 3px;
  color: var(--ink);
  font-size: 24px;
}
.public-review a {
  color: var(--ink);
}
@media (max-width: 640px) {
  .public-reviews {
    grid-template-columns: 1fr;
  }
}

.review-summary {
  padding: 18px;
  background: var(--green);
  border: 1px solid var(--ink);
  border-radius: 12px;
}
.review-summary h2 {
  font-size: 19px;
}
.review-summary ul {
  padding-left: 22px;
  margin: 0 0 10px;
}
.product-review {
  scroll-margin-top: 20px;
}

/* Keep the branded footer at the viewport edge on short-content pages. */
html { background: var(--ink); }
.shop-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.shop-page > .top, .shop-page > .shop-footer { flex-shrink: 0; }
.shop-page > main { width: 100%; }
.shop-page > .shop-footer { margin-top: auto; }

.empty-reviews > p:first-child { margin-top: 0; margin-bottom: 16px; }
