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

    Theme: homework. The header is the top of a spiral notebook: an
    indigo cover with silver wire coils punched along its bottom edge
    (radial-gradient holes and rounded coil shapes). The hero photo is
    taped onto ruled notebook paper with a strip of translucent tape.
    The signature is a bar graph drawn on blue graph paper, one sample
    student's math grade each month climbing from 61% to 88%, with the
    December dip called out. Subjects are drawn as long pencils: a
    sharpened wood tip, a colored barrel holding the words, a metal
    ferrule and a pink eraser. The footer is a chalkboard tray.

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

    Colors (WebAIM contrast checked, AA):
      #14123A text on #F7F7FF page (17.1:1)
      #4338CA indigo text and buttons (7.6:1; white on it 7.9:1)
      #8D5B06 amber text (5.7:1 on the page)
      #14123A on #F59E0B amber (8.8:1)
*/

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

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

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

/* Clean paper page. */
body {
    background-color: #F7F7FF;
    color: #14123A;
    font-family: "Lexend", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

/* Readable bold headings. */
h1,
h2 {
    font-weight: 800;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.6vw, 2.6rem);
    color: #4338CA;
    margin-bottom: 10px;
}

/* Links in indigo. */
a {
    color: #4338CA;
}

/* Amber outline for keyboard users. */
a:focus-visible,
button:focus-visible,
.menu-check:focus-visible + .spiral-row .menu-icon {
    outline: 3px solid #8D5B06;
    outline-offset: 3px;
}

/* ----- Spiral notebook header (class) ----- */

/* Indigo cover with a row of wire coils along the bottom. */
.spiral {
    position: relative;
    background-color: #4338CA;
    color: #FFFFFF;
    padding: 14px 16px 34px 16px;
}

/* Wire coils: silver loops with punched holes behind them. */
.spiral::after {
    content: "";
    position: absolute;
    left: 0px;
    right: 0px;
    bottom: -10px;
    height: 30px;
    background-image: radial-gradient(circle at 50% 70%, #F7F7FF 0px, #F7F7FF 4px, transparent 5px), linear-gradient(90deg, transparent 6px, #C0C4CC 6px, #E5E7EB 9px, #9CA3AF 12px, transparent 12px);
    background-size: 22px 30px, 22px 22px;
    background-repeat: repeat-x;
    background-position: 0px 0px, 0px 0px;
}

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

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

/* Logo on a white label stuck to the cover. */
.logo {
    background-color: #FFFFFF;
    color: #14123A;
    font-weight: 800;
    font-size: 1.25rem;
    padding: 4px 14px;
    border-radius: 4px;
    border-left: 6px solid #F59E0B;
}

/* "Tutoring" in indigo. */
.logo span {
    color: #4338CA;
    font-weight: 400;
}

/* Menu button. */
.menu-icon {
    background-color: #F59E0B;
    color: #14123A;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 6px;
    white-space: nowrap;
    cursor: pointer;
}

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

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

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

/* Nav links white. */
.spiral-nav a {
    color: #FFFFFF;
    font-weight: 600;
    text-decoration: none;
}

/* Hover: amber underline. */
.spiral-nav a:hover {
    box-shadow: inset 0px -3px 0px #F59E0B;
}

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

/* Small note, below the coils. */
.concept {
    font-size: 0.8rem;
    padding: 18px 16px 6px 16px;
}

/* ----- Notebook page hero (class) ----- */

/* Ruled notebook paper with a red margin. */
.page-hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background-color: #FFFFFF;
    background-image: linear-gradient(90deg, transparent 40px, #FCA5A5 40px, #FCA5A5 42px, transparent 42px), repeating-linear-gradient(180deg, transparent 0px, transparent 31px, #C7D2FE 31px, #C7D2FE 32px);
    padding: 40px 16px 56px 56px;
}

/* Photo taped to the page. */
.taped {
    position: relative;
    transform: rotate(-2deg);
}

/* Photo with a white print border. */
.taped img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border: 8px solid #FFFFFF;
    box-shadow: 0px 4px 12px rgba(20, 18, 58, 0.2);
}

/* Strip of translucent tape across the top. */
.tape {
    position: absolute;
    top: -12px;
    left: 50%;
    width: 120px;
    height: 28px;
    margin-left: -60px;
    background-color: rgba(253, 230, 138, 0.7);
    transform: rotate(3deg);
    z-index: 2;
}

/* Headline. */
.page-text h1 {
    font-size: clamp(2rem, 5.5vw, 3.4rem);
    margin-bottom: 14px;
}

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

/* Amber button with a pencil-lead point. */
.pencil-btn,
button {
    display: inline-block;
    background-color: #F59E0B;
    color: #14123A;
    font-family: "Lexend", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    padding: 12px 34px 12px 22px;
    clip-path: polygon(0% 0%, 88% 0%, 100% 50%, 88% 100%, 0% 100%);
    cursor: pointer;
}

/* Button hover. */
.pencil-btn:hover,
button:hover {
    background-color: #4338CA;
    color: #FFFFFF;
}

/* ----- Graph paper progress (ID) ----- */

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

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

