/* Perfectly Imperfect Cozy Creations — site styles
   Palette and type come from the Claude Design source
   (design/Perfectly Imperfect Cozy Creations.dc.html). */

:root {
  --bg: #FDF9F6;
  --ink: #4E4363;
  --purple: #7A6A92;
  --rose: #D89B94;
  --pink: #F2C6C2;
  --pink-soft: #F7E1DE;
  --blush: #F7ECE9;
  --lilac: #E8E2F0;
  --white: #fff;
  --shadow: 0 10px 30px rgba(122, 106, 146, .08);
  --shadow-hover: 0 8px 20px rgba(122, 106, 146, .14);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --radius-card: 20px;
  --radius-tile: 18px;
  --tap: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--purple); }
a:hover { color: var(--rose); }
::selection { background: var(--pink); }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  padding: 10px 14px;
  background: var(--purple);
  color: var(--white);
  border-radius: 999px;
  font-weight: 700;
  z-index: 10;
}
.skip-link:focus { top: 12px; color: var(--white); }

.page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ---------- Header ---------- */

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 22px 20px 0;
}

.logo-link {
  display: block;
  width: min(260px, 70vw);
  text-decoration: none;
  color: inherit;
}

.logo-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 120px;
}

.logo-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* The supplied logo is a flat PNG on white; multiply lets the page's
     off-white show through instead of a white rectangle. */
  mix-blend-mode: multiply;
}

/* Wordmark fallback: shown only while images/logo.png is missing. */
.logo-wordmark {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  line-height: 1.05;
}
.logo-wordmark__main {
  font-size: clamp(26px, 6vw, 32px);
  font-weight: 600;
  font-style: italic;
  color: var(--purple);
}
.logo-wordmark__sub {
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--rose);
}
.logo-frame.is-empty .logo-img { display: none; }
.logo-frame.is-empty .logo-wordmark { display: flex; }

.nav-scroll {
  display: flex;
  gap: 6px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 4px 10px;
  -webkit-overflow-scrolling: touch;
}
.nav-scroll::-webkit-scrollbar { display: none; }

.nav-pill {
  flex: none;
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink);
  background: var(--blush);
  transition: background-color .15s ease, color .15s ease;
}
.nav-pill:hover { color: var(--ink); background: var(--pink); }
.nav-pill.is-active,
.nav-pill.is-active:hover { color: var(--white); background: var(--purple); }

/* Bobble divider under the nav */
.bobble-divider {
  height: 12px;
  margin: 0 auto;
  width: min(100%, 560px);
  background-image: radial-gradient(circle at 50% 50%, var(--pink) 4.5px, transparent 5px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
  background-position: center;
}

/* ---------- Main ---------- */

.site-main {
  flex: 1;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 56px;
}
.site-main:focus { outline: none; }

.screen {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 36px;
}
.screen--category { gap: 22px; padding-top: 32px; }
.screen--contact { gap: 32px; padding-top: 32px; max-width: 600px; margin: 0 auto; width: 100%; }

.intro {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
}
.intro--tight { gap: 10px; }

.display {
  font-size: clamp(36px, 7vw, 54px);
  line-height: 1.08;
  text-wrap: pretty;
}
.display--sm {
  font-size: clamp(34px, 7vw, 46px);
  line-height: 1.1;
}
.display--bold { font-weight: 700; }

.lede {
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}
.lede--sm { font-size: 16px; }

.section-title {
  text-align: center;
  font-size: 30px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose);
}

/* ---------- Buttons ---------- */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  text-align: center;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn--primary { background: var(--purple); color: var(--white); }
.btn--primary:hover { background: var(--ink); color: var(--white); }
.btn--outline { border: 1.5px solid var(--rose); color: var(--purple); }
.btn--outline:hover { background: var(--pink); color: var(--purple); }
.btn--sm { min-height: 46px; }

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.btn-row .btn { flex: 1; }

/* ---------- Image slots ----------
   <figure class="slot"> wraps a real <img>. If the file is missing, JS
   adds .is-empty and the placeholder caption shows instead. */

.slot {
  position: relative;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--blush);
}
.slot__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slot--contain .slot__img { object-fit: contain; }
.slot--contain { background: var(--white); }
.slot__placeholder {
  display: none;
  position: absolute;
  inset: 10px;
  border: 1.5px dashed var(--rose);
  border-radius: 14px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: var(--purple);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 3px, transparent 3px 9px);
}
.slot__placeholder svg { width: 28px; height: 28px; opacity: .8; }
.slot.is-empty .slot__img { display: none; }
.slot.is-empty .slot__placeholder { display: flex; }

/* ---------- Home collage ----------
   Photos only. No prices or descriptions here on purpose: the home page
   should show the range, not put a large ticket price in front of a
   first-time visitor. */

.collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media (min-width: 640px) {
  .collage { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.collage__item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-tile);
  overflow: hidden;
  border: 1px solid var(--pink);
  background: var(--white);
  transition: transform .15s ease, box-shadow .15s ease;
}
.collage__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.collage__item .slot { border-radius: 0; }

@media (prefers-reduced-motion: reduce) {
  .collage__item { transition: none; }
  .collage__item:hover { transform: none; }
}

/* ---------- Prices ---------- */

.price-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
}
.price-list--card {
  gap: 5px;
  border-top: 1px solid var(--pink);
  padding-top: 10px;
}
.price-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.price-row strong { white-space: nowrap; }

/* ---------- Category tiles (Home) ---------- */

.browse {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 124px;
  padding: 18px;
  border-radius: var(--radius-tile);
  text-decoration: none;
  color: var(--ink);
  background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.14) 0 3px, transparent 3px 9px);
  border: 1px solid rgba(216, 155, 148, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.tile__label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.1;
}
.tile__sub {
  font-size: 13px;
  color: var(--purple);
}

