/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Flour & Fern Bakehouse (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, soft centered "cottage" style. Base rules
    are the phone layout; media queries at 576px, 768px, 992px and 1200px
    add to it. Flexbox for layout, a float for the cake section, arched
    photos made with border-radius, and a definition list for the menu.

    Colors (WebAIM checked, AA):
      #3B2A26 chocolate   #A0525F rose   #F8E7E2 blush   #FFFAF5 cream   #4F6B4B sage   #6E5A56 muted
*/

/* ----- Browser reset (universal) ----- */

/* border-box sizing and zero default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Cream page with chocolate-brown text in Nunito Sans. */
body {
    background-color: #FFFAF5;
    color: #3B2A26;
    font-family: "Nunito Sans", sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Elegant serif headings. */
h1,
h2,
h3 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    line-height: 1.05;
}

/* Section titles. */
h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    margin: 0px 0px 14px 0px;
}

/* Rose focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid #A0525F;
    outline-offset: 3px;
}

/* ----- Shared pieces (class) ----- */

/* Handwritten rose note used above headings. */
.handwritten {
    font-family: Caveat, cursive;
    font-size: 1.6rem;
    color: #A0525F;
    line-height: 1.2;
}

/* Chocolate pill button. */
.button {
    display: inline-block;
    background-color: #3B2A26;
    color: #FFFAF5;
    border: 1.5px solid #3B2A26;
    padding: 0.85em 1.8em;
    border-radius: 999px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    margin: 0px 6px 10px 0px;
    cursor: pointer;
}

/* Outlined version of the button. */
.button-outline {
    background-color: transparent;
    color: #3B2A26;
}

/* Both buttons turn rose on hover. */
.button:hover {
    background-color: #A0525F;
    border-color: #A0525F;
    color: #FFFFFF;
}

/* ----- Banner and header (class) ----- */

/* Blush strip labeling the concept. */
.concept-banner {
    background-color: #F8E7E2;
    color: #6E5A56;
    text-align: center;
    font-size: 0.8rem;
    padding: 7px 12px;
}

/* Centered header like a bakery sign. */
.site-header {
    text-align: center;
    padding: 30px 20px 0px 20px;
}

/* Business name in big serif. */
.wordmark {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
}

/* The ampersand in rose italics. */
.wordmark span {
    color: #A0525F;
    font-style: italic;
    font-weight: 500;
}

/* Small wide-spaced sage tagline. */
.tagline {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #4F6B4B;
    margin: 8px 0px 0px 0px;
}

/* Centered row of nav links with a hairline under it. */
.site-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 26px;
    list-style: none;
    padding: 18px 0px;
    margin: 18px auto 0px auto;
    max-width: 56rem;
    border-bottom: 1px solid #3B2A2618;
}

/* Nav links in chocolate, bold. */
.site-nav a {
    color: #3B2A26;
    font-weight: 700;
    text-decoration: none;
}

/* Rose underline on hover. */
.site-nav a:hover {
    color: #A0525F;
    text-decoration: underline;
}

/* ----- Hero (class) ----- */

/* On phones: words on top, then the two arched photos side by side.
   flex-wrap lets the words take a full row first. */
.hero {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: flex-end;
    max-width: 74rem;
    margin: 0px auto;
    padding: 30px 18px 50px 18px;
}

/* The text block takes the whole first row and is centered. */
.hero-words {
    flex-basis: 100%;
    text-align: center;
    margin: 0px 0px 16px 0px;
}

/* Hero headline. */
.hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.8rem);
}

/* The italic rose half of the headline. */
.hero h1 em {
    color: #A0525F;
}

/* Hero paragraph, narrow and centered. */
.hero-words > p:not(.handwritten) {
    max-width: 24rem;
    margin: 16px auto 24px auto;
}

/* Arch-shaped photo: a huge top radius rounds the top into an arch, like
   a bakery window. Two of them share a row. */
