/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Table & Twine Catering (fictional business)
    Filename:   styles.css

    Theme: wedding stationery on a farm table. The header is a cream
    invitation card with a soft deckled shadow and a monogram inside a
    leaf wreath (a ring of small green leaves from a repeating conic-
    gradient, masked to a ring). The hero lays a linen table runner
    (fine woven texture) across the platter photo. Serving styles are
    entree choices from an RSVP card, each with a round tick box. The
    planning timeline is a seating chart: each milestone is a round
    table with chairs drawn around it as dots. The quote form is the
    RSVP card itself, and the footer is kraft paper tied with twine.

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

    Colors (WebAIM contrast checked, AA):
      #1A2009 text on #FBFAF3 page (16.8:1)
      #365314 olive headings and links (9.4:1 on the page)
      #FFFFFF on #365314 buttons (10.0:1)
      #8D6103 gold text (5.0:1)
      #1A2009 on #F2EBD9 linen (14.6:1)
*/

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

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

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

/* Soft linen page. */
body {
    background-color: #FBFAF3;
    color: #1A2009;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

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

/* Elegant serif headings. */
h1,
h2,
h3 {
    font-family: "Cormorant", Georgia, serif;
    font-weight: 600;
    line-height: 1.1;
}

/* Section titles in olive. */
h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #365314;
    text-align: center;
}

/* Links in olive. */
a {
    color: #365314;
}

/* Gold outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .invite-card .menu-icon {
    outline: 3px solid #CA8A04;
    outline-offset: 3px;
}

/* ----- Invitation header (class) ----- */

/* Sage background behind the card. */
.invite {
    background-color: #EBEDE1;
    padding: 18px 14px;
}

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

/* The invitation card. */
.invite-card {
    max-width: 640px;
    margin: 0px auto;
    background-color: #FFFEF8;
    text-align: center;
    padding: 20px 20px 12px 20px;
    border: 1px solid #D9D9D0;
    box-shadow: 0px 2px 0px #D9D9D0, 0px 6px 14px rgba(26, 32, 9, 0.1);
}

/* Monogram inside a ring of leaves. */
.wreath {
    width: 92px;
    height: 92px;
    margin: 0px auto 8px auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Cormorant", Georgia, serif;
    font-weight: 600;
    font-size: 1.6rem;
    color: #365314;
    background-image: radial-gradient(circle, #FFFEF8 0px, #FFFEF8 34px, transparent 35px), repeating-conic-gradient(#4D7C0F 0deg 8deg, #84A85A 8deg 14deg, transparent 14deg 20deg);
}

/* Italic ampersand in gold. */
.wreath span {
    font-style: italic;
    color: #8D6103;
    margin: 0px 2px;
}

/* Names line. */
.names {
    font-family: "Cormorant", Georgia, serif;
    font-weight: 600;
    font-size: 1.9rem;
    line-height: 1.05;
}

/* Subline in spaced small caps. */
.names span {
    display: block;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #8D6103;
    margin-top: 6px;
}

/* Menu button in italics. */
.menu-icon {
    display: inline-block;
    margin-top: 10px;
    font-family: "Cormorant", Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    border-bottom: 1px solid #365314;
    cursor: pointer;
}

/* Courses nav hidden on phones until opened. */
.courses {
    display: none;
}

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

/* Course list. */
.courses ul {
    list-style: none;
    padding-top: 8px;
}

/* Each course link in italics. */
.courses a {
    display: block;
    font-family: "Cormorant", Georgia, serif;
    font-style: italic;
    font-size: 1.2rem;
    color: #1A2009;
    text-decoration: none;
    padding: 3px 0px;
}

/* Olive underline on hover. */
.courses a:hover {
    color: #365314;
    text-decoration: underline;
}

/* Concept note at the bottom of the card. */
.concept {
    font-size: 0.75rem;
    color: #686B5D;
    border-top: 1px solid #D9D9D0;
    margin-top: 10px;
    padding-top: 6px;
}

/* ----- Long table hero (class) ----- */

/* Photo with the runner over it. */
.long-table {
    position: relative;
}

/* Platter photo. */
.long-table > img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Linen runner: fine woven texture, hemmed edges. */
.runner {
    position: relative;
    background-color: #F2EBD9;
    background-image: repeating-linear-gradient(0deg, rgba(26, 32, 9, 0.04) 0px, rgba(26, 32, 9, 0.04) 1px, transparent 1px, transparent 3px), repeating-linear-gradient(90deg, rgba(26, 32, 9, 0.04) 0px, rgba(26, 32, 9, 0.04) 1px, transparent 1px, transparent 3px);
    border-top: 2px dashed #B9A77C;
    border-bottom: 2px dashed #B9A77C;
    text-align: center;
    padding: 28px 22px;
    margin-top: -30px;
}

/* Headline. */
.runner h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    font-style: italic;
    font-weight: 500;
    margin-bottom: 12px;
}

/* Runner paragraph. */
.runner p {
    max-width: 36rem;
    margin: 0px auto 18px auto;
}

/* Olive button tied with a gold ribbon edge. */
.ribbon-btn,
button {
    display: inline-block;
    background-color: #365314;
    color: #FFFFFF;
    font-family: "DM Sans", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-left: 6px solid #CA8A04;
    border-right: 6px solid #CA8A04;
    padding: 12px 24px;
    cursor: pointer;
}

/* Button hover. */
.ribbon-btn:hover,
button:hover {
    background-color: #1A2009;
}

/* ----- Serving styles (ID) ----- */

