/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Greenbriar Garden Center (fictional business)
    Filename:   styles.css

    Theme: a seed packet. The header is the top of a packet with a
    zigzag tear along its bottom edge (clip-path) and a printed label,
    and the nav links are wooden plant markers with pointed ends. The
    hero is the front of the packet: the greenhouse photo as its picture
    window with the "variety" printed below. "When to plant" is styled
    as the back of the packet, a printed table of sow dates and light.
    Staff picks sit in terracotta pots (trapezoid clip-path with a rim)
    with a plant drawn above each. The visit section is framed by
    greenhouse glass panes, and the footer is layers of soil.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #0F2014 text on #F7FBF4 page (16.3:1)
      #166534 green text (7.0:1 on the page)
      #FFFFFF on #166534 buttons (7.4:1)
      #BA2165 pink text (5.4:1)
      #0F2014 on #F3E9D2 packet paper (14.0:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale leaf-green page. */
body {
    background-color: #F7FBF4;
    color: #0F2014;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 1.03rem;
    line-height: 1.65;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Soft serif headings. */
h1,
h2 {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    line-height: 1.08;
}

/* Section titles in green. */
h2 {
    font-size: clamp(1.8rem, 4.5vw, 2.6rem);
    color: #166534;
    margin-bottom: 10px;
}

/* Links in green. */
a {
    color: #166534;
}

/* Pink outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.tablewrap:focus-visible,
.menu-check:focus-visible + .packet-row .menu-icon {
    outline: 3px solid #BA2165;
    outline-offset: 3px;
}

/* ----- Packet top header (class) ----- */

/* Packet paper with a torn zigzag bottom. */
.packet-top {
    background-color: #F3E9D2;
    padding: 14px 16px 30px 16px;
    clip-path: polygon(0% 0%, 100% 0%, 100% calc(100% - 12px), 97.5% 100%, 95% calc(100% - 12px), 92.5% 100%, 90% calc(100% - 12px), 87.5% 100%, 85% calc(100% - 12px), 82.5% 100%, 80% calc(100% - 12px), 77.5% 100%, 75% calc(100% - 12px), 72.5% 100%, 70% calc(100% - 12px), 67.5% 100%, 65% calc(100% - 12px), 62.5% 100%, 60% calc(100% - 12px), 57.5% 100%, 55% calc(100% - 12px), 52.5% 100%, 50% calc(100% - 12px), 47.5% 100%, 45% calc(100% - 12px), 42.5% 100%, 40% calc(100% - 12px), 37.5% 100%, 35% calc(100% - 12px), 32.5% 100%, 30% calc(100% - 12px), 27.5% 100%, 25% calc(100% - 12px), 22.5% 100%, 20% calc(100% - 12px), 17.5% 100%, 15% calc(100% - 12px), 12.5% 100%, 10% calc(100% - 12px), 7.5% 100%, 5% calc(100% - 12px), 2.5% 100%, 0% calc(100% - 12px));
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Label and menu in a row. */
.packet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Printed label in a green oval. */
.packet-label {
    font-family: "Fraunces", Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    color: #FFFFFF;
    background-color: #166534;
    border-radius: 999px;
    padding: 8px 20px;
}

/* Second label line. */
.packet-label span {
    display: block;
    font-family: "Figtree", Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #DCFCE7;
}

/* Menu button. */
.menu-icon {
    font-weight: 700;
    border: 2px solid #166534;
    border-radius: 999px;
    padding: 3px 12px;
    cursor: pointer;
}

/* Marker nav hidden on phones until opened. */
.markers {
    display: none;
}

/* Open menu shows the markers. */
.menu-check:checked ~ .markers {
    display: block;
}

/* Markers in a row, stuck in the ground. */
.markers ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
}

/* One wooden plant marker with a pointed bottom end. */
.markers a {
    display: block;
    background-color: #E7C99A;
    color: #0F2014;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 14px 16px 14px;
    clip-path: polygon(0% 0%, 100% 0%, 100% 70%, 50% 100%, 0% 70%);
}

/* Marker hover. */
.markers a:hover {
    background-color: #D9B57C;
    text-decoration: underline;
}

/* Concept note. */
.concept {
    font-size: 0.78rem;
    margin-top: 10px;
}

/* ----- Seed packet hero (class) ----- */

/* Section spacing. */
.hero {
    padding: 26px 16px 50px 16px;
}

/* The front of the packet. */
.packet {
    background-color: #F3E9D2;
    border: 2px solid #166534;
    padding: 14px;
    box-shadow: 8px 8px 0px #BBF7D0;
}

/* Picture window. */
.packet img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border: 4px solid #FFFFFF;
}

