@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;0,900;1,700&display=swap');

:root {
    --paper: #f6efd9;
    --ink: #292e35;
    --red: #c84132;
    --yellow: #eebf65;
    --blue: #3e8299;
    --line: #292e3540
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif
}

button,
a {
    -webkit-tap-highlight-color: transparent
}

button {
    font: inherit;
    cursor: pointer
}

a {
    color: inherit;
    text-decoration: none
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px
}

::selection {
    background: var(--yellow);
    color: var(--ink)
}

.concept-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: var(--ink);
    color: var(--paper);
    padding: 10px 4%;
    font-size: 10px;
    letter-spacing: 1.4px
}

.concept-bar>div {
    display: flex;
    gap: 5px
}

.concept-bar button {
    color: inherit;
    background: none;
    border: 1px solid #ffffff35;
    padding: 9px 15px;
    font-size: 11px
}

.concept-bar button[aria-pressed=true] {
    background: var(--paper);
    color: var(--ink)
}

#motion {
    font-size: 16px;
    padding: 5px 12px
}

header {
    height: 95px;
    margin: 0 5%;
    border-bottom: 1px solid var(--ink);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

.brand {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-weight: 900;
    font-size: 27px;
    line-height: .8;
    display: flex;
    flex-direction: column;
    align-items: center
}

.brand em {
    font-family: Georgia, serif;
    color: var(--red);
    font-size: 20px;
    transform: rotate(-7deg);
    margin-top: 6px
}

.header-note,
.menu-link {
    font-size: 11px;
    letter-spacing: 1px;
    font-weight: 700
}

.menu-link span {
    font-size: 22px;
    margin-left: 22px
}

.hero {
    position: relative;
    padding: 24px 5% 20px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    min-height: 660px
}

.hero-top,
.hero-bottom {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 1.5px
}

.hero-copy {
    padding: 55px 0 55px;
    z-index: 2
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 700;
    margin: 0 0 18px
}

h1,
h2,
h3,
p {
    margin-top: 0
}

h1 {
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: clamp(64px, 8.1vw, 132px);
    font-weight: 900;
    line-height: .87;
    letter-spacing: -2px;
    margin-bottom: 27px
}

h1 span {
    color: var(--red)
}

.intro {
    font-size: 14px;
    line-height: 1.8
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 45px;
    background: var(--red);
    color: var(--paper);
    padding: 18px 22px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform .2s
}

.cta:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--ink)
}

.cta span {
    font-size: 20px
}

.hero-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0
}

.sunburst {
    width: 85%;
    aspect-ratio: 1;
    position: absolute;
    background: var(--yellow);
    clip-path: polygon(50% 0%, 57% 13%, 69% 4%, 71% 19%, 86% 14%, 83% 30%, 98% 31%, 90% 44%, 100% 54%, 85% 60%, 91% 76%, 76% 76%, 74% 94%, 60% 86%, 50% 100%, 43% 86%, 28% 94%, 26% 78%, 9% 81%, 14% 64%, 0% 56%, 12% 45%, 2% 32%, 18% 29%, 14% 13%, 31% 17%, 34% 2%, 45% 13%);
    animation: rotate 65s linear infinite
}

