/* Self-hosted Google Fonts (SIL Open Font License), latin characters only */
@font-face{font-family:"Abel";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/abel-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Source Code Pro";font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/source-code-pro-300.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Source Code Pro";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/source-code-pro-300.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:"Source Code Pro";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/source-code-pro-300.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* Lovejoy's Real Ice Cream. Matches the original Squarespace look:
   Source Code Pro body text, Abel headings in grey, pink and white sections.
   Colors meet WCAG 2.2 AA contrast: the heading grey is darker than Squarespace's #808080,
   which was too faint on the pink (2.9:1); #595959 is 5.2:1 on pink and 7:1 on white. */

:root {
    --pink: #F7D4E3;
    --ink: #000;
    --heading: #595959;
    --navy: #253551;
    --accent: #BE185D;
    --white: #fff;
    --body-font: 'Source Code Pro', monospace;
    --heading-font: 'Abel', sans-serif;
    --gutter: 4vw;
}

* { box-sizing: border-box; }

body.site, body {
    margin: 0;
    background: var(--white);
    color: var(--ink);
    font-family: var(--body-font);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.8;
}

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

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.skip-link { position: absolute; left: -999px; top: 0; background: var(--white); padding: 8px 12px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */

/* Computers: logo with social icons and eGift Cards on top, the menu in one spread-out row
   below. Phones and small tablets: logo and a menu button that opens the menu. */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem var(--gutter);
    background: var(--white);
    position: relative;
}
.site-logo img { width: clamp(180px, 20vw, 240px); }
.site-nav { display: flex; }
.site-nav a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 300;
    line-height: 1.5;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
}

@media (min-width: 1001px) {
    .site-header {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas: "logo actions" "nav nav";
        row-gap: 1.2rem;
        padding-bottom: 0;
    }
    .site-logo { grid-area: logo; }
    .header-right { display: contents; }   /* lets the menu and actions sit in the header's grid */
    .header-actions { grid-area: actions; justify-self: end; }
    .site-nav {
        grid-area: nav;
        justify-content: space-between;
        gap: 1rem;
        border-top: 1px solid #e6e6e6;
        padding: .9rem 0;
        font-size: 1.05rem;
    }
}
.site-nav a:hover { opacity: .65; }
.site-nav a.active { border-bottom-color: currentColor; }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.social { color: var(--ink); display: inline-flex; }
.social:hover { opacity: .65; }
.btn-outline {
    display: inline-block;
    border: 2px solid var(--navy);
    color: var(--navy);
    padding: .8em 1.6em;
    font-size: .91rem;
    font-weight: 500;
    letter-spacing: .02em;
    text-decoration: none;
    white-space: nowrap;
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    padding: 10px;
    cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
    display: block; width: 26px; height: 2px; background: var(--ink); margin: 6px 0;
}

@media (max-width: 1000px) {
    .nav-toggle { display: block; }
    .header-right {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: 1rem var(--gutter) 2rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, .08);
    }
    .nav-open .header-right { display: flex; }
    .site-nav { flex-direction: column; align-items: center; gap: .2em; font-size: 1.25rem; margin-bottom: 1rem; }
}

/* ---------- Sections and type ---------- */

.section { padding: 6vw var(--gutter); }
.section.pink { background: var(--pink); }
.section.white { background: var(--white); }
/* Column widths: wide enough to use a computer screen, narrow enough that lines stay
   comfortable to read (about 85 characters). Phones just use the full screen width. */
.narrow { max-width: 820px; margin: 0 auto; }
.medium { max-width: 1100px; margin: 0 auto; }
.center { text-align: center; }

.section h1, .section h2, .section h3, .section h4 {
    font-family: var(--heading-font);
    font-weight: 400;
    color: var(--heading);
    line-height: 1.3;
    margin: 0 0 .6em;
}
/* Pages use h1 then h2 (screen readers expect no skipped levels); most h2s look like
   Squarespace's smaller headings, and .big ones like its larger ones. */