/* Packet text. */
.packet-text {
    padding: 18px 6px 6px 6px;
}

/* Variety line in pink italics. */
.variety {
    font-family: "Fraunces", Georgia, serif;
    font-style: italic;
    color: #BA2165;
}

/* Headline. */
.packet h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 6px 0px 12px 0px;
}

/* Packet paragraph. */
.packet-text p:not(.variety) {
    max-width: 32rem;
    margin-bottom: 18px;
}

/* Green button with a trowel-blade point. */
.trowel,
button {
    display: inline-block;
    background-color: #166534;
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    border: none;
    padding: 11px 34px 11px 20px;
    clip-path: polygon(0% 0%, 86% 0%, 100% 50%, 86% 100%, 0% 100%);
    cursor: pointer;
}

/* Button hover. */
.trowel:hover,
button:hover {
    background-color: #0F2014;
}

/* ----- When to plant (ID) ----- */

/* Pink tint band; packet back then photo. */
#when {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #F4E2E5;
    padding: 56px 16px;
}

/* Back of the packet. */
.packet-back {
    background-color: #F3E9D2;
    border: 2px dashed #166534;
    padding: 22px 18px;
}

/* Subtitle. */
.sub {
    font-style: italic;
    margin-bottom: 14px;
}

/* Scroll wrapper. */
.tablewrap {
    overflow-x: auto;
}

/* Planting table. */
.packet-back table {
    width: 100%;
    min-width: 440px;
    border-collapse: collapse;
}

/* Caption hidden visually is not needed; keep it small. */
.packet-back caption {
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding-bottom: 4px;
}

/* Cells with printed rules. */
.packet-back th,
.packet-back td {
    text-align: left;
    padding: 8px 8px;
    border-bottom: 1px solid #C7B98F;
}

/* Header row in green. */
.packet-back thead th {
    color: #166534;
    border-bottom: 2px solid #166534;
}