.mascot {
    width: 94%;
    max-width: 460px;
    z-index: 1;
    animation: bob 3.4s ease-in-out infinite;
    filter: drop-shadow(6px 12px 0 #292e3512)
}

.orbit-label {
    position: absolute;
    right: 0;
    top: 22px;
    transform: rotate(12deg);
    border: 2px solid var(--ink);
    border-radius: 50%;
    padding: 24px 17px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
    background: var(--paper);
    text-align: center
}

.art-caption {
    position: absolute;
    bottom: 20px;
    font-size: 9px;
    letter-spacing: 2px;
    transform: rotate(-5deg)
}

.little-star {
    position: absolute;
    left: 3%;
    bottom: 45px;
    font-size: 55px;
    color: var(--red);
    animation: rotate 15s linear infinite
}

.hero-bottom {
    align-self: end
}

.ticker {
    background: var(--red);
    color: var(--paper);
    padding: 15px 0;
    overflow: hidden;
    border-block: 2px solid var(--ink);
    transform: rotate(-1.2deg);
    width: 100%;
    font-family: 'Barlow Condensed', Impact, sans-serif;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 2px
}

.ticker>div {
    width: max-content;
    animation: marquee 28s linear infinite;
    white-space: pre
}

.menu-section {
    padding: 85px 5% 80px
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 30px
}

.section-heading h2 {
    font: 800 clamp(44px, 6vw, 78px)/.95 'Barlow Condensed', Impact, sans-serif;
    letter-spacing: -1px;
    margin: 0
}

.section-heading h2 em {
    font-style: normal;
    color: var(--red)
}

.section-heading>p {
    font-size: 13px;
    line-height: 1.6;
    margin: 0
}

.categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 5px 3px 18px;
    scrollbar-width: thin;
    margin-bottom: 20px
}

.categories button {
    flex-shrink: 0;
    border: 1px solid var(--ink);
    background: none;
    padding: 12px 16px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 2px
}

.categories button span {
    margin-left: 15px
}

.categories button[aria-pressed=true] {
    background: var(--ink);
    color: var(--paper)
}

.menu-layout {
    display: grid;
    grid-template-columns: .8fr 1.5fr;
    gap: 50px
}

.category-poster {
    background: var(--blue);
    color: var(--paper);
    padding: 30px;
    display: flex;
    flex-direction: column;
    min-height: 510px;
    position: relative;
    border: 2px solid var(--ink);
    box-shadow: 6px 6px 0 var(--ink);
    overflow: hidden
}

.poster-kicker,
.poster-bottom {
    font-size: 9px;
    letter-spacing: 2px
}

.category-poster h3 {
    font: 800 clamp(45px, 5vw, 70px)/.95 'Barlow Condensed', Impact, sans-serif;
    margin: 30px 0 5px;
    z-index: 1
}

.poster-star {
    font-size: 135px;
    line-height: 1.3;
    color: var(--yellow);
    align-self: center;
    animation: rotate 28s linear infinite
}

.category-poster p {
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-line;
    max-width: 280px
}

.poster-bottom {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #ffffff70
}

.menu-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    letter-spacing: 1.4px;
    border-bottom: 2px solid var(--ink);
    padding: 8px 0 17px
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 21px 0;
    border-bottom: 1px solid var(--line);
    animation: appear .45s both;
    animation-delay: calc(var(--i)*35ms)
}

.item-number {
    font-size: 9px;
    color: var(--red)
}

.menu-item>div {
    flex: 1
}

.menu-item h3 {
    font-size: 18px;
    margin: 0;
    font-weight: 600
}

.menu-item p {
    font-size: 12px;
    line-height: 1.5;
    margin: 6px 0 0
}

.menu-item strong {
    font-size: 17px;
    white-space: nowrap
}

.menu-footnote {
    font-size: 11px;
    line-height: 1.7;
    margin-top: 20px;
    opacity: .7
}

.closing {
    background: var(--yellow);
    border-block: 2px solid var(--ink);
    padding: 65px 5%;
    text-align: center
}

.closing>span {
    font-size: 10px;
    letter-spacing: 2px
}

.closing h2 {
    font: 800 clamp(32px, 4.6vw, 65px)/1.05 'Barlow Condensed', Impact, sans-serif;
    margin: 25px 0
}

.closing h2 em {
    color: var(--red);
    font-style: normal
}

.closing a {
    display: inline-block;
    font-size: 10px;
    letter-spacing: 1px;
    border-bottom: 1px solid;
    padding: 10px
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 5%;
    gap: 20px
}

footer p,
footer>span {
    font-size: 10px;
    margin: 0
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s, transform .7s
}

.reveal.visible {
    opacity: 1;
    transform: none
}

.wave {
    transform-origin: 355px 188px;
    animation: wave 2s ease-in-out infinite
}

