/* Bride To Be Digital Co. — brand tokens & shared styles
   Palette taken from Chaz's Etsy templates (mood board, seating plan, budget dashboards). */
:root {
  --ivory: #F8F6F0;
  --paper: #FFFFFF;
  --linen: #F3EFE6;
  --sage: #778572;
  --sage-deep: #38463D;
  --sage-mist: #D7DCD2;
  --sage-wash: #EEF1EA;
  --blush: #EBDAD8;
  --blush-deep: #C9A9A6;
  --gold: #B69A70;
  --gold-soft: #E4D6BE;
  --taupe: #797C76;
  --ink: #2C332E;
  --muted: #6B6F69;
  --line: #E3E1D8;
  --danger: #A4574F;
  --ok: #5E7A5A;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Jost', 'Aptos', 'Segoe UI', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(44, 51, 46, .04), 0 8px 24px rgba(44, 51, 46, .06);
  --shadow-lg: 0 2px 4px rgba(44, 51, 46, .05), 0 24px 60px rgba(44, 51, 46, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ivory); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sage-deep); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; color: var(--sage-deep); letter-spacing: .005em; }
p { margin: 0 0 1em; }
.eyebrow { font-family: var(--sans); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--sage); font-weight: 500; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.serif { font-family: var(--serif); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 14px/1 var(--sans); letter-spacing: .04em;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--sage-deep); color: #fff; cursor: pointer; text-decoration: none;
  transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:hover { background: #2B372F; }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: transparent; color: var(--sage-deep); border-color: var(--sage-deep); }
.btn.secondary:hover { background: var(--sage-wash); }
.btn.ghost { background: transparent; color: var(--sage-deep); padding: 9px 12px; }
.btn.ghost:hover { background: var(--sage-wash); }
.btn.gold { background: var(--gold); }
.btn.gold:hover { background: #A2865E; }
.btn.sm { padding: 8px 14px; font-size: 13px; }
.btn.danger { background: transparent; color: var(--danger); border-color: transparent; }
.btn.danger:hover { background: #F6E9E7; }

/* Form controls */
label { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
input, select, textarea {
  width: 100%; font: 15px/1.4 var(--sans); color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 12px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px rgba(119, 133, 114, .2); }
textarea { resize: vertical; min-height: 90px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--sage-deep); padding: 0; }
input[type=color] { padding: 2px; height: 40px; cursor: pointer; }

html.framed .print-btn, html.framed .dl-btn { display: none !important; }
.framed-only { display: none; }
html.framed .framed-only { display: block; }

/* Background music button (music.js) */
.music-btn { position: fixed; left: 16px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid var(--gold-soft); background: rgba(255, 255, 255, .92); color: var(--sage-deep); box-shadow: var(--shadow); cursor: pointer; font-family: var(--sans); text-align: left; backdrop-filter: blur(6px); transition: background .2s, transform .15s; max-width: calc(100vw - 32px); }
.music-btn:hover { background: #fff; transform: translateY(-1px); }
.music-btn svg { flex: none; }
.music-txt { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.music-txt b { font-weight: 500; font-size: 13px; }
.music-txt small { font-size: 11px; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-btn:not(.on) svg { animation: musicpulse 2.4s ease-in-out infinite; }
@keyframes musicpulse { 50% { opacity: .45; } }
@media (max-width: 600px) { .music-txt small { display: none; } .music-btn { padding: 8px 14px 8px 10px; } }
@media print { .music-btn { display: none; } }

/* Ornament */
.flourish { display: flex; align-items: center; gap: 14px; color: var(--gold); justify-content: center; }
.flourish::before, .flourish::after { content: ''; height: 1px; width: 60px; background: currentColor; opacity: .6; }