/* Graph paper: small and big blue squares. */
.graph {
    position: relative;
    background-color: #FFFFFF;
    background-image: linear-gradient(90deg, rgba(67, 56, 202, 0.18) 1px, transparent 1px), linear-gradient(180deg, rgba(67, 56, 202, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(67, 56, 202, 0.07) 1px, transparent 1px), linear-gradient(180deg, rgba(67, 56, 202, 0.07) 1px, transparent 1px);
    background-size: 50px 50px, 50px 50px, 10px 10px, 10px 10px;
    border: 2px solid #C7D2FE;
    padding: 20px 14px 10px 14px;
}

/* Bars along the bottom of the graph. */
.bars {
    list-style: none;
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 280px;
    border-left: 3px solid #14123A;
    border-bottom: 3px solid #14123A;
    padding: 0px 6px;
}

/* One month's bar, drawn like colored pencil fill. */
.bar {
    position: relative;
    flex: 1 1 10%;
    height: var(--g);
    background-color: #4338CA;
    background-image: repeating-linear-gradient(60deg, transparent 0px, transparent 3px, rgba(255, 255, 255, 0.18) 3px, rgba(255, 255, 255, 0.18) 5px);
}

/* Grade above the bar. */
.val {
    position: absolute;
    top: -24px;
    left: 0px;
    width: 100%;
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
}

/* Month under the bar. */
.mon {
    position: absolute;
    bottom: -26px;
    left: 0px;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
}

/* Grade heights (out of 100%, with 50% at the floor). */
.g61 {
    --g: 22%;
}

/* 66. */
.g66 {
    --g: 32%;
}

/* 70. */
.g70 {
    --g: 40%;
    background-color: #F59E0B;
}

/* 72. */
.g72 {
    --g: 44%;
}

/* 78. */
.g78 {
    --g: 56%;
}

/* 81. */
.g81 {
    --g: 62%;
}

/* 85. */
.g85 {
    --g: 70%;
}

/* 88. */
.g88 {
    --g: 76%;
}

/* Callout note in pencil. */
.note-callout {
    margin-top: 40px;
    font-size: 0.9rem;
    color: #8D5B06;
    font-weight: 600;
}

/* ----- Pencils (class) ----- */

/* Pale indigo band. */
.subjects {
    background-color: #E9E8FB;
    padding: 56px 16px;
}

/* Pencils lined up. */
.pencils {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 28px;
}

/* One pencil: tip, barrel, eraser in a row. */
.pencil {
    display: flex;
    align-items: stretch;
    min-height: 56px;
}

/* Sharpened wood tip with a graphite point. */
.tip {
    flex: 0 0 46px;
    background-image: linear-gradient(90deg, #14123A 0%, #14123A 25%, #E8C9A0 25%);
    clip-path: polygon(0% 50%, 100% 0%, 100% 100%);
}

/* Colored barrel with the subject. */
.barrel {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0px 10px;
    background-color: var(--lead);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.25) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.12) 100%);
    padding: 6px 14px;
    color: #14123A;
    font-size: 0.9rem;
}

/* Subject name. */
.barrel strong {
    font-size: 1.1rem;
}

/* Metal ferrule and pink eraser. */
.eraser {
    flex: 0 0 46px;
    background-image: linear-gradient(90deg, #9CA3AF 0%, #E5E7EB 15%, #9CA3AF 30%, #F9A8D4 30%);
    border-radius: 0px 8px 8px 0px;
}

/* Math pencil yellow. */
.p-math {
    --lead: #FCD34D;
}

/* Reading pencil sky. */
.p-read {
    --lead: #93C5FD;
}

/* Writing pencil lime. */
.p-write {
    --lead: #BEF264;
}

/* Science pencil peach. */
.p-sci {
    --lead: #FDBA74;
}

/* ACT pencil lilac. */
.p-act {
    --lead: #C4B5FD;
}

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

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

/* ----- Get started (class) ----- */

/* Photo then form. */
.start {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 56px 16px;
}

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

/* Form on an index card. */
.start-form fieldset {
    border: none;
    background-color: #FFFFFF;
    background-image: linear-gradient(180deg, transparent 54px, #FCA5A5 54px, #FCA5A5 56px, transparent 56px), repeating-linear-gradient(180deg, transparent 0px, transparent 29px, #C7D2FE 29px, #C7D2FE 30px);
    box-shadow: 0px 4px 14px rgba(20, 18, 58, 0.15);
    padding: 24px;
}

/* Form title. */
.start-form legend {
    font-weight: 800;
    font-size: 1.3rem;
    color: #4338CA;
    float: left;
    width: 100%;
}

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

/* Inputs. */
.start-form input,
.start-form select {
    width: 100%;
    font-family: "Lexend", Arial, sans-serif;
    font-size: 1rem;
    padding: 9px;
    border: 2px solid #5D5C7A;
    border-radius: 6px;
    background-color: #FFFFFF;
}

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

/* ----- Chalkboard tray footer (class) ----- */

/* Slate green board with a wooden tray lip and chalk dust. */
.tray {
    background-color: #1F3A2E;
    border-top: 12px solid #A16A3A;
    color: #FFFFFF;
    font-size: 0.82rem;
    text-align: center;
    padding: 28px 16px;
}

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

@media (min-width: 576px) {

    /* Taller photo. */
    .taped img {
        height: 360px;
    }
}

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

@media (min-width: 768px) {

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

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

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

    /* Pencils get shorter and stagger like a box of them. */
    .pencil:nth-child(even) {
        margin-left: 40px;
    }
}

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

@media (min-width: 992px) {

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

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

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

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

    /* Photo beside the words on the page. */
    .page-hero {
        flex-direction: row;
        align-items: center;
        padding: 56px 40px 70px 80px;
    }

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

    /* Wider sections. */
    #progress,
    .subjects,
    .start {
        padding-left: 40px;
        padding-right: 40px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    #progress,
    .subjects,
    .start {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }

    /* Hero content in the column too, margin line stays left. */
    .page-hero {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
