/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Front Porch Music Lessons (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, warm and vintage. The hero sits on a music
    staff (five lines from a repeating gradient) with note heads placed
    on it. The instrument menu is a piano keyboard: seven white keys are
    the links (a flex row), and five black keys are spans positioned
    absolute between them with pointer-events: none so clicks pass
    through. On phones the key labels run vertically with writing-mode.
    Pressing a key (:active) pushes it down. Media queries at 576px,
    768px, 992px and 1200px, in ascending order.

    Colors (WebAIM checked, AA):
      #1C1412 ebony   #7F1D1D oxblood   #8A6406 brass text (darker than
      #CA8A04)   #FBF7F0 ivory   #5E524A muted
*/

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

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

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

/* Ivory page, ebony text, Lora for reading. */
body {
    background-color: #FBF7F0;
    color: #1C1412;
    font-family: Lora, serif;
    font-size: 1.05rem;
    line-height: 1.65;
}

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

/* Rounded retro headings. */
h1,
h2,
h3 {
    font-family: Righteous, sans-serif;
    font-weight: 400;
    line-height: 1.08;
}

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

/* Oxblood links. */
a {
    color: #7F1D1D;
    font-weight: 600;
}

/* Brass-and-ebony focus ring. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #1C1412;
    box-shadow: 0px 0px 0px 6px #E7C76A;
}

/* Muted intro text. */
.lead {
    color: #5E524A;
    font-style: italic;
    margin: 6px 0px 20px 0px;
}

/* Small notes. */
.small {
    font-size: 0.9rem;
    color: #5E524A;
    margin-top: 14px;
}

/* Spaced capitals above a heading. */
.kicker {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-family: Righteous, sans-serif;
    font-size: 0.8rem;
    color: #E7C76A;
}

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

/* Oxblood header. */
.site-header {
    background-color: #7F1D1D;
    color: #FBF7F0;
}

/* Logo and menu in a row. */
.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* Logo. */
.logo {
    font-family: Righteous, sans-serif;
    font-size: 1.7rem;
    line-height: 1.05;
}

/* Small italic line. */
.logo small {
    display: block;
    font-family: Lora, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #F3DFA2;
}

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

/* Menu button. */
.menu-icon {
    background-color: #FBF7F0;
    color: #7F1D1D;
    border-radius: 999px;
    padding: 5px 14px;
    font-family: Righteous, sans-serif;
    cursor: pointer;
}

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

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

/* No bullets. */
.site-nav ul {
    list-style: none;
    padding-top: 8px;
}

/* Phone nav links. */
.site-nav a {
    display: block;
    color: #FBF7F0;
    text-decoration: none;
    padding: 9px 0px;
    border-top: 1px solid #993333;
}

/* Gold on hover. */
.site-nav a:hover {
    color: #F3DFA2;
}

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

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

/* Hero stacks on phones; parent for the staff. */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 50px 20px 60px 20px;
    overflow: hidden;
}