.arch {
    flex: 1 1 0px;
    min-width: 0px;
    aspect-ratio: 3 / 4.4;
    object-fit: cover;
    border-radius: 999px 999px 18px 18px;
}

/* ----- Weekly special strip (class) ----- */

/* Sage band with the weekly special in handwriting. */
.strip {
    background-color: #4F6B4B;
    color: #FFFFFF;
    text-align: center;
    font-family: Caveat, cursive;
    font-size: 1.6rem;
    padding: 12px 18px;
}

/* ----- Menu (ID and class) ----- */

/* Menu section centered with room around it. */
#menu {
    max-width: 62rem;
    margin: 0px auto;
    padding: 70px 18px;
}

/* Centered menu title block. */
.section-title {
    text-align: center;
    margin: 0px 0px 36px 0px;
}

/* Menu halves stack on phones, side by side at 768px. */
.menu-columns {
    display: flex;
    flex-direction: column;
    gap: 20px 70px;
}

/* Each half shares the row once side by side. */
.menu-columns > div {
    flex: 1 1 0px;
}

/* Category title in rose with a hairline under it. */
.menu h3 {
    font-size: 1.7rem;
    font-weight: 700;
    color: #A0525F;
    border-bottom: 1px solid #3B2A2626;
    padding: 0px 0px 6px 0px;
}

/* Item name on the left, price on the right; the dotted border is the
   leader line between them. */
.menu dt {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-weight: 700;
    border-bottom: 1.5px dotted #3B2A2655;
    margin: 14px 0px 2px 0px;
}

/* Price in serif. */
.menu dt span {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.25rem;
    white-space: nowrap;
}

/* Item description in muted brown. */
.menu dd {
    font-size: 0.95rem;
    color: #6E5A56;
}

/* Centered note that prices are samples. */
.fine-print {
    text-align: center;
    font-size: 0.85rem;
    color: #6E5A56;
    margin: 30px 0px 0px 0px;
}

/* ----- Gallery (class and element) ----- */

/* Photos two per row on phones, three per row at 768px. */
.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    max-width: 74rem;
    margin: 0px auto;
    padding: 0px 18px;
}

/* One photo with its caption. The first is full width on phones. */
.gallery figure {
    flex: 1 1 40%;
}

/* First gallery photo takes a full row on phones. */
.gallery figure:first-child {
    flex-basis: 100%;
}

/* Rounded cropped gallery photos. */
.gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 18px;
}

/* Handwritten caption under each photo. */
.gallery figcaption {
    font-family: Caveat, cursive;
    font-size: 1.3rem;
    color: #6E5A56;
    text-align: center;
    padding: 6px 0px 0px 0px;
}

/* ----- Order ahead (ID and class) ----- */

/* Blush band; steps then the pickup card on phones. */
#order {
    background-color: #F8E7E2;
    margin: 80px 0px 0px 0px;
    padding: 60px 18px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* Numbered steps with round number badges. */
.order-steps ol {
    list-style: none;
    margin: 20px 0px 0px 0px;
}

/* One step; room on the left for its number badge. position: relative
   lets the badge be placed with absolute positioning. */
.order-steps li {
    position: relative;
    padding: 10px 0px 10px 52px;
}

/* White circle with a rose number. counter() reads the list's own
   numbering so each step shows 1, 2, 3. */
.order-steps li::before {
    content: counter(list-item);
    position: absolute;
    left: 0px;
    top: 6px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #FFFFFF;
    color: #A0525F;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    text-align: center;
    line-height: 38px;
}

/* White pickup card with a soft shadow. */
.pickup-card {
    background-color: #FFFFFF;
    border-radius: 26px;
    padding: 26px;
    box-shadow: 0px 30px 60px #3B2A2614;
}

/* "This weekend" title. */
.pickup-card h3 {
    font-size: 1.7rem;
    font-weight: 700;
}

/* Small muted note under the title. */
.small {
    font-size: 0.9rem;
    color: #6E5A56;
    margin: 0px 0px 16px 0px;
}

