:root {
    --ink: #1b1233;
    --cream: #fff3df;
    --paper: #fffaf3;
    --coral: #ff3d68;
    --mango: #ffb000;
    --lime: #d6f25c;
    --teal: #14c8b4;
    --violet: #6c4dff;
    --sky: #2f9bff;
    --rose: #ff7ab2;
    --plum: #24143f;
    --line: rgba(27, 18, 51, 0.12);
    --shadow: 0 18px 40px rgba(36, 20, 63, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 0 0, rgba(255, 61, 104, 0.18), transparent 28%),
        radial-gradient(circle at 100% 0, rgba(20, 200, 180, 0.18), transparent 26%),
        radial-gradient(circle at 80% 30%, rgba(255, 176, 0, 0.14), transparent 22%),
        var(--cream);
    font-family: Manrope, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: Syne, sans-serif; line-height: 1.05; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.4rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); margin: 0; }
h3 { font-size: 1.35rem; margin: 0 0 0.35em; }
p { margin: 0 0 0.8em; }
.wrap { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; }
.narrow { width: min(760px, calc(100% - 2rem)); }
.story-wrap { width: min(820px, calc(100% - 2rem)); margin: 0 auto; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    background: var(--lime);
    color: var(--ink);
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    font-weight: 800;
}
.skip:focus { top: 1rem; }