.paused * {
    animation-play-state: paused !important;
    scroll-behavior: auto !important
}

.paused .reveal {
    opacity: 1;
    transform: none
}

@keyframes bob {
    50% {
        transform: translateY(-12px) rotate(3deg)
    }
}

@keyframes rotate {
    to {
        transform: rotate(360deg)
    }
}

@keyframes wave {
    50% {
        transform: rotate(12deg)
    }
}

@keyframes marquee {
    to {
        transform: translateX(-50%)
    }
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(10px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) {
    --paper: #e7ee68;
    --ink: #242e26;
    --red: #a839ed;
    --yellow: #ec83bd;
    --blue: #242e26
}

.movida {
    display: block
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero {
    background: var(--ink);
    color: var(--paper);
    grid-template-columns: 1.2fr 1fr
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) h1 {
    font-style: italic;
    font-size: clamp(68px, 9vw, 138px);
    transform: rotate(-3deg)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) h1 span {
    color: var(--yellow)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .orbit-label {
    color: var(--ink);
    border-radius: 0;
    transform: rotate(15deg)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .sunburst {
    background: var(--red);
    animation-duration: 22s
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero-art {
    background-image: linear-gradient(45deg, #e7ee6810 25%, transparent 25%, transparent 75%, #e7ee6810 75%), linear-gradient(45deg, #e7ee6810 25%, transparent 25%, transparent 75%, #e7ee6810 75%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    border-radius: 50%
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .mascot {
    animation: bob 1.5s ease-in-out infinite
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .menu-layout {
    grid-template-columns: 1fr
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster {
    min-height: 180px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    transform: rotate(-1deg)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster h3 {
    margin: 10px 0;
    font-size: 65px
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .poster-star {
    position: absolute;
    right: 10%;
    top: 0;
    font-size: 180px
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster p {
    align-self: end;
    z-index: 1
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .poster-bottom {
    display: none
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) #items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 35px
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .closing {
    background: var(--red);
    color: var(--paper)
}

body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .closing h2 em {
    color: var(--paper)
}

@media(min-width:1500px) {

    header,
    main,
    footer {
        max-width: 1500px;
        margin-inline: auto
    }

    header {
        padding-inline: 5%
    }
}

@media(max-width:760px) {
    .concept-bar {
        padding: 9px 12px;
        gap: 6px;
        position: sticky;
        top: 0;
        z-index: 10
    }

    .concept-label {
        display: none
    }

    .concept-bar>div {
        flex: 1
    }

    .concept-bar button {
        padding: 10px 9px;
        font-size: 10px;
        letter-spacing: 0
    }

    .concept-bar>div button {
        flex: 1
    }

    header {
        height: 78px
    }

    .brand {
        font-size: 23px
    }

    .brand em {
        font-size: 18px
    }

    .header-note {
        display: none
    }

    .menu-link {
        font-size: 10px
    }

    .menu-link span {
        margin-left: 8px
    }

    .hero {
        padding-top: 17px;
        grid-template-columns: 1fr;
        min-height: 0
    }

    .hero-top {
        font-size: 7px;
        letter-spacing: .6px
    }

    .hero-copy {
        padding: 36px 0 12px
    }

    .eyebrow {
        font-size: 9px;
        letter-spacing: 1.4px;
        margin-bottom: 17px
    }

    h1 {
        font-size: clamp(60px, 13vw, 98px);
        letter-spacing: -1.4px;
        margin-bottom: 20px
    }

    .intro {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 20px
    }

    .cta {
        padding: 13px 17px;
        font-size: 10px;
        gap: 35px
    }

    .hero-art {
        height: 305px;
        width: 100%;
        max-width: 370px;
        justify-self: center;
        margin-top: 4px
    }

    .sunburst {
        width: 73%
    }

    .mascot {
        width: 83%;
        max-height: 310px
    }

    .orbit-label {
        font-size: 9px;
        padding: 19px 12px;
        top: 15px;
        right: 1%
    }

    .little-star {
        font-size: 40px;
        bottom: 20px
    }

    .art-caption {
        font-size: 7px;
        bottom: 6px
    }

    .hero-bottom {
        font-size: 7px;
        letter-spacing: .6px;
        margin-top: 20px
    }

    .ticker {
        font-size: 21px;
        padding: 11px 0
    }

    .menu-section {
        padding: 48px 5%
    }

    .section-heading {
        display: block;
        margin-bottom: 22px
    }

    .section-heading h2 {
        font-size: 49px
    }

    .section-heading>p {
        display: none
    }

    .categories {
        position: sticky;
        top: 61px;
        background: var(--paper);
        z-index: 5;
        margin-inline: -5.6%;
        padding: 12px 5.6%;
        margin-bottom: 20px;
        border-bottom: 1px solid var(--line)
    }

    .categories button {
        font-size: 11px;
        padding: 11px 13px;
        min-height: 42px
    }

    .menu-layout {
        grid-template-columns: 1fr;
        gap: 27px
    }

    .category-poster {
        min-height: 195px;
        padding: 23px;
        box-shadow: 4px 4px 0 var(--ink)
    }

    .category-poster h3 {
        font-size: 42px;
        margin: 17px 0 12px
    }

    .category-poster p {
        font-size: 11px;
        max-width: 70%;
        margin: 0;
        z-index: 1
    }

    .poster-star {
        position: absolute;
        right: 15px;
        top: 45px;
        font-size: 110px
    }

    .poster-bottom {
        display: none
    }

    .poster-kicker {
        font-size: 8px
    }

    .menu-item {
        padding: 19px 0;
        gap: 12px
    }

    .menu-item h3 {
        font-size: 16px
    }

    .menu-item strong {
        font-size: 15px
    }

    .menu-meta {
        font-size: 8px
    }

    .closing {
        padding: 43px 5%
    }

    .closing h2 {
        font-size: 35px
    }

    footer {
        flex-wrap: wrap;
        padding: 30px 5%
    }

    footer>span {
        width: 100%;
        text-align: center;
        padding-top: 15px;
        border-top: 1px solid var(--line);
        font-size: 8px
    }

    footer p {
        font-size: 9px
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .hero {
        grid-template-columns: 1fr
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) h1 {
        font-size: clamp(67px, 15vw, 106px)
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) #items {
        grid-template-columns: 1fr
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster {
        display: flex;
        min-height: 210px
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster h3 {
        font-size: 48px
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .category-poster p {
        align-self: start
    }

    body:is([data-theme=movida], [data-theme=cantina], [data-theme=roja]) .poster-star {
        right: 0;
        top: 25px;
        font-size: 145px
    }
}

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important
    }

    .reveal {
        opacity: 1;
        transform: none
    }
}

/* Proposal 03 shares proposal 02's composition, with a separate palette. */
body[data-theme=cantina] {
    --paper: #91e3cd;
    --ink: #183138;
    --red: #ff856f;
    --yellow: #f5d77d;
    --blue: #183138
}

body[data-theme=cantina] .cta,
body[data-theme=cantina] .ticker,
body[data-theme=cantina] .closing,
body[data-theme=cantina] .theme-wipe {
    color: var(--ink)
}

body[data-theme=cantina] .closing h2 em {
    color: var(--ink)
}

body[data-theme=cantina] .section-heading h2 em,
body[data-theme=cantina] .item-number,
body[data-theme=cantina] footer .brand em {
    color: #943c31
}

/* Proposal 05: the same kinetic layout in red, cream and burgundy. */
body[data-theme=roja] {
    --paper: #fff0d1;
    --ink: #45121e;
    --red: #cb2939;
    --yellow: #f5bd61;
    --blue: #91e3cd
}

body[data-theme=roja] .hero-art {
    background-image: linear-gradient(45deg, #fff0d110 25%, transparent 25%, transparent 75%, #fff0d110 75%), linear-gradient(45deg, #fff0d110 25%, transparent 25%, transparent 75%, #fff0d110 75%)
}