:root {
    /* ── Pastel palette (DESIGN.md — "Dreamy Pastel" direction) ── */
    --primary: #7d5a6e;          /* dusty plum — CTA, active (AA w/ white, 4.7:1) */
    --on-primary: #ffffff;
    --ink: #4a4348;              /* headings + body on light (AAA on canvas) */
    --body: #7a7176;             /* secondary text */
    --mute: #a89fa4;             /* fine print / placeholders */
    --hairline-mid: #8a8088;     /* muted footer links */
    --canvas: #fdfaf6;           /* warm cream page background */
    --canvas-soft: #f6efe9;      /* chips, soft cards */
    --canvas-softer: #f9f4ef;    /* nested inputs */
    --surface-pressed: #ece3dc;  /* pressed / active fills */
    --black-elevated: #3a2f38;   /* footer + dark bands (deep plum) */
    --on-dark: #fdfaf6;          /* text on dark bands */
    --link: #7d68a3;             /* inline links (lavender) */
    --accent-blush: #b07a8f;     /* decorative: hover borders, disclaimer edge */
    --accent-mint: #5e8a72;      /* decorative: tips markers, omen heading */
    --accent-lavender: #7d68a3;  /* decorative: article h3 sub-headings */
    --border: #ece3dc;           /* hairline borders */
    --max-width: 1080px;

    /* ── Typography ── */
    --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

    /* ── Shape ── */
    --r-pill: 999px;
    --r-card: 16px;

    /* ── Elevation ── */
    --shadow-1: 0 4px 16px rgba(125, 90, 110, 0.08);
    --shadow-1-hover: 0 6px 22px rgba(125, 90, 110, 0.14);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font-text);
    background: var(--canvas);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
}

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 20px; }

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.5vw, 2.4rem); margin: 0 0 .5em; }        /* display-xl */
h2 { font-size: clamp(1.4rem, 2.6vw, 1.6rem); margin: 1.4em 0 .5em; }  /* display-md */
h3 { font-size: 1.25rem; margin: 1em 0 .3em; color: var(--accent-lavender); } /* article sub-headings */

p { margin: 0 0 1em; }

/* ── Header ── */
.site-header {
    border-bottom: 1px solid var(--border);
    background: rgba(253, 250, 246, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 10;
}
.site-header__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 64px; padding: 10px 0; }
.brand { font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: .3px; display: inline-flex; align-items: center; gap: 10px; }
.brand__logo { width: 32px; height: 32px; display: block; flex-shrink: 0; }
.main-nav { display: flex; gap: 6px; }
.main-nav a {
    color: var(--body);
    font-weight: 500;
    padding: 6px 12px;
    border-radius: var(--r-pill);
}
.main-nav a:hover { color: var(--primary); background: var(--canvas-soft); text-decoration: none; }

main { padding: 28px 0 64px; }

/* ── Hero ── */
.hero { text-align: center; padding: 40px 0 8px; }
.hero__lead { color: var(--body); font-size: 1.15rem; max-width: 640px; margin: 0 auto; }

/* ── Sections ── */
.section { margin: 28px 0; }
.lead { font-size: 1.15rem; color: var(--body); }

/* ── Category grid → pill chips ── */
.category-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.category-grid__item a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--canvas-soft);
    color: var(--primary);
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: .95rem;
    transition: background .15s, transform .15s;
}
.category-grid__item a:hover { background: var(--surface-pressed); transform: translateY(-1px); text-decoration: none; }
.category-grid__count {
    font-size: .8rem;
    color: var(--on-primary);
    background: var(--primary);
    padding: 1px 9px;
    border-radius: var(--r-pill);
}

/* ── Cards ── */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 18px 20px;
    box-shadow: var(--shadow-1);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-1-hover); border-color: var(--accent-blush); }
.card__title { margin: 0 0 .35em; font-size: 1.15rem; color: var(--ink); }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--primary); }
.card__lead { margin: 0; color: var(--body); font-size: .95rem; }
.card__link {
    display: inline-block;
    margin-top: 10px;
    font-size: .9rem;
    font-weight: 600;
    color: var(--primary);
}
.card__link:hover { text-decoration: underline; }

/* ── Article ── */
.article { max-width: 760px; margin: 0 auto; }
.article__header h1 { margin-bottom: .25em; }
.article__figure { margin: 18px 0; }
.article__figure img { width: 100%; height: auto; border-radius: var(--r-card); border: 1px solid var(--border); }
.section p, .section ul { color: var(--ink); }
.tips-list { padding-left: 1.2em; }
.tips-list li { margin-bottom: .5em; }
.tips-list li::marker { color: var(--accent-mint); }

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--r-card);
    padding: 12px 18px;
    margin-bottom: 10px;
    background: var(--canvas-soft);
}
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.faq-item p { margin-top: 1em; }

.related-list { columns: 2; column-gap: 24px; padding-left: 1.1em; }
.related-list li { margin-bottom: .35em; break-inside: avoid; }

/* Disclaimer → blush-edged soft card */
.disclaimer {
    margin-top: 36px;
    padding: 16px 18px;
    border-left: 4px solid var(--accent-blush);
    border-radius: var(--r-card);
    color: var(--ink);
    font-size: .92rem;
    background: var(--canvas-soft);
}
.disclaimer p { margin: 0; }

/* Omen heading → mint cue */
#omen h2 { color: var(--accent-mint); }

/* ── Breadcrumbs ── */
.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0 0 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: .9rem;
    color: var(--body);
}
.breadcrumbs li::after { content: "›"; margin-left: 6px; color: var(--mute); }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--body); }
.breadcrumbs a:hover { color: var(--primary); }

/* ── Footer ── */
.site-footer {
    background: var(--black-elevated);
    color: var(--on-dark);
    padding: 26px 0;
    font-size: .9rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--on-dark); }
.site-footer .container {padding-top: 0; padding-bottom: 0;}

/* ── Static / misc ── */
.static-page { max-width: 760px; margin: 0 auto; }
.not-found { text-align: center; padding: 60px 0; }
.not-found a {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 18px;
    background: var(--primary);
    color: var(--on-primary);
    border-radius: var(--r-pill);
    font-weight: 600;
}
.not-found a:hover { text-decoration: none; background: var(--black-elevated); }
.empty { color: var(--body); }
code { background: var(--canvas-soft); padding: 2px 6px; border-radius: 6px; color: var(--primary); }

@media (max-width: 600px) {
    .related-list { columns: 1; }
    .main-nav { gap: 2px; font-size: .9rem; }
    .main-nav a { padding: 6px 8px; }
    .brand { font-size: 1.05rem; gap: 8px; }
    .site-header__inner { justify-content: center; }
    .category-grid { gap: 8px; }
}
