/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Brick & Blaze Pizza (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, warm trattoria. A gingham tablecloth is
    made from two crossing repeating gradients. The pizza builder is CSS
    only: hidden topping checkboxes come first, then a pizza drawn with
    radial gradients, then the labels. ":checked ~ .pizza .pep" shows each
    topping, and attribute selectors like label[for="t-pep"] mark the
    chosen label with a check. Media queries at 576px, 768px, 992px and
    1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #1F1A17 char   #B91C1C tomato red   #166534 basil (darker than
      #15803D for small text)   #FFF8EE dough   #5F5249 muted
*/

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

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

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

/* Dough-colored page with char text. */
body {
    background-color: #FFF8EE;
    color: #1F1A17;
    font-family: Rubik, sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Fat display serif headings. */
h1,
h2,
h3 {
    font-family: "Abril Fatface", serif;
    font-weight: 400;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.2rem, 4.8vw, 3.6rem);
    color: #B91C1C;
}

/* Red links. */
a {
    color: #B91C1C;
    font-weight: 700;
}

/* Basil focus ring, also on the label of a focused hidden checkbox. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon,
#t-pep:focus-visible ~ .toppings label[for="t-pep"],
#t-basil:focus-visible ~ .toppings label[for="t-basil"],
#t-mush:focus-visible ~ .toppings label[for="t-mush"],
#t-olive:focus-visible ~ .toppings label[for="t-olive"],
#t-pepper:focus-visible ~ .toppings label[for="t-pepper"] {
    outline: 3px solid #166534;
    outline-offset: 3px;
}

/* Muted intro paragraph. */
.lead {
    color: #5F5249;
    max-width: 38rem;
    margin: 8px 0px 26px 0px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #5F5249;
    margin-top: 14px;
}

/* ----- Header (class) ----- */

/* Char header. */
.site-header {
    background-color: #1F1A17;
    color: #FFF8EE;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo in the fat serif. */
.logo {
    font-family: "Abril Fatface", serif;
    font-size: 1.9rem;
}

/* Red ampersand. */
.logo span {
    color: #F87171;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button. */
.menu-icon {
    background-color: #B91C1C;
    color: #FFFFFF;
    border-radius: 999px;
    padding: 6px 16px;
    font-weight: 700;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.site-nav {
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #FFF8EE;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #3A322D;
}

/* Light red on hover. */
.site-nav a:hover {
    color: #FCA5A5;
}

/* Concept notice. */
.concept-note {
    background-color: #B91C1C;
    font-size: 0.85rem;
    text-align: center;
    padding: 4px 16px;
}

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

/* Gingham: two semi-transparent red stripe sets crossing on white. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #FFFFFF;
    background-image:
        repeating-linear-gradient(0deg, rgba(185, 28, 28, 0.18) 0px, rgba(185, 28, 28, 0.18) 24px, transparent 24px, transparent 48px),
        repeating-linear-gradient(90deg, rgba(185, 28, 28, 0.18) 0px, rgba(185, 28, 28, 0.18) 24px, transparent 24px, transparent 48px);
    padding: 40px 20px 50px 20px;
}

/* The text sits on a dough-colored card so it reads over the pattern. */
.hero-text {
    background-color: #FFF8EE;
    border: 3px solid #1F1A17;
    padding: 24px;
    box-shadow: 8px 8px 0px #1F1A17;
}

/* Round "stamp" label. */
.stamp {
    display: inline-block;
    border: 2px dashed #B91C1C;
    color: #B91C1C;
    border-radius: 999px;
    padding: 2px 12px;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    margin-bottom: 12px;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.3rem, 6.5vw, 4.2rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.hero-text > p:not(.stamp) {
    margin-bottom: 20px;
}

/* Red rounded button. */
.button,
button {
    display: inline-block;
    background-color: #B91C1C;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 13px 26px;
    font-family: Rubik, sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

/* Darker on hover. */
.button:hover,
button:hover {
    background-color: #991B1B;
}

/* Oven photo in a round-topped frame like the oven mouth. */
.hero-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 200px 200px 0px 0px;
    border: 6px solid #1F1A17;
}

/* ----- Pizza builder (class) ----- */

/* Section spacing. */
.build {
    padding: 60px 20px;
}

/* Pizza and toppings stack on phones. */
.builder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}

/* The checkboxes are hidden but still focusable. */
.t-box {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* The pizza: crust ring, sauce, cheese spots, all from gradients. It
   is the positioning parent for the toppings. */
.pizza {
    position: relative;
    width: 280px;
    height: 280px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: #C7752F;
    background-image:
        radial-gradient(circle at 30% 35%, #FFF3D6 0px, #FFF3D6 18px, transparent 19px),
        radial-gradient(circle at 65% 30%, #FFF3D6 0px, #FFF3D6 14px, transparent 15px),
        radial-gradient(circle at 55% 65%, #FFF3D6 0px, #FFF3D6 20px, transparent 21px),
        radial-gradient(circle at 28% 68%, #FFF3D6 0px, #FFF3D6 12px, transparent 13px),
        radial-gradient(circle, #C2301E 0px, #C2301E 116px, #E0A35A 117px, #C7752F 140px);
    box-shadow: 0px 14px 30px rgba(31, 26, 23, 0.25);
}

/* Every topping is hidden until its box is checked. */
.topping {
    position: absolute;
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 0.3s, transform 0.3s;
}

/* Pepperoni: dark red circles. */
.pep {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background-color: #8E1B12;
    border: 2px solid #6B130C;
}

/* Pepperoni positions. */
.pep-1 {
    left: 70px;
    top: 60px;
}

/* Pepperoni 2. */
.pep-2 {
    left: 160px;
    top: 80px;
}

/* Pepperoni 3. */
.pep-3 {
    left: 110px;
    top: 140px;
}

/* Pepperoni 4. */
.pep-4 {
    left: 60px;
    top: 170px;
}

/* Pepperoni 5. */
.pep-5 {
    left: 180px;
    top: 170px;
}

/* Basil: green leaf shapes made with two rounded corners. */
.basil {
    width: 26px;
    height: 16px;
    background-color: #2F7D32;
    border-radius: 0px 100% 0px 100%;
}

/* Basil 1. */
.basil-1 {
    left: 120px;
    top: 50px;
    transform: rotate(30deg);
}

/* Basil 2. */
.basil-2 {
    left: 200px;
    top: 130px;
}

/* Basil 3. */
.basil-3 {
    left: 90px;
    top: 210px;
}

/* Mushrooms: tan half circles. */
.mush {
    width: 26px;
    height: 16px;
    background-color: #D9C3A5;
    border-radius: 14px 14px 4px 4px;
    border-bottom: 4px solid #A68A64;
}

/* Mushroom 1. */
.mush-1 {
    left: 140px;
    top: 110px;
}

/* Mushroom 2. */
.mush-2 {
    left: 50px;
    top: 120px;
}

/* Mushroom 3. */
.mush-3 {
    left: 160px;
    top: 220px;
}

/* Olives: black rings. */
.olive {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 5px solid #1F1A17;
}

/* Olive 1. */
.olive-1 {
    left: 100px;
    top: 95px;
}

/* Olive 2. */
.olive-2 {
    left: 205px;
    top: 100px;
}

/* Olive 3. */
.olive-3 {
    left: 135px;
    top: 190px;
}

/* Olive 4. */
.olive-4 {
    left: 40px;
    top: 150px;
}

/* Green pepper strips. */
.pepper {
    width: 40px;
    height: 8px;
    border-radius: 8px;
    background-color: #4CAF50;
}

/* Pepper 1. */
.pepper-1 {
    left: 150px;
    top: 150px;
}

/* Pepper 2. */
.pepper-2 {
    left: 80px;
    top: 85px;
}

/* Checked toppings land on the pizza. */
#t-pep:checked ~ .pizza .pep,
#t-basil:checked ~ .pizza .basil,
#t-mush:checked ~ .pizza .mush,
#t-olive:checked ~ .pizza .olive,
#t-pepper:checked ~ .pizza .pepper {
    opacity: 1;
    transform: scale(1);
}

/* Basil leaves keep their tilt when shown. */
#t-basil:checked ~ .pizza .basil-1 {
    transform: rotate(30deg);
}

/* Toppings list. */
.toppings {
    border: 3px solid #1F1A17;
    background-color: #FFFFFF;
    padding: 18px;
    width: 100%;
    max-width: 420px;
}

/* List title. */
.toppings legend {
    font-weight: 700;
    padding: 0px 6px;
}

/* One topping label row; the box before it is drawn with ::before. */
.toppings label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0px;
    border-bottom: 1px dashed #E5D8C6;
    cursor: pointer;
    font-weight: 600;
}

/* Empty checkbox square drawn before each label. */
.toppings label::before {
    content: "";
    width: 20px;
    height: 20px;
    border: 2px solid #1F1A17;
    border-radius: 4px;
    flex-shrink: 0;
    text-align: center;
    line-height: 16px;
    font-weight: 700;
}

/* Checked: the square fills basil green with a white check. The label
   is found with an attribute selector that matches its "for" value. */
#t-pep:checked ~ .toppings label[for="t-pep"]::before,
#t-basil:checked ~ .toppings label[for="t-basil"]::before,
#t-mush:checked ~ .toppings label[for="t-mush"]::before,
#t-olive:checked ~ .toppings label[for="t-olive"]::before,
#t-pepper:checked ~ .toppings label[for="t-pepper"]::before {
    content: "\2713";
    background-color: #166534;
    border-color: #166534;
    color: #FFFFFF;
}

/* Little color dot for each topping. */
.swatch {
    width: 14px;
    height: 14px;
    border-radius: 50%;
}

/* Pepperoni color. */
.sw-pep {
    background-color: #8E1B12;
}

/* Basil color. */
.sw-basil {
    background-color: #2F7D32;
}

/* Mushroom color. */
.sw-mush {
    background-color: #D9C3A5;
}

/* Olive color. */
.sw-olive {
    background-color: #1F1A17;
}

/* Pepper color. */
.sw-pepper {
    background-color: #4CAF50;
}

/* Base price line. */
.base {
    margin-top: 10px;
    font-weight: 700;
}

/* ----- Menu (class) ----- */

/* Char band for the menu. */
.menu {
    background-color: #1F1A17;
    color: #FFF8EE;
    padding: 60px 20px;
}

/* Light red heading on dark. */
.menu h2 {
    color: #FCA5A5;
}

/* Muted note on dark. */
.menu .small {
    color: #D6CCC2;
}

/* Menu items wrap. */
.menu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 40px;
    margin-top: 22px;
}

/* One item with a dashed line under it. */
.item {
    flex: 1 1 280px;
    padding: 12px 0px;
    border-bottom: 1px dashed #5F5249;
}

/* Item name and price on one line. */
.item h3 {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 1.45rem;
}

/* Price in a light red. */
.cost {
    font-family: Rubik, sans-serif;
    font-weight: 700;
    color: #FCA5A5;
}

/* Heat label in words with a small flame drawn as a colored bar. */
.heat {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.85rem;
    font-weight: 700;
    border-left: 4px solid #F59E0B;
    padding-left: 8px;
}

/* Hot gets a red bar. */
.heat-hot {
    border-left-color: #F87171;
}

/* ----- Oven (class) ----- */

/* Section spacing. */
.oven {
    display: flex;
    flex-direction: column;
    gap: 22px;
    padding: 60px 20px;
}

/* Huge glowing number. */
.temp {
    font-family: "Abril Fatface", serif;
    font-size: clamp(6rem, 22vw, 12rem);
    line-height: 0.9;
    color: #B91C1C;
    text-shadow: 0px 0px 30px rgba(245, 158, 11, 0.55);
}

/* Space under heading. */
.oven-text h2 {
    margin-bottom: 10px;
}

/* Two photos side by side. */
.oven-photos {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

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

/* ----- Order (class) ----- */

/* Gingham-edged order section. */
.order {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #FFFFFF;
    border-top: 14px solid #B91C1C;
    padding: 60px 20px;
}

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

/* Labels. */
.order-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs, select, textarea. */
.order-form input,
.order-form select,
.order-form textarea {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #1F1A17;
    border-radius: 8px;
    font-family: Rubik, sans-serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Space above the button. */
.order-form button {
    margin-top: 18px;
}

/* Slices photo. */
.slice img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 12px;
}

/* Caption with hours. */
.slice figcaption {
    margin-top: 8px;
    font-weight: 600;
}

/* ----- Footer (class) ----- */

/* Char footer. */
.site-footer {
    background-color: #1F1A17;
    color: #D6CCC2;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

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

@media (min-width: 576px) {

    /* Taller oven photo. */
    .hero-photo {
        height: 380px;
    }

    /* Taller dough photos. */
    .oven-photos img {
        height: 240px;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .build,
    .menu,
    .oven,
    .order {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Pizza and topping list side by side. */
    .builder {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Order form and photo side by side. */
    .order {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }

    /* Form half. */
    .order-form {
        flex: 1 1 55%;
    }

    /* Photo half. */
    .slice {
        flex: 1 1 40%;
    }

    /* Taller slices photo. */
    .slice img {
        height: 420px;
    }
}

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

@media (min-width: 992px) {

    /* No Menu button on desktop. */
    .menu-icon {
        display: none;
    }

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero card and oven photo side by side. */
    .hero {
        flex-direction: row;
        align-items: flex-end;
        gap: 40px;
        padding-top: 70px;
        padding-bottom: 70px;
    }

    /* Each hero half. */
    .hero-text,
    .hero-photo {
        flex: 1 1 50%;
    }

    /* Photo half width and taller. */
    .hero-photo {
        width: 50%;
        height: 480px;
    }

    /* Bigger pizza. */
    .pizza {
        transform: scale(1.2);
        margin: 30px;
    }

    /* Big number beside the oven text. */
    .oven {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .build,
    .menu,
    .oven,
    .order {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
