/* Meowdoku: Sunny Spots site. Tokens from projects/meow/DESIGN.md (frontmatter, the
   .impeccable/tokens.json copy): stone-and-lead Material schemes, light and dark, Skranji Bold for
   display only, system face for body. Jewel panes are decoration inside lead, never text. */

@font-face {
    font-family: "Skranji";
    src: url("/meow/fonts/skranji-700.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light dark;
    --bg: #F6F6F2;
    --ink: #1B1D1E;
    --muted: #434846;
    --link: #3C4A52;
    --on-link: #FFFFFF;
    --card: #E4E5E0;
    --chip: #DADFDD;
    --on-chip: #1F2726;
    --outline: #6F7573;
    --lead: #070809;
    --ruby: #FF494E;
    --amber: #986B04;
    --peridot: #829100;
    --emerald: #11944C;
    --turquoise: #129D9F;
    --lapis: #0A84B0;
    --sapphire: #5489FF;
    --amethyst: #7A47FB;
    --lilac: #C267D7;
    --rose: #E65B8F;
    --display: "Skranji", Georgia, serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121415;
        --ink: #E3E4E1;
        --muted: #C2C7C4;
        --link: #B4C4CD;
        --on-link: #1F2B32;
        --card: #292B2C;
        --chip: #3C4544;
        --on-chip: #DADFDD;
        --outline: #8C918F;
        --ruby: #D56860;
        --amber: #94620B;
        --peridot: #819009;
        --emerald: #198E46;
        --turquoise: #059896;
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 1rem/1.6 var(--body);
    overflow-wrap: anywhere;
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; border-radius: 4px; }

h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); }
h3 { font-size: 1.1rem; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }

.wrap { max-width: 70rem; margin: 0 auto; padding: 0 1rem; }

.skip-link {
    position: absolute; left: 1rem; top: -4rem;
    background: var(--link); color: var(--on-link);
    padding: 0.75rem 1rem; border-radius: 999px; z-index: 10;
}
.skip-link:focus { top: 1rem; }

/* Header */
.topbar { border-bottom: 4px solid var(--lead); }
.topbar .wrap {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 0.5rem 1.5rem; padding-block: 0.5rem;
}
.brand {
    display: flex; align-items: center; gap: 0.6rem; min-height: 48px;
    color: var(--ink); text-decoration: none;
}
.brand img { border-radius: 10px; }
.wordmark { font-family: var(--display); font-size: 1.3rem; line-height: 1.1; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0 0.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a {
    display: inline-flex; align-items: center; min-height: 48px; padding: 0 0.75rem;
    color: var(--ink); font-weight: 600; text-decoration: none; border-radius: 999px;
}
.site-nav a:hover { background: var(--chip); color: var(--on-chip); }

/* Sections */
main { display: block; }
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--outline); }
.lede, .sub { font-size: 1.15rem; color: var(--muted); max-width: 40rem; }
.answer { font-size: 1.1rem; max-width: 42rem; }
.detail, .prose p, .prose ul { max-width: 42rem; }

/* Hero */
.hero { padding: 2rem 0 2.5rem; }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1fr 22rem; } }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; margin-top: 1.5rem; }
.cta-note { margin: 0; color: var(--muted); font-weight: 600; }
.play-badge { display: inline-block; min-height: 48px; border-radius: 8px; }
.play-badge img { width: 188px; height: 56px; }

/* Store shots carry their own device frame: a 1 px outline only, no second frame */
.phone {
    border: 1px solid var(--outline);
    border-radius: 6px;
}
.hero-shot { display: block; max-width: 22rem; margin: 0 auto; }

/* Decorative stained-glass band: ten jewel panes between lead lines */
.glass {
    display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px;
    background: var(--lead); border: 4px solid var(--lead); border-radius: 6px;
    height: 1.5rem; margin: 0 0 1.5rem; max-width: 22rem;
}
.glass span:nth-child(1) { background: var(--ruby); }
.glass span:nth-child(2) { background: var(--amber); }
.glass span:nth-child(3) { background: var(--peridot); }
.glass span:nth-child(4) { background: var(--emerald); }
.glass span:nth-child(5) { background: var(--turquoise); }
.glass span:nth-child(6) { background: var(--lapis); }
.glass span:nth-child(7) { background: var(--sapphire); }
.glass span:nth-child(8) { background: var(--amethyst); }
.glass span:nth-child(9) { background: var(--lilac); }
.glass span:nth-child(10) { background: var(--rose); }

/* Cards */
.cards { display: grid; gap: 1rem; list-style: none; margin: 1.25rem 0 0; padding: 0; }
@media (min-width: 48rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); color: var(--ink); border-radius: 12px; padding: 1.25rem; }
.card p:last-child { margin: 0; }
.entity { background: var(--card); color: var(--ink); border-radius: 12px; padding: 1.25rem; max-width: 48rem; }
.entity p { margin: 0; }

.split { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 48rem) { .split { grid-template-columns: 1fr 15rem; } }
.split > * { min-width: 0; }
.split img { max-width: min(15rem, 100%); }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; list-style: none; margin: 0; padding: 0; }
@media (min-width: 48rem) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.shot { margin: 0; }
.shot figcaption { font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }

/* Question links */
.qlinks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.qlinks a {
    display: flex; align-items: center; min-height: 48px; padding: 0.5rem 1rem;
    background: var(--chip); color: var(--on-chip); border-radius: 999px;
    font-weight: 600; text-decoration: none;
}
.qlinks a:hover { text-decoration: underline; }
.toc { margin-bottom: 1rem; }

/* Breadcrumb */
.crumbs ol { display: flex; flex-wrap: wrap; list-style: none; margin: 0 0 1rem; padding: 0; color: var(--muted); font-size: 0.95rem; }
.crumbs li + li::before { content: "›"; padding: 0 0.5rem; }
.crumbs a { display: inline-block; padding: 0.75rem 0; }

/* Tables: stack into cards at 600 px and below */
table { border-collapse: collapse; width: 100%; max-width: 48rem; margin: 1rem 0 1.5rem; }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--outline); }
thead th { border-bottom: 3px solid var(--lead); }
caption { display: block; text-align: left; caption-side: bottom; color: var(--muted); font-size: 0.95rem; padding-top: 0.5rem; }
@media (prefers-color-scheme: dark) { thead th { border-bottom-color: var(--outline); } }
@media (max-width: 37.5rem) {
    thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    tr { display: block; background: var(--card); color: var(--ink); border-radius: 12px; padding: 0.5rem 0.75rem; margin-bottom: 0.75rem; }
    td { display: block; border: 0; padding: 0.25rem 0; }
    td::before { content: attr(data-label) ": "; font-weight: 700; }
}

.limits { max-width: 46rem; padding-left: 1.25rem; }
.limits li { margin-bottom: 0.75rem; }

.faq section { padding: 1.5rem 0; border-top: 1px solid var(--outline); }

/* Closing band */
.band {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    background: var(--card); color: var(--ink); border-radius: 12px; padding: 1.5rem;
}
.band h2 { margin: 0; }

/* Footer */
.footer { border-top: 4px solid var(--lead); padding: 2rem 0; margin-top: 1rem; font-size: 0.95rem; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; list-style: none; margin: 1rem 0; padding: 0; gap: 0 1rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 48px; }
.fine { color: var(--muted); }
.fine p { margin: 0 0 0.5rem; }
