/*
    Name:       Joseph Medeiros
    Business:   Medeiros Web Design
    Date:       November 11, 2026
    Project:    Concept Site - Fade & Fable Barber Co. (fictional business)
    Filename:   styles.css

    Layout plan: mobile-first, black-and-cream "old newspaper" style.
    Base rules are the phone layout; media queries at 576px, 768px, 992px
    and 1200px add to it. Flexbox for layout, double-rule borders, a
    framed price board, and absolute positioning for the "chairs open"
    card on the photo.

    Colors (WebAIM checked, AA):
      #F1EBDD cream   #121110 ink   #8A6A22 gold (text)   #B8913A gold (fills)   #7A1F1F oxblood   #5D574E muted
*/

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

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

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

/* Cream page with ink text in Space Grotesk. */
body {
    background-color: #F1EBDD;
    color: #121110;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.03rem;
    line-height: 1.6;
}

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

/* Heavy Abril Fatface headings, like an old newspaper masthead. */
h1,
h2,
h3 {
    font-family: "Abril Fatface", Georgia, serif;
    font-weight: 400;
    line-height: 1;
}

/* Oxblood focus ring. */
a:focus-visible,
button:focus-visible,
input:focus-visible + span {
    outline: 3px solid #7A1F1F;
    outline-offset: 3px;
}

/* Hides a heading on screen but keeps it for screen readers. */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    white-space: nowrap;
    clip-path: inset(50%);
}

/* ----- Banner and masthead (class) ----- */

/* Thin all-caps strip labeling the concept. */
.concept-banner {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-bottom: 1px solid #121110;
}

/* Masthead: name on the left, Book on the right on phones; double rule
   under it like a newspaper. */
.masthead {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 4px double #121110;
}

/* Opening hours are hidden on phones; shown at 768px. */
.hours {
    display: none;
}

/* Shop name in big Abril. */
.shop-name {
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 1.9rem;
    line-height: 1;
}

/* Italic oxblood subtitle under the name. */
.shop-sub {
    font-family: "Libre Baskerville", Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #7A1F1F;
}

/* Nav list in a row. */
.site-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    list-style: none;
}

/* Prices and Barbers links are hidden on phones; shown at 576px. */
.nav-extra {
    display: none;
}

/* Plain nav links, underlined so they read as links. */
.site-nav a {
    color: #121110;
    font-weight: 500;
}

/* Oxblood on hover. */
.site-nav a:hover {
    color: #7A1F1F;
}

/* The Book link is a solid black button. */
.site-nav .book-link {
    display: block;
    background-color: #121110;
    color: #F1EBDD;
    padding: 10px 18px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    font-size: 0.85rem;
}

/* Oxblood button on hover. */
.site-nav .book-link:hover {
    background-color: #7A1F1F;
    color: #FFFFFF;
}

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

/* Text then photo on phones, hairline under the whole hero. */
.hero {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid #121110;
}

/* Text padding. */
.hero-text {
    padding: 28px 18px;
}

/* "No. 01 / On Commercial St" like an issue line on a paper. */
.issue {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-bottom: 1px solid #121110;
    padding: 0px 0px 10px 0px;
}

/* Huge headline. */
.hero h1 {
    font-size: clamp(3.6rem, 7vw, 6.8rem);
    margin: 30px 0px 18px 0px;
}

/* Smaller italic oxblood second line. */
.hero h1 span {
    display: block;
    font-family: "Libre Baskerville", Georgia, serif;
    font-style: italic;
    font-size: 0.42em;
    color: #7A1F1F;
    margin: 10px 0px 0px 0px;
}

/* Hero paragraph. */
.hero-text > p:last-child {
    font-size: 1.1rem;
    max-width: 28rem;
}

/* position: relative anchors the chairs card. */
.hero-photo {
    position: relative;
}

/* Black-and-white photo for the old-paper look. grayscale(1) removes
   all color. */
.hero-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    filter: grayscale(1) contrast(1.1);
}

/* Cream card pinned to the photo's bottom-right corner. */
.chairs {
    position: absolute;
    right: 16px;
    bottom: 16px;
    background-color: #F1EBDD;
    border: 1px solid #121110;
    padding: 10px 14px;
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.3;
}

/* The big number on the card. */
.chairs strong {
    display: block;
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 1.8rem;
    font-weight: 400;
}

/* The "(sample)" note on its own line. */
.chairs span {
    display: block;
    font-size: 0.75rem;
}

/* ----- Marquee (class) ----- */

/* Black strip; overflow: hidden cuts off text past the edge. */
.marquee {
    background-color: #121110;
    color: #F1EBDD;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0px;
}

