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

    Theme: a Sunday bulletin. The header is a printed masthead with
    double rules; the nav is the bulletin's "contents" line. The welcome
    is a short letter beside an arched stained-glass window (conic-
    gradient glass around the photo). The Sunday schedule is an order
    of service with dotted leaders. This week's events sit on a church
    letter board: black felt with grooves and white plastic letters.
    The footer is the back page of the bulletin.

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

    Colors (WebAIM contrast checked, AA):
      #1C1917 ink on #FFFBF5 paper (16.9:1)
      #7C2D12 rust headings and links (10.0:1 on the paper)
      #6B6865 gray notes (5.4:1)
      #FFFFFF letters on #1A1A1A felt (17.4:1)
      #FFFFFF on #7C2D12 buttons (10.4:1)
*/

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

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

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

/* Warm bulletin paper and dark ink. */
body {
    background-color: #FFFBF5;
    color: #1C1917;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 1.02rem;
    line-height: 1.7;
}

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

/* Headings in the book serif. */
h1,
h2 {
    font-family: "Lora", Georgia, serif;
    font-weight: 700;
    line-height: 1.15;
    color: #7C2D12;
}

/* Section titles. */
h2 {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    margin-bottom: 12px;
}

/* Links in the rust color, underlined. */
a {
    color: #7C2D12;
}

/* A clear outline for keyboard users. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
.menu-check:focus-visible + .menu-icon {
    outline: 3px solid #D97706;
    outline-offset: 3px;
}

/* ----- Masthead (class) ----- */

/* Centered masthead with a double rule under it. */
.masthead {
    text-align: center;
    padding: 0px 20px 14px 20px;
    border-bottom: 6px double #7C2D12;
}

/* Concept note as a small rubber stamp at the very top. */
.stamp {
    display: inline-block;
    font-size: 0.78rem;
    color: #7C2D12;
    border: 2px solid #7C2D12;
    border-top: none;
    border-radius: 0px 0px 8px 8px;
    padding: 2px 12px;
    margin-bottom: 14px;
}

/* Small dateline over the name. */
.dateline {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6B6865;
}

/* Church name, large serif, the second part in italics. */
.church-name {
    font-family: "Lora", Georgia, serif;
    font-size: clamp(2rem, 7vw, 3.6rem);
    font-weight: 700;
    line-height: 1.05;
    color: #1C1917;
    margin: 4px 0px 10px 0px;
}

/* "Community Church" in italics on its own line. */
.church-name em {
    display: block;
    font-weight: 400;
    font-size: 0.55em;
    color: #7C2D12;
}

/* Checkbox kept reachable by keyboard but invisible. */
.menu-check {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

/* "Contents" button on phones. */
.menu-icon {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    border-top: 1px solid #7C2D12;
    border-bottom: 1px solid #7C2D12;
    padding: 4px 18px;
    cursor: pointer;
}

/* Contents list hidden on phones until opened. */
.contents {
    display: none;
}

/* Opened contents show under the button. */
.menu-check:checked ~ .contents {
    display: block;
}

/* Contents list without bullets. */
.contents ul {
    list-style: none;
    padding-top: 8px;
}

/* Each entry like a line in a table of contents. */
.contents a {
    display: block;
    padding: 8px 0px;
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    font-size: 1.1rem;
    text-decoration: none;
}

/* Underline on hover. */
.contents a:hover {
    text-decoration: underline;
}

/* ----- Welcome letter (class) ----- */

/* Letter then window on phones. */
.welcome {
    display: flex;
    flex-direction: column;
    gap: 34px;
    padding: 40px 20px 56px 20px;
}

/* Big welcome line. */
.letter h1 {
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 16px;
}

/* Letter paragraphs. */
.letter p {
    margin-bottom: 14px;
    max-width: 34rem;
}

/* Signed in italics like a handwritten close. */
.signature {
    font-family: "Lora", Georgia, serif;
    font-style: italic;
    font-size: 1.25rem;
    color: #7C2D12;
}

/* The one button style on this site: rust with a square edge. */
.btn,
button {
    display: inline-block;
    background-color: #7C2D12;
    color: #FFFFFF;
    font-family: "Work Sans", Arial, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-bottom: 4px solid #D97706;
    padding: 12px 24px;
    cursor: pointer;
}

/* Darker on hover. */
.btn:hover,
button:hover {
    background-color: #5A1F0B;
}

/* Arched stained-glass window around the photo. */
.window {
    padding: 14px;
    border-radius: 200px 200px 6px 6px;
    background-image: conic-gradient(#B91C1C 0deg 30deg, #D97706 30deg 60deg, #1D4ED8 60deg 90deg, #15803D 90deg 120deg, #7C2D12 120deg 150deg, #D97706 150deg 180deg, #1D4ED8 180deg 210deg, #B91C1C 210deg 240deg, #15803D 240deg 270deg, #D97706 270deg 300deg, #1D4ED8 300deg 330deg, #7C2D12 330deg 360deg);
    max-width: 440px;
    margin: 0px auto;
}

/* Photo inside the window, arched to match. */
.window img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 190px 190px 2px 2px;
    border: 4px solid #1C1917;
}

/* ----- Order of service (class) ----- */

/* Tinted band; page then photo on phones. */
.order {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background-color: #F5EBE3;
    padding: 56px 20px;
}

/* The printed page. */
.page {
    background-color: #FFFFFF;
    padding: 28px 22px;
    border: 1px solid #DDD9D4;
    box-shadow: 6px 6px 0px #DDD9D4;
}

/* Short note under the title. */
.note {
    color: #6B6865;
    font-style: italic;
    margin-bottom: 16px;
}

/* Program list. */
.program {
    list-style: none;
}

/* One line: words, dotted leader, time. */
.program li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 9px 0px;
}