/* Seedling trays photo. */
.trays {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ----- Pots (class) ----- */

/* Section spacing. */
.pots-sec {
    padding: 56px 16px;
}

/* Pots stand in a row on a bench. */
.pots {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 26px 14px;
    margin: 20px 0px 26px 0px;
    border-bottom: 10px solid #8B5A2B;
    padding-bottom: 6px;
}

/* One potted pick. */
.pots li {
    flex: 1 1 40%;
    text-align: center;
    font-size: 0.88rem;
}

/* Plant name. */
.pots strong {
    display: block;
    font-family: "Fraunces", Georgia, serif;
    font-size: 1.15rem;
    color: #166534;
}

/* Plant leaves above the pot. */
.plant {
    display: block;
    width: 90px;
    height: 70px;
    margin: 0px auto -6px auto;
    background-image: radial-gradient(ellipse 14px 30px at 30% 70%, #4D7C0F 96%, transparent 100%), radial-gradient(ellipse 14px 34px at 70% 66%, #4D7C0F 96%, transparent 100%), radial-gradient(ellipse 12px 36px at 50% 60%, #166534 96%, transparent 100%);
}

/* Black-eyed Susan flowers. */
.pl-susan {
    background-image: radial-gradient(circle 6px at 35% 25%, #3F2711 50%, #FACC15 54%, #FACC15 96%, transparent 100%), radial-gradient(circle 6px at 65% 18%, #3F2711 50%, #FACC15 54%, #FACC15 96%, transparent 100%), radial-gradient(ellipse 14px 30px at 30% 70%, #4D7C0F 96%, transparent 100%), radial-gradient(ellipse 14px 34px at 70% 66%, #4D7C0F 96%, transparent 100%);
}

/* Hydrangea cone blooms. */
.pl-hydra {
    background-image: radial-gradient(ellipse 12px 18px at 40% 25%, #F5F5F4 96%, transparent 100%), radial-gradient(ellipse 12px 18px at 64% 30%, #FBCFE8 96%, transparent 100%), radial-gradient(ellipse 18px 22px at 30% 75%, #166534 96%, transparent 100%), radial-gradient(ellipse 18px 22px at 70% 75%, #166534 96%, transparent 100%);
}

/* Bluestem grass blades. */
.pl-grass {
    background-image: linear-gradient(80deg, transparent 46%, #B45309 46%, #B45309 50%, transparent 50%), linear-gradient(100deg, transparent 50%, #C2410C 50%, #C2410C 54%, transparent 54%), linear-gradient(90deg, transparent 47%, #92400E 47%, #92400E 52%, transparent 52%);
}

/* Coral bells leaves in plum and lime. */
.pl-coral {
    background-image: radial-gradient(circle 16px at 35% 70%, #7E1D5B 96%, transparent 100%), radial-gradient(circle 16px at 65% 70%, #84CC16 96%, transparent 100%), radial-gradient(circle 4px at 50% 15%, #FB7185 96%, transparent 100%);
}

/* Terracotta pot: tapered body with a rim. */
.pot {
    display: block;
    width: 80px;
    height: 64px;
    margin: 0px auto 8px auto;
    background-color: #C2410C;
    background-image: linear-gradient(180deg, #D9622B 0px, #D9622B 14px, rgba(0, 0, 0, 0.12) 14px, rgba(0, 0, 0, 0.12) 16px, transparent 16px);
    clip-path: polygon(0% 0%, 100% 0%, 100% 22%, 90% 22%, 80% 100%, 20% 100%, 10% 22%, 0% 22%);
}

/* Helper photo. */
.helper {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* ----- Visit greenhouse (class) ----- */

/* Text then photo on phones. */
.visit {
    display: flex;
    flex-direction: column;
    gap: 22px;
    background-color: #0F2014;
    padding: 56px 16px;
}

/* Text inside greenhouse glass panes (a white frame grid). */
.glasshouse {
    color: #FFFFFF;
    padding: 26px 22px;
    border: 6px solid #E5E7EB;
    background-image: linear-gradient(90deg, transparent calc(50% - 3px), rgba(229, 231, 235, 0.35) calc(50% - 3px), rgba(229, 231, 235, 0.35) calc(50% + 3px), transparent calc(50% + 3px)), linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    border-radius: 120px 120px 0px 0px;
    padding-top: 60px;
}

/* Greenhouse title on dark. */
.glasshouse h2 {
    color: #BBF7D0;
}

/* Paragraph spacing. */
.glasshouse p {
    margin-bottom: 10px;
    background-color: #0F2014;
}

/* Phone link light green. */
.glasshouse a {
    color: #BBF7D0;
}

/* Fern photo. */
.visit > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Soil footer (class) ----- */

/* Layers of soil: mulch, topsoil, clay. */
.soil {
    background-image: linear-gradient(180deg, #4A2C17 0px, #4A2C17 14px, #3F2A1A 14px, #3F2A1A 60%, #7C2D12 60%);
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 30px 16px 24px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller packet photo. */
    .packet img {
        height: 340px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Packet back beside the trays photo. */
    #when {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Packet back column. */
    .packet-back {
        flex: 1 1 62%;
        min-width: 0px;
    }

    /* Photo column. */
    .trays {
        width: 34%;
        height: 420px;
    }

    /* Four pots in a row. */
    .pots li {
        flex: 1 1 20%;
    }

    /* Greenhouse beside the photo. */
    .visit {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .glasshouse,
    .visit > img {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Taller photo. */
    .visit > img {
        height: 380px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Label left, markers right. */
    .packet-top {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Markers always shown. */
    .markers {
        display: block;
    }

    /* Markers in a row. */
    .markers ul {
        padding-top: 0px;
    }

    /* Concept note on its own line. */
    .concept {
        flex: 1 1 100%;
    }

    /* Packet front: picture beside the text. */
    .packet {
        display: flex;
        align-items: center;
        gap: 24px;
    }

    /* Picture column. */
    .packet img {
        width: 50%;
        height: 440px;
    }

    /* Text column. */
    .packet-text {
        flex: 1 1 50%;
    }

    /* Wider padding. */
    .hero,
    .pots-sec {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .packet-top,
    .hero,
    #when,
    .pots-sec,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
