/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Sunny Side Diner (fictional business)
    Filename:   styles.css

    Theme: a small-town diner counter. The header is the top of a
    jukebox: a red arch with chrome trim and colored bubble tubes down
    the sides, and the nav links are jukebox selection buttons (A1, A2,
    B1, B2). The hero headline is an order ticket clipped to the
    kitchen's steel ticket rail. The menu is printed on a paper placemat
    with a scalloped edge and an "ad" box for the blue plate special.
    The pie case shows five pies drawn from conic-gradients, each with
    one slice gone. The call-ahead form is a green-lined guest check,
    and the footer is a black-and-white checkerboard floor.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1C1010 text on #FFFDF7 page (18.4:1)
      #CC2323 red text (5.4:1 on the page)
      #FFFFFF on #B91C1C jukebox red (6.5:1)
      #096F9D blue text (5.5:1)
      #14532D guest check green (9.6:1 on white)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Cream page. */
body {
    background-color: #FFFDF7;
    color: #1C1010;
    font-family: "Nunito Sans", Arial, sans-serif;
    font-size: 1.03rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Rounded retro headings. */
h1,
h2,
h3 {
    font-family: "Righteous", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles in red. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.7rem);
    color: #CC2323;
    margin-bottom: 10px;
}

/* Links in red. */
a {
    color: #CC2323;
}

/* Blue outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
.menu-check:focus-visible + .arch .menu-icon {
    outline: 3px solid #096F9D;
    outline-offset: 3px;
}

/* ----- Jukebox header (class) ----- */

/* Red jukebox face with bubble tubes down both sides. */
.jukebox {
    background-color: #B91C1C;
    color: #FFFFFF;
    border-radius: 0px 0px 30px 30px;
    margin: 0px 8px;
    padding: 0px 34px 14px 34px;
    background-image: linear-gradient(180deg, #F59E0B, #EF4444, #0EA5E9, #22C55E), linear-gradient(180deg, #22C55E, #0EA5E9, #EF4444, #F59E0B);
    background-size: 14px 100%, 14px 100%;
    background-position: 8px 0px, calc(100% - 8px) 0px;
    background-repeat: no-repeat;
    border: 4px solid #D4D4D8;
    border-top: none;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* The arched name plate. */
.arch {
    text-align: center;
    padding-top: 14px;
}

/* Name like a jukebox nameplate. */
.marquee {
    display: inline-block;
    font-family: "Righteous", Arial, sans-serif;
    font-size: 1.9rem;
    line-height: 1;
    background-color: #FFFDF7;
    color: #B91C1C;
    border: 4px solid #D4D4D8;
    border-radius: 60px 60px 8px 8px;
    padding: 10px 22px 6px 22px;
}

/* "Diner" in blue. */
.marquee span {
    color: #096F9D;
}

/* Hours line. */
.since {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Selections button. */
.menu-icon {
    display: inline-block;
    margin-top: 8px;
    background-color: #FFFDF7;
    color: #1C1010;
    font-weight: 800;
    border-radius: 999px;
    padding: 3px 14px;
    cursor: pointer;
}

/* Selector hidden on phones until opened. */
.selector {
    display: none;
}

/* Open menu shows the selector. */
.menu-check:checked ~ .selector {
    display: block;
}

/* Selection buttons. */
.selector ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    padding-top: 12px;
}

/* One selection: a white key with a code chip. */
.selector a {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #FFFDF7;
    color: #1C1010;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 4px 12px 4px 4px;
    border-radius: 6px;
    box-shadow: 0px 3px 0px #7F1D1D;
}

/* The selection code. */
.selector b {
    background-color: #1C1010;
    color: #FDE047;
    font-family: "Righteous", Arial, sans-serif;
    font-weight: 400;
    padding: 1px 6px;
    border-radius: 4px;
}

/* Key pressed in on hover. */
.selector a:hover {
    transform: translateY(2px);
    box-shadow: 0px 1px 0px #7F1D1D;
}

/* ----- Concept note (class) ----- */

/* Small centered note. */
.concept {
    font-size: 0.8rem;
    text-align: center;
    padding: 8px 16px;
}

/* ----- Hero (class) ----- */

/* Ticket then photo on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 20px 16px 50px 16px;
}

/* Steel ticket rail across the top. */
.rail {
    border-top: 14px solid #A1A1AA;
    box-shadow: inset 0px 4px 0px #D4D4D8;
    padding: 0px 10px;
}

/* An order ticket hanging from the rail. */
.ticket {
    background-color: #FFFFFF;
    border: 1px solid #DDD9D4;
    border-top: 6px solid #FDE047;
    padding: 18px 20px 24px 20px;
    box-shadow: 0px 8px 16px rgba(28, 16, 16, 0.12);
    transform: rotate(-1.5deg);
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 27px, #E2F2F5 27px, #E2F2F5 28px);
}

/* Table number and time on the ticket. */
.t-no {
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    color: #CC2323;
}

/* Headline handwritten-big on the ticket. */
.ticket h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 8px 0px 12px 0px;
}

/* Ticket paragraph. */
.ticket p:not(.t-no) {
    margin-bottom: 16px;
}

/* Red "order up" bell-style button. */
.order-up,
button {
    display: inline-block;
    background-color: #B91C1C;
    color: #FFFFFF;
    font-family: "Righteous", Arial, sans-serif;
    font-size: 1.15rem;
    text-decoration: none;
    border: 3px solid #1C1010;
    border-radius: 999px;
    padding: 8px 22px;
    cursor: pointer;
}

/* Button hover. */
.order-up:hover,
button:hover {
    background-color: #1C1010;
}

/* Booth photo with a chrome edge. */
.hero > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border: 6px solid #D4D4D8;
    border-radius: 18px;
}

