/* ============================================================================
   Page structure for the Lion's Bites site, on top of design-system.css.
   Only layout that the design system does not ship lives here; every colour,
   space and size comes from a --lb-* token.
   ========================================================================== */

.skip-link {
    position: absolute;
    left: var(--lb-space-4);
    top: -56px;
    z-index: 100;
    background: var(--lb-gold);
    color: var(--lb-gold-ink);
    padding: 10px 16px;
    border-radius: 0 0 var(--lb-r-md) var(--lb-r-md);
    text-decoration: none;
    transition: top var(--lb-ease);
}

.skip-link:focus {
    top: 0;
}

/* --- sticky bar around the design-system header --- */
.site-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 20, 16, .86);
    backdrop-filter: saturate(150%) blur(10px);
    border-bottom: 1px solid var(--lb-ink-600);
}

/* --- breadcrumb --- */
.breadcrumb {
    padding-top: var(--lb-space-6);
    font-size: var(--lb-fs-xs);
    letter-spacing: var(--lb-tracking-wide);
    color: var(--lb-faint);
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: var(--lb-space-2);
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb a {
    color: var(--lb-faint);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--lb-gold-bright);
}

.breadcrumb li + li::before {
    content: "/";
    margin-right: var(--lb-space-2);
    color: var(--lb-ink-500);
}

/* --- hero --- */
.hero {
    padding-block: var(--lb-space-9) var(--lb-space-8);
}

.hero__inner {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: var(--lb-space-8);
    align-items: center;
}

.hero__copy h1 {
    margin-bottom: var(--lb-space-5);
}

.hero__media {
    position: relative;
}

/* --- page head for the inner pages --- */
.page-head {
    padding-block: var(--lb-space-7) var(--lb-space-6);
}

.page-head__inner {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: var(--lb-space-7);
    align-items: center;
}

/* --- framed photograph: gold hairline just inside the edge --- */
.photo {
    position: relative;
    display: block;
    border-radius: var(--lb-r-lg);
    overflow: hidden;
    box-shadow: var(--lb-shadow-lg);
}

.photo img {
    display: block;
    width: 100%;
    height: auto;
}

.photo::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(200, 144, 67, .38);
    border-radius: var(--lb-r-md);
    pointer-events: none;
}

.photo--tall img {
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.photo--wide img {
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* --- cut-out: a silhouette, not a framed photograph --- */
/* Must come after --tall and --wide, which set the crop this variant undoes.
   For a transparent PNG the box, the gold hairline and the aspect-ratio crop all
   have to go, because they would draw a rectangle around a shape that is meant to
   float on the page. drop-shadow follows the alpha instead of the element box, so
   the object still lifts off the background without a visible edge. */
.photo--cutout {
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
}

.photo--cutout::after {
    content: none;
}

/* Sized by height, not width. A bottle is roughly 1:3, so letting it fill the
   column would make it tower over the copy beside it. */
.photo--cutout img {
    aspect-ratio: auto;
    width: auto;
    max-width: 100%;
    max-height: var(--lb-cutout-h, 20rem);
    margin-inline: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .55));
}

/* Fixed height rungs, the same idea as the lb-ill-* illustration steps: three
   choices instead of a per-page number, so two cut-outs on different pages stay
   comparable in size. Default is the smallest, --lg is for a page head. */
.photo--cutout-md {
    --lb-cutout-h: 27rem;
}

.photo--cutout-lg {
    --lb-cutout-h: 34rem;
}

/* A dark subject on a dark page needs the opposite of a drop shadow. The olive-oil
   bottle is bottle-green glass on pine green: measured against the page colour, its
   neck and the bare glass below the label sit at or under the background's own
   luminance, so it reads as a hole instead of an object. The gold halo follows the
   alpha, not the element box, so it hugs the silhouette rather than smudging a
   rectangle behind it. Opt-in: the limoncello bottle is bright and needs none. */
.photo--cutout-lift img {
    filter:
        drop-shadow(0 0 14px rgba(var(--lb-gold-rgb), .3))
        drop-shadow(0 18px 30px rgba(0, 0, 0, .5));
}

.photo__caption {
    margin: var(--lb-space-3) 0 0;
    font-family: var(--lb-font-voice);
    font-style: italic;
    font-size: var(--lb-fs-sm);
    color: var(--lb-faint);
    text-align: center;
}

/* --- highlight cards on the home page --- */
.highlight {
    display: flex;
    flex-direction: column;
    gap: var(--lb-space-4);
}

.highlight__art {
    display: grid;
    place-items: center;
    min-height: 128px;
    background: var(--lb-ink-800);
    border-bottom: 1px solid var(--lb-ink-600);
    padding: var(--lb-space-5);
}

.highlight__body {
    display: flex;
    flex-direction: column;
    gap: var(--lb-space-3);
    padding: var(--lb-space-5) var(--lb-space-6) var(--lb-space-6);
}

.highlight__body p {
    margin: 0;
    flex: 1;
}

/* --- story pages --- */
.story__body {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: var(--lb-space-8);
    align-items: start;
}

.story__aside {
    position: sticky;
    top: 104px;
    display: grid;
    gap: var(--lb-space-5);
    justify-items: center;
}

/* --- menu (breads and dips) --- */
.menu-item {
    display: grid;
    gap: var(--lb-space-2);
    padding-block: var(--lb-space-4);
    border-bottom: 1px solid var(--lb-ink-600);
}

.menu-item:last-child {
    border-bottom: 0;
}

.menu-item__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: var(--lb-space-3);
}

.menu-item__name {
    font-family: var(--lb-font-display);
    font-size: var(--lb-fs-md);
    color: var(--lb-champagne);
    letter-spacing: 0.03em;
}

.menu-item__price {
    margin-left: auto;
    color: var(--lb-gold-bright);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.menu-item p {
    margin: 0;
    color: var(--lb-muted);
}

/* --- order form --- */
.order-form {
    max-width: 720px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--lb-space-5);
}

.form-row > .lb-field {
    margin-bottom: 0;
}

.form-row + .form-row,
.form-row + .lb-field,
.lb-field + .form-row {
    margin-top: var(--lb-space-5);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: var(--lb-space-2) var(--lb-space-5);
}

/* --- contact --- */
.contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: var(--lb-space-4);
}

.contact-list dt {
    font-family: var(--lb-font-display);
    font-size: var(--lb-fs-xs);
    letter-spacing: var(--lb-tracking-caps);
    text-transform: uppercase;
    color: var(--lb-gold);
    margin-bottom: var(--lb-space-1);
}

.contact-list dd {
    margin: 0;
    color: var(--lb-champagne);
}

/* --- the village band closing a story page --- */
.band {
    display: grid;
    place-items: center;
    padding-block: var(--lb-space-7);
    opacity: .5;
}

/* --- error page --- */
.error-page {
    text-align: center;
    padding-block: var(--lb-space-10);
}

@media (max-width: 900px) {
    .hero__inner,
    .page-head__inner,
    .story__body {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-block: var(--lb-space-7);
    }

    .hero__media,
    .page-head__inner .photo {
        max-width: 460px;
    }

    .story__aside {
        position: static;
        max-width: 420px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}
