/* Blog and free tools. Brand tokens match the site: cream ground, rose action colour, antique gold ornament. */
:root {
  --bg: #fbf5ea;
  --ink: #3a2a2e;
  --muted: #5e4d51;
  --rose: #a8475f;
  --rose-d: #8c3850;
  --gold: #8f6a1c;
  --line: #3a2a2e26;
  --card: #ffffff;
  --p1: #f7e1e6;
  --p2: #e3efe2;
  --p3: #f6ecd0;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "Bricolage Grotesque", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(36px, 5.5vw, 56px); color: var(--rose); margin: 8px 0 16px; letter-spacing: -0.01em; }
h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 2em 0 0.5em; }
h3 { font-size: 24px; margin: 1.6em 0 0.4em; }
a { color: var(--rose); text-underline-offset: 3px; }
a:hover { color: var(--rose-d); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--rose) 60%, transparent); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.c-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.c-narrow { max-width: 760px; }

.c-top { background: var(--bg); border-bottom: 1px solid var(--line); }
.c-top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.c-logo img { display: block; height: 52px; width: auto; }
.c-nav { display: flex; align-items: center; gap: 22px; font-size: 16px; flex-wrap: wrap; }
.c-nav a:not(.c-btn) { color: var(--ink); text-decoration: none; }
.c-nav a:not(.c-btn):hover { color: var(--rose); text-decoration: underline; }