/* The moving line. It slides left by half its width (one copy of the
   list) and repeats. */
.marquee p {
    display: inline-block;
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 1.3rem;
    color: #B8913A;
    animation: marquee 40s linear infinite;
}

/* Service names in cream with space around the stars. */
.marquee span {
    color: #F1EBDD;
    margin: 0px 22px;
}

/* Slide one copy's width to the left. */
@keyframes marquee {
    to {
        transform: translateX(-50%);
    }
}

/* Visitors who reduce motion in their settings get a still strip. */
@media (prefers-reduced-motion: reduce) {

    /* Stop the marquee from moving. */
    .marquee p {
        animation: none;
    }
}

/* ----- Section titles (class) ----- */

/* Centered title block. */
.section-title {
    text-align: center;
    margin: 0px 0px 36px 0px;
}

/* Big section title. */
.section-title h2 {
    font-size: clamp(2.8rem, 6vw, 4.8rem);
}

/* Italic oxblood line under the title. */
.section-title p {
    font-family: "Libre Baskerville", Georgia, serif;
    font-style: italic;
    color: #7A1F1F;
    margin: 6px 0px 0px 0px;
}

/* Left-aligned version used in the booking section. */
.section-title-left {
    text-align: left;
    margin: 0px 0px 20px 0px;
}

/* ----- Price board (ID and class) ----- */

/* Section spacing. */
#prices {
    padding: 60px 18px;
}

/* Framed board: a thick outer border plus a thin inner line drawn with
   outline and a negative outline-offset. */
.board {
    max-width: 62rem;
    margin: 0px auto;
    background-color: #F6F1E5;
    border: 2px solid #121110;
    outline: 1px solid #121110;
    outline-offset: -9px;
    padding: 30px 22px;
    display: flex;
    flex-direction: column;
    gap: 0px 60px;
}

/* Each half of the board takes an equal share once side by side. */
.board dl {
    flex: 1 1 0px;
}

/* Service name on the left, price on the right, with a dotted leader
   line under the row. */
.board dt {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-family: "Abril Fatface", Georgia, serif;
    font-size: 1.35rem;
    border-bottom: 2px dotted #121110;
    padding: 10px 0px 2px 0px;
}

/* Price in bold Space Grotesk. */
.board dt span {
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
}

/* Description under each service. */
.board dd {
    font-size: 0.9rem;
    color: #5D574E;
    margin: 2px 0px 6px 0px;
}

/* Note about sample prices across the bottom of the board. */
.board-note {
    flex-basis: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #5D574E;
    margin: 18px 0px 0px 0px;
}

/* ----- Barbers (ID) ----- */

/* Barber profiles stack on phones with lines between them. */
#barbers {
    display: flex;
    flex-direction: column;
    border-top: 1px solid #121110;
    border-bottom: 1px solid #121110;
}

/* One barber profile. */
#barbers article {
    flex: 1 1 0px;
    padding: 24px 18px;
    border-bottom: 1px solid #121110;
}

/* No line after the last profile on phones. */
#barbers article:last-child {
    border-bottom: none;
}

/* Barber name. */
#barbers h3 {
    font-size: 2rem;
}

/* Italic oxblood specialty line. */
.specialty {
    font-family: "Libre Baskerville", Georgia, serif;
    font-style: italic;
    color: #7A1F1F;
    margin: 4px 0px 10px 0px;
}

/* ----- Booking (ID and class) ----- */

/* Section spacing; photos then booking card on phones. */
#book {
    padding: 60px 18px;
    display: flex;
    flex-direction: column;
    gap: 34px;
}

/* Photos in a wrapping row: one wide on top, two below. */
.book-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* The section title takes the whole first row. */
.book-photos .section-title {
    flex-basis: 100%;
}

/* Black-and-white booking photos, two per row. */
.book-photos img {
    flex: 1 1 40%;
    min-width: 0px;
    height: 200px;
    object-fit: cover;
    filter: grayscale(1);
}

/* The wide photo takes the full row. */
.book-photos img.wide {
    flex-basis: 100%;
    height: 240px;
}

/* The booking card: framed, lightly see-through white. */
.today {
    border: 2px solid #121110;
    background-color: #FFFFFF88;
}

