:root {
  --ink: #3d2433;
  --muted: #7d5a6a;
  --paper: #fff4f8;
  --card: #fffdfd;
  --moss: #d81b60;
  --moss-2: #f06292;
  --clay: #ad1457;
  --gold: #f48fb1;
  --blush: #fce4ec;
  --line: rgba(173, 20, 87, 0.16);
  --shadow: 0 18px 50px rgba(173, 20, 87, 0.1);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Outfit", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 0% -8%, rgba(244, 143, 177, 0.55), transparent 56%),
    radial-gradient(720px 380px at 100% 0%, rgba(236, 64, 122, 0.16), transparent 50%),
    var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
body::before {
  content: "";
  display: block;
  height: 8px;
  background: linear-gradient(90deg, #f8bbd0, #f06292 28%, #ec407a 52%, #c2185b 74%, #f48fb1);
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--moss); }
img { max-width: 100%; display: block; }
.boot { padding: 48px; }

.mast {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  padding: 28px 6vw 18px;
}
.brand { text-decoration: none; color: inherit; display: flex; align-items: center; gap: 14px; }
.ribbon-mark { width: 42px; height: 64px; flex: none; filter: drop-shadow(0 8px 10px rgba(194, 24, 91, 0.25)); }
.eyebrow {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--clay);
  font-weight: 640;
}
.brand h1, .page-title {
  font-family: var(--serif);
  font-weight: 650;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 0.92;
  margin: 4px 0 0;
  letter-spacing: -0.03em;
}
.nav { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nav a, .chip, .btn, .btn-line {
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  padding: 10px 16px;
}
.nav a { color: var(--ink); }
.nav a.btn { background: var(--clay); color: #fff7fa; }
.nav .btn.quiet { background: transparent; color: var(--ink); }
.chip { background: white; border-color: var(--line); }
.nav a.active, .chip.active {
  background: var(--moss);
  color: #fff7fa;
  border-color: transparent;
}
.btn, .btn-line { background: var(--clay); color: white; border: 0; }
.btn.moss { background: var(--moss); }
.btn.quiet, .btn-line { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.danger { background: transparent; color: var(--clay); border: 1px solid var(--clay); }
.wrap { padding: 8px 6vw 72px; }
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: stretch;
  margin: 10px 0 28px;
}
.hero-copy {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255, 255, 255, 0.22), transparent 55%),
    linear-gradient(155deg, #f06292, #d81b60 48%, #880e4f);
  color: #fff7fa;
  border-radius: 28px;
  padding: 36px;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
}
.hero-copy::after {
  content: "";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 54px;
  height: 82px;
  background: url("/ribbon.svg") center / contain no-repeat;
  opacity: 0.95;
}
.hero-copy p { color: rgba(255, 247, 250, 0.88); max-width: 42ch; }
.hero-copy .eyebrow { color: #ffd6e8; }
.hero-copy .page-title { color: #fffafb; }
.hero-copy .btn.quiet { color: #fff; border-color: rgba(255, 255, 255, 0.45); background: transparent; }
.hero-photo {
  border-radius: 28px;
  min-height: 320px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-photo span {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: rgba(255, 250, 252, 0.94);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.toolbar input, .field input, .field textarea, .field select {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.toolbar input { min-width: min(100%, 280px); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.card {
  background: var(--card);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  border-top: 4px solid #f48fb1;
}
.card img, .ph { height: 190px; width: 100%; object-fit: cover; background: #f8d5e4; }
.card div { padding: 14px 16px 18px; }
.kicker { color: var(--clay); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 640; }
.card h2, .recipe h2 { font-family: var(--serif); font-weight: 650; letter-spacing: -0.03em; margin: 6px 0; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.badge { display: inline-block; margin-left: 8px; background: #fce4ec; color: #880e4f; border-radius: 999px; padding: 2px 8px; letter-spacing: 0; text-transform: none; font-size: 12px; }

.recipe { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; }
.plate { border-radius: 28px; overflow: hidden; background: #f8d5e4; min-height: 360px; }
.plate img { width: 100%; height: 460px; object-fit: cover; }
.credit { color: var(--muted); font-size: 13px; margin-top: 8px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.meta span { background: var(--blush); border-radius: 999px; padding: 6px 10px; font-size: 14px; }
.library-band {
  margin-top: 42px;
  background: linear-gradient(180deg, rgba(252, 228, 236, 0.95), rgba(255, 244, 248, 0.4));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
}
.band-head { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
.band-head h2 { font-family: var(--serif); font-size: clamp(28px, 4vw, 40px); margin: 4px 0 0; letter-spacing: -0.03em; }
.recipe h3 { font-family: var(--serif); font-size: 28px; margin-bottom: 8px; }
.recipe li { margin: 8px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.share-box, .panel, .note-card, .film {
  background: var(--card);
  border-radius: 20px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.timer { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.timer strong { font-variant-numeric: tabular-nums; font-size: 28px; font-family: var(--serif); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 12px; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; height: 120px; object-fit: cover; border-radius: 12px; }
.layout { display: grid; grid-template-columns: 280px 1fr; gap: 18px; }
.stack { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field textarea { min-height: 120px; resize: vertical; }
.profile-head { display: flex; gap: 18px; align-items: center; }
.avatar, .avatar-ph {
  width: 96px; height: 96px; border-radius: 50%; object-fit: cover; background: var(--clay); color: white;
  display: grid; place-items: center; font-family: var(--serif); font-size: 36px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.film video, .frame { width: 100%; border: 0; border-radius: 16px; min-height: 220px; background: #111; }
.toast {
  position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 12px 16px; border-radius: 999px; z-index: 20;
}
.install-bar {
  position: sticky;
  bottom: 12px;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}
.install-bar p { margin: 0; max-width: 62ch; }
.reader {
  position: fixed; inset: 0; background: rgba(28, 20, 14, 0.45); z-index: 30;
  display: grid; place-items: center; padding: 18px;
}
.reader-sheet {
  background: var(--card); width: min(980px, 100%); height: min(88vh, 900px);
  border-radius: 24px; display: flex; flex-direction: column; overflow: hidden;
}
.crumbs { display: flex; gap: 8px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); overflow: auto; }
.crumbs button { background: none; border: 0; padding: 6px; color: var(--moss); white-space: nowrap; }
.crumbs button[disabled] { color: var(--ink); }
#reader-body { overflow: auto; padding: 22px 28px 40px; }
#reader-body img { border-radius: 12px; }
#reader-body table { display: block; overflow: auto; }
.empty { color: var(--muted); }

@media (max-width: 860px) {
  .hero, .recipe, .layout, .split { grid-template-columns: 1fr; }
  .mast { flex-direction: column; align-items: flex-start; }
  .plate img { height: 260px; }
}
@media print {
  body { background: white; }
  .mast, .toolbar, .actions, .no-print, .reader, .toast, .install-bar { display: none !important; }
  .recipe { display: block; }
  .plate img { height: auto; max-height: 280px; }
  a { color: inherit; text-decoration: none; }
}
