/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Old Mill Antique Mall (fictional business)
    Filename:   styles.css

    Theme: a mill full of old things. The header is a page from an old
    ledger: yellowed paper, a red double rule down the left margin and
    blue ruled lines, with a mill wheel (conic-gradient spokes) beside
    the name. The hero photo hangs in a gilt picture frame built from
    layered box-shadows. The signature is a hand-drawn booth map of the
    first floor, numbered booths with their specialties along an aisle.
    The second feature is an oversized manila string tag explaining how
    to read a dealer's price tag. The footer is the bottom of a ledger
    page with a total line.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1F150C text on #FBF6EE page (17.0:1)
      #78350F brown text and buttons (9.6:1; white on it 10.1:1)
      #0E7068 teal text (5.8:1 on the page)
      #1F150C on #E8D9A8 manila (12.3:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Old paper page. */
body {
    background-color: #FBF6EE;
    color: #1F150C;
    font-family: "Lora", Georgia, serif;
    font-size: 1.02rem;
    line-height: 1.65;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Old-print headings. */
h1,
h2 {
    font-family: "IM Fell English", Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.8rem);
    color: #78350F;
    margin-bottom: 10px;
}

/* Links in brown. */
a {
    color: #78350F;
}

/* Teal outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .ledger-row .menu-icon {
    outline: 3px solid #0E7068;
    outline-offset: 3px;
}

/* ----- Ledger header (class) ----- */

