/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Cleaver & Co. Meat Market (fictional business)
    Filename:   styles.css

    Theme: an old-time meat market. The header is a white enamel sign
    with a red border and the nav hangs under it like tags on S-hooks,
    then a red-and-white striped awning with a scalloped edge. The hero
    is a slate chalkboard with today's case. The signature is a freezer
    beef cut sheet: the real paper form a customer fills out, with
    numbered boxes for how much, how thick and who it's for. Bundles are
    packages wrapped in white butcher paper with folded corners, twine
    tied in a cross, and a stamped label. The footer is a butcher block.

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

    Colors (WebAIM contrast checked, AA):
      #1C1210 text on #FBF7F4 page (17.6:1)
      #991B1B red text and borders (7.9:1 on the page)
      #FFFFFF on #991B1B buttons (8.3:1)
      #F5F5F4 chalk on #2E3330 slate (12.0:1)
      #1C1210 on #FFFFFF butcher paper (19.3:1)
*/

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

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

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

/* Warm white page. */
body {
    background-color: #FBF7F4;
    color: #1C1210;
    font-family: "Libre Franklin", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

/* Fat display headings. */
h1,
h2 {
    font-family: "Abril Fatface", Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
}

/* Section titles in red. */
h2 {
    font-size: clamp(1.9rem, 5vw, 2.8rem);
    color: #991B1B;
    margin-bottom: 10px;
}

/* Links in red. */
a {
    color: #991B1B;
}

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

/* ----- Storefront header (class) ----- */

/* Brick-red wall behind the sign. */
.storefront {
    background-color: #7F1D1D;
    padding-top: 14px;
}

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

/* White enamel sign with a red pinstripe border and rounded corners. */
.enamel {
    position: relative;
    background-color: #FFFFFF;
    border: 4px solid #991B1B;
    outline: 2px solid #FFFFFF;
    outline-offset: 2px;
    border-radius: 14px;
    margin: 0px 16px;
    padding: 12px 16px;
    text-align: center;
}

/* Shop name. */
.shop-name {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 2rem;
    line-height: 1;
    color: #991B1B;
}

/* Shop subtitle. */
.shop-sub {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* Menu button in the sign corner. */
.menu-icon {
    display: inline-block;
    margin-top: 8px;
    font-weight: 700;
    border: 2px solid #1C1210;
    border-radius: 999px;
    padding: 2px 12px;
    cursor: pointer;
}

/* Hook nav hidden on phones until opened. */
.hooks {
    display: none;
}

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

/* Tags hanging in a row. */
.hooks ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    padding: 18px 16px 12px 16px;
}

/* One tag on an S-hook. */
.hooks li {
    position: relative;
}

/* The S-hook above each tag. */
.hooks li::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 10px;
    height: 14px;
    margin-left: -5px;
    border: 2px solid #D6D3D1;
    border-bottom: none;
    border-radius: 6px 6px 0px 0px;
}

/* The paper tag. */
.hooks a {
    display: block;
    background-color: #F5F5F4;
    color: #1C1210;
    font-weight: 700;
    text-decoration: none;
    padding: 4px 14px;
    border-radius: 4px;
}

/* Hover underline. */
.hooks a:hover {
    text-decoration: underline;
}

/* Striped awning with a scalloped lower edge. */
.awning {
    height: 46px;
    margin-top: 10px;
    background-image: repeating-linear-gradient(90deg, #991B1B 0px, #991B1B 40px, #FFFFFF 40px, #FFFFFF 80px);
    mask-image: radial-gradient(circle 20px at 20px 26px, #000000 96%, transparent 100%), linear-gradient(#000000, #000000);
    mask-size: 40px 46px, 100% 26px;
    mask-repeat: repeat-x, no-repeat;
}

/* ----- Concept note (class) ----- */

/* Small note under the awning. */
.concept {
    font-size: 0.8rem;
    text-align: center;
    padding: 6px 16px;
}

/* ----- Counter hero (class) ----- */

/* Chalkboard then photo on phones. */
.counter {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 16px 50px 16px;
}

/* Slate chalkboard in a wood frame. */
.chalk {
    background-color: #2E3330;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 6px 6px;
    color: #F5F5F4;
    border: 12px solid #7C4A1E;
    padding: 24px 22px;
}

/* Headline in chalk. */
.chalk h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 12px;
}

/* Chalk paragraph. */
.chalk > p {
    margin-bottom: 14px;
}

/* Today's case list. */
.today {
    list-style: none;
    border-top: 2px dashed rgba(245, 245, 244, 0.5);
}

/* One item, name and price apart. */
.today li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0px;
    border-bottom: 2px dashed rgba(245, 245, 244, 0.5);
    font-weight: 700;
}

/* Little note on the board. */
.chalk-note {
    font-size: 0.8rem;
    margin-top: 8px;
}

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

/* ----- Cut sheet (ID) ----- */

/* Pale red tint band. */
#cutsheet {
    background-color: #F3E5E3;
    padding: 56px 16px;
}

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

/* The sheet of paper. */
.sheet {
    background-color: #FFFFFF;
    border: 2px solid #1C1210;
    box-shadow: 8px 8px 0px #991B1B;
}

/* Each numbered box on the sheet. */
.sheet fieldset {
    border: none;
    border-bottom: 2px solid #1C1210;
    padding: 16px 18px;
}

/* Box title like a printed form heading. */
.sheet legend {
    float: left;
    width: 100%;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    background-color: #1C1210;
    color: #FFFFFF;
    padding: 2px 8px;
    margin-bottom: 10px;
}

