/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Prairie Hollow Feed & Seed (fictional business)
    Filename:   styles.css

    Theme: the farm store porch. The header is a wooden sign (wood grain
    from stacked gradients) hung by two chains drawn with dashed
    borders, and the nav links are small planks. The hero welcome is
    printed on a burlap feed sack with a stitched top seam. Chick days
    is an egg carton: six cups, each holding an egg in the color that
    breed lays (brown, blue, white, speckled, chocolate). Hay prices sit
    on stacked hay bales with straw texture and twine bands. The
    pre-order form is clipped to a clipboard, and the footer is a split
    rail fence.

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

    Colors (WebAIM contrast checked, AA):
      #1A2410 text on #FAF8EE page (15.6:1)
      #45700E green text (5.9:1 on the page)
      #FFFFFF on #4D7C0F buttons (5.1:1)
      #FFF7E6 sign letters on #6B4423 wood (8.4:1)
      #1A2410 on #D9C08A burlap (9.5:1)
*/

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

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

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

/* Cream page. */
body {
    background-color: #FAF8EE;
    color: #1A2410;
    font-family: "Karla", Arial, sans-serif;
    font-size: 1.04rem;
    line-height: 1.65;
}

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

/* Slab headings like stenciled sacks. */
h1,
h2 {
    font-family: "Rokkitt", Georgia, serif;
    font-weight: 800;
    line-height: 1.05;
}

/* Section titles in green. */
h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #45700E;
    margin-bottom: 10px;
}

/* Links in green. */
a {
    color: #45700E;
}

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

/* ----- Porch header (class) ----- */

/* Pale sky above the hanging sign. */
.porch {
    background-color: #EEF2E2;
    padding: 0px 16px 12px 16px;
    border-bottom: 6px solid #6B4423;
}

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