/* The staff: five thin lines 14px apart, across the top of the hero. */
.staff {
    position: absolute;
    left: 0px;
    top: 20px;
    width: 100%;
    height: 57px;
    background-image: repeating-linear-gradient(180deg, #D8CBB8 0px, #D8CBB8 1px, transparent 1px, transparent 14px);
}

/* One note head: a tilted oval. */
.note {
    position: absolute;
    width: 16px;
    height: 12px;
    border-radius: 50%;
    background-color: #7F1D1D;
    transform: rotate(-20deg);
}

/* A stem on each note. */
.note::after {
    content: "";
    position: absolute;
    right: 0px;
    bottom: 5px;
    width: 2px;
    height: 34px;
    background-color: #7F1D1D;
}

/* Note 1, on the bottom line. */
.n1 {
    left: 55%;
    top: 50px;
}

/* Note 2, a space higher. */
.n2 {
    left: 62%;
    top: 36px;
}

/* Note 3, higher still. */
.n3 {
    left: 69%;
    top: 22px;
}

/* Note 4, back down. */
.n4 {
    left: 76%;
    top: 43px;
}

/* Text sits above the staff. */
.hero-text {
    position: relative;
    margin-top: 60px;
}

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

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

/* Oxblood rounded button. */
.button,
button {
    display: inline-block;
    background-color: #7F1D1D;
    color: #FFFFFF;
    border: none;
    border-radius: 999px;
    padding: 13px 26px;
    font-family: Righteous, sans-serif;
    font-size: 1.1rem;
    text-decoration: none;
    cursor: pointer;
}

/* Ebony on hover. */
.button:hover,
button:hover {
    background-color: #1C1412;
}

/* Hero photo with a record-sleeve border. */
.hero-photo {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 10px solid #1C1412;
    border-radius: 6px;
}

/* ----- Instruments and keyboard (class) ----- */

/* Ebony band. */
.instruments {
    background-color: #1C1412;
    color: #FBF7F0;
    padding: 60px 20px;
}

/* Gold heading on ebony. */
.instruments h2 {
    color: #F3DFA2;
}

/* Light intro. */
.instruments .lead {
    color: #D8CBB8;
}

/* The keyboard: parent for the black keys. */
.keyboard {
    position: relative;
    max-width: 760px;
    margin-bottom: 30px;
    border-top: 10px solid #7F1D1D;
}

/* White keys in a row. */
.keyboard ul {
    list-style: none;
    display: flex;
}

/* Each key takes an equal share. */
.keyboard li {
    flex: 1 1 0px;
}

/* One white key: tall, with its label at the bottom. On phones the
   label runs vertically so long names fit. */
.keyboard a {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 200px;
    background-color: #FFFDF8;
    color: #1C1412;
    border: 1px solid #1C1412;
    border-radius: 0px 0px 8px 8px;
    box-shadow: inset 0px -8px 0px #E5DCCB;
    font-family: Righteous, sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    padding-bottom: 14px;
    writing-mode: vertical-rl;
    transform-origin: top;
}

/* Hovering a key tints it gold. */
.keyboard a:hover {
    background-color: #FBEFC9;
}

/* Pressing a key pushes it down a little. */
.keyboard a:active {
    box-shadow: inset 0px -2px 0px #E5DCCB;
    transform: scaleY(0.98);
}

/* One black key, sitting over the line between two white keys. */
.black {
    position: absolute;
    top: 0px;
    width: 8%;
    height: 120px;
    background-color: #1C1412;
    border-radius: 0px 0px 5px 5px;
    box-shadow: inset 0px -6px 0px #3A2E2A;
    pointer-events: none;
}

/* Between keys 1 and 2. */
.b1 {
    left: 10.3%;
}

/* Between keys 2 and 3. */
.b2 {
    left: 24.6%;
}

/* Between keys 4 and 5 (no black key between 3 and 4). */
.b4 {
    left: 53.1%;
}

/* Between keys 5 and 6. */
.b5 {
    left: 67.4%;
}

/* Between keys 6 and 7. */
.b6 {
    left: 81.7%;
}

/* Instrument cards wrap. */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* One card. scroll-margin keeps it below the top when jumped to. */
.card {
    flex: 1 1 240px;
    background-color: #2A201C;
    border-left: 5px solid #E7C76A;
    padding: 16px;
    scroll-margin-top: 20px;
}

/* Card title. */
.card h3 {
    font-size: 1.4rem;
    color: #F3DFA2;
}

/* Age line. */
.age {
    font-style: italic;
    font-size: 0.9rem;
    color: #D8CBB8;
    margin-top: 6px;
}

/* The card you jumped to lights up. */
.card:target {
    background-color: #3A2E2A;
    border-left-color: #F87171;
}

/* ----- Lessons (class) ----- */

/* Section spacing. */
.lessons {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 60px 20px;
}

/* Space under heading. */
.lessons-text h2 {
    margin-bottom: 10px;
}

/* Piano keys photo. */
.lessons-text img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-top: 18px;
}

/* Table. */
.lessons table {
    width: 100%;
    border-collapse: collapse;
    background-color: #FFFFFF;
}

/* Caption. */
.lessons caption {
    text-align: left;
    font-family: Righteous, sans-serif;
    padding-bottom: 6px;
}

/* Cells. */
.lessons th,
.lessons td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #EDE3D3;
}

/* Header row in oxblood. */
.lessons thead th {
    background-color: #7F1D1D;
    color: #FBF7F0;
    font-family: Righteous, sans-serif;
    font-weight: 400;
}

/* Price column bold. */
.lessons td:last-child {
    font-weight: 600;
    white-space: nowrap;
}

/* The popular row tinted gold. */
.popular {
    background-color: #FBEFC9;
}