.tagline {
  text-align: center;
  font-size: 14px;
  color: var(--purple);
}

/* ---------- Category page ---------- */

.notice {
  font-size: 14px;
  line-height: 1.55;
  color: var(--purple);
  background: var(--white);
  border: 1px dashed var(--rose);
  border-radius: 12px;
  padding: 12px 16px;
  text-wrap: pretty;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.card__media { aspect-ratio: 1 / 1; }
.card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card__title {
  font-weight: 600;
  font-size: 26px;
  line-height: 1.1;
}
.card__desc {
  font-size: 15px;
  line-height: 1.55;
  text-wrap: pretty;
}
.card__note {
  font-size: 14px;
  font-style: italic;
  color: var(--purple);
  border-top: 1px solid var(--pink);
  padding-top: 10px;
}
.card .btn { margin-top: auto; }

.empty-note {
  text-align: center;
  font-size: 15px;
  color: var(--purple);
  text-wrap: pretty;
}

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 20px;
  border-radius: var(--radius-tile);
  min-height: var(--tap);
  text-decoration: none;
  background: var(--white);
  border: 1px solid var(--rose);
  color: var(--ink);
  transition: background-color .15s ease;
}
.contact-card:hover { background: var(--pink); color: var(--ink); }
.contact-card--primary {
  background: var(--purple);
  border-color: var(--purple);
  color: var(--white);
}
.contact-card--primary:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.contact-card__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose);
}
.contact-card--primary .contact-card__label { color: inherit; opacity: .85; }
.contact-card__value {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  word-break: break-word;
}
.contact-card--primary .contact-card__value { font-size: 28px; }

.steps-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: var(--radius-tile);
  padding: 16px 18px;
}
.step__num {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
}
.step__text {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.step__title { font-size: 16px; }
.step__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--purple);
  text-wrap: pretty;
}

/* ---------- Sub-tab cards (a category's groups) ---------- */

.card--link {
  text-decoration: none;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card--link:hover {
  color: inherit;
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.group__price {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.group__cta {
  margin-top: auto;
  align-self: flex-start;
  pointer-events: none;
}

/* Back link from a sub-tab to its category */
.crumb {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--tap);
  padding: 4px 2px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: var(--purple);
}
.crumb:hover { color: var(--rose); }

/* ---------- Events ---------- */

.event-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  padding: 16px 20px;
  border-radius: var(--radius-tile);
  background: var(--lilac);
  border: 1px solid var(--pink);
  text-decoration: none;
  color: var(--ink);
  transition: background-color .15s ease;
}
.event-strip:hover { background: var(--pink); color: var(--ink); }
.event-strip__label {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--rose);
}
.event-strip__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.event-strip__when { font-size: 15px; color: var(--purple); }
.event-strip__more {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  white-space: nowrap;
}

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.event {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: var(--radius-card);
}
.event__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
  text-wrap: pretty;
}
.event__days {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid var(--pink);
  border-bottom: 1px solid var(--pink);
}
.event__day { display: flex; flex-direction: column; gap: 1px; }
.event__date { font-size: 15px; font-weight: 700; }
.event__time { font-size: 15px; color: var(--purple); }
.event__venue { font-size: 16px; font-weight: 600; }
.event__address {
  font-size: 15px;
  color: var(--purple);
  text-wrap: pretty;
}
.event__map {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  font-size: 15px;
  font-weight: 700;
  color: var(--purple);
}
.event__map:hover { color: var(--rose); }

/* ---------- Gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gallery__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-tile);
  overflow: hidden;
  border: 1px solid var(--pink);
  background: var(--white);
}
.gallery__caption {
  font-size: 14px;
  line-height: 1.45;
  color: var(--purple);
  text-wrap: pretty;
}
.btn-row--center { justify-content: center; }
.btn-row--center .btn { flex: 0 1 auto; min-width: 240px; }

/* ---------- Contact form ---------- */

.form-block,
.pay-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.msg-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: var(--radius-tile);
  padding: 20px 18px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--purple);
}
.field__input {
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--rose);
  border-radius: 12px;
  padding: 11px 14px;
  min-height: var(--tap);
}
.field__input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--lilac);
}
.field__input--area { resize: vertical; min-height: 120px; }
.field__hint {
  margin-top: -4px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--purple);
  text-wrap: pretty;
}
.field__input::placeholder { color: #9A8FAF; }
.msg-form .btn { width: 100%; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status {
  min-height: 1.2em;
  font-size: 14px;
  text-align: center;
  color: var(--purple);
}
.form-status--ok { color: #4E7A5E; }
.form-status--error { color: #A64B4B; }

/* ---------- Payment options ---------- */

.pay-list {
  margin: 0;
  padding: 18px 20px;
  list-style: none;
  background: var(--white);
  border: 1px solid var(--pink);
  border-radius: var(--radius-tile);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pay-item {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  line-height: 1.5;
  text-wrap: pretty;
}
.pay-item::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--pink);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--pink);
  padding: 0 20px 28px;
  text-align: center;
}
.site-footer__scallop {
  height: 14px;
  margin: 0 -20px;
  background-image: radial-gradient(circle at 50% 100%, var(--bg) 8px, transparent 8.6px);
  background-size: 22px 14px;
  background-repeat: repeat-x;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 22px;
  font-size: 14px;
  color: var(--ink);
}
.site-footer__name {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}
.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer__links a {
  color: var(--ink);
  font-weight: 600;
  min-height: var(--tap);
  display: inline-flex;
  align-items: center;
}
.site-footer__links a:hover { color: var(--purple); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .tile, .btn, .nav-pill, .contact-card { transition: none; }
  .tile:hover { transform: none; }
}