.rainbow {
    height: 10px;
    background: linear-gradient(90deg, var(--coral), var(--mango), var(--lime), var(--teal), var(--sky), var(--violet), var(--rose));
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 243, 223, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-bar { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-family: Syne, sans-serif;
    font-weight: 800;
    font-size: 1.35rem;
    text-decoration: none;
}
.mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background:
        linear-gradient(var(--cream), var(--cream)) 46% 58% / 8px 12px no-repeat,
        linear-gradient(var(--teal), var(--teal)) 18% 62% / 8px 8px no-repeat,
        linear-gradient(var(--mango), var(--mango)) 74% 62% / 8px 8px no-repeat,
        linear-gradient(135deg, var(--coral), #ff7a45);
    box-shadow: inset 0 -10px 0 var(--plum);
    clip-path: polygon(50% 0, 100% 38%, 100% 100%, 0 100%, 0 38%);
}
.nav-toggle {
    margin-left: auto;
    border: 2px solid var(--ink);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font: inherit;
    font-weight: 800;
}
.site-nav { display: none; gap: 0.35rem; }
.site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    left: 0;
    right: 0;
    top: 76px;
    padding: 1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.nav-link {
    text-decoration: none;
    font-weight: 800;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
}
.nav-link.is-active, .nav-link:hover { background: var(--ink); color: var(--cream); }

.hero { padding: 1.4rem 0 1rem; }
.hero-layout { display: grid; gap: 1.4rem; }
.hero-copy {
    background: var(--plum);
    color: var(--cream);
    border-radius: 32px;
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-copy::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    bottom: -50px;
    background: conic-gradient(from 20deg, var(--coral), var(--mango), var(--lime), var(--teal), var(--violet), var(--coral));
    border-radius: 40% 60% 50% 50%;
    opacity: 0.9;
}
.hero-copy > * { position: relative; z-index: 1; }
.kicker { display: flex; flex-wrap: wrap; gap: 0.4rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.78rem; }
.hero-copy .kicker span { color: var(--mango); }
.crumbs { color: var(--ink); }
.hero-copy .lede { font-size: 1.2rem; max-width: 38rem; }
.hero-stats { display: flex; gap: 1.2rem; margin: 1.2rem 0 0; }
.hero-stats div { min-width: 5.5rem; }
.hero-stats dt { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--lime); }
.hero-stats dd { margin: 0; font-family: Syne, sans-serif; font-size: 1.7rem; font-weight: 800; }
.hero-collage { display: grid; gap: 0.8rem; }
.hero-tile {
    position: relative;
    display: block;
    min-height: 180px;
    overflow: hidden;
    border-radius: 28px;
    text-decoration: none;
    border: 4px solid #fff;
    box-shadow: 8px 10px 0 rgba(27, 18, 51, 0.16);
    background: var(--violet);
}
.hero-tile img, .hero-tile .photo-fallback { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.hero-tile span {
    position: absolute;
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    background: rgba(255, 250, 243, 0.94);
    border-radius: 14px;
    padding: 0.45rem 0.65rem;
    font-weight: 800;
}
.search-bar { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; position: relative; z-index: 1; }
.search-bar input { flex: 1 1 12rem; min-width: 0; }
.search-bar input, .contact-form input, .contact-form textarea {
    width: 100%;
    border: 2px solid transparent;
    background: #fff;
    color: var(--ink);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font: inherit;
}
.hero-copy .search-bar input { border-color: transparent; }
.search-bar input:focus, .contact-form input:focus, .contact-form textarea:focus {
    outline: 3px solid var(--lime);
    border-color: var(--ink);
}
.button, .pager-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    background: var(--coral);
    color: #fff;
    font: inherit;
    font-weight: 800;
    border-radius: 999px;
    padding: 0.85rem 1.15rem;
    box-shadow: 4px 4px 0 var(--ink);
}
.button:hover, .pager-link:hover { transform: translate(-1px, -1px); }
.marquee { overflow: hidden; border-block: 2px solid var(--ink); background: var(--lime); }
.marquee-track { display: flex; gap: 2rem; width: max-content; padding: 0.7rem 0; animation: slide 28s linear infinite; font-family: Syne, sans-serif; font-weight: 800; text-transform: uppercase; }
.marquee-track span::before { content: "●"; margin-right: 2rem; color: var(--coral); }
@keyframes slide { to { transform: translateX(-50%); } }
.band { padding: 2.2rem 0; }
.band-paper { background: rgba(255, 250, 243, 0.72); }
.section-head, .crumbs { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.crumbs { justify-content: flex-start; align-items: center; font-weight: 800; }
.crumbs span { color: var(--ink); }
.text-link, .crumb, .footer-link, .guide-link { font-weight: 800; }
.swatch-row, .house-row, .card-grid, .guide-list { display: grid; gap: 0.9rem; }
.swatch-row { grid-template-columns: repeat(2, 1fr); }
.swatch, .house-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 140px;
    padding: 1rem;
    border-radius: 24px;
    text-decoration: none;
    border: 3px solid var(--ink);
    box-shadow: 6px 6px 0 rgba(27, 18, 51, 0.18);
}
.swatch span, .house-card span { font-weight: 800; font-size: 0.85rem; }
.swatch strong, .house-card strong { font-family: Syne, sans-serif; font-size: 1.35rem; }
.swatch:nth-child(8n+1), .tone-coral { background: var(--coral); color: #fff; }
.swatch:nth-child(8n+2), .tone-mango { background: var(--mango); color: var(--ink); }
.swatch:nth-child(8n+3), .tone-teal { background: var(--teal); color: var(--ink); }
.swatch:nth-child(8n+4), .tone-violet { background: var(--violet); color: #fff; }
.swatch:nth-child(8n+5), .tone-sky { background: var(--sky); color: #fff; }
.swatch:nth-child(8n+6), .tone-lime { background: var(--lime); color: var(--ink); }
.swatch:nth-child(8n+7), .tone-rose { background: var(--rose); color: var(--ink); }
.swatch:nth-child(8n+8) { background: var(--plum); color: var(--cream); }
.house-1 { background: var(--coral); color: #fff; }
.house-2 { background: var(--teal); color: var(--ink); }
.house-3 { background: var(--mango); color: var(--ink); }
.house-4 { background: var(--violet); color: #fff; }
.house-5 { background: var(--sky); color: #fff; }
.house-6 { background: var(--lime); color: var(--ink); }
.card-grid { grid-template-columns: 1fr; }
.card { min-width: 0; }
.card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    background: #fff;
    border-radius: 26px;
    overflow: hidden;
    border: 3px solid var(--ink);
    box-shadow: 7px 8px 0 rgba(27, 18, 51, 0.12);
}
.card-link:hover { transform: translateY(-3px); }
.card-photo { aspect-ratio: 4 / 3; background: var(--sky); overflow: hidden; }
.card-photo img, .photo-fallback { width: 100%; height: 100%; object-fit: cover; }
.photo-fallback {
    display: block;
    min-height: 160px;
    background: linear-gradient(135deg, var(--coral), var(--mango) 42%, var(--teal) 70%, var(--violet));
}
.card-body { padding: 0.95rem 1rem 1.1rem; }
.meta { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; color: #5c5370; font-size: 0.86rem; font-weight: 700; }
.chip {
    display: inline-flex;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.2rem; }
.quote-band { background: var(--coral); color: #fff; padding: 2.4rem 0; }
.quote-band p { margin: 0; font-family: Syne, sans-serif; font-size: clamp(1.6rem, 3vw, 2.6rem); font-weight: 750; max-width: 18ch; }
.page-hero { padding: 1.6rem 0 2.5rem; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.4rem); }
.lede { font-size: 1.15rem; max-width: 42rem; }
.pager { display: flex; gap: 0.8rem; align-items: center; justify-content: space-between; margin-top: 1.4rem; font-weight: 800; }
.story { padding: 1.4rem 0 2.5rem; }
.byline { color: #5c5370; font-weight: 800; }
.story-photo { margin: 1rem 0 1.4rem; border-radius: 28px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow); }
.prose { font-size: 1.08rem; }
.prose h2, .prose h3, .prose h4 { margin: 1.3em 0 0.4em; }
.prose a { color: var(--violet); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose img, .prose iframe, .prose video { width: 100%; border-radius: 22px; margin: 1rem 0; }
.prose iframe { aspect-ratio: 16 / 9; border: 0; background: var(--plum); }
.prose blockquote {
    margin: 1.2rem 0;
    padding: 1rem 1.1rem;
    background: var(--mango);
    border-radius: 18px;
    transform: rotate(-0.4deg);
}
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: 0.45rem; }
.related-wrap { margin-top: 1rem; }
.related-wrap h2, .guides-title { margin: 1.6rem 0 0.8rem; }
.guide-list { grid-template-columns: 1fr; }
.guide-link {
    display: block;
    background: #fff;
    border: 3px solid var(--ink);
    border-radius: 18px;
    padding: 0.85rem 1rem;
    text-decoration: none;
}
.guide-link:hover { background: var(--lime); }
.empty { background: #fff; border-radius: 18px; padding: 1rem; border: 3px dashed var(--ink); }
.contact-form { display: grid; gap: 0.45rem; margin-top: 1rem; }
.contact-form textarea { min-height: 160px; resize: vertical; }
.form-ok, .form-error, .note { border-radius: 14px; padding: 0.7rem 0.85rem; font-weight: 700; }
.form-ok { background: var(--lime); }
.form-error { background: #ffd0dc; }
.note { background: transparent; padding-left: 0; }
.site-footer { background: var(--plum); color: var(--cream); padding: 2rem 0 1rem; }
.footer-grid { display: grid; gap: 1.4rem; }
.footer-grid h2 { font-size: 1rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime); }
.footer-grid a, .brand-footer { display: block; width: fit-content; margin: 0 0 0.35rem; color: var(--cream); text-decoration: none; }
.footer-grid a:hover { color: var(--mango); }
.footer-base { border-top: 1px solid rgba(255, 243, 223, 0.16); margin-top: 1.2rem; padding: 0.8rem 0 0.4rem; color: rgba(255, 243, 223, 0.75); }
.swatch-all { margin-top: 1rem; }

@media (max-width: 759px) {
    .hero-copy::after { display: none; }
    .hero-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
    .hero-stats dd { font-size: 1.25rem; }
}
@media (min-width: 760px) {
    .card-grid { grid-template-columns: repeat(2, 1fr); }
    .swatch-row, .house-row { grid-template-columns: repeat(4, 1fr); }
    .guide-list { grid-template-columns: repeat(2, 1fr); }
    .hero-collage { grid-template-columns: 1.2fr 0.8fr; grid-template-rows: 1fr 1fr; }
    .hero-tile:first-child { grid-row: 1 / span 2; min-height: 420px; }
}
@media (min-width: 980px) {
    .nav-toggle { display: none; }
    .site-nav { display: flex; margin-left: auto; }
    .hero-layout { grid-template-columns: 1.05fr 0.95fr; align-items: stretch; }
    .card-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
    html { scroll-behavior: auto; }
}
