/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 12, 2026
    Project:    Concept Site - Copper Kettle Jewelry & Repair (fictional business)
    Filename:   styles.css

    Theme: the jeweler's counter. The header is a navy velvet display
    tray (a fine dotted nap from a radial-gradient) trimmed with gold
    piping, and a faceted gem made with clip-path sits by the name.
    The hero is an open ring box: a rounded lid holding the bench
    photo above a velvet base with a ring slit. The signature is a
    ring size guide with circles drawn in millimeters (CSS mm units)
    so a real ring can be laid on the screen. Repairs are written on a
    manila repair envelope with checkboxes and a ready-by time. The
    footer is the tray's velvet edge.

    Mobile-first; media queries at 576px, 768px, 992px and 1200px.

    Colors (WebAIM contrast checked, AA):
      #1C130B text on #FDF8F2 page (17.6:1)
      #92400E copper text and buttons (7.0:1; white on it 7.3:1)
      #1E3A8A navy text (10.0:1 on the page)
      #FFFFFF on #1E3A8A velvet (10.4:1)
      #1C130B on #E8C76A gold (11.0:1)
*/

/* ----- Browser reset (universal) ----- */

/* Border-box sizing and no default spacing. */
* {
    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
}

/* ----- Page defaults (element) ----- */

/* Warm ivory page. */
body {
    background-color: #FDF8F2;
    color: #1C130B;
    font-family: "Jost", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.6;
}

/* Photos never spill out. */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* Engraved-style headings. */
h1,
h2 {
    font-family: "Marcellus", Georgia, serif;
    font-weight: 400;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.8rem, 4.8vw, 2.7rem);
    color: #92400E;
    margin-bottom: 10px;
}

/* Links in copper. */
a {
    color: #92400E;
}

/* Navy outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .tray-row .menu-icon {
    outline: 3px solid #1E3A8A;
    outline-offset: 3px;
}

/* ----- Velvet tray header (class) ----- */

/* Navy velvet with a fine nap and gold piping. */
.tray {
    position: relative;
    background-color: #1E3A8A;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.07) 0px, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 4px 4px;
    border-bottom: 5px solid #E8C76A;
    box-shadow: inset 0px -9px 0px #1E3A8A, inset 0px -11px 0px #B8913A;
    color: #FFFFFF;
    padding: 14px 16px 20px 16px;
}

/* Hidden checkbox that keeps focus. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* Logo and menu in a row. */
.tray-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo. */
.logo {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.55rem;
}

/* Small part of the name. */
.logo .small {
    font-family: "Jost", Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #E8C76A;
}

/* Faceted gem: a diamond shape in gold and white. */
.gem {
    width: 26px;
    height: 22px;
    background-image: linear-gradient(135deg, #FFFFFF 0%, #E8C76A 40%, #B8913A 70%, #FFFFFF 100%);
    clip-path: polygon(20% 0%, 80% 0%, 100% 35%, 50% 100%, 0% 35%);
}

/* Menu button. */
.menu-icon {
    border: 1px solid #E8C76A;
    color: #E8C76A;
    padding: 3px 12px;
    white-space: nowrap;
    cursor: pointer;
}

/* Nav hidden on phones until opened. */
.slots {
    display: none;
}

/* Open menu shows the nav. */
.menu-check:checked ~ .slots {
    display: block;
}

/* Nav list. */
.slots ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 10px;
}

/* Nav links white. */
.slots a {
    color: #FFFFFF;
    text-decoration: none;
    letter-spacing: 0.06em;
}

/* Hover: gold. */
.slots a:hover {
    color: #E8C76A;
}

/* ----- Concept note (class) ----- */

/* Small note. */
.concept {
    font-size: 0.8rem;
    padding: 6px 16px;
}

/* ----- Ring box hero (class) ----- */

/* Box then words on phones. */
.ringbox {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    padding: 30px 16px 60px 16px;
}

/* The open box. */
.box {
    width: 100%;
    max-width: 420px;
}

/* Lid: rounded top, navy shell, photo set into the satin. */
.lid {
    background-color: #1E3A8A;
    border-radius: 160px 160px 10px 10px;
    padding: 18px 18px 12px 18px;
}