/* Yellowed ledger paper: blue rules and a red double margin line. */
.ledger {
    position: relative;
    background-color: #F5EBD3;
    background-image: linear-gradient(90deg, transparent 0px, transparent 50px, #B4533B 50px, #B4533B 52px, transparent 52px, transparent 55px, #B4533B 55px, #B4533B 57px, transparent 57px), repeating-linear-gradient(180deg, transparent 0px, transparent 23px, #B9C7D6 23px, #B9C7D6 24px);
    border-bottom: 3px double #78350F;
    padding: 12px 16px 12px 70px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.ledger-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo: wheel then words. */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Name in old type. */
.words {
    font-family: "IM Fell English", Georgia, serif;
    font-size: 1.6rem;
    line-height: 1.05;
    color: #78350F;
}

/* Second line italic. */
.words em {
    display: block;
    font-size: 0.85rem;
    color: #1F150C;
}

/* Mill wheel: a rim with eight spokes. */
.wheel {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    border: 4px solid #78350F;
    background-image: radial-gradient(circle, #78350F 0px, #78350F 5px, transparent 6px), repeating-conic-gradient(#78350F 0deg 6deg, transparent 6deg 45deg);
}

/* Menu button. */
.menu-icon {
    border: 2px solid #78350F;
    color: #78350F;
    font-weight: 700;
    padding: 2px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.ledger-nav {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .ledger-nav {
    display: block;
}

/* Nav list: one entry per ledger line. */
.ledger-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    padding-top: 8px;
}

/* Nav links in ink. */
.ledger-nav a {
    color: #1F150C;
    font-style: italic;
    text-decoration: none;
}

/* Hover: ink underline. */
.ledger-nav a:hover {
    text-decoration: underline;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Gilt-frame hero (class) ----- */

/* Frame then words on phones. */
.gallery {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 34px 16px 60px 16px;
}

/* Gilt frame: gold layers with a dark inner lip. */
.gilt {
    padding: 10px;
    background-image: linear-gradient(135deg, #E9C46A, #A97A2C 45%, #F1D58B 60%, #8A5A1C);
    box-shadow: inset 0px 0px 0px 4px #5A3A10, 0px 0px 0px 6px #C8A04E, 0px 0px 0px 9px #6B4513, 0px 10px 24px rgba(31, 21, 12, 0.35);
    margin: 9px;
}

/* Photo inside the frame. */
.gilt img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border: 3px solid #5A3A10;
}

/* Headline. */
.gallery-text h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    margin-bottom: 14px;
}

/* Hero paragraph. */
.gallery-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Brown button stamped like a wax seal edge. */
.wax-btn,
button {
    display: inline-block;
    background-color: #78350F;
    color: #FFFFFF;
    font-family: "Lora", Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    box-shadow: 0px 0px 0px 3px #FBF6EE, 0px 0px 0px 5px #78350F;
    padding: 11px 24px;
    cursor: pointer;
}

/* Button hover. */
.wax-btn:hover,
button:hover {
    background-color: #0F766E;
}

/* ----- Booth map (ID) ----- */

/* Tinted band. */
#map {
    background-color: #F1E7DC;
    padding: 56px 16px;
}

/* Intro. */
.intro {
    max-width: 40rem;
    margin-bottom: 22px;
}

/* Floor outline: hand-drawn walls. */
.floor {
    border: 4px solid #1F150C;
    background-color: #FBF6EE;
    padding: 10px;
}

/* A row of booths stacks on phones. */
.aisle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* One booth. */
.booth {
    flex: 1 1 45%;
    min-height: 92px;
    border: 2px dashed #78350F;
    padding: 10px;
    font-size: 0.92rem;
}

/* Wide booths. */
.wide {
    flex: 2 1 100%;
}

/* Booth number in a circle. */
.num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0F766E;
    color: #FFFFFF;
    font-weight: 700;
    margin-bottom: 4px;
}

/* Main aisle label. */
.aisle {
    text-align: center;
    font-style: italic;
    color: #0E7068;
    padding: 18px 0px;
    border-top: 2px dotted #6B645C;
    border-bottom: 2px dotted #6B645C;
    margin: 10px 0px;
}

/* Front door gap in the bottom wall. */
.door {
    margin: 10px auto -14px auto;
    width: 190px;
    text-align: center;
    background-color: #FBF6EE;
    border-left: 4px solid #1F150C;
    border-right: 4px solid #1F150C;
    font-weight: 700;
    font-size: 0.85rem;
}

/* ----- Reading a tag (class) ----- */

/* Section spacing. */
.tags {
    padding: 56px 16px;
}

/* Tag then key. */
.tag-row {
    display: flex;
    flex-direction: column;
    gap: 26px;
    margin-bottom: 28px;
}

/* Big manila string tag with a reinforced hole and a string. */
.string-tag {
    position: relative;
    max-width: 320px;
    background-color: #E8D9A8;
    border: 1px solid #B9A26A;
    padding: 60px 22px 22px 22px;
    clip-path: polygon(20% 0%, 80% 0%, 100% 14%, 100% 100%, 0% 100%, 0% 14%);
    font-family: "IM Fell English", Georgia, serif;
    transform: rotate(-3deg);
}

/* Reinforced hole. */
.string-tag::before {
    content: "";
    position: absolute;
    top: 16px;
    left: 50%;
    width: 18px;
    height: 18px;
    margin-left: -9px;
    border-radius: 50%;
    background-color: #FBF6EE;
    box-shadow: 0px 0px 0px 5px #C9B47A;
}

/* Booth line. */
.t-booth {
    font-size: 1.1rem;
    border-bottom: 1px solid #6B645C;
}

/* Item line, handwritten feel. */
.t-item {
    font-style: italic;
    font-size: 1.15rem;
    padding: 8px 0px;
    border-bottom: 1px solid #6B645C;
}

/* Price. */
.t-price {
    font-size: 2.6rem;
    color: #78350F;
}

/* Dealer code circled. */
.t-code {
    display: inline-block;
    border: 2px solid #0A4F49;
    border-radius: 50%;
    padding: 2px 10px;
    color: #0A4F49;
    font-weight: 700;
}

/* Key to the tag. */
.key {
    list-style: none;
}

/* One key line. */
.key li {
    padding: 10px 0px;
    border-bottom: 1px solid #DAD4CC;
}

/* Key term. */
.key strong {
    display: block;
    color: #0E7068;
}

/* Two photos. */
.tag-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.tag-photos img {
    width: 50%;
    height: 220px;
    object-fit: cover;
}

/* ----- Visit (class) ----- */

/* Photo then card. */
.visit {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #1F150C;
    color: #FFFFFF;
    padding: 56px 16px;
}

/* Aisle photo. */
.visit img {
    height: 280px;
    object-fit: cover;
}

/* Title in light gold. */
.visit h2 {
    color: #E9C46A;
}

/* Form box. */
.hunt-form fieldset {
    border: 1px solid #E9C46A;
    padding: 18px;
    margin-top: 18px;
}

/* Form title. */
.hunt-form legend {
    font-style: italic;
    padding: 0px 8px;
}

/* Labels. */
.hunt-form label {
    display: block;
    margin-top: 10px;
}

/* Inputs. */
.hunt-form input {
    width: 100%;
    font-family: "Lora", Georgia, serif;
    font-size: 1rem;
    padding: 9px;
    border: none;
    background-color: #FBF6EE;
}

/* Submit spacing. */
.hunt-form button {
    margin-top: 16px;
}

/* ----- Ledger footer (class) ----- */

/* Paper with a double total line across the top. */
.foot-ledger {
    background-color: #F5EBD3;
    border-top: 6px double #1F150C;
    font-size: 0.82rem;
    text-align: center;
    padding: 26px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Booths a quarter wide. */
    .booth {
        flex: 1 1 22%;
    }

    /* Wide booths a bit wider. */
    .wide {
        flex: 2 1 30%;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Tag beside the key. */
    .tag-row {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

    /* Tag column. */
    .string-tag {
        flex: 0 0 300px;
    }

    /* Photo beside the card. */
    .visit {
        flex-direction: row;
        align-items: center;
    }

    /* Each half. */
    .visit img,
    .visit-card {
        width: 50%;
    }

    /* Taller photo. */
    .visit img {
        height: 440px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .ledger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .ledger-nav {
        display: block;
    }

    /* Nav in a row. */
    .ledger-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Frame beside the words. */
    .gallery {
        flex-direction: row;
        align-items: center;
        padding: 50px 40px 70px 40px;
    }

    /* Frame column. */
    .gilt {
        flex: 1 1 52%;
    }

    /* Taller photo. */
    .gilt img {
        height: 440px;
    }

    /* Words column. */
    .gallery-text {
        flex: 1 1 44%;
    }

    /* Wider sections. */
    #map,
    .tags,
    .visit {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .gallery,
    #map,
    .tags,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
