/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Glaze Days Donuts (fictional business)
    Filename:   styles.css

    Theme: the 4 a.m. donut kitchen. The logo is a glazed ring (a
    radial-gradient with a hole) and the nav links are sprinkles: pill
    shapes in candy colors, each tilted a different way. The hero has a
    wall clock with its hands at 5:30, the time the glazed come out.
    The cooling rack is a wire grid seen from above, holding top-view
    donuts in each icing color. Order sizes are towers of side-view
    donuts that get taller with the deal. Coffee has a cup drawn in CSS
    with rising steam, the big-order form is written on a paper napkin
    with an embossed border, and the footer is scattered with crumbs.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #2A1206 text on #FFF8F1 page (17.9:1)
      #B04209 orange text (5.4:1 on the page)
      #2A1206 on #EA580C buttons (5.1:1)
      #7939E7 purple text (5.6:1)
      #FFFFFF on #2A1206 dark band (18.6:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Warm pastry-paper page. */
body {
    background-color: #FFF8F1;
    color: #2A1206;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Chunky bakery headings. */
h1,
h2 {
    font-family: "Lilita One", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.02;
}

/* Section titles in orange. */
h2 {
    font-size: clamp(2rem, 5.5vw, 3rem);
    color: #B04209;
    margin-bottom: 8px;
}

/* Links in purple. */
a {
    color: #7939E7;
}

/* Purple outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .glaze-row .menu-icon {
    outline: 3px solid #7939E7;
    outline-offset: 3px;
}

/* ----- Glaze header (class) ----- */

/* Pink glaze bar with a drippy wavy bottom. */
.glaze-bar {
    background-color: #F9A8D4;
    padding: 10px 16px 14px 16px;
    border-bottom: 6px solid #EA580C;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.glaze-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo with the donut ring. */
.ring-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.7rem;
    line-height: 1;
}

/* Second logo line. */
.ring-logo small {
    display: block;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 0.42em;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* A glazed ring: dough edge, icing, a hole in the middle. */
.ring {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-image: radial-gradient(circle, #F9A8D4 0px, #F9A8D4 8px, #2A1206 9px, #2A1206 10px, #FFFFFF 11px, #FFF1F8 17px, #D99A54 18px, #D99A54 100%);
}

/* Menu button. */
.menu-icon {
    background-color: #2A1206;
    color: #FFFFFF;
    font-weight: 600;
    border-radius: 999px;
    padding: 4px 14px;
    cursor: pointer;
}

/* Sprinkle nav hidden on phones until opened. */
.sprinkle-nav {
    display: none;
}

/* Open menu shows the sprinkles. */
.menu-check:checked ~ .sprinkle-nav {
    display: block;
}

/* Sprinkles scattered in a row. */
.sprinkle-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding-top: 14px;
}

/* One sprinkle link: a pill in a candy color. */
.sprinkle-nav a {
    display: block;
    color: #2A1206;
    text-decoration: none;
    font-weight: 600;
    background-color: #FDE047;
    border-radius: 999px;
    padding: 4px 16px;
    transform: rotate(-6deg);
}

/* Second sprinkle color and tilt. */
.sprinkle-nav li:nth-child(2) a {
    background-color: #A5F3FC;
    transform: rotate(5deg);
}

/* Third sprinkle. */
.sprinkle-nav li:nth-child(3) a {
    background-color: #FFFFFF;
    transform: rotate(-3deg);
}

/* Fourth sprinkle. */
.sprinkle-nav li:nth-child(4) a {
    background-color: #C4B5FD;
    transform: rotate(7deg);
}

/* Sprinkle straightens on hover. */
.sprinkle-nav a:hover {
    transform: rotate(0deg) scale(1.08);
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Hero (class) ----- */

/* Clock, text and photo stacked on phones. */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    padding: 30px 16px 50px 16px;
}

/* Wall clock with twelve short hour marks around the rim (a white disc
   covers the middle of the marks so only the rim ticks show). Small on
   phones so the donut photo stays on the first screen. */
.clock {
    position: relative;
    width: 116px;
    height: 116px;
    border-radius: 50%;
    background-color: #FFFFFF;
    background-image: radial-gradient(circle, #FFFFFF 0%, #FFFFFF 58%, transparent 59%), repeating-conic-gradient(#2A1206 -1.5deg 1.5deg, transparent 1.5deg 30deg);
    border: 8px solid #EA580C;
}

/* Clock hands start pointing straight up from the center. */
.hand {
    position: absolute;
    left: 50%;
    bottom: 50%;
    background-color: #2A1206;
    border-radius: 3px;
    transform-origin: bottom center;
}

/* Hour hand halfway between 5 and 6. */
.hour {
    width: 6px;
    height: 24%;
    margin-left: -3px;
    transform: rotate(165deg);
}

/* Minute hand on the 6. */
.minute {
    width: 4px;
    height: 36%;
    margin-left: -2px;
    transform: rotate(180deg);
}

/* Center hub. */
.hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 14px;
    margin: -7px 0px 0px -7px;
    border-radius: 50%;
    background-color: #EA580C;
}

/* Huge headline. */
.hero h1 {
    font-size: clamp(2.8rem, 9vw, 5rem);
    margin-bottom: 12px;
}

/* Hero paragraph. */
.hero-text p {
    max-width: 28rem;
    margin-bottom: 20px;
}

/* Orange button with a glaze drip on top. */
.glaze-btn,
button {
    display: inline-block;
    background-color: #EA580C;
    color: #2A1206;
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.25rem;
    text-decoration: none;
    border: none;
    border-top: 6px solid #FFFFFF;
    border-radius: 14px;
    padding: 8px 24px 10px 24px;
    cursor: pointer;
}

/* Button hover in purple with white text. */
.glaze-btn:hover,
button:hover {
    background-color: #7C3AED;
    color: #FFFFFF;
}

/* Donut photo. */
.hero > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 20px;
}

/* ----- Cooling rack (ID) ----- */

/* Purple tint band. */
#rack {
    background-color: #EFE1F1;
    padding: 56px 16px;
}