/* Sign hangs on the left, menu on the right. */
.hang {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

/* The wooden sign hung by two chains. */
.board-sign {
    position: relative;
    margin-top: 30px;
    background-color: #6B4423;
    background-image: repeating-linear-gradient(180deg, transparent 0px, transparent 7px, rgba(0, 0, 0, 0.12) 7px, rgba(0, 0, 0, 0.12) 8px, transparent 8px, transparent 15px), linear-gradient(90deg, #7A4F2A, #5E3B1C, #7A4F2A);
    color: #FFF7E6;
    font-family: "Rokkitt", Georgia, serif;
    font-weight: 800;
    font-size: 1.6rem;
    line-height: 1;
    padding: 12px 18px;
    border-radius: 6px;
    box-shadow: 0px 4px 0px #3F2711;
}

/* Chains: dashed lines up to the porch beam. */
.board-sign::before {
    content: "";
    position: absolute;
    top: -30px;
    left: 18px;
    right: 18px;
    height: 30px;
    border-left: 3px dashed #57534E;
    border-right: 3px dashed #57534E;
}

/* Second line burned in smaller. */
.board-sign span {
    display: block;
    font-family: "Karla", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.68rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-top: 4px;
}

/* Menu button. */
.menu-icon {
    background-color: #4D7C0F;
    color: #FFFFFF;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    cursor: pointer;
}

/* Plank nav hidden on phones until opened. */
.planks {
    display: none;
}

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

/* Plank list. */
.planks ul {
    list-style: none;
    padding-top: 12px;
}

/* One plank link: a short board with nail heads. */
.planks a {
    display: block;
    background-color: #C9A06A;
    background-image: radial-gradient(circle 3px at 10px 50%, #57534E 96%, transparent 100%), radial-gradient(circle 3px at calc(100% - 10px) 50%, #57534E 96%, transparent 100%);
    color: #1A2410;
    font-weight: 700;
    text-decoration: none;
    padding: 8px 24px;
    margin-bottom: 6px;
    border-radius: 3px;
}

/* Plank hover darkens. */
.planks a:hover {
    background-color: #B98C52;
}

/* Concept note. */
.concept {
    font-size: 0.78rem;
    margin-top: 10px;
}

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

/* Photo then sack on phones. */
.hero {
    position: relative;
}

/* Feed photo. */
.hero > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Burlap sack: woven texture, stitched top seam. */
.sack {
    position: relative;
    background-color: #D9C08A;
    background-image: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 2px, transparent 2px, transparent 5px), repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0px, rgba(0, 0, 0, 0.06) 2px, transparent 2px, transparent 5px);
    border-top: 4px dashed #6B4423;
    padding: 26px 22px 30px 22px;
    margin: -40px 14px 40px 14px;
    box-shadow: 0px 10px 22px rgba(26, 36, 16, 0.25);
}

/* Small print at the top of the sack. */
.sack-top {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Headline stenciled on the sack. */
.sack h1 {
    font-size: clamp(2rem, 6vw, 3.4rem);
    margin: 6px 0px 12px 0px;
}

/* Sack paragraph. */
.sack p:not(.sack-top) {
    margin-bottom: 16px;
}

/* Button: green with a stamped edge. */
.stamp-btn,
button {
    display: inline-block;
    background-color: #4D7C0F;
    color: #FFFFFF;
    font-family: "Rokkitt", Georgia, serif;
    font-weight: 800;
    font-size: 1.25rem;
    text-decoration: none;
    border: 3px double #FFFFFF;
    outline: 3px solid #4D7C0F;
    padding: 6px 20px;
    cursor: pointer;
}

/* Button hover. */
.stamp-btn:hover,
button:hover {
    background-color: #2F4D09;
    outline-color: #2F4D09;
}

/* ----- Chick days (ID) ----- */

/* Section spacing. */
#chicks {
    padding: 56px 18px;
}

/* Intro line. */
.intro {
    max-width: 42rem;
    margin-bottom: 22px;
}

/* The egg carton: gray pulp with six cups. */
.carton {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background-color: #C9C4B5;
    padding: 12px;
    border-radius: 10px;
    border-bottom: 10px solid #A8A291;
    margin-bottom: 24px;
}

/* One cup holding an egg and its breed. */
.carton li {
    flex: 1 1 45%;
    background-color: #B8B2A1;
    box-shadow: inset 0px 8px 14px rgba(0, 0, 0, 0.25);
    border-radius: 40px 40px 12px 12px;
    padding: 14px 8px 12px 8px;
    text-align: center;
    font-size: 0.85rem;
}

/* Breed name. */
.carton strong {
    display: block;
    font-family: "Rokkitt", Georgia, serif;
    font-size: 1.15rem;
    line-height: 1.1;
}

/* An egg: taller than wide, narrower at the top. */
.egg {
    display: block;
    width: 46px;
    height: 58px;
    margin: 0px auto 8px auto;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background-color: var(--shell);
    box-shadow: inset -6px -6px 0px rgba(0, 0, 0, 0.1), inset 6px 6px 0px rgba(255, 255, 255, 0.35);
}

/* Buff Orpington brown. */
.e-buff {
    --shell: #C8956A;
}

/* Ameraucana blue. */
.e-blue {
    --shell: #A7D3D9;
}

/* Leghorn white. */
.e-white {
    --shell: #FBFAF5;
}

/* Rhode Island Red brown. */
.e-red {
    --shell: #A9704A;
}

/* Barred Rock light brown. */
.e-barred {
    --shell: #E3C29F;
}

/* Marans chocolate with dark speckles. */
.e-choc {
    --shell: #6E3B23;
    background-image: radial-gradient(circle 2px at 30% 40%, #3B1F12 96%, transparent 100%), radial-gradient(circle 2px at 65% 60%, #3B1F12 96%, transparent 100%), radial-gradient(circle 2px at 45% 75%, #3B1F12 96%, transparent 100%);
}

/* Hens photo. */
.hens {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 6px;
}

/* ----- Hay (class) ----- */

/* Green tint band; bales then photo. */
.hay {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #ECEEDC;
    padding: 56px 18px;
}

/* Hay paragraph. */
.hay-text > p {
    margin-bottom: 14px;
}

/* Stacked bales. */
.bales {
    list-style: none;
}

/* One bale: straw texture with two twine bands. */
.bales li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background-color: #E9C46A;
    background-image: linear-gradient(90deg, transparent 22%, #8B5A2B 22%, #8B5A2B 24%, transparent 24%, transparent 76%, #8B5A2B 76%, #8B5A2B 78%, transparent 78%), repeating-linear-gradient(170deg, rgba(139, 90, 43, 0.15) 0px, rgba(139, 90, 43, 0.15) 2px, transparent 2px, transparent 6px);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 6px;
    font-weight: 700;
}

/* Every other bale sits offset, like a stack. */
.bales li:nth-child(even) {
    margin-left: 20px;
    margin-right: -10px;
}

/* Bale words on a light chip so the twine doesn't cross them. */
.bales span {
    background-color: rgba(255, 247, 230, 0.85);
    padding: 0px 6px;
}

/* Price tag on the bale. */
.bales b {
    background-color: #FFFFFF;
    border: 2px solid #1A2410;
    padding: 0px 8px;
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #636759;
    margin-top: 10px;
}

/* Hay field photo. */
.hay > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* ----- Pre-order (class) ----- */

/* Clipboard then farmer photo. */
.order {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 56px 18px 60px 18px;
}

/* Clipboard: brown board with white paper on it. */
.clipboard {
    position: relative;
    background-color: #8B5A2B;
    padding: 34px 14px 14px 14px;
    border-radius: 10px;
}

/* Metal clip at the top. */
.clip {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 110px;
    height: 34px;
    margin-left: -55px;
    background-color: #A8A29E;
    border-radius: 8px 8px 4px 4px;
    box-shadow: inset 0px -6px 0px #78716C;
}

/* The paper. */
.clipboard fieldset {
    background-color: #FFFFFF;
    border: none;
    padding: 20px;
}

/* Paper title. */
.clipboard legend {
    float: left;
    width: 100%;
    font-family: "Rokkitt", Georgia, serif;
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* Labels. */
.clipboard label {
    display: block;
    clear: both;
    font-weight: 700;
}

/* Fields. */
.clipboard input,
.clipboard select {
    width: 100%;
    font: inherit;
    border: 2px solid #D8D8CD;
    border-radius: 4px;
    padding: 8px 10px;
    margin: 2px 0px 12px 0px;
}

/* Farmer photo. */
.farmer img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* Hours caption. */
.farmer figcaption {
    margin-top: 10px;
    font-weight: 700;
}

/* ----- Fence footer (class) ----- */

/* Split-rail fence along the top of the footer. */
.fence {
    background-color: #1A2410;
    color: #B7B8AB;
    font-size: 0.82rem;
    padding: 54px 18px 24px 18px;
    background-image: linear-gradient(180deg, transparent 8px, #8B5A2B 8px, #8B5A2B 16px, transparent 16px, transparent 26px, #8B5A2B 26px, #8B5A2B 34px, transparent 34px), linear-gradient(90deg, #6B4423 0px, #6B4423 10px, transparent 10px);
    background-size: 100% 40px, 120px 44px;
    background-repeat: no-repeat, repeat-x;
}

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

@media (min-width: 576px) {

    /* Three cups a row. */
    .carton li {
        flex: 1 1 30%;
    }
}

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

@media (min-width: 768px) {

    /* Bales beside the hay photo. */
    .hay {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

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

    /* Taller photo. */
    .hay > img {
        height: 440px;
    }

    /* Clipboard beside the photo. */
    .order {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .clipboard,
    .farmer {
        flex: 1 1 50%;
    }
}

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

@media (min-width: 992px) {

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

    /* Sign on the left, planks on the right. */
    .porch {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
    }

    /* Planks always shown. */
    .planks {
        display: block;
    }

    /* Planks in a row. */
    .planks ul {
        display: flex;
        gap: 8px;
    }

    /* Concept note on its own row. */
    .concept {
        flex: 1 1 100%;
    }

    /* Sack floats over the right of the photo. */
    .hero > img {
        height: 540px;
    }

    /* Sack position. */
    .sack {
        position: absolute;
        right: 6%;
        top: 60px;
        width: 480px;
        margin: 0px;
        transform: rotate(1.5deg);
    }

    /* Six cups in one row, like a real carton. */
    .carton li {
        flex: 1 1 14%;
    }

    /* Chicks section wider padding. */
    #chicks {
        padding-left: 50px;
        padding-right: 50px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .porch,
    #chicks,
    .hay,
    .order {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
