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

    Layout plan: mobile-first, a fashion-magazine feel. The header puts the
    logo in the center with the menu button on the left (order is set
    with the flexbox "order" property). Product photos zoom slowly inside
    a frame with overflow: hidden. The owner's notes use CSS columns and a
    ::first-letter drop cap. The gift card is drawn with gradients and a
    rotated transform. Media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM checked, AA):
      #1F1F1F ink   #3F6212 juniper (darker than #4D7C0F for small text)
      #E8B4A0 blush (decoration and behind dark text)   #FBF8F3 linen
      #5E5A54 muted
*/

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

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

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

/* Linen page, ink text. */
body {
    background-color: #FBF8F3;
    color: #1F1F1F;
    font-family: Manrope, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
}

/* Responsive images. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Classical Marcellus headings. */
h1,
h2,
h3 {
    font-family: Marcellus, serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(2rem, 4.4vw, 3.2rem);
}

/* Juniper links. */
a {
    color: #3F6212;
    font-weight: 600;
}

/* Juniper focus ring. */
a:focus-visible,
button:focus-visible,
.table-scroll:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 2px solid #3F6212;
    outline-offset: 4px;
}

/* Muted intro text. */
.lead {
    color: #5E5A54;
    margin: 8px 0px 24px 0px;
}

/* Small notes. */
.small {
    font-size: 0.85rem;
    color: #5E5A54;
    margin-top: 12px;
}

/* ----- Header (class) ----- */

/* White header. */
.site-header {
    background-color: #FFFFFF;
    border-bottom: 1px solid #E9E2D6;
}

/* Announcement strip. */
.announce {
    background-color: #3F6212;
    color: #FFFFFF;
    text-align: center;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 6px 16px;
}

/* Menu, logo and nav. Flexbox order puts the logo in the middle. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
}

/* Centered serif logo. */
.logo {
    order: 1;
    font-family: Marcellus, serif;
    font-size: 1.8rem;
    letter-spacing: 0.04em;
}

/* Blush ampersand, darker so it passes contrast. */
.logo span {
    color: #A0523A;
}

/* Hidden menu checkbox (opacity keeps it keyboard reachable). */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Menu button sits first, on the left. */
.menu-icon {
    order: 0;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    cursor: pointer;
}

/* Nav hidden on phones until opened; it comes last. */
.site-nav {
    order: 2;
    display: none;
    width: 100%;
}

/* Opened menu shows nav. */
.menu-check:checked ~ .site-nav {
    display: block;
}

/* No bullets, centered. */
.site-nav ul {
    list-style: none;
    text-align: center;
    padding-top: 10px;
}

/* Nav links in small capitals. */
.site-nav a {
    display: block;
    color: #1F1F1F;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    padding: 8px 0px;
}

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

/* Concept notice. */
.concept-note {
    background-color: #F6E7E0;
    font-size: 0.8rem;
    text-align: center;
    padding: 4px 16px;
}

/* ----- Hero (class) ----- */

/* Centered editorial hero. */
.hero {
    text-align: center;
    padding: 46px 20px 60px 20px;
}

/* Issue line. */
.issue {
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: 0.75rem;
    font-weight: 700;
    color: #3F6212;
}

/* Headline. */
.hero h1 {
    font-size: clamp(2.4rem, 7vw, 5rem);
    max-width: 16ch;
    margin: 12px auto 28px auto;
}

/* Italic blush-brown part. */
.hero h1 em {
    color: #A0523A;
}

/* Photo frame with a blush block offset behind it. */
.hero-photo {
    position: relative;
    max-width: 900px;
    margin: 0px auto 30px auto;
}

/* The offset blush block. */
.hero-photo::before {
    content: "";
    position: absolute;
    left: -12px;
    bottom: -12px;
    width: 60%;
    height: 70%;
    background-color: #E8B4A0;
    z-index: -1;
}

/* Hero photo. */
.hero-photo img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}

/* Ink button with spaced capitals. */
.button,
button {
    display: inline-block;
    background-color: #1F1F1F;
    color: #FFFFFF;
    border: none;
    padding: 14px 30px;
    font-family: Manrope, sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    cursor: pointer;
}

/* Juniper on hover. */
.button:hover,
button:hover {
    background-color: #3F6212;
}

/* ----- New arrivals (class) ----- */

/* White band. */
.new {
    background-color: #FFFFFF;
    padding: 60px 20px;
}

/* Product cards wrap. */
.products {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 26px 18px;
}

/* One product. */
.product {
    flex: 1 1 240px;
}

/* The photo frame clips the zoom and holds the badge. */
.frame {
    position: relative;
    overflow: hidden;
}

/* Product photo, tall like a fashion shot. */
.frame img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    transition: transform 0.8s ease;
}

/* Slow zoom on hover. */
.product:hover .frame img {
    transform: scale(1.06);
}

/* Badge pinned to the top left of the photo. */
.badge {
    position: absolute;
    left: 12px;
    top: 12px;
    background-color: #FFFFFF;
    color: #1F1F1F;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    padding: 3px 10px;
}

/* Product name. */
.product h3 {
    font-size: 1.3rem;
    margin-top: 12px;
}