/* Intro line. */
.intro {
    margin-bottom: 20px;
}

/* The wire rack: a grid of thin silver lines over a dark tray. */
.rack {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 20px 10px;
    justify-content: center;
    background-color: #3F3F46;
    background-image: linear-gradient(90deg, #D4D4D8 2px, transparent 2px), linear-gradient(0deg, #D4D4D8 2px, transparent 2px);
    background-size: 22px 22px;
    border: 8px solid #A1A1AA;
    padding: 22px 12px;
}

/* One donut and its name, on a solid patch of the tray so the words read clearly. */
.rack li {
    flex: 0 0 120px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #FFFFFF;
    background-color: #3F3F46;
    padding: 6px 4px;
    border-radius: 10px;
}

/* Top-view donut: dough edge, icing, hole showing the rack. */
.dnut {
    display: block;
    width: 96px;
    height: 96px;
    margin: 0px auto 6px auto;
    border-radius: 50%;
    background-image: radial-gradient(circle, #3F3F46 0px, #3F3F46 14px, #C5833F 15px, #C5833F 18px, var(--icing) 19px, var(--icing) 40px, #D99A54 41px);
}

/* Glazed. */
.d-glazed {
    --icing: #F7E3BD;
}

/* Chocolate with sprinkles. */
.d-choc {
    --icing: #5B3417;
}

/* Strawberry. */
.d-straw {
    --icing: #F9A8D4;
}

/* Maple. */
.d-maple {
    --icing: #C2772F;
}

/* Blueberry. */
.d-blue {
    --icing: #818CF8;
}

/* Ube. */
.d-ube {
    --icing: #A78BFA;
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #6F6058;
    margin-top: 12px;
}

/* ----- Stacks (class) ----- */

/* Text then towers on phones. */
.stacks {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 56px 16px;
}

/* Paragraph spacing. */
.stack-text p {
    margin-bottom: 14px;
}

/* Box photo. */
.stack-text img {
    width: 100%;
    max-width: 360px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

/* Towers stand on a shared baseline. */
.towers {
    list-style: none;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 8px;
    border-bottom: 6px solid #2A1206;
    padding-bottom: 4px;
}

/* One tower with its label. */
.towers li {
    text-align: center;
    font-size: 0.82rem;
}

/* Label name. */
.towers b {
    display: block;
    font-family: "Lilita One", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.05rem;
}

/* A tower of side-view donuts: stacked ovals with icing tops. */
.tower {
    display: block;
    width: 64px;
    margin: 0px auto 6px auto;
    background-image: linear-gradient(180deg, #F9A8D4 0px, #F9A8D4 6px, #D99A54 6px, #D99A54 16px, transparent 16px, transparent 18px);
    background-size: 64px 18px;
    border-radius: 18px;
}

/* One donut. */
.t1 {
    height: 18px;
}

/* Six donuts. */
.t6 {
    height: 108px;
}

/* Twelve donuts. */
.t12 {
    height: 216px;
}

/* Five dozen shown as the tallest stack. */
.t60 {
    height: 270px;
    background-image: linear-gradient(180deg, #C4B5FD 0px, #C4B5FD 6px, #D99A54 6px, #D99A54 16px, transparent 16px, transparent 18px);
}

/* ----- Coffee (class) ----- */

/* Dark coffee band. */
.coffee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    background-color: #2A1206;
    color: #FFFFFF;
    padding: 56px 16px;
}

/* Coffee title in light orange. */
.coffee h2 {
    color: #FDBA74;
}

/* Cup: a white mug with a handle. */
.cup {
    position: relative;
    display: block;
    width: 90px;
    height: 80px;
    margin-top: 50px;
    background-color: #FFFFFF;
    border-radius: 4px 4px 30px 30px;
    box-shadow: inset 0px 10px 0px #6B3F22;
}

/* Mug handle. */
.cup::after {
    content: "";
    position: absolute;
    right: -24px;
    top: 16px;
    width: 26px;
    height: 34px;
    border: 7px solid #FFFFFF;
    border-left: none;
    border-radius: 0px 18px 18px 0px;
}

/* Steam rising from the cup. */
.steam {
    position: absolute;
    left: 30px;
    top: -50px;
    width: 30px;
    height: 44px;
    border-left: 4px solid rgba(255, 255, 255, 0.6);
    border-right: 4px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: steam 2.4s ease-in-out infinite;
}

/* Steam drifts up and fades. */
@keyframes steam {
    0% {
        transform: translateY(8px);
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10px);
        opacity: 0;
    }
}

/* Two photos. */
.coffee-photos {
    display: flex;
    gap: 10px;
    width: 100%;
}

/* Each photo. */
.coffee-photos img {
    width: 50%;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

/* ----- Napkin form (class) ----- */

/* Section spacing. */
.napkin-sec {
    padding: 56px 16px 60px 16px;
}

/* Paper napkin with an embossed border. */
.napkin {
    max-width: 520px;
    margin: 0px auto;
    background-color: #FFFFFF;
    border: 14px solid #FFFFFF;
    outline: 2px dashed #F9A8D4;
    outline-offset: -8px;
    box-shadow: 0px 8px 18px rgba(42, 18, 6, 0.12);
    padding: 16px;
    transform: rotate(-1deg);
}

/* No fieldset border. */
.napkin fieldset {
    border: none;
}

/* Napkin title. */
.napkin legend {
    font-family: "Lilita One", Arial, sans-serif;
    font-size: 1.8rem;
    color: #B04209;
}

/* Napkin intro. */
.napkin p {
    margin-bottom: 12px;
}

/* Labels. */
.napkin label {
    display: block;
    font-weight: 600;
}

/* Fields like pen lines on a napkin. */
.napkin input {
    width: 100%;
    font: inherit;
    border: none;
    border-bottom: 2px solid #7939E7;
    padding: 6px 4px;
    margin: 2px 0px 12px 0px;
}

/* ----- Crumb footer (class) ----- */

/* Pink footer with crumbs scattered across it. */
.crumbs {
    background-color: #F9A8D4;
    background-image: radial-gradient(circle 2px, #C5833F 96%, transparent 100%), radial-gradient(circle 3px, #D99A54 96%, transparent 100%);
    background-size: 37px 29px, 53px 41px;
    background-position: 0px 0px, 17px 11px;
    color: #2A1206;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Bigger clock. */
    .clock {
        width: 200px;
        height: 200px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Text beside the towers. */
    .stacks {
        flex-direction: row;
        align-items: flex-end;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .stack-text,
    .towers {
        flex: 1 1 50%;
    }

    /* Cup, text and photos in a row. */
    .coffee {
        flex-direction: row;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Cup keeps its size. */
    .cup {
        flex: 0 0 90px;
        margin-right: 30px;
    }

    /* Photos take their share. */
    .coffee-photos {
        width: auto;
        flex: 1 1 45%;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, sprinkles right. */
    .glaze-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    /* Sprinkles always shown. */
    .sprinkle-nav {
        display: block;
    }

    /* Sprinkles in a row. */
    .sprinkle-nav ul {
        padding-top: 0px;
    }

    /* Clock, text and photo in a row. */
    .hero {
        flex-direction: row;
        padding: 50px;
    }

    /* Clock keeps its size. */
    .clock {
        flex: 0 0 200px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 45%;
    }

    /* Photo column. */
    .hero > img {
        width: 34%;
        height: 400px;
    }

    /* All six donuts in one row. */
    .rack li {
        flex: 1 1 14%;
    }

    /* Wider rack section. */
    #rack {
        padding-left: 50px;
        padding-right: 50px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .glaze-bar,
    .hero,
    #rack,
    .stacks,
    .coffee {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}

/* ----- Reduced motion (user preference) ----- */

@media (prefers-reduced-motion: reduce) {

    /* Steam holds still. */
    .steam {
        animation: none;
        opacity: 0.7;
    }
}