/* "Most picked" pill. */
.pill {
    display: inline-block;
    background-color: #1C1412;
    color: #F3DFA2;
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0px 8px;
    margin-left: 4px;
}

/* ----- Porch jam (class) ----- */

/* Oxblood band, photo then text. */
.jam {
    display: flex;
    flex-direction: column;
    background-color: #7F1D1D;
    color: #FBF7F0;
}

/* Violin photo. */
.jam > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Text column. */
.jam-text {
    padding: 50px 20px;
}

/* Light heading on oxblood. */
.jam h2 {
    color: #FBF7F0;
    margin-bottom: 10px;
}

/* Drums photo. */
.drums {
    width: 100%;
    height: 180px;
    object-fit: cover;
    margin-top: 20px;
    border: 6px solid #FBF7F0;
}

/* ----- Sign up (class) ----- */

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

/* Form. */
.signup-form {
    max-width: 680px;
    margin-top: 18px;
}

/* Pairs of fields stack on phones. */
.row {
    display: flex;
    flex-direction: column;
}

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

/* Inputs and select. */
.signup-form input[type="text"],
.signup-form input[type="tel"],
.signup-form input[type="number"],
.signup-form select {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    border: 2px solid #D8CBB8;
    border-radius: 6px;
    font-family: Lora, serif;
    font-size: 1rem;
    background-color: #FFFFFF;
}

/* Experience group. */
.signup-form fieldset {
    border: none;
    margin-top: 14px;
}

/* Experience title. */
.signup-form legend {
    font-weight: 600;
}

/* Radio labels inline. */
.signup-form fieldset label {
    display: inline-block;
    font-weight: 400;
    margin: 4px 16px 0px 0px;
}

/* Oxblood radios. */
.signup-form input[type="radio"] {
    accent-color: #7F1D1D;
    margin-right: 4px;
}

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

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

/* Ebony footer. */
.site-footer {
    background-color: #1C1412;
    color: #D8CBB8;
    text-align: center;
    font-size: 0.85rem;
    padding: 22px 20px;
}

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

@media (min-width: 576px) {

    /* Field pairs side by side. */
    .row {
        flex-direction: row;
        gap: 16px;
    }

    /* Each half. */
    .row div {
        flex: 1 1 50%;
    }

    /* Key labels read normally once keys are wide enough. */
    .keyboard a {
        writing-mode: horizontal-tb;
        font-size: 0.85rem;
    }
}

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

@media (min-width: 768px) {

    /* More side padding. */
    .hero,
    .instruments,
    .lessons,
    .signup {
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Bigger key labels. */
    .keyboard a {
        font-size: 1rem;
        height: 230px;
    }

    /* Photo and jam text side by side. */
    .jam {
        flex-direction: row;
    }

    /* Photo half. */
    .jam > img {
        width: 45%;
        height: auto;
    }

    /* Text half. */
    .jam-text {
        flex: 1 1 55%;
        padding: 60px 40px;
    }
}

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

@media (min-width: 992px) {

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

    /* Nav in the header row. */
    .site-nav {
        display: block;
        width: auto;
    }

    /* Links in a row. */
    .site-nav ul {
        display: flex;
        gap: 24px;
        padding-top: 0px;
    }

    /* No dividers on desktop. */
    .site-nav a {
        border-top: none;
    }

    /* Hero text and photo side by side. */
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 50px;
    }

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

    /* Taller photo. */
    .hero-photo {
        width: 50%;
        height: 440px;
    }

    /* Keyboard on the left, cards on the right. */
    .instruments {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        column-gap: 40px;
    }

    /* Heading and intro rows. */
    .instruments h2,
    .instruments .lead {
        flex: 1 1 100%;
    }

    /* Keyboard column. */
    .keyboard {
        flex: 1 1 45%;
    }

    /* Cards column. */
    .cards {
        flex: 1 1 45%;
    }

    /* Cards in two columns. */
    .card {
        flex: 1 1 40%;
    }

    /* Table and text side by side. */
    .lessons {
        flex-direction: row;
        align-items: flex-start;
        gap: 50px;
    }

    /* Each half. */
    .lessons-text,
    .lessons table {
        flex: 1 1 50%;
    }
}

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

@media (min-width: 1200px) {

    /* Center content at 1140px. */
    .header-inner,
    .hero,
    .instruments,
    .lessons,
    .signup {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
