/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Second Act Consignment (fictional business)
    Filename:   styles.css

    Theme: a boutique on its second act. The header is a chrome
    clothing rack rod, and each nav link hangs from it on a wire
    hanger (a hook and a triangle made with borders). The hero photo
    is half hidden behind a velvet dressing-room curtain (folds from a
    repeating-linear-gradient) pulled to the side. The signature
    follows one jacket through 90 days on the floor as four hang tags,
    the old price struck through as each markdown hits, with what the
    consignor earns. "What we take" is two closets, yes and not right
    now. The footer is the kraft-paper bottom of a shopping bag.

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

    Colors (WebAIM contrast checked, AA):
      #22091A text on #FFF7FA page (18.6:1)
      #9D174D berry text and buttons (7.9:1; white on it 8.3:1)
      #477209 green text (6.3:1 on the page)
      #22091A on #65A30D green (5.9:1)
*/

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

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

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

/* Blush page. */
body {
    background-color: #FFF7FA;
    color: #22091A;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Fashion-magazine serif headings. */
h1,
h2,
h3 {
    font-family: "DM Serif Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.08;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.8rem);
    color: #9D174D;
    margin-bottom: 10px;
}

/* Links in berry. */
a {
    color: #9D174D;
}

/* Green outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .rack-row .menu-icon {
    outline: 3px solid #477209;
    outline-offset: 3px;
}

/* ----- Rack header (class) ----- */

/* White header with the rack rod along the bottom. */
.rack {
    position: relative;
    background-color: #FFFFFF;
    padding: 14px 16px 0px 16px;
}

/* Chrome rod. */
.rack::after {
    content: "";
    display: block;
    height: 8px;
    margin: 10px -16px 0px -16px;
    background-image: linear-gradient(180deg, #E5E7EB, #9CA3AF 50%, #6B7280);
}

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

/* Logo and menu in a row. */
.rack-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo. */
.logo {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.8rem;
    line-height: 1;
}

/* Italic "Act" in berry. */
.logo em {
    color: #9D174D;
}

/* Small line under the logo. */
.logo span {
    display: block;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* Menu button. */
.menu-icon {
    background-color: #9D174D;
    color: #FFFFFF;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 14px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.hangers {
    display: none;
}

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

/* Nav list. */
.hangers ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links. */
.hangers a {
    color: #22091A;
    font-weight: 700;
    text-decoration: none;
}

/* Underline on hover. */
.hangers a:hover {
    text-decoration: underline;
}

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

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Fitting room hero (class) ----- */

/* Photo then words on phones. */
.fitting {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 20px 16px 56px 16px;
}

/* Photo with the curtain over its left side. */
.curtain-wrap {
    position: relative;
    overflow: hidden;
    border-top: 10px solid #6B7280;
}

/* Photo. */
.curtain-wrap img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

/* Velvet curtain gathered on the left. */
.curtain {
    position: absolute;
    top: 0px;
    left: 0px;
    width: 34%;
    height: 100%;
    background-color: #9D174D;
    background-image: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.25) 0px, rgba(255, 255, 255, 0.1) 12px, rgba(0, 0, 0, 0.25) 24px);
    border-bottom-right-radius: 60% 18%;
    z-index: 2;
}

/* Headline. */
.fitting-text h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    margin-bottom: 14px;
}

/* Italic berry words. */
.fitting-text h1 em {
    color: #9D174D;
}

/* Hero paragraph. */
.fitting-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Button shaped like a hang tag with a hole. */
.tag-btn,
button {
    position: relative;
    display: inline-block;
    background-color: #9D174D;
    color: #FFFFFF;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    border: none;
    padding: 12px 24px 12px 38px;
    clip-path: polygon(12px 0%, 100% 0%, 100% 100%, 12px 100%, 0% 50%);
    cursor: pointer;
}

/* Tag hole. */
.tag-btn::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background-color: #FFF7FA;
}

/* Button hover. */
.tag-btn:hover,
button:hover {
    background-color: #22091A;
}

/* ----- Markdown tags (ID) ----- */

/* Pale berry band. */
#markdown {
    background-color: #F7E5EC;
    padding: 56px 16px;
}

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

/* Tags hang in a row and wrap. */
.tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

/* One hang tag: white card, a hole, a loop of string above. */
.htag {
    position: relative;
    flex: 1 1 40%;
    background-color: #FFFFFF;
    border: 1px solid #DED3D8;
    border-radius: 0px 0px 10px 10px;
    padding: 40px 14px 16px 14px;
    text-align: center;
    clip-path: polygon(22% 0%, 78% 0%, 100% 12%, 100% 100%, 0% 100%, 0% 12%);
}

/* Tag hole. */
.htag::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    border-radius: 50%;
    border: 2px solid #9D174D;
}

/* Day label. */
.day {
    display: block;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.8rem;
    color: #74636E;
}

/* Old price struck through. */
.was {
    display: block;
    text-decoration: line-through;
    color: #74636E;
}

/* Current price. */
.now {
    display: block;
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 2.2rem;
    line-height: 1.1;
    color: #9D174D;
}

/* Consignor's share. */
.you {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    color: #477209;
}

/* Last tag: green border, smaller words. */
.last {
    border: 2px solid #65A30D;
}

