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

    Theme: the bookkeeper's desk. The header is the top of a spreadsheet:
    a row of column letters, a cell reference box, and sheet tabs along
    the bottom for the nav. The hero has an adding-machine tape (a narrow
    paper strip with a torn top from a zigzag clip-path). Plans print on
    green-bar computer paper with tractor-feed holes down both edges.
    The month is a calendar built from a flex-wrap list, seven to a row,
    with due dates marked. The free-call form is a receipt with torn
    edges top and bottom, and the footer is the totals row.

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

    Colors (WebAIM contrast checked, AA):
      #0B1F18 text on #F6FBF8 page (16.4:1)
      #047555 green text (5.6:1 on the page)
      #FFFFFF on #047857 buttons (5.5:1)
      #5457CD indigo text (5.5:1)
      #0B1F18 on #D9F2E6 green bars (14.6:1)
*/

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

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

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

/* Pale mint page. */
body {
    background-color: #F6FBF8;
    color: #0B1F18;
    font-family: "Inter", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

/* Headings in the techy grotesk. */
h1,
h2 {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.6rem);
    margin-bottom: 8px;
}

/* Links in green. */
a {
    color: #047555;
}

/* Indigo outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.tablewrap:focus-visible,
.menu-check:focus-visible + .cols + .cell-row .menu-icon {
    outline: 3px solid #5457CD;
    outline-offset: 2px;
}

/* ----- Spreadsheet header (class) ----- */

/* Sticky gray sheet top. */
.sheet-head {
    position: sticky;
    top: 0px;
    z-index: 20;
    background-color: #FFFFFF;
    border-bottom: 1px solid #C7D0CB;
}

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

/* Row of column letters. */
.cols {
    display: flex;
    background-color: #EEF2F0;
    border-bottom: 1px solid #C7D0CB;
    font-size: 0.72rem;
    color: #5C6864;
}

/* One column letter cell. */
.cols span {
    flex: 1 1 0px;
    text-align: center;
    border-right: 1px solid #C7D0CB;
    padding: 1px 0px;
}

/* Corner cell is narrow. */
.cols span:first-child {
    flex: 0 0 40px;
}

/* Cell reference, name and menu in one row. */
.cell-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
}

/* Cell reference box. */
.cell-ref {
    font-size: 0.75rem;
    border: 1px solid #C7D0CB;
    padding: 0px 8px;
    color: #5C6864;
}

/* Business name, green, in a selected-cell outline. */
.name {
    flex: 1 1 auto;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: #047555;
}

/* "Bookkeeping" lighter. */
.name span {
    font-weight: 500;
    color: #0B1F18;
}

/* Sheets button. */
.menu-icon {
    font-size: 0.9rem;
    font-weight: 600;
    background-color: #EEF2F0;
    border: 1px solid #C7D0CB;
    padding: 3px 10px;
    cursor: pointer;
}

/* Tabs hidden on phones until opened. */
.sheet-tabs {
    display: none;
}

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

/* Tab strip. */
.sheet-tabs ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    background-color: #EEF2F0;
    padding: 4px 16px 0px 16px;
}

/* One sheet tab, open at the bottom like a workbook tab. */
.sheet-tabs a {
    display: block;
    background-color: #FFFFFF;
    color: #0B1F18;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 16px;
    border: 1px solid #C7D0CB;
    border-top: none;
    border-radius: 0px 0px 6px 6px;
}

/* Hovered tab turns green like the active sheet. */
.sheet-tabs a:hover {
    color: #047555;
    border-bottom: 3px solid #047857;
}

/* Concept note like a cell comment. */
.comment {
    font-size: 0.78rem;
    background-color: #FEF9C3;
    border-top: 1px solid #C7D0CB;
    padding: 2px 16px;
}

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

/* Text, tape and photo stacked on phones. */
.hero {
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 40px 20px 50px 20px;
}

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

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

/* Buttons shaped like calculator keys. */
.key,
button {
    display: inline-block;
    background-color: #047857;
    color: #FFFFFF;
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    margin: 0px 8px 8px 0px;
    box-shadow: 0px 5px 0px #034A36;
    cursor: pointer;
}

/* Key presses down on hover. */
.key:hover,
button:hover {
    transform: translateY(3px);
    box-shadow: 0px 2px 0px #034A36;
}

/* Second key in indigo. */
.key-alt {
    background-color: #5457CD;
    box-shadow: 0px 5px 0px #33358C;
}

