/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Keystone Patio & Stone (fictional business)
    Filename:   styles.css

    Theme: a stone mason's yard. The header is a carved limestone lintel
    with engraved lettering (light and dark text-shadows) and a keystone
    mark, and the nav links are river rocks with uneven border-radius.
    The hero headline sits on the cap stone of a dry-stack wall built
    from irregular stones in a flex-wrap row. Patio sizes are drawn to
    scale at 7 pixels per foot so you can compare footprints at a
    glance. The week on the job is a stepping-stone path, one stone per
    day. The estimate form is on a speckled granite slab, and the footer
    is gravel.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1C1917 text on #FAF9F7 page (17.3:1)
      #57534E stone text (7.4:1 on the page)
      #FFFFFF on #57534E buttons (7.6:1)
      #9D5604 amber text (5.4:1)
      #1C1917 on #D6D3D1 limestone (11.8:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Pale stone page. */
body {
    background-color: #FAF9F7;
    color: #1C1917;
    font-family: "Archivo", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Heavy block headings. */
h1,
h2 {
    font-family: "Archivo Black", Arial, sans-serif;
    font-weight: 400;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    margin-bottom: 10px;
}

/* Links in amber. */
a {
    color: #9D5604;
}

/* Amber outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.menu-check:focus-visible + .slab .menu-icon {
    outline: 3px solid #D97706;
    outline-offset: 3px;
}

/* ----- Lintel header (class) ----- */

/* Limestone lintel. */
.lintel {
    background-color: #D6D3D1;
    background-image: radial-gradient(rgba(87, 83, 78, 0.18) 1px, transparent 1.5px);
    background-size: 9px 9px;
    border-bottom: 8px solid #A8A29E;
    padding: 14px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Name and menu in a row. */
.slab {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Engraved letters: dark top-left shadow, light bottom-right. */
.carved {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0px 10px;
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 1.6rem;
    letter-spacing: 0.08em;
    color: #57534E;
    text-shadow: -1px -1px 0px #1C1917, 1px 1px 0px #FFFFFF;
}

/* Subline engraved smaller. */
.carved .sub {
    flex: 1 1 100%;
    font-family: "Archivo", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-shadow: none;
    color: #1C1917;
}

/* The keystone mark: a wedge. */
.keystone {
    width: 26px;
    height: 30px;
    background-color: #D97706;
    clip-path: polygon(0% 0%, 100% 0%, 80% 100%, 20% 100%);
}

/* Menu button. */
.menu-icon {
    background-color: #57534E;
    color: #FFFFFF;
    font-weight: 700;
    padding: 5px 12px;
    cursor: pointer;
}

/* River rock nav hidden on phones until opened. */
.rocks {
    display: none;
}

/* Open menu shows the rocks. */
.menu-check:checked ~ .rocks {
    display: block;
}

/* Rocks scattered in a row. */
.rocks ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 12px;
}

/* One river rock: smooth, uneven oval. */
.rocks a {
    display: block;
    background-color: #78716C;
    color: #FFFFFF;
    font-weight: 700;
    text-decoration: none;
    padding: 6px 18px;
    border-radius: 60% 40% 55% 45% / 55% 60% 40% 45%;
    box-shadow: inset -4px -4px 0px rgba(0, 0, 0, 0.2);
}

/* Second rock shape. */
.rocks li:nth-child(even) a {
    border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%;
    background-color: #57534E;
}

/* Rock hover turns amber. */
.rocks a:hover {
    background-color: #9D5604;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Dry-stack hero (class) ----- */

/* Wall then photo on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px 16px 50px 16px;
}

/* Cap stone: a long flat slab carrying the headline. */
.capstone {
    background-color: #E7E5E4;
    border: 3px solid #A8A29E;
    border-radius: 8px 14px 6px 10px;
    padding: 22px 20px;
    box-shadow: 0px 6px 0px #A8A29E;
}

/* Headline. */
.capstone h1 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    margin-bottom: 12px;
}

/* Cap stone paragraph. */
.capstone p {
    margin-bottom: 16px;
}

/* Stone-gray button with a chiseled edge. */
.chisel,
button {
    display: inline-block;
    background-color: #57534E;
    color: #FFFFFF;
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    padding: 12px 22px;
    clip-path: polygon(6% 0%, 100% 0%, 94% 100%, 0% 100%);
    cursor: pointer;
}

/* Button hover. */
.chisel:hover,
button:hover {
    background-color: #9D5604;
}

/* Dry-stack wall under the cap stone. */
.drystack {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

/* One stone, each a slightly different size and shade. */
.drystack span {
    flex: 1 1 22%;
    height: 34px;
    background-color: #A8A29E;
    border-radius: 10px 6px 12px 8px;
}

/* Darker stones. */
.drystack span:nth-child(3n) {
    background-color: #78716C;
    flex-grow: 2;
}

/* Lighter stones. */
.drystack span:nth-child(4n + 1) {
    background-color: #D6D3D1;
}

/* Tall stones. */
.drystack span:nth-child(5n) {
    height: 42px;
    flex-grow: 1.5;
}

/* Courtyard photo. */
.hero > img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

/* ----- Patio sizes (ID) ----- */

/* Amber tint band. */
#sizes {
    background-color: #F6E9DA;
    padding: 56px 16px;
}

/* Intro line. */
.intro {
    max-width: 44rem;
    margin-bottom: 22px;
}

/* Footprints share a baseline. */
.footprints {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 22px 18px;
}

/* One footprint and its label. */
.footprints li {
    flex: 1 1 40%;
    font-size: 0.9rem;
}

/* Size label. */
.footprints strong {
    display: block;
    font-family: "Archivo Black", Arial, sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
}

/* A footprint drawn with paver joints, 7px per foot. */
.fp {
    display: block;
    margin-bottom: 8px;
    background-color: #A8A29E;
    background-image: linear-gradient(90deg, #78716C 1px, transparent 1px), linear-gradient(0deg, #78716C 1px, transparent 1px);
    background-size: 14px 7px;
    border: 3px solid #57534E;
}

/* 10 by 12 feet. */
.f-small {
    width: 70px;
    height: 84px;
}

/* 12 by 16 feet. */
.f-mid {
    width: 84px;
    height: 112px;
}

/* 16 by 20 feet. */
.f-big {
    width: 112px;
    height: 140px;
}

/* 12 foot circle. */
.f-pit {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-size: auto;
    background-image: radial-gradient(circle, #C2410C 0px, #C2410C 14px, #57534E 15px, #57534E 18px, transparent 19px), repeating-conic-gradient(#A8A29E 0deg 14deg, #78716C 14deg 15deg);
}

/* Fine print. */
.fine {
    font-size: 0.85rem;
    color: #696866;
    margin-top: 14px;
}

/* ----- Stepping stones (class) ----- */

/* Section spacing. */
.week {
    padding: 56px 16px;
}

/* Path of stones. */
.steps {
    list-style: none;
    margin: 18px 0px 26px 0px;
}

/* One day: a stone then the work. */
.steps li {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

/* Stones zigzag like a real path. */
.steps li:nth-child(even) {
    margin-left: 40px;
}

/* A flat stepping stone with the day on it. */
.stone {
    flex: 0 0 74px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #D6D3D1;
    border: 3px solid #78716C;
    border-radius: 50% 45% 55% 40% / 55% 50% 45% 50%;
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 0.95rem;
}

/* Three photos. */
.week-photos {
    display: flex;
    gap: 8px;
}

/* Each photo. */
.week-photos img {
    width: 33.33%;
    height: 160px;
    object-fit: cover;
}

/* ----- Granite estimate (class) ----- */

/* Dark band. */
.estimate {
    background-color: #1C1917;
    padding: 56px 16px 60px 16px;
}

/* Speckled granite slab. */
.granite {
    max-width: 560px;
    margin: 0px auto;
    background-color: #E7E5E4;
    background-image: radial-gradient(#57534E 1px, transparent 1.5px), radial-gradient(#9D5604 1px, transparent 1.5px), radial-gradient(#FFFFFF 1px, transparent 1.5px);
    background-size: 7px 9px, 13px 11px, 9px 7px;
    background-position: 0px 0px, 4px 3px, 2px 6px;
    border-radius: 6px;
    padding: 24px 22px;
    box-shadow: 0px 0px 0px 6px #78716C;
}

/* No fieldset border. */
.granite fieldset {
    border: none;
}

/* Title engraved on the slab. */
.granite legend {
    font-family: "Archivo Black", Arial, sans-serif;
    font-size: 1.7rem;
    color: #1C1917;
    background-color: #E7E5E4;
    padding: 0px 8px;
}

/* Paragraph on a smooth polished patch. */
.granite p {
    background-color: #F5F5F4;
    padding: 6px 10px;
    margin-bottom: 12px;
}

/* Labels on polished patches. */
.granite label {
    display: inline-block;
    background-color: #F5F5F4;
    font-weight: 700;
    padding: 0px 8px;
}

/* Fields. */
.granite input,
.granite select {
    width: 100%;
    font: inherit;
    border: 2px solid #57534E;
    background-color: #FFFFFF;
    padding: 8px 10px;
    margin: 2px 0px 12px 0px;
}

/* ----- Gravel footer (class) ----- */

/* Gravel: mixed gray stones. */
.gravel {
    background-color: #78716C;
    background-image: radial-gradient(circle 4px, #A8A29E 96%, transparent 100%), radial-gradient(circle 3px, #57534E 96%, transparent 100%), radial-gradient(circle 5px, #D6D3D1 96%, transparent 100%);
    background-size: 17px 13px, 11px 19px, 23px 21px;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

/* Footer lines on dark chips. */
.gravel p {
    display: inline-block;
    background-color: #1C1917;
    padding: 2px 10px;
    margin: 2px 0px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Four footprints in one row. */
    .footprints li {
        flex: 1 1 20%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Wall beside the photo. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .wall-side,
    .hero > img {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Taller photo. */
    .hero > img {
        height: 460px;
    }

    /* Bigger footprints at 10px per foot. */
    .f-small {
        width: 100px;
        height: 120px;
    }

    /* 12 by 16. */
    .f-mid {
        width: 120px;
        height: 160px;
    }

    /* 16 by 20. */
    .f-big {
        width: 160px;
        height: 200px;
    }

    /* 12 foot circle. */
    .f-pit {
        width: 120px;
        height: 120px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Name left, rocks right. */
    .lintel {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Rocks always shown. */
    .rocks {
        display: block;
    }

    /* Rocks in a row. */
    .rocks ul {
        padding-top: 0px;
    }

    /* Path beside the photos. */
    .week {
        display: flex;
        flex-wrap: wrap;
        gap: 0px 40px;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Title spans. */
    .week h2 {
        flex: 1 1 100%;
    }

    /* Path column. */
    .steps {
        flex: 1 1 50%;
    }

    /* Photos stacked in a column. */
    .week-photos {
        flex: 1 1 40%;
        flex-direction: column;
        margin-top: 18px;
    }

    /* Each stacked photo full width. */
    .week-photos img {
        width: 100%;
        height: 120px;
    }

    /* Wider sizes section. */
    #sizes {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .lintel,
    .hero,
    #sizes,
    .week {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