/* One day's box of time slots. */
.day {
    border: 1.5px solid #3B2A2626;
    border-radius: 18px;
    padding: 14px;
    margin: 0px 0px 12px 0px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Day name. */
.day legend {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 0px 6px;
}

/* One time slot drawn as a pill. The radio button sits inside it. */
.day label {
    background-color: #F4EFE9;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

/* The radio inside a slot is tinted rose. */
.day input {
    accent-color: #A0525F;
}

/* A full slot is faded and struck through, and its label says "full". */
.day label.full {
    color: #6E5A56;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Full-width submit button inside the card. */
.pickup-card .button {
    width: 100%;
    margin: 10px 0px 0px 0px;
}

/* ----- Custom cakes (ID) ----- */

/* display: flow-root makes the section tall enough to hold the photo
   once it floats at 768px. The section is centered with room around it. */
#cakes {
    display: flow-root;
    max-width: 68rem;
    margin: 0px auto;
    padding: 70px 18px;
}

/* Round cake photo with a blush ring. Centered on phones. */
#cakes img {
    width: 260px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    border: 12px solid #F8E7E2;
    margin: 0px auto 28px auto;
}

/* Paragraph spacing. */
#cakes p:not(.handwritten) {
    margin: 0px 0px 22px 0px;
}

/* ----- Footer (class) ----- */

/* Centered footer with a hairline above it. */
.site-footer {
    text-align: center;
    border-top: 1px solid #3B2A2618;
    padding: 36px 18px;
    font-size: 0.875rem;
    color: #6E5A56;
}

/* Smaller wordmark in the footer, in chocolate. */
.site-footer .wordmark {
    font-size: 1.8rem;
    color: #3B2A26;
    margin: 0px 0px 8px 0px;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Bigger wordmark. */
    .wordmark {
        font-size: 3rem;
    }

    /* Taller gallery photos. */
    .gallery img {
        height: 240px;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Menu halves side by side. */
    .menu-columns {
        flex-direction: row;
    }

    /* Three gallery photos per row, the first one wider. */
    .gallery figure,
    .gallery figure:first-child {
        flex: 1 1 0px;
    }

    /* The first photo is a bit wider than the other two. */
    .gallery figure:first-child {
        flex-grow: 1.3;
    }

    /* The cake photo floats left so the text wraps beside it. */
    #cakes img {
        float: left;
        width: 40%;
        margin: 0px 50px 20px 0px;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Three hero columns: arch, words, arch. order moves the words into
       the middle without changing the HTML (words come first for phones
       and screen readers). */
    .hero {
        flex-wrap: nowrap;
        gap: 34px;
        padding: 60px 24px;
    }

    /* The left arch comes first. */
    .arch-left {
        order: 1;
    }

    /* Words in the middle and a little wider than each arch. */
    .hero-words {
        order: 2;
        flex: 1.1 1 0px;
        align-self: center;
        margin: 0px;
    }

    /* The right arch comes last, raised up for a staggered look. */
    .arch-right {
        order: 3;
        margin: 0px 0px 60px 0px;
    }

    /* Order section: steps and card side by side. */
    #order {
        flex-direction: row;
        align-items: center;
        gap: 60px;
        padding: 90px 6vw;
    }

    /* Steps column. */
    .order-steps {
        flex: 0.9 1 0px;
    }

    /* Card column. */
    .pickup-card {
        flex: 1.1 1 0px;
    }

    /* Two days side by side inside the card. */
    .pickup-card {
        display: flex;
        flex-wrap: wrap;
        gap: 0px 14px;
    }

    /* Title, note and button take full rows inside the card. */
    .pickup-card h3,
    .pickup-card .small,
    .pickup-card .button {
        flex-basis: 100%;
    }

    /* The two days share the row. */
    .day {
        flex: 1 1 0px;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Taller gallery on big screens. */
    .gallery img {
        height: 330px;
    }
}
