/* MeWedsYou — ink and paper come from the logo; marigold and sindoor from the wedding itself. */
@font-face { font-family: "Baloo 2"; font-weight: 500; font-display: swap; src: url("fonts/baloo-2-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("fonts/baloo-2-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 400; font-display: swap; src: url("fonts/mukta-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 500; font-display: swap; src: url("fonts/mukta-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Mukta"; font-weight: 600; font-display: swap; src: url("fonts/mukta-latin-600-normal.woff2") format("woff2"); }

:root {
  --ink: #213646;
  --ink-soft: #4d6070;
  --paper: #e8e7e2;
  --card: #f6f5f1;
  --line: #cfcec7;
  --marigold: #f5a300;
  --marigold-deep: #d98600;
  --sindoor: #c2264b;
  --ok: #1f6b4a;
  --display: "Baloo 2", "Trebuchet MS", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 68rem;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.18em; }
h1, h2, h3 { font-family: var(--display); line-height: 1.08; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 5.2vw, 2.9rem); font-weight: 800; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0; max-width: 62ch; }
:focus-visible { outline: 3px solid var(--sindoor); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.stack > * + * { margin-top: 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); }
.muted { color: var(--ink-soft); }
.small { font-size: 0.95rem; }

/* Marigold garland: the one decoration, strung across the top of every page. */
.garland {
  height: 26px;
  background:
    radial-gradient(circle at 13px 9px, var(--marigold) 0 8px, transparent 8.6px) 0 0 / 26px 26px repeat-x,
    radial-gradient(circle at 26px 15px, var(--marigold-deep) 0 5px, transparent 5.6px) 0 0 / 26px 26px repeat-x;
  border-top: 2px solid var(--ink);
}

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.9rem; }
.top .brand img { width: 74px; }
.top nav { display: flex; gap: 1.25rem; font-weight: 500; }
.top nav a { text-decoration: none; padding-block: 0.4rem; }
.top nav a:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: 700 1.1rem/1 var(--display);
  padding: 0.95rem 1.5rem 0.85rem;
  border-radius: 999px; border: 2px solid var(--ink);
  background: var(--marigold); color: var(--ink);
  text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn:hover { transform: translateY(1px); box-shadow: 0 2px 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn.quiet { background: transparent; box-shadow: none; }
.btn.quiet:hover { background: var(--card); transform: none; }
.btn.small { font-size: 0.98rem; padding: 0.65rem 1.1rem 0.55rem; }
.btn.danger { background: transparent; border-color: var(--sindoor); color: var(--sindoor); box-shadow: none; }

/* Hero: the logo's "me weds you", with your names in it. */
.hero { padding-block: 2rem 3.5rem; }
.names { display: grid; justify-items: start; width: 100%; margin: 0 0 1.75rem; font-family: var(--display); font-weight: 800; }
.sr, .names label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hero .names input[type="text"] {
  font: inherit; color: var(--ink); background: transparent; padding: 0; margin: 0;
  width: 100%; height: 1.12em;
  font-size: var(--fs, clamp(5rem, 34vw, 13rem)); line-height: 1; letter-spacing: -0.04em;
  text-transform: lowercase; caret-color: var(--sindoor);
  border: 0; border-bottom: 4px dotted transparent; border-radius: 0;
}
.hero .names input[type="text"]::placeholder { color: var(--ink); opacity: 1; }
.hero .names input[type="text"]:hover, .hero .names input[type="text"]:focus { outline: none; border-bottom-color: var(--marigold-deep); }
.hero .names input[type="text"]:focus::placeholder { opacity: 0.25; }
.names .weds {
  font-size: clamp(1.9rem, 9vw, 3.6rem); font-weight: 700; line-height: 0.9;
  margin: 0 0 -0.12em clamp(2.6rem, 14vw, 7rem);
  color: var(--sindoor);
}
.names .hint { font: 500 1rem/1.3 var(--body); color: var(--ink-soft); margin-top: 0.9rem; }
.hero .lede { max-width: 34ch; font-size: clamp(1.2rem, 4.4vw, 1.5rem); color: var(--ink); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.9rem 1.25rem; align-items: center; margin-top: 1.5rem; }
@media (prefers-reduced-motion: no-preference) {
  .names #name-a { animation: settle-a 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
  .names #name-b { animation: settle-b 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.15) both; }
  @keyframes settle-a { from { transform: translateY(-0.18em); opacity: 0; } }
  @keyframes settle-b { from { transform: translateY(0.18em); opacity: 0; } }
}

section { padding-block: 3.25rem; }
.band { background: var(--card); border-block: 1px solid var(--line); }
.dark { background: var(--ink); color: var(--paper); }
.dark .muted, .dark .lede { color: #b9c4cd; }
.dark :focus-visible { outline-color: var(--marigold); }
.head { margin-bottom: 1.75rem; }
.head p { margin-top: 0.6rem; }

/* Rate card */
.rates { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.rate { display: grid; gap: 0.75rem 2rem; padding-block: 1.5rem; border-bottom: 1px solid var(--line); }
.rate .what p { margin-top: 0.25rem; }
.rate ul { margin: 0.7rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); }
.rate li + li { margin-top: 0.15rem; }
.rate .buy { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.price { font: 800 2.3rem/1 var(--display); white-space: nowrap; }
.price small { display: block; font: 500 0.95rem/1.3 var(--body); color: var(--ink-soft); margin-top: 0.3rem; }
@media (min-width: 48rem) {
  .rate { grid-template-columns: 1fr 15rem; align-items: start; }
  .rate .buy { flex-direction: column; align-items: flex-end; text-align: right; }
}

/* Steps: a real sequence, so it is numbered. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.5rem; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem 1fr; gap: 0.25rem 1rem; }
.steps li::before {
  content: counter(step); grid-row: span 2;
  width: 3rem; height: 3rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 800 1.4rem/1 var(--display); padding-top: 0.15em;
  background: var(--marigold); color: var(--ink); border: 2px solid var(--ink);
}
.steps p { color: var(--ink-soft); }
@media (min-width: 48rem) { .steps { grid-template-columns: 1fr 1fr; gap: 2rem 3rem; } }

.pairs { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .pairs { grid-template-columns: 1fr 1fr; gap: 3rem; } }
.plain { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.plain li + li { margin-top: 0.4rem; }

.looks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.looks li { border: 1.5px solid #5c7181; border-radius: var(--radius); padding: 0.8rem 0.9rem; font-weight: 500; line-height: 1.25; }
.looks li small { display: block; color: #b9c4cd; font-weight: 400; margin-top: 0.15rem; }
@media (min-width: 48rem) { .looks { grid-template-columns: repeat(5, 1fr); } }

.addons { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.addons li { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 1rem; padding-block: 0.9rem; border-bottom: 1px solid var(--line); }
.addons .p { font: 700 1.25rem/1.2 var(--display); }
.addons .n { font-weight: 600; }
.addons .d { grid-column: 1 / -1; color: var(--ink-soft); font-size: 0.98rem; }

details { border-bottom: 1px solid var(--line); padding-block: 1rem; }
details:first-of-type { border-top: 2px solid var(--ink); }
summary { cursor: pointer; font: 700 1.2rem/1.25 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.5rem; line-height: 0.9; color: var(--sindoor); }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.6rem; color: var(--ink-soft); }

footer { padding-block: 2.5rem 3rem; font-size: 0.98rem; }
footer .cols { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: flex-start; }
footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; }
footer img { width: 64px; }

/* Forms */
.form { display: grid; gap: 1.6rem; max-width: 40rem; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { font: 700 1.35rem/1.2 var(--display); padding: 0; margin-bottom: 0.75rem; }
.field { display: grid; gap: 0.3rem; }
.field + .field, .row + .field, .field + .row, .row + .row { margin-top: 0.9rem; }
.field > label, .field > .label { font-weight: 600; }
.field .help { color: var(--ink-soft); font-size: 0.95rem; }
.row { display: grid; gap: 0.9rem; }
@media (min-width: 36rem) { .row { grid-template-columns: 1fr 1fr; } .row .field + .field { margin-top: 0; } }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="url"], input[type="password"], input[type="number"], select, textarea {
  font: 400 1.0625rem/1.4 var(--body); color: var(--ink);
  width: 100%; padding: 0.7rem 0.8rem;
  background: #fff; border: 1.5px solid var(--ink-soft); border-radius: 10px;
}
textarea { min-height: 6.5rem; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--marigold); outline-offset: 0; border-color: var(--ink); }
.invalid input, .invalid textarea, .invalid select { border-color: var(--sindoor); }
.error { color: var(--sindoor); font-weight: 500; }
.check { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.6rem; align-items: start; padding-block: 0.45rem; }
.check input { width: 1.35rem; height: 1.35rem; margin: 0.15rem 0 0; accent-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: block; border: 1.5px solid var(--ink-soft); border-radius: 999px; padding: 0.4rem 0.9rem; background: #fff; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--marigold); outline-offset: 2px; }
.chips input:disabled + span { opacity: 0.45; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; gap: 0.5rem; }
.qty input { width: 4.5rem; }

.summary { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.35rem 1rem; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary .total { border-top: 1.5px solid var(--ink); padding-top: 0.6rem; margin-top: 0.4rem; font: 800 1.5rem/1.2 var(--display); color: var(--ink); }

.notice { border-left: 5px solid var(--marigold); background: var(--card); padding: 0.9rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.notice.bad { border-left-color: var(--sindoor); }
.notice.good { border-left-color: var(--ok); }
.notice p + p { margin-top: 0.5rem; }

.status { font: 700 1rem/1 var(--display); display: inline-block; padding: 0.4rem 0.75rem 0.3rem; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; }
.status.on { background: var(--marigold); }
.status.done { background: var(--ink); color: var(--paper); }

.drop { border: 2px dashed var(--ink-soft); border-radius: var(--radius); padding: 1rem; background: #fff; }
.drop h3 { font-size: 1.15rem; }
.drop .count { font-weight: 600; }
.drop input[type="file"] { margin-top: 0.7rem; max-width: 100%; font: inherit; }
.bar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 0.6rem; }
.bar i { display: block; height: 100%; width: 0; background: var(--ok); transition: width 0.2s; }

.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose p, .prose li { max-width: 68ch; }
.prose p { margin-top: 0.7rem; }
.prose ul { padding-left: 1.2rem; }
.unset { background: #ffe9a8; padding: 0 0.3em; border-radius: 4px; }

/* Admin */
.table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table th, .table td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-weight: 600; color: var(--ink-soft); }
.table tr[data-id] { cursor: pointer; }
.table tr[data-id]:hover { background: var(--card); }
.scroll { overflow-x: auto; }
.panel { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius); padding: 1.2rem; }
.kv { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.3rem 1rem; margin: 0; }
.kv dt { color: var(--ink-soft); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 0.5rem; }
.thumbs a { display: block; aspect-ratio: 1; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.actions { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
[hidden] { display: none !important; }
