/* Nikita's keeps — soft, pinterest-y, phone first (most visits come from the
   Instagram bio link). Colours live in tokens; the site is intentionally
   light-only to stay on-brand with her blush/cream feed. */

:root {
  --cream: #fff4ef;
  --paper: #ffffff;
  --blush: #fbdfe0;
  --blush-2: #f7cdd2;
  --rose: #e48b9c;
  --rose-deep: #c4566f;
  --cocoa: #3d2b2e;
  --muted: #8a7073;
  --line: #f1dcd8;
  --dot: #f3cfd0;
  --keep: #2f8a5b;
  --keep-bg: #e3f5ea;
  --return: #c4473e;
  --return-bg: #fde7e4;
  --shadow: 0 1px 2px rgb(61 43 46 / 6%), 0 8px 24px -8px rgb(196 86 111 / 22%);
  --shadow-lift: 0 2px 4px rgb(61 43 46 / 8%), 0 18px 36px -12px rgb(196 86 111 / 35%);
  --radius: 22px;
  --serif: "Fraunces", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hand: "Caveat", "Comic Sans MS", cursive;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--cocoa);
  background-color: var(--cream);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-deep); }
button { font: inherit; }

:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 3px;
  border-radius: 12px;
}

.page {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 28px 16px 24px;
}

/* ---------- profile ---------- */

.profile {
  max-width: 460px;
  margin: 0 auto 28px;
  text-align: center;
}

.avatar-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 8px auto 14px;
  padding: 4px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, var(--rose), var(--blush-2), #f6b8a8, var(--rose));
  box-shadow: var(--shadow);
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 4px solid var(--paper);
  object-fit: cover;
}

.sparkle {
  position: absolute;
  color: var(--rose);
  font-size: 22px;
  line-height: 1;
  animation: twinkle 3.2s ease-in-out infinite;
}
.s1 { top: -4px; right: -6px; }
.s2 { bottom: 10px; left: -14px; font-size: 18px; animation-delay: 1.1s; }
.s3 { top: 18px; left: -10px; font-size: 15px; color: var(--rose-deep); animation-delay: 2s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
  50% { transform: scale(0.75) rotate(12deg); opacity: 0.55; }
}

.name {
  margin: 0;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(30px, 8vw, 38px);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.handle {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}
.handle:hover { color: var(--rose-deep); }

.tagline {
  display: inline-block;
  margin: 12px 0 8px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1.5px dashed var(--rose);
  font-size: 14px;
  font-weight: 800;
  color: var(--rose-deep);
  transform: rotate(-1.5deg);
}

.bio p { margin: 2px 0; font-weight: 600; }

.links { margin-top: 20px; display: grid; gap: 12px; }

.link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.link-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }

/* ---------- headings & chips ---------- */

.hand {
  margin: 8px 0 14px;
  font-family: var(--hand);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--rose-deep);
  text-align: center;
}

.chips {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

.chip {
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--cocoa);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}
.chip.is-on { background: var(--rose-deep); border-color: var(--rose-deep); color: var(--paper); }

/* ---------- masonry grid of pins ---------- */

.grid {
  columns: 2;
  column-gap: 12px;
}
@media (min-width: 720px) { .grid { columns: 3; column-gap: 16px; } }
@media (min-width: 1000px) { .grid { columns: 4; } }

.pin {
  display: block;
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: var(--paper);
  color: inherit;
  text-decoration: none;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 720px) { .pin { margin-bottom: 16px; } }
.pin:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pin[hidden] { display: none; }

.pin-media { position: relative; background: var(--blush); }
.pin-media img { width: 100%; }
img.capped { object-fit: cover; object-position: top; }

.pin-count {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  font-size: 12px;
  font-weight: 800;
  color: var(--rose-deep);
}

.pin-body { padding: 10px 12px 14px; }
.pin-body h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
}
.pin-meta { margin: 4px 0 0; font-size: 12.5px; font-weight: 700; color: var(--muted); }

/* ---------- empty state ---------- */

.empty {
  max-width: 420px;
  margin: 8px auto 40px;
  padding: 30px 24px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 2px dashed var(--blush-2);
  text-align: center;
  box-shadow: var(--shadow);
}
.empty h3 { margin: 4px 0 6px; font-family: var(--serif); font-weight: 650; font-size: 22px; }
.empty p { margin: 0; color: var(--muted); font-weight: 600; }
.empty-emoji { font-size: 40px; margin: 0 !important; }
.lost { margin-top: 12vh; }

/* ---------- post page ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  padding-top: max(10px, env(safe-area-inset-top));
  background: rgb(255 244 239 / 86%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.back, .mini-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cocoa);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.mini-profile img { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--blush-2); }

.post-page { max-width: 760px; }

.post-head { text-align: center; margin-bottom: 26px; }

.post-cover {
  max-width: 420px;
  margin: 0 auto 18px;
  padding: 10px 10px 30px;
  background: var(--paper);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
}
.post-cover img { width: 100%; max-height: 50vh; object-fit: cover; object-position: top; border-radius: 4px; }

.post-date { margin: 0; font-size: 13px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }

.post-title {
  margin: 6px 0 4px;
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(28px, 7vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.post-note {
  margin: 6px 0 0;
  font-family: var(--hand);
  font-size: 26px;
  line-height: 1.15;
  color: var(--rose-deep);
}

.post-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 2px solid var(--cocoa);
  background: var(--paper);
  color: var(--cocoa);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease;
}
.pill-btn:hover { transform: translateY(-2px); }
.pill-btn-solid { background: var(--cocoa); color: var(--paper); }

/* products: the same masonry feel, two up on phones */

.products { columns: 2; column-gap: 12px; }
@media (min-width: 720px) { .products { column-gap: 16px; } }

.product {
  break-inside: avoid;
  margin: 0 0 12px;
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  overflow: hidden;
}
@media (min-width: 720px) { .product { margin-bottom: 16px; } }

.product-media { position: relative; background: var(--blush); }
.product-media img { width: 100%; }
.product-flag { padding: 12px 12px 0; }

.verdict {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
  box-shadow: 0 2px 6px rgb(0 0 0 / 10%);
}
.product-media .verdict { position: absolute; right: 10px; top: 10px; }
.verdict-keep { background: var(--keep-bg); color: var(--keep); }
.verdict-return { background: var(--return-bg); color: var(--return); }

.product-body { padding: 12px 12px 14px; }
.product-body h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 16px; line-height: 1.25; }
.product-meta { margin: 4px 0 0; font-size: 14px; font-weight: 800; color: var(--rose-deep); }
.product-note { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }

.shop-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--rose-deep);
  color: var(--paper);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  text-align: center;
  transition: background 0.18s ease, transform 0.18s ease;
}
.shop-btn:hover { background: #ab4560; transform: translateY(-1px); }

.more { margin-top: 36px; }

/* ---------- footer & toast ---------- */

.footer {
  max-width: 560px;
  margin: 24px auto 0;
  padding: 20px 16px 32px;
  padding-bottom: max(32px, env(safe-area-inset-bottom));
  text-align: center;
  color: var(--muted);
}
.footer p { margin: 0; }
.footer-fine { margin-top: 4px !important; font-size: 10.5px; opacity: 0.75; }
.footer-heart { font-family: var(--hand); font-size: 22px; color: var(--rose-deep); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  max-width: calc(100vw - 32px);
  overflow-wrap: anywhere;
  text-align: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--cocoa);
  color: var(--paper);
  font-weight: 800;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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