/* ==========================================================================
   Purple Mountain Cheesecakes — site styles
   Palette and type are documented in README.md.
   ========================================================================== */

:root {
    --ink: #150618;
    --plum: #2e0b38;
    --plum-lift: #3d1049;
    --violet: #b36bd1;
    --gold: #d8b45a;
    --cream: #f6eee6;
    --mist: #cbb4d2;

    --shell: min(1120px, 100% - 2.5rem);

    --display: "Fraunces", Georgia, "Times New Roman", serif;
    --body: "Karla", "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    background-color: var(--ink);
    background-image: radial-gradient(120% 70% at 50% -10%, rgba(179, 107, 209, .28) 0%, rgba(21, 6, 24, 0) 60%);
    background-repeat: no-repeat;
    color: var(--cream);
    font-family: var(--body);
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--violet);
    text-underline-offset: 3px;
}

a:hover {
    color: var(--gold);
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

h1, h2, h3 {
    font-family: var(--display);
    font-weight: 600;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin: 0 0 .5em;
}

h1 { font-size: clamp(2.15rem, 8.5vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 4vw, 1.4rem); }

p { margin: 0 0 1.1em; }

p:last-child { margin-bottom: 0; }

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.eyebrow {
    font-family: var(--body);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 1rem;
}

.lede {
    font-size: 1.12rem;
    color: var(--mist);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.skip-link {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, -120%);
    background: var(--gold);
    color: var(--ink);
    padding: .7rem 1.2rem;
    font-weight: 700;
    z-index: 100;
}

.skip-link:focus {
    transform: translate(-50%, 0);
    color: var(--ink);
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 48px;
    padding: .7rem 1.5rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    font-family: var(--body);
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.btn-primary {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--ink);
}

.btn-primary:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: var(--ink);
}

.btn-ghost {
    background: transparent;
    color: var(--cream);
    border-color: rgba(246, 238, 230, .35);
}

.btn-ghost:hover {
    color: var(--gold);
    border-color: var(--gold);
}

/* --- Logo lockup -------------------------------------------------------- */

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-mark {
    width: auto;
    height: 58px;
    flex: none;
}

.site-footer .logo-mark {
    height: 78px;
}

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

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(21, 6, 24, .93);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(216, 180, 90, .22);
}

.topbar-inner {
    width: var(--shell);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0 1rem;
    min-height: 76px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: .5rem;
    order: 2;
}

.call-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 44px;
    padding: 0 1rem;
    border: 1px solid var(--gold);
    border-radius: 999px;
    color: var(--gold);
    font-weight: 700;
    font-size: .9rem;
    text-decoration: none;
    white-space: nowrap;
}

.call-link:hover {
    background: var(--gold);
    color: var(--ink);
}

.call-link svg {
    width: 15px;
    height: 15px;
    flex: none;
}

.call-text-short { display: none; }