.c-btn { display: inline-block; padding: 11px 22px; border-radius: 999px; background: var(--rose); color: #fff !important; text-decoration: none !important; font-weight: 600; font-size: 16px; border: 0; cursor: pointer; font-family: inherit; }
.c-btn:hover { background: var(--rose-d); }
.c-btn-o { background: #fff; color: var(--rose) !important; box-shadow: inset 0 0 0 1.5px var(--rose); }
.c-btn-o:hover { background: var(--p1); }

.c-crumbs ol { list-style: none; padding: 0; margin: 28px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.c-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.c-crumbs a { color: var(--muted); }
.c-kicker { margin: 0; font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; }
.c-kicker a { color: var(--gold); text-decoration: none; }
.c-meta { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.c-lede { font-size: 21px; line-height: 1.5; color: var(--muted); margin: 0 0 24px; max-width: 62ch; }

.c-toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 0 0 28px; }
.c-toc h2 { font-size: 22px; margin: 0 0 6px; }
.c-toc ol { margin: 0; padding-left: 20px; font-size: 16px; }
.c-toc li { margin: 4px 0; }

.c-prose { max-width: 68ch; }
.c-prose p, .c-prose ul, .c-prose ol { margin: 0 0 1.1em; }
.c-prose li { margin: 0.35em 0; }
.c-prose blockquote { margin: 1.2em 0; padding: 18px 22px; background: var(--p1); border-radius: 14px; border-left: 4px solid var(--rose); font-size: 19px; }
.c-prose blockquote p { margin: 0 0 0.6em; }
.c-prose blockquote p:last-child { margin-bottom: 0; }
.c-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 16px; display: block; overflow-x: auto; }
.c-prose th, .c-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.c-prose th { background: var(--p3); }
.c-prose code { background: var(--p3); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }
.c-prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }

.c-cta { background: linear-gradient(135deg, var(--p1), var(--p3)); border-radius: 22px; padding: 28px 30px; margin: 44px 0; }
.c-cta h2 { margin: 0 0 8px; font-size: 30px; }
.c-cta p { margin: 0 0 14px; max-width: 56ch; }
.c-cta p:last-child { margin-bottom: 0; }
.c-tool-link { background: var(--p2); border-radius: 14px; padding: 14px 18px; margin: 28px 0; max-width: 68ch; }

.c-related ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.c-related li a { font-family: var(--display); font-size: 24px; font-weight: 600; display: block; }
.c-related li span { display: block; color: var(--muted); font-size: 16px; }

.c-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.c-chips a { padding: 7px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); text-decoration: none; color: var(--ink); font-size: 15px; }
.c-chips a[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.c-cards { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.c-card a { display: grid; gap: 6px; background: var(--card); border-radius: 20px; padding: 24px; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line); height: 100%; align-content: start; }
.c-card a:hover { box-shadow: 0 0 0 2px var(--rose); }
.c-card h2 { font-size: 26px; margin: 0; }
.c-card p { margin: 0; color: var(--muted); font-size: 16px; }
.c-card-cat { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.c-card-meta { font-size: 14px; color: var(--muted); }

.c-foot { border-top: 1px solid var(--line); margin-top: 60px; padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
.c-foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.c-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.c-foot a { color: var(--muted); }

/* ---- the free tools ---- */
.c-tool { background: var(--card); border-radius: 22px; padding: 26px; box-shadow: 0 0 0 1px var(--line); margin: 0 0 34px; }
.c-tool form { display: grid; gap: 18px; margin: 0 0 8px; }
.c-tool label, .c-tool legend { font-weight: 600; font-size: 16px; }
.c-tool input[type="date"] { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); background: #fff; color: var(--ink); width: 100%; max-width: 260px; display: block; margin-top: 6px; }
.c-tool fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.c-tool .c-opt { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.c-tool .c-opt:has(input:checked) { background: var(--p1); box-shadow: inset 0 0 0 2px var(--rose); }
.c-tool .c-opt input { margin-top: 5px; accent-color: var(--rose); }
.c-tool .c-opt small { display: block; color: var(--muted); font-size: 14px; }
.c-result { margin-top: 22px; }
.c-result h2 { margin: 0 0 12px; font-size: 28px; }
.c-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.c-steps li { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.c-steps b { font-family: var(--display); font-size: 22px; }
.c-steps .c-when { font-weight: 600; color: var(--rose-d); }
.c-steps small { color: var(--muted); font-size: 15px; }
.c-steps li[data-state="past"] { background: #f6ecd0; }
.c-note { background: var(--p3); border-radius: 12px; padding: 12px 16px; margin: 0 0 14px; font-size: 16px; }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.c-status { min-height: 1.5em; font-size: 15px; color: var(--muted); margin: 8px 0 0; }

@media (max-width: 640px) {
  body { font-size: 17px; }
  .c-nav { gap: 14px; font-size: 15px; }
  .c-logo img { height: 44px; }
  .c-cta { padding: 22px 20px; }
}
@media print { .c-top, .c-foot, .c-cta, .c-actions { display: none; } body { background: #fff; } }

/* ---- generator tools: forms and results ---- */
.c-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.c-field { display: grid; gap: 6px; min-width: 0; }
.c-field input, .c-field select { font: inherit; padding: 11px 14px; border-radius: 12px; border: 1.5px solid color-mix(in srgb, var(--ink) 35%, transparent); background: #fff; color: var(--ink); width: 100%; }
.c-field small { color: var(--muted); font-size: 14px; }
.c-tool select { max-width: 100%; }
.c-opt-line { padding: 8px 12px; }
.c-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
.c-invite { background: var(--bg); border-radius: 16px; padding: 22px 24px; box-shadow: inset 0 0 0 1px var(--line); font-family: var(--display); font-size: 22px; line-height: 1.45; text-align: center; }
.c-invite span { display: block; }
.c-invite-plain { text-align: left; font-family: var(--body); font-size: 17px; }
.c-invite-plain p { margin: 0 0 0.6em; }
.c-invite-plain p:last-child { margin-bottom: 0; }
.c-notes { margin: 14px 0 0; padding-left: 20px; color: var(--muted); font-size: 16px; }
.c-small { color: var(--muted); font-size: 15px; margin: 0 0 10px; }
.c-quote { margin: 0 0 8px; padding: 20px 24px; background: var(--p1); border-radius: 16px; border-left: 4px solid var(--rose); font-size: 19px; }
.c-tags { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.c-tags li { display: inline-flex; align-items: center; gap: 6px; }
.c-tag { font: inherit; font-size: 16px; cursor: pointer; padding: 8px 14px; border-radius: 999px; border: 0; background: var(--p2); color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ink) 18%, transparent); }
.c-tag:hover { background: var(--p3); }
.c-tag-note { font-size: 12px; color: var(--muted); }
.c-card-canvas { width: 100%; max-width: 420px; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); display: block; margin: 8px 0; }
.c-result h3 { margin: 1.2em 0 0.4em; font-size: 22px; }
@media (max-width: 640px) { .c-grid2 { grid-template-columns: minmax(0, 1fr); } .c-invite { font-size: 20px; padding: 18px; } }

/* An element marked hidden stays hidden whatever its layout class says. */
[hidden] { display: none !important; }

/* Space between the parts of a result */
.c-result h2 { margin: 1.5em 0 0.5em; }
.c-result h2:first-child { margin-top: 0; }

/* Seating plan */
.c-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; margin: 1rem 0; }
.c-table { border: 1px solid var(--line, #ddd); border-radius: 12px; padding: 0.75rem 1rem; }
.c-table h3 { margin: 0 0 0.5rem; font-size: 1.05rem; }
.c-table ul { list-style: none; margin: 0; padding: 0; }
.c-table li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.5rem; padding: 0.3rem 0; border-top: 1px solid var(--line, #eee); }
.c-table li select { margin-left: auto; max-width: 7.5rem; }
.c-notes { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 0.75rem 1rem 0.75rem 2rem; }
@media print { .c-table select, #sc, .c-actions, header, footer, nav { display: none !important; } }

/* Data tables inside tools */
.c-tablewrap { overflow-x: auto; margin: 1rem 0; position: relative; }
.c-data { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.c-data caption { text-align: left; padding-bottom: 0.4rem; }
.c-data th, .c-data td { text-align: right; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.c-data th[scope="row"], .c-data thead th:first-child { text-align: left; white-space: normal; }
.c-data tfoot th, .c-data tfoot td { font-weight: 700; border-top: 2px solid var(--line); }
.c-over { color: #b3261e; font-weight: 700; }
.c-visually { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Editable planner table */
.c-plan input { width: 100%; min-width: 7rem; border: 1px solid var(--line); border-radius: 6px; padding: 0.35rem 0.5rem; font: inherit; background: var(--card); color: var(--ink); }
.c-plan td { white-space: normal; text-align: left; }

/* Wedding bingo */
.c-bingo-set { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 1.25rem; margin-top: 1rem; }
.c-bingo { border: 2px solid var(--gold); border-radius: 12px; padding: 0.75rem; background: var(--card); }
.c-bingo h3 { margin: 0 0 0.5rem; font-size: 1.05rem; text-align: center; }
.c-bingo-grid { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 4px; }
.c-bingo-sq { min-width: 0; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; text-align: center; padding: 4px; font: inherit; font-size: 0.72rem; line-height: 1.15; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); cursor: pointer; overflow-wrap: anywhere; }
.c-bingo-sq.is-on { background: var(--p1); border-color: var(--rose); font-weight: 600; }
.c-bingo-sq.is-free { font-weight: 700; color: var(--rose-d); cursor: default; }
.c-bingo.is-bingo { box-shadow: 0 0 0 3px var(--rose); }
.c-bingo-rule { text-align: center; margin: 0.5rem 0 0; }
.c-label-like { display: block; font-weight: 600; margin-bottom: 0.35rem; }
@media print {
  body:has(.c-bingo-set) :is(.c-top, .c-foot, .c-crumbs, h1, .c-lede, .c-prose, .c-cta, #wb, #wb-meta, #wb-status, .c-actions) { display: none !important; }
  .c-bingo-set { display: block; }
  .c-bingo { break-after: page; border-width: 3px; }
  .c-bingo-sq { font-size: 11pt; }
}

/* Game ideas */
.c-ideas { padding-left: 1.4rem; }
.c-idea { margin: 0 0 1rem; padding: 0.75rem 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.c-idea h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.c-idea p { margin: 0.35rem 0; }

/* Colour swatches */
.c-swatches { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.c-swatches li { display: flex; align-items: center; gap: 0.5rem; }
.c-swatch { width: 1.6rem; height: 1.6rem; border-radius: 50%; border: 1px solid var(--line); display: inline-block; }