/* Black title bar on the card. */
.today-header {
    display: flex;
    justify-content: space-between;
    background-color: #121110;
    color: #F1EBDD;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Each choice group inside the card. */
.today fieldset {
    border: none;
    padding: 16px 18px 0px 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Small caps label for each group. */
.today legend {
    float: left;
    width: 100%;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0px 0px 8px 0px;
}

/* The real radio is hidden but still keyboard reachable; the span next
   to it is drawn as the button. */
.today input {
    position: absolute;
    opacity: 0;
}

/* Barber and time buttons. */
.today span {
    display: block;
    border: 1px solid #121110;
    padding: 8px 12px;
    font-size: 0.9rem;
    cursor: pointer;
}

/* Time buttons share rows four across. */
.times label {
    flex: 1 1 20%;
    text-align: center;
}

/* Bold time text. */
.times span {
    font-weight: 700;
}

/* The chosen barber or time fills black (barber) or gold (time). */
.today input:checked + span {
    background-color: #121110;
    color: #F1EBDD;
}

/* The chosen time uses gold instead of black. */
.times input:checked + span {
    background-color: #B8913A;
    border-color: #B8913A;
    color: #121110;
}

/* Taken times are struck through and grey. The strike-through and the
   disabled radio both say "taken", so color is not the only signal. */
.taken span {
    color: #6F6A62;
    border-color: #12111033;
    text-decoration: line-through;
    cursor: not-allowed;
}

/* Oxblood booking button across the bottom of the card. */
.today button {
    display: block;
    width: calc(100% - 36px);
    margin: 18px;
    background-color: #7A1F1F;
    color: #FFFFFF;
    border: none;
    padding: 14px;
    font-family: inherit;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

/* Black on hover. */
.today button:hover {
    background-color: #121110;
}

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

/* Footer with a double rule on top to match the masthead. */
.site-footer {
    border-top: 4px double #121110;
    padding: 26px 18px;
    font-size: 0.85rem;
}

/* ===== Small screens and up: 576px ===== */

@media (min-width: 576px) {

    /* Show the Prices and Barbers links. */
    .nav-extra {
        display: block;
    }

    /* Bigger shop name. */
    .shop-name {
        font-size: 2.3rem;
    }
}

/* ===== Medium screens and up: 768px ===== */

@media (min-width: 768px) {

    /* Masthead gets three columns: hours, centered name, nav. */
    .hours {
        display: block;
        flex: 1 1 0px;
        font-size: 0.75rem;
        letter-spacing: 0.14em;
        text-transform: uppercase;
    }

    /* The name block sits in the middle, centered. */
    .title {
        text-align: center;
    }

    /* The nav takes the right third, pushed to the right edge. */
    .masthead nav {
        flex: 1 1 0px;
        display: flex;
        justify-content: flex-end;
    }

    /* Board halves side by side. flex-wrap lets the note take a full
       row under them. */
    .board {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 44px;
    }

    /* Barber profiles in a row with lines between them. */
    #barbers {
        flex-direction: row;
    }

    /* Vertical lines between profiles instead of horizontal ones. */
    #barbers article {
        border-bottom: none;
        border-right: 1px solid #121110;
        padding: 30px 4vw;
    }

    /* No line after the last profile. */
    #barbers article:last-child {
        border-right: none;
    }

    /* Footer lines at the edges. */
    .site-footer {
        display: flex;
        justify-content: space-between;
        gap: 20px;
    }
}

/* ===== Large screens and up: 992px ===== */

@media (min-width: 992px) {

    /* Text left, photo right, divided by a vertical line. */
    .hero {
        flex-direction: row;
        min-height: 560px;
    }

    /* Text column with a line on its right. */
    .hero-text {
        flex: 0.9 1 0px;
        padding: 56px 4vw;
        border-right: 1px solid #121110;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    /* Photo column. */
    .hero-photo {
        flex: 1.1 1 0px;
    }

    /* Photo fills the full hero height. */
    .hero-photo img {
        height: 100%;
    }

    /* Bigger chairs card. */
    .chairs strong {
        font-size: 2.2rem;
    }

    /* Photos and booking card side by side. */
    #book {
        flex-direction: row;
        align-items: flex-start;
        gap: 4vw;
        padding: 90px 4vw;
    }

    /* Each booking column takes half. */
    .book-photos,
    .today {
        flex: 1 1 0px;
    }

    /* More room around the price board. */
    #prices {
        padding: 90px 4vw;
    }

    /* Side padding for masthead and footer. */
    .masthead,
    .site-footer {
        padding-left: 4vw;
        padding-right: 4vw;
    }
}

/* ===== Extra large screens and up: 1200px ===== */

@media (min-width: 1200px) {

    /* Bigger booking photos. */
    .book-photos img {
        height: 260px;
    }

    /* Bigger wide photo. */
    .book-photos img.wide {
        height: 320px;
    }
}