/* Keep the logo, the call button and the toggle on one line on small phones. */
@media (max-width: 420px) {
    .logo-mark { height: 48px; }

    .call-link {
        padding: 0 .6rem;
        gap: .3rem;
        font-size: .8rem;
    }
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    background: none;
    border: 1px solid rgba(246, 238, 230, .25);
    border-radius: 999px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    height: 1.5px;
    background: var(--cream);
    transition: transform .25s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav {
    display: none;
    order: 3;
    flex: 0 0 100%;
    border-top: 1px solid rgba(246, 238, 230, .12);
}

.nav.is-open { display: block; }

.nav ul {
    margin: 0;
    padding: .5rem 0 1.25rem;
    list-style: none;
}

.nav a {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-family: var(--display);
    font-size: 1.3rem;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    color: var(--cream);
    text-decoration: none;
    border-bottom: 1px solid rgba(246, 238, 230, .08);
}

.nav a[aria-current="page"] {
    color: var(--gold);
}

.nav a[aria-current="page"]::before {
    content: "";
    width: 18px;
    height: 1px;
    background: var(--gold);
    margin-right: .7rem;
}

@media (min-width: 880px) {
    .nav-toggle { display: none; }
    .nav,
    .nav.is-open {
        display: block;
        order: 1;
        flex: 0 1 auto;
        margin-left: auto;
        margin-right: 2rem;
        border: 0;
    }

    .nav ul {
        display: flex;
        gap: 1.9rem;
        padding: 0;
    }

    .nav a {
        min-height: 0;
        font-family: var(--body);
        font-size: .82rem;
        font-weight: 700;
        letter-spacing: .13em;
        text-transform: uppercase;
        border: 0;
        padding: .35rem 0;
        border-bottom: 1px solid transparent;
    }

    .nav a:hover { color: var(--gold); }

    .nav a[aria-current="page"] { border-bottom-color: var(--gold); }

    .nav a[aria-current="page"]::before { display: none; }
}

/* --- Ridge -------------------------------------------------------------- */

.ridge-rule {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 3.25rem 0;
    color: rgba(216, 180, 90, .45);
}

.ridge-rule::before,
.ridge-rule::after {
    content: "";
    flex: 1;
    height: 1px;
    background: currentColor;
}

.ridge-rule svg {
    width: 58px;
    height: 17px;
    flex: none;
    color: var(--gold);
}

/* --- Sections ----------------------------------------------------------- */

.section {
    padding: 3.5rem 0;
}

.section-plum {
    background: var(--plum);
}

.section-head {
    margin-bottom: 2.25rem;
}

.section-head p {
    color: var(--mist);
    margin: 0;
}

/* Spacing between stacked body paragraphs in a section head. */
.section-head p + p {
    margin-top: 1.1rem;
}

.section-head .eyebrow + p,
.section-head h2 + p {
    margin-top: 0;
}

@media (min-width: 880px) {
    .section { padding: 5.5rem 0; }
}

/* --- Page header (inner pages) ------------------------------------------ */

.page-head {
    padding: 2.5rem 0 2.25rem;
    border-bottom: 1px solid rgba(216, 180, 90, .2);
}

.page-head h1 { margin-bottom: .35rem; }

.page-head p {
    color: var(--mist);
    max-width: 54ch;
    margin: 0;
}

@media (min-width: 880px) {
    .page-head { padding: 4.25rem 0 3.25rem; }
}

/* --- Hero --------------------------------------------------------------- */

.hero {
    padding: 2.5rem 0 3rem;
    /* Lift the hero off the page background so it reads as its own band. */
    background:
        radial-gradient(120% 100% at 50% 0%, rgba(179, 107, 209, .16), transparent 70%),
        var(--plum);
    border-bottom: 1px solid rgba(216, 180, 90, .28);
}

.hero-grid {
    display: grid;
    gap: 2.25rem;
}

.hero h1 { margin-bottom: 1.1rem; }

.hero h1 em {
    font-style: italic;
    color: var(--gold);
}

.hero-lede {
    color: var(--mist);
    font-size: 1.1rem;
    max-width: 46ch;
    margin-bottom: 1.9rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
}

.actions-spaced {
    margin-top: 1.75rem;
}

.hero-figure {
    position: relative;
    margin: 0;
    border: 1px solid rgba(216, 180, 90, .3);
    padding: .5rem;
    background: rgba(46, 11, 56, .55);
}

.hero-figure img { width: 100%; }

.hero-figure figcaption {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    background: rgba(21, 6, 24, .85);
    color: var(--cream);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: .45rem .8rem;
}

@media (min-width: 880px) {
    .hero { padding: 4.5rem 0 5rem; }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 4rem;
    }
}

/* --- Chips -------------------------------------------------------------- */

/* --- Card grid ---------------------------------------------------------- */

