@font-face {
    font-family: Authentic;
    src: url("/fonts/Authentic%20Signature.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-Thin.ttf") format("truetype");
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-ThinItalic.ttf") format("truetype");
    font-weight: 100;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-Light.ttf") format("truetype");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-LightItalic.ttf") format("truetype");
    font-weight: 300;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-SemiBold.ttf") format("truetype");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-SemiBoldItalic.ttf") format("truetype");
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-Heavy.ttf") format("truetype");
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Torus Pro";
    src: url("/fonts/TorusPro-HeavyItalic.ttf") format("truetype");
    font-weight: 800;
    font-style: italic;
    font-display: swap;
}

:root {
    --navy: #112439;
    --ink: #161f34;
    --gold: #ae8b55;
    --text: #112943;
    --screen: 402px;
    --fit: min(1, 100dvw / 402px);
    --font-poppins: "Poppins", sans-serif;
    --font-script: Authentic, cursive;
    --font-torus: "Torus Pro", var(--font-poppins), "Poppins", sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: #070b12;
    color: white;
    font-family: var(--font-poppins), "Poppins", sans-serif;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

a { color: inherit; }

.screen {
    width: var(--screen);
    min-height: calc(100dvh / var(--fit));
    margin: 0 auto;
    position: relative;
    background: var(--navy);
    zoom: var(--fit);
}

.bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.layer { position: relative; z-index: 1; }

.logo {
    display: block;
    width: 168px;
    height: auto;
    margin: 18px auto 0;
}

.script {
    font-family: var(--font-script);
    font-weight: 400;
    letter-spacing: -1px;
}

.rule {
    display: block;
    width: 43px;
    height: 1px;
    background: var(--gold);
}

.pill {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 149px;
    height: 37px;
    padding: 0 18px 2px;
    border: 0;
    border-radius: 18px;
    background: var(--ink);
    color: white;
    font-family: var(--font-poppins), "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: -0.15px;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}

.pill-label {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.pill .mark {
    width: 29px;
    height: 5px;
    margin-top: 2px;
}

.welcome {
    display: flex;
    flex-direction: column;
    container-type: inline-size;
    min-height: calc(100dvh / var(--fit));
    overflow: hidden;
}

.welcome .welcome-photo {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.welcome .welcome-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.welcome .calligraphy-frame {
    position: absolute;
    left: calc(100cqi * 185 / 402);
    top: calc(100cqi * -245 / 402);
    width: calc(100cqi * 602 / 402);
    height: calc(100cqi * 974 / 402);
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.welcome .calligraphy-frame img {
    position: absolute;
    left: 0;
    top: 9.79%;
    width: 100%;
    height: 88.32%;
    max-width: none;
}

.welcome .copy {
    position: relative;
    z-index: 2;
    padding: 0 42px;
}

.welcome .copy { margin-top: 160px; }

.welcome h1 {
    margin: 0;
    color: var(--text);
    font-size: 40px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.4px;
    text-transform: uppercase;
}

.welcome .script {
    margin: 18px 0 0;
    color: #AE8B55;
    font-family: Authentic, cursive;
    font-size: 49px;
    font-style: normal;
    font-weight: 400;
    line-height: 49px;
    letter-spacing: -0.49px;
    text-transform: capitalize;
}

.welcome .rule { margin-top: 14px; }

.welcome .actions {
    position: relative;
    z-index: 2;
    margin-top: auto;
    padding: 0 0 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.nav {
    position: sticky;
    top: 0;
    z-index: 5;
    height: 82px;
    background: var(--navy);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 22px 14px;
}

.nav a {
    width: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--gold);
    text-decoration: none;
    font-size: 10px;
    line-height: 1;
    opacity: 0.45;
}

.nav img { height: 18px; width: auto; }
.nav a.is-active { opacity: 1; }

.nav .badge {
    position: absolute;
    margin-left: 16px;
    margin-top: -8px;
    min-width: 14px;
    height: 14px;
    border-radius: 99px;
    background: white;
    color: var(--ink);
    font-size: 9px;
    display: grid;
    place-items: center;
}

.nav .icon-wrap { position: relative; height: 18px; display: grid; place-items: center; }

.menu-home, .list, .detail, .plain {
    min-height: calc(100dvh / var(--fit));
}

.menu-home { text-align: center; padding-bottom: 48px; }

.menu-home .script.title {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 22px;
    margin: 10px 0 0;
    color: var(--gold);
    font-size: 50px;
    line-height: 48px;
    letter-spacing: -1px;
}

.categories {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 52px;
    margin-top: 88px;
}

.category-link {
    position: relative;
    display: block;
    margin: 0;
    color: white;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-script);
    font-size: 50px;
    line-height: 48px;
    letter-spacing: -1px;
}

.category-link.is-boissons-gourmandises {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 45px;
    line-height: 38px;
}

.category-link.is-plats,
.category-link.is-desserts {
    font-size: 56px;
    line-height: 48px;
}

.category-link .chevron {
    position: absolute;
    left: calc(100% + 28px);
    top: 50%;
    width: 10px;
    height: 14px;
    transform: translateY(-50%);
}

.sheet-head {
    background: var(--ink);
    padding: 22px 40px 16px;
}

.sheet-head .back-btn {
    position: static;
    margin: 0 0 12px;
}

.sheet-head h1 {
    margin: 0;
    font-size: 25px;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.zigzag {
    display: block;
    width: 72px;
    height: 16px;
    margin-top: 2px;
    background: url("/assets/logo-light.png") center bottom / 150px auto no-repeat;
}

.groups { padding: 18px 28px 48px; }

.group { margin-bottom: 28px; }

.group h2 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 400;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.dish-row {
    display: grid;
    grid-template-columns: 1fr auto 14px;
    gap: 12px;
    align-items: center;
    padding: 5px 0;
    color: white;
    text-decoration: none;
    font-family: var(--font-torus);
    font-weight: 300;
    font-size: 18px;
    letter-spacing: -1px;
    text-transform: capitalize;
}

.dish-row .price {
    font-weight: 400;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.dish-row .chevron { width: 10px; height: 14px; }

.empty {
    padding: 48px 32px;
    text-align: center;
    font-family: var(--font-script);
    font-size: 42px;
}

.hero {
    position: relative;
    height: min(72dvh, 657px);
    background: #1b140f;
    overflow: hidden;
}

.hero img.photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.back-btn {
    position: absolute;
    top: 22px;
    left: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    text-decoration: none;
    font-family: var(--font-poppins), "Poppins", sans-serif;
    font-size: 14px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.back-btn img {
    width: 8px;
    height: 12px;
    transform: rotate(180deg);
}

.menu-btn {
    position: absolute;
    top: 28px;
    right: 22px;
    width: 38px;
    height: 16px;
}

.dots {
    position: absolute;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dots button {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    border: 1px solid #b3b0b0;
    background: transparent;
}

.dots button.is-on {
    background: white;
    border-color: var(--ink);
}

.detail-body {
    padding: 28px 24px 40px;
}

.detail-body h1, .detail-body .price {
    margin: 0;
    text-align: left;
    font-family: var(--font-torus);
    font-weight: 400;
    font-size: 30px;
    letter-spacing: -1px;
    line-height: 36px;
    text-transform: capitalize;
}

.detail-body .price { margin-top: 4px; text-transform: uppercase; }

.detail-body .rule { margin: 28px 6px 22px; }

.detail-body p {
    margin: 0;
    font-family: var(--font-torus);
    font-weight: 400;
    font-size: 12px;
    letter-spacing: -1px;
    line-height: 15px;
    text-align: left;
}

.detail-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

.detail-actions .pill {
    flex: 0 0 auto;
    min-width: 200px;
    height: 44px;
    padding: 0 12px;
    font-size: 13px;
    letter-spacing: 0;
}

.cart-notice {
    margin: 14px 0 0;
    color: var(--gold);
    font-family: var(--font-poppins), "Poppins", sans-serif;
    font-size: 13px;
    letter-spacing: 0.4px;
    text-align: center;
    text-transform: uppercase;
}

.ghost {
    background: transparent;
    color: white;
    border: 1px solid rgba(255,255,255,.35);
}

.search-form {
    display: flex;
    gap: 8px;
    padding: 16px 20px 0;
}

.search-form input {
    flex: 1;
    height: 40px;
    border: 0;
    border-radius: 20px;
    padding: 0 16px;
    font-family: var(--font-poppins), "Poppins", sans-serif;
    font-size: 15px;
}

.search-form button {
    height: 40px;
    border: 0;
    border-radius: 20px;
    padding: 0 16px;
    background: var(--gold);
    color: var(--ink);
    font-family: var(--font-poppins), "Poppins", sans-serif;
}

.cart-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
}

.cart-line form { margin: 0; }

.total {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
    font-size: 20px;
}

.remove {
    background: transparent;
    border: 0;
    color: var(--gold);
    font-family: var(--font-poppins), "Poppins", sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
}

#nprogress .bar {
    background: var(--gold) !important;
}