.section h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.section h2 { font-size: clamp(1.35rem, 2.3vw, 1.9rem); }
.section h2.big { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section h3 { font-size: 1.3rem; }
.section .eyebrow { font-family: var(--heading-font); color: var(--heading); font-size: 1.3rem; margin: 0; }
.section p { margin: 0 0 1em; }
.section ul { margin: 0 0 1em; padding-left: 1.2em; }
.section .black { color: var(--ink); }
.section a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.section a.btn, .section a.btn-outline, .section a.cam-card { text-decoration: none; }

/* Keyboard users can always see where they are */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--navy);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.section .lead { font-size: 1.1rem; }

/* The home page photo. Which photo file it uses is set in index.php, so it gets a version tag. */
.hero {
    min-height: 60vh;   /* leaves room for "Scooping today" to peek into view */
    background: #2a2829 center / cover no-repeat;
}
@media (max-width: 800px) {
    /* Phones: shorter, and shifted so the ice cream panini stays in view */
    .hero { min-height: 48vh; background-position: 72% center; }
}

.photo { margin: 1.5rem 0 2rem; }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

.btn {
    display: inline-block;
    background: var(--navy);
    color: var(--white) !important;
    padding: 1em 2.2em;
    font-family: var(--body-font);
    font-weight: 500;
    text-decoration: none;
    letter-spacing: .03em;
    border: 0;
    cursor: pointer;
    font-size: 1rem;
}
.btn:hover { opacity: .85; }