/* ----- Placemat (ID) ----- */

/* Blue tint band; placemat then photo. */
#placemat {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #E2F2F5;
    padding: 56px 16px;
}

/* Paper placemat with a scalloped border drawn as dots. */
.placemat {
    background-color: #FFFFFF;
    padding: 26px 22px;
    border: 3px dotted #CC2323;
    outline: 8px solid #FFFFFF;
    box-shadow: 0px 6px 16px rgba(28, 16, 16, 0.12);
}

/* Placemat title centered. */
.placemat h2 {
    text-align: center;
}

/* Menu columns stack on phones. */
.mat-cols {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Column heading. */
.mat-col h3 {
    font-size: 1.4rem;
    border-bottom: 3px solid #0EA5E9;
    margin-bottom: 6px;
}

/* Item list. */
.items {
    list-style: none;
}

/* Item with price pushed right. */
.items li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 5px 0px;
}

/* The ad box on the placemat. */
.ad {
    border: 3px dashed #1C1010;
    padding: 12px;
    text-align: center;
    background-color: #FEF9C3;
}

/* Ad top line. */
.ad-top {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.8rem;
}

/* Ad price. */
.ad-big {
    font-family: "Righteous", Arial, sans-serif;
    font-size: 2.4rem;
    color: #CC2323;
    line-height: 1;
}

/* Fine print on the placemat. */
.mat-fine {
    font-size: 0.82rem;
    color: #716967;
    margin-top: 12px;
}

/* Pancakes photo, round like a plate. */
.pancakes {
    width: 260px;
    height: 260px;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid #FFFFFF;
    margin: 0px auto;
}

/* ----- Pie case (class) ----- */

/* Section spacing. */
.pies {
    padding: 56px 16px;
}

/* Intro line. */
.pie-intro {
    max-width: 40rem;
    margin-bottom: 20px;
}

/* Glass case with chrome frame. */
.case {
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(226, 242, 245, 0.6));
    border: 8px solid #D4D4D8;
    border-radius: 14px;
    padding: 18px 14px 4px 14px;
    margin-bottom: 24px;
}

/* Shelf of pies. */
.shelf {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 12px;
    border-bottom: 8px solid #A1A1AA;
    padding-bottom: 12px;
}

/* One pie and its name. */
.shelf li {
    flex: 0 0 120px;
    text-align: center;
    font-weight: 800;
    font-size: 0.9rem;
}