/* Photo inside the lid. */
.lid img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 140px 140px 4px 4px;
}

/* Base: gold hinge line, velvet cushion. */
.base {
    height: 90px;
    background-color: #1E3A8A;
    border-top: 5px solid #E8C76A;
    border-radius: 0px 0px 14px 14px;
    padding: 18px 30px;
}

/* Ring slit in the cushion, a gold band sitting in it. */
.slit {
    display: block;
    height: 46px;
    border-radius: 23px;
    background-color: #142A66;
    background-image: radial-gradient(ellipse 30px 20px at 50% 30%, transparent 0px, transparent 14px, #E8C76A 15px, #E8C76A 20px, transparent 21px);
}

/* Headline. */
.box-text h1 {
    font-size: clamp(2.3rem, 6vw, 3.8rem);
    margin-bottom: 14px;
}

/* Hero words. */
.box-text p {
    max-width: 32rem;
    margin-bottom: 22px;
}

/* Copper button with gold edge. */
.gold-btn,
button {
    display: inline-block;
    background-color: #92400E;
    color: #FFFFFF;
    font-family: "Jost", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    border: 2px solid #E8C76A;
    padding: 12px 24px;
    cursor: pointer;
}

/* Button hover. */
.gold-btn:hover,
button:hover {
    background-color: #1E3A8A;
}

/* ----- Ring sizes (ID) ----- */

/* White counter band. */
#sizes {
    background-color: #FFFFFF;
    border-top: 1px solid #DBD6CF;
    border-bottom: 1px solid #DBD6CF;
    padding: 56px 16px;
}

/* Intro. */
.intro {
    max-width: 44rem;
    margin-bottom: 26px;
}

/* Circles in a wrapping row, lined up along their bottoms. */
.circles {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 22px 26px;
}

/* One size. */
.ring {
    text-align: center;
}

