/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Needle & Thread Alterations (fictional business)
    Filename:   styles.css

    Theme: the sewing table. The header is a yellow tailor's tape
    measure: inch marks along its bottom edge (long and short ticks
    from two repeating gradients). The hero photo is held to the page
    by three straight pins with round colored heads. The signature is
    a price list printed on tan sewing-pattern tissue: a grid of faint
    printed lines, a dashed "cut here" border, and a triangle notch on
    each piece. Bridal fittings run down a stitched crimson thread
    (a dashed line) with a knot at each fitting and a needle at the
    end. The footer is gray felt with a row of sewing buttons.

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

    Colors (WebAIM contrast checked, AA):
      #2A0A12 text on #FFF8F7 page (17.9:1)
      #BE123C crimson text and buttons (6.0:1; white on it 6.3:1)
      #0E7068 teal text (5.9:1 on the page)
      #2A0A12 on #FACC15 tape yellow (13.1:1)
*/

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

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

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

/* Soft blush page. */
body {
    background-color: #FFF8F7;
    color: #2A0A12;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

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

/* Elegant serif headings. */
h1,
h2 {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #BE123C;
    margin-bottom: 14px;
}

/* Links in crimson. */
a {
    color: #BE123C;
}

/* Teal outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .tape-row .menu-icon {
    outline: 3px solid #0E7068;
    outline-offset: 3px;
}

/* ----- Tape measure header (class) ----- */

/* Yellow tape with room for the inch marks along the bottom. */
.tape {
    position: relative;
    background-color: #FACC15;
    padding: 12px 16px 30px 16px;
    border-top: 2px solid #CA9A06;
    border-bottom: 2px solid #CA9A06;
}

/* Inch and quarter-inch marks. */
.ticks {
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: 0px;
    height: 18px;
    background-image: linear-gradient(90deg, #2A0A12 0px, #2A0A12 2px, transparent 2px), linear-gradient(90deg, #2A0A12 0px, #2A0A12 1px, transparent 1px);
    background-size: 48px 18px, 12px 9px;
    background-repeat: repeat-x;
    background-position: 0px 100%, 0px 100%;
}

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

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

/* Logo printed on the tape. */
.logo {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.05;
}

/* Italic crimson ampersand. */
.logo em {
    color: #9F1239;
}

/* Small word under. */
.logo span {
    display: block;
    font-family: "Work Sans", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

/* Menu button. */
.menu-icon {
    background-color: #2A0A12;
    color: #FFFFFF;
    font-weight: 600;
    padding: 4px 12px;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.tape-nav {
    display: none;
}

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

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

/* Nav links. */
.tape-nav a {
    color: #2A0A12;
    font-weight: 600;
    text-decoration: none;
}

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

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

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

/* ----- Pinned hero (class) ----- */

/* Words then photo. */
.pinned {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 30px 16px 60px 16px;
}

/* Headline. */
.pinned-text h1 {
    font-size: clamp(2.3rem, 6vw, 3.9rem);
    margin-bottom: 14px;
}

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

/* Photo with pins along its top. */
.pin-photo {
    position: relative;
}

/* Photo. */
.pin-photo img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    box-shadow: 0px 6px 18px rgba(42, 10, 18, 0.2);
}

/* One straight pin: a round head on a steel shaft, angled. */
.pin {
    position: absolute;
    top: -14px;
    width: 3px;
    height: 54px;
    background-color: #9CA3AF;
    transform: rotate(-30deg);
    z-index: 2;
}

/* Pin head. */
.pin::before {
    content: "";
    position: absolute;
    top: -8px;
    left: -6px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-color: var(--head);
    box-shadow: inset -2px -2px 0px rgba(0, 0, 0, 0.2);
}

/* Pin 1, crimson head. */
.p1 {
    left: 14%;
    --head: #BE123C;
}

/* Pin 2, teal head. */
.p2 {
    left: 48%;
    --head: #0F766E;
}

/* Pin 3, yellow head. */
.p3 {
    left: 82%;
    --head: #FACC15;
}

/* Crimson button with a stitched edge. */
.thread-btn,
button {
    display: inline-block;
    background-color: #BE123C;
    color: #FFFFFF;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    outline: 2px dashed #FFFFFF;
    outline-offset: -6px;
    padding: 14px 28px;
    cursor: pointer;
}

/* Button hover. */
.thread-btn:hover,
button:hover {
    background-color: #2A0A12;
}

/* ----- Pattern tissue prices (ID) ----- */

/* Pale band. */
#fixes {
    background-color: #F3E9E4;
    padding: 56px 16px;
}

/* Tan pattern tissue with faint printed grid and a dashed cut line. */
.pattern {
    max-width: 820px;
    margin: 0px auto;
    background-color: #EADBB8;
    background-image: linear-gradient(90deg, rgba(42, 10, 18, 0.07) 1px, transparent 1px), linear-gradient(180deg, rgba(42, 10, 18, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    border: 2px dashed #2A0A12;
    padding: 24px 20px;
}

/* Pattern header text. */
.pattern-head {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 2px solid #2A0A12;
    padding-bottom: 4px;
    margin-bottom: 10px;
}

/* Pieces. */
.pieces {
    list-style: none;
}

/* One pattern piece: name, price, note. */
.piece {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0px 10px;
    padding: 10px 0px 10px 26px;
    border-bottom: 1px dashed #8C7A5B;
}

/* Name grows. */
.piece strong {
    flex: 1 1 auto;
    font-size: 1.05rem;
}

/* Price. */
.cost {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #BE123C;
}

/* Note under. */
.note {
    flex: 1 1 100%;
    font-size: 0.88rem;
    color: #0E7068;
}

/* Triangle notch marker. */
.notch {
    position: absolute;
    left: 0px;
    top: 16px;
    width: 14px;
    height: 12px;
    background-color: #2A0A12;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

/* ----- Bridal stitch line (class) ----- */

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

/* Stitched thread running down the left. */
.stitch {
    list-style: none;
    position: relative;
    padding-left: 44px;
    margin-bottom: 28px;
    max-width: 640px;
    background-image: linear-gradient(180deg, #BE123C 50%, transparent 50%);
    background-size: 3px 14px;
    background-repeat: repeat-y;
    background-position: 14px 0px;
}

/* One fitting. */
.stop {
    position: relative;
    padding: 6px 0px 22px 0px;
}

/* Fitting time. */
.stop strong {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.3rem;
    color: #BE123C;
}

/* Knot on the thread. */
.knot {
    position: absolute;
    left: -38px;
    top: 10px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #BE123C;
    box-shadow: 0px 0px 0px 4px #FFF8F7;
}

/* Needle at the end of the thread: a long sliver with an eye. */
.needle {
    position: absolute;
    left: -32px;
    top: 4px;
    width: 8px;
    height: 54px;
    border-radius: 4px 4px 50% 50%;
    background-image: radial-gradient(ellipse 2px 5px at 50% 9px, #FFF8F7 0px, #FFF8F7 98%, transparent 100%), linear-gradient(90deg, #6B7280, #E5E7EB, #6B7280);
    clip-path: polygon(0% 0%, 100% 0%, 100% 80%, 50% 100%, 0% 80%);
}

/* Last stop has no gap below. */
.last {
    padding-bottom: 0px;
}

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

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

/* ----- Book a fitting (class) ----- */

/* Teal band. */
.fit {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #0F766E;
    padding: 56px 16px;
}

/* Tape photo. */
.fit img {
    height: 260px;
    object-fit: cover;
}

/* Form box. */
.fit-form fieldset {
    border: none;
    background-color: #FFF8F7;
    padding: 24px;
    outline: 2px dashed #BE123C;
    outline-offset: -8px;
}

/* Form title. */
.fit-form legend {
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 700;
    font-size: 1.5rem;
    float: left;
    width: 100%;
}

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

/* Inputs. */
.fit-form input,
.fit-form select {
    width: 100%;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #6E5C61;
}

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

/* ----- Felt footer (class) ----- */

/* Gray felt with sewing buttons along the top. */
.felt {
    background-color: #3F3A3C;
    background-image: radial-gradient(circle at 12px 14px, #FACC15 0px, #FACC15 7px, transparent 8px), radial-gradient(circle at 42px 14px, #BE123C 0px, #BE123C 7px, transparent 8px), radial-gradient(circle at 72px 14px, #0F766E 0px, #0F766E 7px, transparent 8px);
    background-size: 90px 28px;
    background-repeat: repeat-x;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 40px 16px 26px 16px;
}

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

@media (min-width: 576px) {

    /* Taller photo. */
    .pin-photo img {
        height: 400px;
    }
}

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

@media (min-width: 768px) {

    /* Note sits beside the name when there is room. */
    .note {
        flex: 1 1 100%;
    }

    /* Stitch line beside the photos. */
    .bridal {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
    }

    /* Title spans the row. */
    .bridal h2 {
        flex: 1 1 100%;
        margin-bottom: 0px;
    }

    /* Stitch column. */
    .stitch {
        flex: 1 1 50%;
        margin-bottom: 0px;
    }

    /* Photo column. */
    .bridal-photos {
        flex: 1 1 40%;
        align-items: flex-start;
    }

    /* Photo beside the form. */
    .fit {
        flex-direction: row;
    }

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

    /* Photo fills its half. */
    .fit img {
        height: auto;
    }
}

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

@media (min-width: 992px) {

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

    /* Logo left, nav right on the tape. */
    .tape {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .tape-nav {
        display: block;
    }

    /* Nav in a row. */
    .tape-nav ul {
        flex-direction: row;
        gap: 26px;
        padding-top: 0px;
    }

    /* Words beside the photo. */
    .pinned {
        flex-direction: row;
        align-items: center;
        padding: 50px 40px 70px 40px;
    }

    /* Each half. */
    .pinned-text,
    .pin-photo {
        flex: 1 1 50%;
    }

    /* Wider sections. */
    #fixes,
    .bridal,
    .fit {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .pinned,
    .bridal,
    .fit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