.cards {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 720px) {
    .cards { grid-template-columns: repeat(3, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--plum);
    border: 1px solid rgba(216, 180, 90, .22);
    text-decoration: none;
    color: var(--cream);
    transition: border-color .2s ease, transform .2s ease;
}

.card:hover {
    border-color: var(--gold);
    color: var(--cream);
    transform: translateY(-3px);
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card-body { padding: 1.25rem 1.25rem 1.5rem; }

.card h3 { margin-bottom: .4rem; }

.card p {
    color: var(--mist);
    font-size: .95rem;
    margin: 0;
}

.card-more {
    display: inline-block;
    margin-top: .9rem;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Prose -------------------------------------------------------------- */

.prose {
    max-width: 66ch;
}

.prose h2 {
    margin-top: 2.5rem;
}

.prose-figure {
    margin: 0 0 2rem;
}

.prose-figure img {
    border: 1px solid rgba(216, 180, 90, .3);
    padding: .4rem;
}

.prose-figure figcaption {
    font-size: .82rem;
    color: var(--mist);
    margin-top: .6rem;
}

@media (min-width: 880px) {
    .prose { max-width: 78ch; }

    .prose-figure {
        float: right;
        width: 42%;
        margin: .4rem 0 1.5rem 2.5rem;
    }
}

/* --- Menu --------------------------------------------------------------- */

.tier {
    margin-bottom: 3.5rem;
}

.tier:last-child { margin-bottom: 0; }

.tier-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid rgba(216, 180, 90, .45);
    margin-bottom: 1.75rem;
}

.tier-head h2 {
    margin: 0;
    font-size: clamp(1.5rem, 5vw, 2.1rem);
}

.tier-price {
    margin-left: auto;
    font-size: .95rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .04em;
    white-space: nowrap;
}

.tier-note {
    flex-basis: 100%;
    color: var(--mist);
    font-size: .9rem;
    margin: 0;
}

.flavors {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

@media (min-width: 780px) {
    .flavors {
        grid-template-columns: 1fr 1fr;
        gap: 1.4rem 3rem;
    }
}

.flavors li {
    padding-bottom: 1.15rem;
    border-bottom: 1px solid rgba(246, 238, 230, .1);
}

.flavor-name {
    display: block;
    font-family: var(--display);
    font-size: 1.12rem;
    font-variation-settings: "SOFT" 40, "WONK" 1;
    color: var(--gold);
}

.flavors p {
    margin: .25rem 0 0;
    font-size: .95rem;
    color: var(--mist);
}

.flavors-plain {
    grid-template-columns: 1fr;
}

.flavors-plain li {
    display: flex;
    align-items: baseline;
    gap: .5rem;
}

.flavors-plain .dots {
    flex: 1;
    border-bottom: 1px dotted rgba(216, 180, 90, .5);
    transform: translateY(-4px);
}

.flavors-plain .price {
    color: var(--cream);
    font-weight: 700;
    white-space: nowrap;
}

/* --- Venues ------------------------------------------------------------- */

.venue-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.venue {
    display: block;
    text-decoration: none;
    color: var(--cream);
    border: 1px solid rgba(246, 238, 230, .16);
    transition: border-color .2s ease, color .2s ease;
}

.venue:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.venue img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.venue span {
    display: block;
    padding: .95rem 1.1rem;
    font-family: var(--display);
    font-size: 1.1rem;
    font-variation-settings: "SOFT" 40, "WONK" 1;
}

/* --- Quotes ------------------------------------------------------------- */

.quotes {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 780px) {
    .quotes { grid-template-columns: 1fr 1fr; }
}

.quote {
    margin: 0;
    padding: 1.75rem;
    background: var(--plum);
    border-left: 2px solid var(--gold);
}

.quote p {
    font-family: var(--display);
    font-size: 1.1rem;
    font-variation-settings: "SOFT" 60, "WONK" 1;
    line-height: 1.5;
}

.quote figcaption {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold);
}

/* --- Gallery ------------------------------------------------------------ */

.gallery-main {
    width: 100%;
    margin-bottom: .6rem;
    border: 1px solid rgba(216, 180, 90, .25);
}

.gallery-main .swiper-slide {
    position: relative;
    background: #0d0310;
}

.gallery-main .swiper-slide img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
}

.gallery-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(21, 6, 24, .92), rgba(21, 6, 24, 0));
    color: var(--cream);
    text-align: center;
    padding: 2rem .75rem .8rem;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.gallery-thumbs { height: 66px; }

.gallery-thumbs .swiper-slide {
    opacity: .45;
    cursor: pointer;
    transition: opacity .2s ease;
}

.gallery-thumbs .swiper-slide-thumb-active {
    opacity: 1;
    outline: 1px solid var(--gold);
    outline-offset: -1px;
}

.gallery-thumbs .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-button-prev,
.swiper-button-next {
    color: var(--gold);
    --swiper-navigation-size: 26px;
}

@media (min-width: 780px) {
    .gallery-thumbs { height: 84px; }
}

/* --- Contact and location ----------------------------------------------- */

.contact-grid {
    display: grid;
    gap: 2.5rem;
}

@media (min-width: 880px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
    }
}

.detail-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.detail-list li {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(246, 238, 230, .12);
}

.detail-list strong {
    display: block;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: .3rem;
}

.detail-list a {
    color: var(--cream);
    text-decoration: none;
    font-size: 1.05rem;
}

.detail-list a:hover { color: var(--gold); }

.map-frame {
    border: 1px solid rgba(216, 180, 90, .3);
    padding: .5rem;
    background: rgba(46, 11, 56, .55);
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 320px;
    border: 0;
}

@media (min-width: 880px) {
    .map-frame iframe { height: 420px; }
}

/* --- Call band ---------------------------------------------------------- */

.call-band {
    text-align: center;
    padding: 3.5rem 0;
}

.call-band h2 { margin-bottom: .6rem; }

.call-band p {
    color: var(--mist);
    max-width: 44ch;
    margin: 0 auto 1.5rem;
}

.call-number {
    display: inline-block;
    font-family: var(--display);
    font-size: clamp(1.9rem, 8vw, 3rem);
    font-variation-settings: "SOFT" 40, "WONK" 1;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: -0.01em;
}

.call-number:hover { color: var(--cream); }

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

.site-footer {
    background: var(--plum);
    padding: 3rem 0 2rem;
    font-size: .93rem;
}

.footer-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 780px) {
    .footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
        gap: 3rem;
    }
}

.footer-grid h2 {
    font-family: var(--body);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 1rem;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-grid li { margin-bottom: .6rem; }

.footer-grid a {
    color: var(--cream);
    text-decoration: none;
}

.footer-grid a:hover { color: var(--gold); }

.footer-tagline {
    color: var(--mist);
    font-family: var(--display);
    font-style: italic;
    font-size: 1.05rem;
    margin: 1rem 0 0;
}

.colophon {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(246, 238, 230, .14);
    color: var(--mist);
    font-size: .8rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.5rem;
    justify-content: space-between;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