/* Last tag's "Pick up" a little smaller. */
.last .now {
    font-size: 1.6rem;
}

/* Note. */
.note {
    margin-top: 18px;
    font-style: italic;
}

/* ----- Two closets (class) ----- */

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

/* Closets stack on phones. */
.closets {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
}

/* One closet: wood doors frame with a rod across the top. */
.closet {
    border: 8px solid #E9D5C3;
    border-top: 14px solid #9CA3AF;
    background-color: #FFFFFF;
    padding: 20px;
}

/* Closet title. */
.closet h3 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

/* Closet list. */
.closet ul {
    list-style: none;
}

/* One item. */
.closet li {
    padding: 6px 0px 6px 30px;
    position: relative;
    border-bottom: 1px solid #DED3D8;
}

/* Yes items get a green check. */
.yes li::before {
    content: "\2713";
    position: absolute;
    left: 4px;
    color: #477209;
    font-weight: 700;
}

/* No items get a berry x. */
.no li::before {
    content: "\2715";
    position: absolute;
    left: 4px;
    color: #9D174D;
    font-weight: 700;
}

/* Yes title green. */
.yes h3 {
    color: #477209;
}

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

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

/* ----- Consign form (class) ----- */

/* Photo then form. */
.consign {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #EDEDDE;
    padding: 56px 16px;
}

/* Boutique photo. */
.consign img {
    height: 280px;
    object-fit: cover;
}

/* Form box. */
.drop-form fieldset {
    border: none;
    background-color: #FFFFFF;
    padding: 24px;
    border-left: 8px solid #65A30D;
}

/* Form title. */
.drop-form legend {
    font-family: "DM Serif Display", Georgia, serif;
    font-size: 1.6rem;
    float: left;
    width: 100%;
    margin-bottom: 6px;
}

/* Labels. */
.drop-form label {
    display: block;
    font-weight: 700;
    margin-top: 12px;
}

/* Inputs. */
.drop-form input {
    width: 100%;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #74636E;
    border-radius: 6px;
}

/* Submit spacing. */
.drop-form button {
    margin-top: 18px;
}

/* ----- Shopping bag footer (class) ----- */

/* Kraft paper with a folded gusset line. */
.bag {
    background-color: #C9A77C;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.12) 0px, rgba(0, 0, 0, 0.12) 6px, transparent 6px);
    color: #22091A;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

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

@media (min-width: 576px) {

    /* Taller hero photo. */
    .curtain-wrap img {
        height: 420px;
    }
}

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

@media (min-width: 768px) {

    /* Four tags in a row. */
    .htag {
        flex: 1 1 20%;
    }

    /* Closets side by side. */
    .closets {
        flex-direction: row;
    }

    /* Each closet. */
    .closet {
        flex: 1 1 50%;
    }

    /* Photo beside the form. */
    .consign {
        flex-direction: row;
        align-items: center;
    }

    /* Each half. */
    .consign img,
    .drop-form {
        width: 50%;
    }

    /* Taller photo. */
    .consign img {
        height: 420px;
    }
}

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

@media (min-width: 992px) {

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

    /* Logo left, hangers right; rod spans the bottom. */
    .rack {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-end;
        padding: 14px 40px 0px 40px;
    }

    /* Rod takes its own full-width line. */
    .rack::after {
        flex: 1 1 100%;
        margin: 0px -40px;
    }

    /* Nav always shown. */
    .hangers {
        display: block;
    }

    /* Hangers in a row. */
    .hangers ul {
        flex-direction: row;
        gap: 18px;
        padding-top: 0px;
    }

    /* Each link drawn as a hanging tag under a wire hanger. */
    .hangers a {
        position: relative;
        display: block;
        padding: 30px 10px 6px 10px;
    }

    /* Wire hanger: a triangle outline above the link. */
    .hangers a::before {
        content: "";
        position: absolute;
        top: 10px;
        left: 50%;
        width: 54px;
        height: 14px;
        margin-left: -27px;
        border: 2px solid #6B7280;
        border-bottom-width: 3px;
        clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
        background-image: linear-gradient(to top right, transparent 47%, #6B7280 48%, #6B7280 54%, transparent 55%), linear-gradient(to top left, transparent 47%, #6B7280 48%, #6B7280 54%, transparent 55%);
        background-size: 50% 100%;
        background-position: left, right;
        background-repeat: no-repeat;
        border-color: transparent;
    }

    /* Hook up to the rod. */
    .hangers a::after {
        content: "";
        position: absolute;
        top: -4px;
        left: 50%;
        width: 10px;
        height: 14px;
        margin-left: -5px;
        border: 2px solid #6B7280;
        border-bottom: none;
        border-radius: 6px 6px 0px 0px;
    }

    /* Hover: a berry tag. */
    .hangers a:hover {
        color: #9D174D;
    }

    /* Photo beside the words. */
    .fitting {
        flex-direction: row;
        align-items: center;
        padding: 40px 40px 70px 40px;
    }

    /* Photo column. */
    .curtain-wrap {
        flex: 1 1 55%;
    }

    /* Words column. */
    .fitting-text {
        flex: 1 1 42%;
    }

    /* Wider sections. */
    #markdown,
    .season,
    .consign {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .fitting,
    #markdown,
    .season,
    .consign {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