/* Adding-machine tape with a torn top edge. */
.tape {
    width: 240px;
    margin: 0px auto;
    background-color: #FFFFFF;
    font-family: "Courier New", Courier, monospace;
    font-size: 0.9rem;
    padding: 30px 16px 18px 16px;
    box-shadow: 0px 8px 18px rgba(11, 31, 24, 0.15);
    clip-path: polygon(0% 6%, 8% 0%, 16% 6%, 24% 0%, 32% 6%, 40% 0%, 48% 6%, 56% 0%, 64% 6%, 72% 0%, 80% 6%, 88% 0%, 96% 6%, 100% 2%, 100% 100%, 0% 100%);
    transform: rotate(3deg);
}

/* One line on the tape. */
.t-line {
    display: flex;
    justify-content: space-between;
    padding: 4px 0px;
}

/* Total line under a double rule. */
.t-total {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    border-top: 3px double #0B1F18;
    margin-top: 6px;
    padding-top: 6px;
}

/* Hero photo. */
.hero > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

/* ----- Green-bar plans (ID) ----- */

/* Section spacing. */
#plans {
    padding: 56px 20px;
}

/* Intro line. */
.lead {
    color: #5C6864;
    margin-bottom: 20px;
}

/* Green-bar paper with tractor-feed holes along both edges. */
.greenbar {
    background-color: #FFFFFF;
    padding: 18px 34px;
    background-image: radial-gradient(circle 5px at 14px 12px, #F6FBF8 96%, transparent 100%), radial-gradient(circle 5px at calc(100% - 14px) 12px, #F6FBF8 96%, transparent 100%);
    background-size: 100% 24px;
    border-left: 1px dashed #C7D0CB;
    border-right: 1px dashed #C7D0CB;
    margin-bottom: 24px;
}

/* Scroll wrapper so the table never pushes the page sideways. */
.tablewrap {
    overflow-x: auto;
}

/* The table. */
.greenbar table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
    font-family: "Courier New", Courier, monospace;
}

/* Caption above. */
.greenbar caption {
    text-align: left;
    font-family: "Inter", Arial, sans-serif;
    font-weight: 600;
    padding-bottom: 6px;
}

/* Cells. */
.greenbar th,
.greenbar td {
    text-align: left;
    padding: 10px 8px;
}

/* Every other row is a green bar. */
.greenbar tbody tr:nth-child(odd) {
    background-color: #D9F2E6;
}

/* Header row underlined. */
.greenbar thead th {
    border-bottom: 2px solid #0B1F18;
}

/* Calculator photo. */
.calc {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* ----- Month (class) ----- */

/* Indigo tint band; text then calendar on phones. */
.month {
    display: flex;
    flex-direction: column;
    gap: 26px;
    background-color: #E4E9F7;
    padding: 56px 20px;
}

/* Paragraph spacing. */
.month-text p {
    margin-bottom: 12px;
}

/* Legend list. */
.key-list {
    list-style: none;
    margin-bottom: 18px;
}

/* One legend line. */
.key-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 3px 0px;
}

/* Legend swatch. */
.sw {
    width: 20px;
    height: 20px;
    border: 1px solid #0B1F18;
}

/* "We close" swatch. */
.sw-us {
    background-color: #047857;
}

/* "Report" swatch. */
.sw-you {
    background-color: #A5B4FC;
}