/* Menu */
/* Menu: one card per section, three across on computers, one on phones. Photos are cropped
   to the same shape so the cards line up. */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.75rem;
    margin: 2.5rem 0;
}
.menu-card { background: var(--white); display: flex; flex-direction: column; }
.menu-card picture { display: block; }
.menu-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 30%; }
.menu-body { padding: 1.25rem 1.5rem 1.5rem; }
.section .menu-body h2 { font-size: 1.7rem; margin: 0 0 .5em; }
.section .menu-items { list-style: none; padding: 0; margin: 0; }
.menu-items li { padding: .45em 0; border-top: 1px solid #eee; font-size: 1.05rem; }
.menu-items li:first-child { border-top: 0; padding-top: 0; }
.menu-items li span { display: block; font-size: .9rem; color: var(--heading); }
.section .menu-note { margin: .9em 0 0; color: var(--accent); font-weight: 500; }

/* Ingredient lists */
.ingredients p { margin: 0 0 .4em; }
.ingredients h3 { margin-top: 2em; }

/* ---------- Flavor cams ---------- */

.cam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem 0; }
@media (max-width: 800px) { .cam-grid { grid-template-columns: 1fr; } }
.cam-card {
    display: block;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
    transition: transform .15s ease;
}
.cam-card:hover { transform: translateY(-3px); }
.cam-card img { width: 100%; aspect-ratio: 1290 / 800; object-fit: cover; background: #eee; }
.cam-card span { display: block; padding: .8em 1em; font-family: var(--heading-font); font-size: 1.5rem; color: var(--heading); text-align: center; }

.photo-pair img { width: 100%; }
.cam-photo { border-radius: 12px; overflow: hidden; border: 4px solid var(--white); margin: 1.5rem 0; }
.section .flavor-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1rem 0 1.5rem; padding: 0; list-style: none; }
.flavor-tags li {
    background: var(--white);
    border: 1px solid #e3a6bf;
    border-radius: 8px;
    padding: .35em .8em;
    font-weight: 400;
}
.section.white .flavor-tags li { background: #fdf2f7; }
.flavor-tags li.more { background: none; border-style: dashed; }
.section .muted { color: #555; font-size: .9rem; }

/* ---------- Shop pages ---------- */

.section .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.2rem; }
.status { display: inline-block; padding: .3em .9em; border-radius: 999px; font-weight: 500; background: var(--white); }
.status.is-open { color: #14532d; border: 2px solid #15803d; }
.status.is-closed { color: #7f1d1d; border: 2px solid #b91c1c; }
.location-info { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2.5rem; align-items: start; }
@media (max-width: 800px) { .location-info { grid-template-columns: 1fr; } }
.section ul.plain { list-style: none; padding: 0; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; background: #eee; }

/* ---------- Today's flavors on the home page ---------- */

.today-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.5rem; text-align: left; }
@media (max-width: 900px) { .today-grid { grid-template-columns: 1fr; } }
.today-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 10px 25px rgba(0, 0, 0, .08); display: flex; flex-direction: column; }
.today-card img { width: 100%; aspect-ratio: 1290 / 800; object-fit: cover; background: #eee; }
.today-card .body { padding: 1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.section .today-card h3 { margin: 0; font-size: 1.6rem; }
.section .today-card h3 a { text-decoration: none; }
.today-card .status { align-self: flex-start; font-size: .85rem; }
.section .today-card .flavor-tags { justify-content: flex-start; margin: .2rem 0; font-size: .9rem; }
.today-card .links { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: .95rem; }

/* ---------- Forms ---------- */

.form { display: grid; gap: 1.1rem; text-align: left; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }
.form label { display: block; font-weight: 400; font-size: .95rem; }
.form label small { color: #555; font-weight: 300; }
.form input, .form select, .form textarea {
    width: 100%;
    margin-top: .3em;
    padding: .75em;
    font: inherit;
    border: 1px solid #c9c9c9;
    background: var(--white);
    border-radius: 0;
}
.form textarea { min-height: 160px; resize: vertical; }
.form .hp { position: absolute; left: -5000px; }
.form h2 { margin: 1.2em 0 .2em; }
.form fieldset.choices { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.form fieldset.choices legend { font-weight: 400; font-size: .95rem; margin-bottom: .4em; padding: 0; width: 100%; }
.form label.choice {
    display: flex;
    align-items: center;
    gap: .5em;
    background: var(--white);
    border: 1px solid #c9c9c9;
    padding: .6em .9em;
    cursor: pointer;
}
.form label.choice:has(input:checked) { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.form label.choice input { width: auto; margin: 0; accent-color: var(--navy); }
.form fieldset.times label.choice { min-width: 9.5em; }
.form fieldset.group { border: 1px solid #e3b7c9; padding: .8rem 1rem 1rem; margin: 0; display: grid; gap: .8rem; }
.form fieldset.group legend { font-weight: 400; padding: 0 .3em; }
.form label > strong { font-weight: 500; }
.form label small.note { display: block; margin: .3em 0; }
.notice { padding: 1em 1.2em; margin: 0 0 1.5rem; background: var(--white); border-left: 4px solid var(--navy); }
.notice.error { border-left-color: #b91c1c; }

.check-table { width: 100%; border-collapse: collapse; background: var(--white); font-size: .9rem; }
.check-table th, .check-table td { text-align: left; vertical-align: top; padding: .6em .8em; border-bottom: 1px solid #eee; font-weight: 400; }
.check-table td { word-break: break-word; }

/* ---------- Leaderboard page (its own Tailwind styling sits inside this wrapper) ---------- */

.leaderboard-wrap { background: var(--pink); padding: 6vw var(--gutter) 4rem; font-family: var(--body-font); font-weight: 400; line-height: 1.55; }

/* Make the leaderboard look like the rest of the site: grey Abel headings, Abel flavor names,
   square navy buttons, and a card styled like the shop cards */
.leaderboard-wrap .lb-title { font-family: var(--heading-font); font-weight: 400; color: var(--heading); font-size: clamp(2.2rem, 4.5vw, 3.4rem); text-align: center; margin: 0 0 .2em; line-height: 1.2; }
.leaderboard-wrap .lb-intro { text-align: center; margin: 0 auto 1.8rem; max-width: 820px; }
.leaderboard-wrap .lb-card { border-radius: 12px; box-shadow: 0 10px 25px rgba(0, 0, 0, .08); }
.leaderboard-wrap .lb-shops { text-align: center; margin: 0 0 1.2rem; display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1rem; }
.leaderboard-wrap .lb-shops a { color: var(--ink); text-decoration: underline; text-underline-offset: .15em; }
.leaderboard-wrap strong.text-base { font-family: var(--heading-font); font-weight: 400; font-size: 1.35rem; color: #333; }
.leaderboard-wrap h2, .leaderboard-wrap h3 { font-family: var(--heading-font); font-weight: 400 !important; color: var(--heading); }
.leaderboard-wrap .text-brand-accent { color: #9d174d; }
.leaderboard-wrap .bg-brand-accent { background-color: var(--navy); }
.leaderboard-wrap .hover\:bg-pink-800:hover { background-color: #18233a; }
.leaderboard-wrap .vote-btn, .leaderboard-wrap button.bg-brand-accent { border-radius: 0; font-family: var(--body-font); font-weight: 500; letter-spacing: .03em; }
.leaderboard-wrap .rounded-lg { border-radius: 8px; }
.leaderboard-wrap #globalMessage { background: #fdf2f7; }
@media (max-width: 640px) {
    /* Phones: less padding around the list so flavor names have room */
    .leaderboard-wrap .lb-card { padding: .8rem; }
    .leaderboard-wrap .flavor-item { padding: .6rem; }
    .leaderboard-wrap .flavor-item .w-8 { width: 1.6rem; }
    .leaderboard-wrap .min-w-\[90px\] { min-width: 76px; }
}
/* Darker shades of the leaderboard's small colored labels so they meet WCAG AA contrast (4.5:1) */
.leaderboard-wrap .text-rose-600 { color: #be123c; }
.leaderboard-wrap .text-green-600 { color: #15803d; }
.leaderboard-wrap .text-blue-600 { color: #1d4ed8; }
.leaderboard-wrap .text-red-600 { color: #b91c1c; }
.leaderboard-wrap .text-teal-700 { color: #0f5f59; }
.leaderboard-wrap .text-gray-500 { color: #4b5563; }
.leaderboard-wrap .text-yellow-600 { color: #854d0e; }
.leaderboard-wrap .text-purple-600 { color: #6b21a8; }
.leaderboard-wrap .text-pink-600 { color: #9d174d; }
.leaderboard-wrap .bg-green-600 { background-color: #15803d; }
.leaderboard-wrap .bg-blue-500 { background-color: #1d4ed8; }
.leaderboard-wrap .bg-red-500 { background-color: #b91c1c; }
/* Readable flavor tags (12px, not 10px) and shop links big enough to tap (24px) */
.leaderboard-wrap .text-\[10px\] { font-size: 12px; }
.leaderboard-wrap a.text-xs { display: inline-flex; align-items: center; min-height: 24px; }
/* Checkboxes big enough to see and tap */
.leaderboard-wrap input[type="checkbox"] { width: 1.2rem; height: 1.2rem; flex-shrink: 0; accent-color: #BE185D; }
/* Inputs may shrink on very small phones instead of pushing the page sideways */
.leaderboard-wrap input, .leaderboard-wrap select { min-width: 0; }
/* Hold space for the list and message while they load, so the page doesn't jump */
.leaderboard-wrap #flavorList { min-height: 100vh; }
.leaderboard-wrap #globalMessage:empty { min-height: 4.5em; }

/* ---------- Footer ---------- */

.site-footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 4vw var(--gutter);
    background: var(--white);
    font-size: .95rem;
    line-height: 1.6;
}
.site-footer p { margin: 0 0 1em; }
.site-footer a { color: var(--ink); }
.footer-social { display: flex; gap: 1rem; }

/* "Get Lovejoy's news" sign-up box */
.footer-news { background: var(--pink); padding: 1.2rem 1.4rem; border-radius: 12px; align-self: start; }
.footer-news h2 { font-family: var(--heading-font); font-weight: 400; color: var(--heading); font-size: 1.6rem; margin: 0 0 .3em; }
.footer-news .join-row { display: flex; gap: .5rem; margin-bottom: .6rem; }
.footer-news input[type="email"] { flex: 1; min-width: 0; padding: .7em; font: inherit; border: 1px solid #c9c9c9; background: var(--white); }
.footer-news .btn { padding: .7em 1.4em; }
.footer-news .fine { font-size: .82rem; margin: 0; }
.footer-news .hp { position: absolute; left: -5000px; }
@media (min-width: 1001px) { .site-footer { grid-template-columns: 1fr 1fr 1.2fr; } }
@media (max-width: 700px) { .site-footer { grid-template-columns: 1fr; } }

/* The news checkbox on the Contact and party room forms */
.form label.news-optin { align-items: flex-start; background: #fdf2f7; border-color: #e3a6bf; font-size: .92rem; line-height: 1.5; }
.form label.news-optin input { margin-top: .25em; width: 1.1rem; height: 1.1rem; flex-shrink: 0; }