/* The words of each line. */
.what {
    flex: 0 1 auto;
}

/* Dotted leader fills the gap. */
.dots {
    flex: 1 1 20px;
    border-bottom: 2px dotted #6B6865;
}

/* Time in bold rust. */
.when {
    font-weight: 600;
    color: #7C2D12;
}

/* Potluck photo with its caption. */
.potluck img {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

/* Caption under the potluck photo. */
.potluck figcaption {
    font-size: 0.92rem;
    margin-top: 8px;
}

/* ----- Letter board (ID) ----- */

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

/* Black felt with grooves and an aluminum frame. */
.felt {
    background-color: #1A1A1A;
    background-image: repeating-linear-gradient(180deg, #1A1A1A 0px, #1A1A1A 10px, #2A2A2A 10px, #2A2A2A 12px);
    border: 10px solid #A8A29E;
    box-shadow: inset 0px 0px 0px 2px #57534E;
    padding: 18px 14px;
    margin: 18px 0px 24px 0px;
}

/* One line of white plastic letters. */
.row {
    color: #FFFFFF;
    font-family: "Work Sans", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.18em;
    line-height: 2.2;
    text-align: center;
}

/* Detail list under the board. */
.details {
    list-style: none;
}

/* Each detail line. */
.details li {
    padding: 8px 0px;
    border-bottom: 1px solid #DDD9D4;
}

/* ----- Plan a visit (class) ----- */

/* Photo, form, photo stacked on phones. */
.visit {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 20px 20px 60px 20px;
}

/* Chapel photo. */
.chapel img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

/* Chapel caption. */
.chapel figcaption {
    font-size: 0.9rem;
    font-style: italic;
    color: #6B6865;
    margin-top: 6px;
}

/* Form card like a connection card. */
.card {
    background-color: #FFFFFF;
    border: 2px solid #7C2D12;
    padding: 22px;
}

/* No default fieldset border inside the card. */
.card fieldset {
    border: none;
}

/* Form title. */
.card legend {
    font-family: "Lora", Georgia, serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #7C2D12;
}

/* Intro line in the form. */
.card p {
    margin-bottom: 12px;
}

/* Labels above fields. */
.card label {
    display: block;
    font-weight: 600;
}

/* Fields are underlined like blanks on a card. */
.card input {
    width: 100%;
    font: inherit;
    border: none;
    border-bottom: 2px solid #6B6865;
    background-color: #FFFBF5;
    padding: 8px 6px;
    margin: 2px 0px 14px 0px;
}

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

/* ----- Back page (class) ----- */

/* Dark back page. */
.back-page {
    background-color: #1C1917;
    color: #BBB7B2;
    padding: 34px 20px;
    text-align: center;
    border-top: 6px double #D97706;
}

/* Two info lines. */
.cols {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    color: #FFFFFF;
}

/* Fine print. */
.fine {
    font-size: 0.82rem;
}

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

@media (min-width: 576px) {

    /* Board letters a little bigger. */
    .row {
        font-size: 1.15rem;
    }

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

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

@media (min-width: 768px) {

    /* Info lines side by side in the footer. */
    .cols {
        flex-direction: row;
        justify-content: center;
        gap: 40px;
    }

    /* Page beside the potluck photo. */
    .order {
        flex-direction: row;
        align-items: center;
        padding-left: 40px;
        padding-right: 40px;
    }

    /* Each half. */
    .page,
    .potluck {
        flex: 1 1 50%;
    }

    /* Taller potluck photo. */
    .potluck img {
        height: 340px;
    }

    /* Board details in two columns. */
    .details {
        display: flex;
        flex-wrap: wrap;
        column-gap: 30px;
    }

    /* Each detail half. */
    .details li {
        flex: 1 1 45%;
    }
}

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

@media (min-width: 992px) {

    /* No contents button on wide screens. */
    .menu-icon {
        display: none;
    }

    /* Contents always shown, one centered line. */
    .contents {
        display: block;
    }

    /* Entries in a row. */
    .contents ul {
        display: flex;
        justify-content: center;
        gap: 34px;
    }

    /* A small diamond between entries. */
    .contents li + li::before {
        content: "\2666";
        color: #D97706;
        margin-right: 34px;
        font-size: 0.8rem;
    }

    /* Entries sit inline beside their diamonds. */
    .contents li {
        display: flex;
        align-items: center;
    }

    /* Letter beside the window. */
    .welcome {
        flex-direction: row;
        align-items: center;
        padding: 60px 60px 70px 60px;
    }

    /* Letter column. */
    .letter {
        flex: 1 1 55%;
    }

    /* Window column. */
    .window {
        flex: 0 0 420px;
    }

    /* Chapel, form, crowd in one row. */
    .visit {
        flex-direction: row;
        align-items: stretch;
        padding-left: 60px;
        padding-right: 60px;
    }

    /* Photos keep a third each. */
    .chapel,
    .crowd {
        flex: 1 1 28%;
        min-width: 0px;
        width: 28%;
    }

    /* Photos fill the row height. */
    .chapel img,
    .crowd {
        height: 100%;
        min-height: 320px;
    }

    /* Form takes the middle. */
    .card {
        flex: 1 1 40%;
    }

    /* Board section wider padding. */
    #board {
        padding-left: 60px;
        padding-right: 60px;
    }
}

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

@media (min-width: 1200px) {

    /* Sections line up in a 1140px column. */
    .welcome,
    .order,
    #board,
    .visit {
        padding-left: calc((100% - 1140px) / 2);
        padding-right: calc((100% - 1140px) / 2);
    }
}