/* Section spacing. */
#styles {
    padding: 60px 16px 56px 16px;
}

/* Small italic note under titles. */
.note {
    text-align: center;
    font-style: italic;
    margin-bottom: 22px;
}

/* Choice cards stack on phones. */
.choices {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* One entree choice. */
.choices li {
    background-color: #FFFFFF;
    border: 1px solid #D9D9D0;
    padding: 22px 22px 22px 66px;
    position: relative;
}

/* The round tick box to the left of each choice. */
.tick {
    position: absolute;
    left: 22px;
    top: 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid #365314;
}

/* Choice name. */
.choices h3 {
    font-size: 1.7rem;
    font-style: italic;
}

/* Price in gold. */
.price {
    color: #8D6103;
    font-weight: 700;
    margin-bottom: 6px;
}

/* Small print. */
.small {
    text-align: center;
    font-size: 0.85rem;
    color: #686B5D;
    margin-top: 14px;
}

/* ----- Seating chart (class) ----- */

/* Sage band. */
.seating {
    background-color: #EBEDE1;
    padding: 56px 16px;
}

/* Chart of round tables. */
.chart {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px 16px;
    margin-bottom: 26px;
}

/* One table and its milestone. */
.chart li {
    flex: 0 0 150px;
    text-align: center;
    font-size: 0.9rem;
}

/* Milestone name. */
.chart strong {
    display: block;
    font-family: "Cormorant", Georgia, serif;
    font-size: 1.3rem;
    color: #365314;
}

/* A round table with eight chairs around it. */
.round {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    margin: 0px auto 10px auto;
    border-radius: 50%;
    font-family: "Cormorant", Georgia, serif;
    font-weight: 600;
    font-size: 1.8rem;
    background-image: radial-gradient(circle, #FFFFFF 0px, #FFFFFF 34px, #D9D9D0 35px, #D9D9D0 36px, transparent 37px), radial-gradient(circle 7px at 50% 8px, #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at 50% calc(100% - 8px), #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at 8px 50%, #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at calc(100% - 8px) 50%, #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at 20px 20px, #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at calc(100% - 20px) 20px, #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at 20px calc(100% - 20px), #CA8A04 96%, transparent 100%), radial-gradient(circle 7px at calc(100% - 20px) calc(100% - 20px), #CA8A04 96%, transparent 100%);
}

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

/* Each photo. */
.seating-photos img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

/* ----- RSVP (class) ----- */

/* Photo then card on phones. */
.rsvp-sec {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px 60px 16px;
}

/* Buffet photo. */
.rsvp-sec > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* The RSVP card with a thin inset border. */
.rsvp {
    background-color: #FFFEF8;
    border: 1px solid #D9D9D0;
    outline: 1px solid #CA8A04;
    outline-offset: -12px;
    padding: 30px 26px;
    text-align: center;
}

/* No fieldset border. */
.rsvp fieldset {
    border: none;
}

/* Card title in italics. */
.rsvp legend {
    margin: 0px auto 12px auto;
    font-family: "Cormorant", Georgia, serif;
    font-style: italic;
    font-size: 1.6rem;
    color: #365314;
}

/* Labels in spaced caps. */
.rsvp label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Fields as single lines to write on. */
.rsvp input,
.rsvp select {
    width: 100%;
    font: inherit;
    text-align: center;
    border: none;
    border-bottom: 1px solid #1A2009;
    background-color: transparent;
    padding: 6px;
    margin: 2px 0px 14px 0px;
}

/* ----- Kraft footer (class) ----- */

/* Kraft paper with a twine line across it. */
.kraft {
    background-color: #C9A97A;
    background-image: linear-gradient(0deg, transparent calc(50% - 2px), #F2EBD9 calc(50% - 2px), #F2EBD9 calc(50% + 1px), transparent calc(50% + 1px));
    color: #1A2009;
    font-size: 0.82rem;
    text-align: center;
    padding: 26px 16px;
}

/* Footer lines on a paper tag over the twine. */
.kraft p {
    display: inline-block;
    background-color: #FFFEF8;
    padding: 2px 12px;
    margin: 2px 0px;
}

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

@media (min-width: 576px) {

    /* Taller hero photo. */
    .long-table > img {
        height: 380px;
    }
}

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

@media (min-width: 768px) {

    /* Choice cards in a row. */
    .choices {
        flex-direction: row;
    }

    /* Each choice a third. */
    .choices li {
        flex: 1 1 33%;
    }

    /* Photo beside the RSVP card. */
    .rsvp-sec {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .rsvp-sec > img,
    .rsvp {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Taller photo. */
    .rsvp-sec > img {
        height: 440px;
    }
}

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

@media (min-width: 992px) {

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

    /* Courses always shown in one line. */
    .courses {
        display: block;
    }

    /* Courses in a row with dots between. */
    .courses ul {
        display: flex;
        justify-content: center;
        gap: 26px;
    }

    /* Runner crosses the photo near its bottom. */
    .long-table > img {
        height: 520px;
    }

    /* Runner position over the photo. */
    .runner {
        position: absolute;
        left: 0px;
        right: 0px;
        bottom: 60px;
        margin: 0px;
        padding-left: 18%;
        padding-right: 18%;
    }

    /* Wider padding. */
    #styles,
    .seating {
        padding-left: 50px;
        padding-right: 50px;
    }

    /* All four tables in one row. */
    .chart li {
        flex: 1 1 22%;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    #styles,
    .seating,
    .rsvp-sec {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