/* Price. */
.price {
    font-weight: 700;
}

/* Size range. */
.sizes {
    font-size: 0.85rem;
    color: #5E5A54;
}

/* ----- Size guide (class) ----- */

/* Section spacing. */
.fit {
    padding: 60px 20px;
}

/* Table scrolls inside its box on narrow phones. */
.table-scroll {
    overflow-x: auto;
}

/* Table. */
.fit table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

/* Caption hidden visually (the heading says it). */
.fit caption {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Cells with hairlines. */
.fit th,
.fit td {
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid #E9E2D6;
}

/* Header row. */
.fit thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-bottom: 2px solid #1F1F1F;
}

/* Size letters in the serif. */
.fit tbody th {
    font-family: Marcellus, serif;
    font-size: 1.2rem;
    font-weight: 400;
}

/* Every other row tinted blush. */
.fit tbody tr:nth-child(odd) {
    background-color: #FBF1EC;
}

/* Abbreviations get a dotted underline hint. */
abbr {
    text-decoration: underline dotted;
    cursor: help;
}

/* ----- Owner's notes (class) ----- */

/* Blush band. */
.notes {
    background-color: #F6E7E0;
    padding: 60px 20px;
}

/* Space under heading. */
.notes h2 {
    margin-bottom: 20px;
}

/* One column on phones; more at larger sizes. */
.columns {
    column-count: 1;
    column-gap: 40px;
    column-rule: 1px solid #E0C3B6;
}

/* Paragraph spacing. */
.columns p {
    margin-bottom: 14px;
}

/* The first paragraph opens with a big drop cap. */
.columns p:first-child::first-letter {
    float: left;
    font-family: Marcellus, serif;
    font-size: 4.2rem;
    line-height: 0.8;
    color: #3F6212;
    padding: 6px 10px 0px 0px;
}

/* Signature line. */
.signed {
    font-family: Marcellus, serif;
    font-size: 1.3rem;
    font-style: italic;
}

/* ----- Gift card (class) ----- */

/* Section spacing. */
.gift {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 60px 20px;
}

/* The card: a soft gradient, rounded corners and a tilt. */
.card-art {
    width: 300px;
    height: 180px;
    border-radius: 16px;
    background-image: linear-gradient(135deg, #3F6212 0%, #6B8F3A 55%, #E8B4A0 100%);
    color: #FFFFFF;
    padding: 20px 24px;
    box-shadow: 0px 18px 34px rgba(31, 31, 31, 0.25);
    transform: rotate(-5deg);
}

/* Name on the card. */
.card-name {
    font-family: Marcellus, serif;
    font-size: 1.3rem;
}

/* Amount on the card. */
.card-amount {
    font-family: Marcellus, serif;
    font-size: 3rem;
    line-height: 1.2;
}

/* Small label. */
.card-sub {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    font-weight: 700;
}

/* Form. */
.gift-form {
    width: 100%;
    max-width: 520px;
}

/* Amount choices. */
.gift-form fieldset {
    border: none;
    margin-top: 10px;
}

/* Amount title. */
.gift-form legend {
    font-weight: 600;
}

/* Amount options as outlined boxes. */
.gift-form fieldset label {
    display: inline-block;
    border: 1px solid #1F1F1F;
    padding: 6px 14px;
    margin: 6px 8px 0px 0px;
    cursor: pointer;
}

/* Juniper radios. */
.gift-form input[type="radio"] {
    accent-color: #3F6212;
    margin-right: 4px;
}

/* Labels outside the fieldset. */
.gift-form > label {
    display: block;
    font-weight: 600;
    margin-top: 14px;
}

/* Inputs and textarea underlined. */
.gift-form input[type="text"],
.gift-form input[type="email"],
.gift-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #1F1F1F;
    background-color: transparent;
    padding: 8px 0px;
    font-family: Manrope, sans-serif;
    font-size: 1rem;
}

/* Space above the button. */
.gift-form button {
    margin-top: 20px;
}

/* ----- Footer (class) ----- */

/* Ink footer. */
.site-footer {
    background-color: #1F1F1F;
    color: #E9E2D6;
    text-align: center;
    font-size: 0.8rem;
    padding: 24px 20px;
}

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

@media (min-width: 576px) {

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

    /* Two columns of owner's notes. */
    .columns {
        column-count: 2;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .new,
    .fit,
    .notes,
    .gift {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Card and form side by side. */
    .gift {
        flex-direction: row;
        justify-content: center;
        gap: 70px;
    }
}

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

@media (min-width: 992px) {

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

    /* Logo on its own centered row above the nav. */
    .logo {
        width: 100%;
        text-align: center;
        font-size: 2.4rem;
    }

    /* Nav always visible under the logo. */
    .site-nav {
        display: block;
    }

    /* Links in one centered row. */
    .site-nav ul {
        display: flex;
        justify-content: center;
        gap: 34px;
    }

    /* Three columns of owner's notes. */
    .columns {
        column-count: 3;
    }

    /* Wider hero photo. */
    .hero-photo img {
        height: 520px;
    }

    /* Bigger gift card. */
    .card-art {
        width: 360px;
        height: 216px;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .new,
    .fit,
    .notes,
    .gift {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