/* "Due" swatch with stripes. */
.sw-due {
    background-image: repeating-linear-gradient(45deg, #FDE68A 0px, #FDE68A 4px, #F59E0B 4px, #F59E0B 6px);
}

/* Spreadsheet photo. */
.month-text img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Calendar card. */
.cal {
    background-color: #FFFFFF;
    padding: 16px;
    border: 1px solid #C7D0CB;
}

/* Calendar title. */
.cal-title {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Days: seven to a row with flex-wrap. */
.days {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

/* One day cell. */
.days li {
    flex: 0 0 14.2857%;
    min-height: 58px;
    border: 1px solid #E5E7EB;
    padding: 2px 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Word under the date. */
.days small {
    display: block;
    font-size: 0.62rem;
    line-height: 1.2;
}

/* Close day in green. */
.days .us {
    background-color: #047857;
    color: #FFFFFF;
}

/* Report day in indigo tint. */
.days .you {
    background-color: #A5B4FC;
}

/* Due days striped. */
.days .due {
    background-image: repeating-linear-gradient(45deg, #FDE68A 0px, #FDE68A 6px, #FCD34D 6px, #FCD34D 9px);
}

/* ----- Free call (class) ----- */

/* Photo then receipt on phones. */
.call {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 56px 20px 60px 20px;
}

/* Owners photo. */
.call > img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

/* Receipt with torn edges at the top and bottom. */
.receipt {
    background-color: #FFFFFF;
    padding: 30px 22px;
    font-family: "Courier New", Courier, monospace;
    clip-path: polygon(0% 2%, 5% 0%, 10% 2%, 15% 0%, 20% 2%, 25% 0%, 30% 2%, 35% 0%, 40% 2%, 45% 0%, 50% 2%, 55% 0%, 60% 2%, 65% 0%, 70% 2%, 75% 0%, 80% 2%, 85% 0%, 90% 2%, 95% 0%, 100% 2%, 100% 98%, 95% 100%, 90% 98%, 85% 100%, 80% 98%, 75% 100%, 70% 98%, 65% 100%, 60% 98%, 55% 100%, 50% 98%, 45% 100%, 40% 98%, 35% 100%, 30% 98%, 25% 100%, 20% 98%, 15% 100%, 10% 98%, 5% 100%, 0% 98%);
    box-shadow: 0px 6px 16px rgba(0, 0, 0, 0.1);
}

/* No fieldset border. */
.receipt fieldset {
    border: none;
}

/* Receipt title centered. */
.receipt legend {
    font-family: "Space Grotesk", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    text-align: center;
    width: 100%;
    border-bottom: 2px dashed #0B1F18;
    padding-bottom: 6px;
}

/* Receipt subline. */
.r-sub {
    font-size: 0.9rem;
    margin: 10px 0px 14px 0px;
}

/* Labels. */
.receipt label {
    display: block;
    font-weight: 700;
}

/* Fields drawn with dotted lines. */
.receipt input {
    width: 100%;
    font: inherit;
    border: none;
    border-bottom: 2px dotted #0B1F18;
    background-color: #F6FBF8;
    padding: 6px 4px;
    margin: 2px 0px 12px 0px;
}

/* ----- Totals footer (class) ----- */

/* Dark green footer. */
.totals {
    background-color: #0B1F18;
    color: #B0B9B5;
    font-size: 0.82rem;
    padding: 26px 20px;
}

/* Totals row with a double rule above. */
.sum {
    display: flex;
    justify-content: space-between;
    color: #FFFFFF;
    font-family: "Courier New", Courier, monospace;
    font-size: 1rem;
    font-weight: 700;
    border-top: 3px double #B0B9B5;
    padding-top: 6px;
    margin-bottom: 12px;
}

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

@media (min-width: 576px) {

    /* Taller day cells. */
    .days li {
        min-height: 70px;
        font-size: 0.9rem;
    }

    /* Bigger words under dates. */
    .days small {
        font-size: 0.7rem;
    }
}

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

@media (min-width: 768px) {

    /* Text beside the calendar. */
    .month {
        flex-direction: row;
        align-items: flex-start;
        padding-left: 40px;
        padding-right: 40px;
    }

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

    /* Photo beside the receipt. */
    .call {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .call > img,
    .receipt {
        flex: 1 1 50%;
        min-width: 0px;
    }

    /* Taller photo. */
    .call > img {
        height: 420px;
    }
}

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

@media (min-width: 992px) {

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

    /* Sheet tabs always shown. */
    .sheet-tabs {
        display: block;
    }

    /* Text, tape and photo across the hero. */
    .hero {
        flex-direction: row;
        align-items: center;
        padding: 60px 50px;
    }

    /* Text column. */
    .hero-text {
        flex: 1 1 45%;
    }

    /* Tape keeps its width. */
    .tape {
        flex: 0 0 240px;
    }

    /* Photo column. */
    .hero > img {
        width: 28%;
        height: 420px;
    }

    /* Plans beside the photo. */
    #plans {
        display: flex;
        flex-wrap: wrap;
        gap: 0px 30px;
        padding-left: 50px;
        padding-right: 50px;
    }

    /* Title and lead span the row. */
    #plans h2,
    #plans .lead {
        flex: 1 1 100%;
    }

    /* Paper column. */
    .greenbar {
        flex: 1 1 62%;
    }

    /* Photo column. */
    .calc {
        flex: 1 1 30%;
        width: 30%;
        height: 330px;
    }
}

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

@media (min-width: 1200px) {

    /* Content in a 1140px column. */
    .hero,
    #plans,
    .month,
    .call {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