/* A pie: crust ring, filling, one slice gone. */
.pie {
    display: block;
    width: 100px;
    height: 100px;
    margin: 0px auto 6px auto;
    border-radius: 50%;
    border: 7px solid #D9A066;
    background-image: conic-gradient(var(--fill) 0deg 300deg, #FFFDF7 300deg 360deg);
}

/* Cherry pie. */
.p-cherry {
    --fill: #9F1239;
}

/* Dutch apple with a crumb top. */
.p-apple {
    --fill: #E9C46A;
}

/* Chocolate cream. */
.p-choc {
    --fill: #4A2511;
}

/* Coconut cream. */
.p-coco {
    --fill: #FFF7E0;
}

/* Pecan. */
.p-pecan {
    --fill: #7C3F14;
}

/* Two photos. */
.pie-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.pie-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
}

/* ----- Guest check (class) ----- */

/* Check then text on phones. */
.check-sec {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 20px 16px 60px 16px;
}

/* Green-lined guest check. */
.guest-check {
    background-color: #F0FDF4;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 29px, #86EFAC 29px, #86EFAC 30px);
    border: 2px solid #14532D;
    padding: 18px 20px;
    max-width: 520px;
}

/* No fieldset border. */
.guest-check fieldset {
    border: none;
}

/* Check title in green caps. */
.guest-check legend {
    font-family: "Righteous", Arial, sans-serif;
    font-size: 1.3rem;
    color: #14532D;
    text-transform: uppercase;
}

/* Server and check number row. */
.check-row {
    display: flex;
    justify-content: space-between;
    font-family: "Courier New", Courier, monospace;
    font-weight: 700;
    color: #14532D;
    border-bottom: 2px solid #14532D;
    margin-bottom: 10px;
}

/* Labels. */
.guest-check label {
    display: block;
    font-weight: 800;
    color: #14532D;
}

/* Fields written on the check. */
.guest-check input,
.guest-check textarea {
    width: 100%;
    font: inherit;
    background-color: rgba(255, 255, 255, 0.7);
    border: none;
    border-bottom: 2px solid #14532D;
    padding: 6px 8px;
    margin: 2px 0px 12px 0px;
}

/* Text beside the check. */
.check-text p {
    max-width: 30rem;
}

/* ----- Checkerboard footer (class) ----- */

/* Checkerboard strip on top, black below. */
.floor {
    background-color: #1C1010;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 52px 16px 24px 16px;
    background-image: linear-gradient(45deg, #FFFFFF 25%, transparent 25%, transparent 75%, #FFFFFF 75%), linear-gradient(45deg, #FFFFFF 25%, transparent 25%, transparent 75%, #FFFFFF 75%);
    background-size: 28px 28px;
    background-position: 0px 0px, 14px 14px;
    background-repeat: repeat-x;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger nameplate. */
    .marquee {
        font-size: 2.4rem;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Menu columns and ad side by side. */
    .mat-cols {
        flex-direction: row;
    }

    /* Each column. */
    .mat-col,
    .ad {
        flex: 1 1 33%;
    }

    /* Check beside the text. */
    .check-sec {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Check column. */
    .guest-check {
        flex: 1 1 55%;
    }

    /* Text column. */
    .check-text {
        flex: 1 1 40%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No selections button. */
    .menu-icon {
        display: none;
    }

    /* Selector always shown. */
    .selector {
        display: block;
    }

    /* Narrower jukebox centered at the top. */
    .jukebox {
        max-width: 860px;
        margin: 0px auto;
    }

    /* Ticket beside the photo. */
    .hero {
        flex-direction: row;
        align-items: flex-start;
        padding: 20px 50px 60px 50px;
    }

    /* Ticket column. */
    .rail {
        flex: 1 1 55%;
    }

    /* Photo column. */
    .hero > img {
        width: 40%;
        height: 440px;
        margin-top: 20px;
    }

    /* Placemat beside the pancakes. */
    #placemat {
        flex-direction: row;
        align-items: center;
        padding-left: 50px;
        padding-right: 50px;
    }

    /* Placemat column. */
    .placemat {
        flex: 1 1 70%;
    }

    /* Pancakes keep their size. */
    .pancakes {
        flex: 0 0 260px;
    }

    /* Wider pie section. */
    .pies {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .hero,
    #placemat,
    .pies,
    .check-sec {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