/* Radio circles drawn as check boxes on paper. */
.share input {
    width: 20px;
    height: 20px;
    accent-color: #991B1B;
    vertical-align: top;
    margin: 4px 8px 10px 0px;
}

/* Each share choice on its own line. */
.share label {
    display: inline-block;
    width: calc(100% - 32px);
    font-weight: 700;
    margin-bottom: 8px;
}

/* Share detail in small type. */
.share small {
    display: block;
    font-weight: 400;
}

/* Labels for the selects and fields. */
.cuts label,
.who label {
    display: block;
    clear: both;
    font-weight: 700;
}

/* Fields are underlined blanks. */
.sheet select,
.sheet input[type="text"],
.sheet input[type="tel"] {
    width: 100%;
    font: inherit;
    border: none;
    border-bottom: 2px solid #1C1210;
    background-color: #FBF7F4;
    padding: 6px;
    margin: 2px 0px 12px 0px;
}

/* Red stamp-style button. */
button {
    background-color: #991B1B;
    color: #FFFFFF;
    font-family: "Libre Franklin", Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
}

/* Button hover. */
button:hover {
    background-color: #1C1210;
}

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

/* ----- Bundles (class) ----- */

/* Section spacing. */
.bundles {
    padding: 56px 16px;
}

/* Packages stack on phones. */
.packages {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 18px 0px 24px 0px;
}

/* A package wrapped in white paper, folded corners, twine crossed over it. */
.wrap-pack {
    position: relative;
    background-color: #FFFFFF;
    background-image: linear-gradient(90deg, transparent calc(50% - 2px), #A16207 calc(50% - 2px), #A16207 calc(50% + 2px), transparent calc(50% + 2px)), linear-gradient(0deg, transparent calc(50% - 2px), #A16207 calc(50% - 2px), #A16207 calc(50% + 2px), transparent calc(50% + 2px)), linear-gradient(135deg, #E7E5E4 0px, #E7E5E4 30px, transparent 30px), linear-gradient(315deg, #E7E5E4 0px, #E7E5E4 30px, transparent 30px);
    border: 1px solid #D6D3D1;
    padding: 30px 24px;
    min-height: 170px;
    box-shadow: 0px 6px 12px rgba(28, 18, 16, 0.12);
}

/* Stamped label in the middle of the package. */
.label {
    position: relative;
    display: inline-block;
    background-color: #FFFFFF;
    border: 3px solid #991B1B;
    color: #991B1B;
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 1.3rem;
    padding: 2px 12px;
    transform: rotate(-3deg);
    margin-bottom: 10px;
}

/* Contents on a white chip so the twine doesn't cross the words. */
.wrap-pack p:not(.label) {
    position: relative;
    background-color: rgba(255, 255, 255, 0.92);
    padding: 4px 8px;
}

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

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

/* ----- Visit (class) ----- */

/* Photo then text on phones. */
.visit {
    display: flex;
    flex-direction: column;
    gap: 22px;
    background-color: #2E3330;
    color: #F5F5F4;
    padding: 56px 16px;
}

/* Steak photo. */
.visit > img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Visit title in chalk white. */
.visit h2 {
    color: #F5F5F4;
}

/* Paragraph spacing. */
.visit p {
    margin-bottom: 10px;
}

/* Phone link in chalk white. */
.visit a {
    color: #F5F5F4;
}

/* ----- Butcher block footer (class) ----- */

/* End-grain wood blocks. */
.block {
    background-color: #A16207;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px), linear-gradient(0deg, rgba(0, 0, 0, 0.15) 1px, transparent 1px);
    background-size: 46px 46px;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
    text-shadow: 0px 1px 2px #000000;
}

/* Footer lines on a dark chip for contrast over the wood. */
.block p {
    display: inline-block;
    background-color: rgba(28, 18, 16, 0.75);
    padding: 2px 10px;
    margin: 2px 0px;
}

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

@media (min-width: 576px) {

    /* Bigger shop name. */
    .shop-name {
        font-size: 2.6rem;
    }
}

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

@media (min-width: 768px) {

    /* Chalkboard beside the photo. */
    .counter {
        flex-direction: row;
        align-items: stretch;
        padding-left: 40px;
        padding-right: 40px;
    }

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

    /* Photo fills the height. */
    .counter > img {
        height: auto;
    }

    /* Packages in a row. */
    .packages {
        flex-direction: row;
    }

    /* Each package a third. */
    .wrap-pack {
        flex: 1 1 33%;
    }

    /* Photo beside the visit text. */
    .visit {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Photo column. */
    .visit > img {
        width: 40%;
    }
}

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

@media (min-width: 992px) {

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

    /* Hooks always showing. */
    .hooks {
        display: block;
    }

    /* Cut sheet sections side by side. */
    .sheet {
        display: flex;
    }

    /* Each box a third, divided by lines. */
    .sheet fieldset {
        flex: 1 1 33%;
        border-bottom: none;
        border-right: 2px solid #1C1210;
    }

    /* Last box has no right line. */
    .sheet fieldset:last-child {
        border-right: none;
    }

    /* Wider section padding. */
    #cutsheet,
    .bundles {
        padding-left: 50px;
        padding-right: 50px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .counter,
    #cutsheet,
    .bundles,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Sign stays a sensible width. */
    .enamel {
        max-width: 720px;
        margin: 0px auto;
    }
}
