/* ==========================================================
   Cake Coven Services
   Main design tokens, reset, and base typography
========================================================== */

/* =========================
   Colors & Theme
========================= */

:root {
    --bg-black: #05040a;
    --bg-deep: #0b0814;
    --bg-purple: #130b22;
    --panel: rgba(255, 248, 239, 0.075);
    --panel-strong: rgba(255, 248, 239, 0.12);

    --text: #fff8ef;
    --muted: #d9cceb;
    --soft: #eadcfb;

    --purple-border: #a975d6;
    --purple-glow: #d6a8f2;
    --purple-shadow: #5e357f;
    --plum: #7a4fa3;
    --lavender: #c89ae8;

    --gold: #c7a27a;
    --gold-bright: #f3d69b;

    --danger: #ffcfde;
    --success: #d8ffd6;

    --border: rgba(214, 168, 242, 0.28);
    --border-soft: rgba(214, 168, 242, 0.16);

    --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
    --glow: 0 0 28px rgba(169, 117, 214, 0.32);

    --radius-sm: 14px;
    --radius: 26px;
    --radius-lg: 42px;

    --max-width: 1180px;
}

/* =========================
   Reset
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    background:
        radial-gradient(circle at 16% 2%, rgba(169, 117, 214, 0.22), transparent 34rem),
        radial-gradient(circle at 92% 8%, rgba(199, 162, 122, 0.14), transparent 28rem),
        radial-gradient(circle at 70% 78%, rgba(122, 79, 163, 0.15), transparent 30rem),
        linear-gradient(135deg, var(--bg-black), var(--bg-deep) 40%, var(--bg-purple));
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.22;
    background-image:
        radial-gradient(circle, rgba(255, 248, 239, 0.7) 0 1px, transparent 1px),
        radial-gradient(circle, rgba(214, 168, 242, 0.75) 0 1px, transparent 1px);
    background-size: 88px 88px, 137px 137px;
    background-position: 0 0, 27px 49px;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

::selection {
    background: var(--purple-border);
    color: var(--text);
}

/* =========================
   Typography
========================= */

h1,
h2,
h3 {
    margin-top: 0;
}

h1,
h2,
.display-font {
    font-family: Georgia, "Times New Roman", serif;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h1 {
    font-size: clamp(2.75rem, 7vw, 6.4rem);
}

h2 {
    font-size: clamp(2.25rem, 5vw, 4.6rem);
}

h3 {
    font-size: 1.28rem;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

.text-muted {
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--gold-bright);
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.lead {
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.small {
    font-size: 0.92rem;
}

.signature {
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.2;
}

/* =========================
   Page Utilities
========================= */

.container {
    width: min(var(--max-width), calc(100% - 40px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: clamp(64px, 8vw, 118px) 0;
}

.section-tight {
    padding: clamp(42px, 6vw, 78px) 0;
}

.section-heading {
    max-width: 860px;
    margin: 0 auto 36px;
    text-align: center;
}

.section-heading p:last-child {
    margin-bottom: 0;
}

.divider {
    width: min(620px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--gold);
    opacity: 0.85;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

.page-hero {
    padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 6vw, 76px);
    text-align: center;
}

.page-hero .lead {
    max-width: 800px;
    margin-inline: auto;
}

/* =========================
   Grids
========================= */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