/* The circle: a copper line at the true inside diameter. */
.hoop {
    display: block;
    width: var(--d);
    height: var(--d);
    margin: 0px auto 6px auto;
    border: 2px solid #92400E;
    border-radius: 50%;
    background-image: radial-gradient(circle, #1E3A8A 0px, #1E3A8A 1px, transparent 2px);
}

/* Size number. */
.ring strong {
    display: block;
    font-family: "Marcellus", Georgia, serif;
    font-size: 1.4rem;
    font-weight: 400;
    color: #1E3A8A;
}

/* Millimeters. */
.ring span:last-child {
    font-size: 0.8rem;
    color: #67615A;
}

/* Size 5. */
.s5 {
    --d: 15.7mm;
}

/* Size 6. */
.s6 {
    --d: 16.5mm;
}

/* Size 7. */
.s7 {
    --d: 17.3mm;
}

/* Size 8. */
.s8 {
    --d: 18.1mm;
}

/* Size 9. */
.s9 {
    --d: 19mm;
}

/* Size 10. */
.s10 {
    --d: 19.8mm;
}

/* Note. */
.note {
    margin-top: 20px;
    font-style: italic;
}

/* ----- Repair envelope (class) ----- */

/* Envelope then photos. */
.ticket {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 56px 16px;
}

/* Manila envelope with a flap at the top. */
.envelope {
    position: relative;
    background-color: #EAD9AE;
    border: 1px solid #B9A26A;
    padding: 50px 22px 22px 22px;
    max-width: 520px;
}

/* Flap: a darker triangle at the top. */
.envelope::before {
    content: "";
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    height: 34px;
    background-color: #D9C38A;
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

/* Envelope header line. */
.env-head {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    border-bottom: 2px solid #1C130B;
    margin-bottom: 8px;
}

/* Price lines. */
.lines {
    list-style: none;
}

/* One line: box, job, price. */
.lines li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0px;
    border-bottom: 1px solid #B9A26A;
}

/* Job name grows. */
.lines li span:nth-child(2) {
    flex: 1 1 auto;
}

/* Price. */
.lines li span:last-child {
    font-weight: 600;
    color: #92400E;
}

/* Empty checkbox on the form. */
.box-check {
    flex: 0 0 18px;
    height: 18px;
    border: 2px solid #1C130B;
    background-color: #FDF8F2;
}

/* Ticked box: a pen check mark. */
.checked {
    background-image: linear-gradient(45deg, transparent 40%, #1E3A8A 40%, #1E3A8A 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #1E3A8A 45%, #1E3A8A 60%, transparent 60%);
    background-size: 50% 60%, 70% 100%;
    background-position: 0% 100%, 100% 0%;
    background-repeat: no-repeat;
}

/* Ready-by line. */
.ready {
    margin-top: 12px;
    font-weight: 600;
}

/* Handwritten-looking time in navy. */
.ready span {
    font-family: "Marcellus", Georgia, serif;
    color: #1E3A8A;
    font-size: 1.2rem;
    border-bottom: 1px solid #1C130B;
    padding: 0px 10px;
}

/* Two photos. */
.ticket-photos {
    display: flex;
    gap: 10px;
}

/* Each photo. */
.ticket-photos img {
    width: 50%;
    height: 240px;
    object-fit: cover;
}

/* ----- Visit (class) ----- */

/* Navy band. */
.visit {
    display: flex;
    flex-direction: column;
    gap: 24px;
    background-color: #1E3A8A;
    color: #FFFFFF;
    padding: 56px 16px;
}

/* Jewelry photo. */
.visit img {
    height: 280px;
    object-fit: cover;
}

/* Gold title. */
.visit h2 {
    color: #E8C76A;
}

/* Form box. */
.visit-form fieldset {
    border: 1px solid #E8C76A;
    padding: 18px;
    margin-top: 16px;
}

/* Form title. */
.visit-form legend {
    padding: 0px 8px;
}

/* Labels. */
.visit-form label {
    display: block;
    margin-top: 10px;
}

/* Inputs. */
.visit-form input,
.visit-form textarea {
    width: 100%;
    font-family: "Jost", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: none;
}

/* Submit spacing. */
.visit-form button {
    margin-top: 16px;
}

/* ----- Velvet footer (class) ----- */

/* Darker velvet edge with gold piping on top. */
.velvet {
    background-color: #142A66;
    border-top: 3px solid #E8C76A;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 26px 16px;
}

/* ----- Small tablets (576px and up) ----- */

@media (min-width: 576px) {

    /* Taller lid photo. */
    .lid img {
        height: 300px;
    }
}

/* ----- Tablets (768px and up) ----- */

@media (min-width: 768px) {

    /* Box beside the words. */
    .ringbox {
        flex-direction: row;
        justify-content: center;
        gap: 50px;
    }

    /* Box column. */
    .box {
        flex: 0 1 420px;
    }

    /* Words column. */
    .box-text {
        flex: 1 1 50%;
    }

    /* Envelope beside the photos. */
    .ticket {
        flex-direction: row;
        align-items: center;
    }

    /* Envelope column. */
    .envelope {
        flex: 1 1 50%;
    }

    /* Photo column. */
    .ticket-photos {
        flex: 1 1 50%;
    }

    /* Photo beside the visit text. */
    .visit {
        flex-direction: row;
        align-items: center;
    }

    /* Each half. */
    .visit img,
    .visit-text {
        width: 50%;
    }

    /* Taller photo. */
    .visit img {
        height: 420px;
    }
}

/* ----- Laptops (992px and up) ----- */

@media (min-width: 992px) {

    /* No menu button. */
    .menu-icon {
        display: none;
    }

    /* Logo left, nav right. */
    .tray {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Nav always shown. */
    .slots {
        display: block;
    }

    /* Nav links in a row, each in a velvet ring slot. */
    .slots ul {
        flex-direction: row;
        gap: 10px;
        padding-top: 0px;
    }

    /* A link as a slot. */
    .slots a {
        display: block;
        padding: 6px 16px;
        border-radius: 20px;
        background-color: #142A66;
    }

    /* Wider sections. */
    .ringbox,
    #sizes,
    .ticket,
    .visit {
        padding-left: 40px;
        padding-right: 40px;
    }
}

/* ----- Wide screens (1200px and up) ----- */

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .ringbox,
    #sizes,
    .ticket,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
