/* Evening Edition - A Free Design by Bryant Smith (bryantsmith.com)
   A dark magazine page built on an offset grid. Every colour and space on
   the page is gathered here. Use the section headings below to find what
   you want to change. */


/* ---- COLOURS: the whole palette lives in these six values ----
   Deep ink-blue page, a slightly lighter panel, warm neutrals and a
   single muted gold accent. Repeat them rather than adding new ones. */

:root {
    --bg:          #0b0d11;   /* the room behind the paper */
    --page:        #14161c;   /* the sheet itself */
    --panel:       #1b1e26;   /* raised boxes and quiet cards */
    --line:        #2c313d;   /* hairline borders */
    --ink:         #ece9e2;   /* body text: warm off-white */
    --muted:       #a49f94;   /* secondary text and captions */
    --faint:       #8a857a;   /* bylines and small labels */
    --gold:        #c9a55c;   /* the one accent */
    --gold-bright: #e3c184;   /* accent on hover */
}


/* ---- BODY: the dark desk the edition rests on ---- */

body {
    background: var(--bg);
    color: var(--ink);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    padding: 48px 20px;
    text-align: center;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


/* ---- PAGE: the paper, centred and held to a comfortable width ---- */

#page {
    background: var(--page);
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
    margin: 0 auto;
    max-width: 960px;
    padding: 56px 56px 40px 56px;
    text-align: left;
}


/* ---- MASTHEAD: date line, title, tagline and menu ---- */

#masthead {
    border-bottom: 3px double var(--gold);
    margin-bottom: 44px;
    padding-bottom: 26px;
}

#masthead .kicker {
    color: var(--gold);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

#masthead h1 {
    font-size: 54px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
    margin: 14px 0 8px 0;
}

#masthead .tagline {
    color: var(--muted);
    font-size: 19px;
    font-style: italic;
}


/* ---- MENU: the row of section links ---- */

#menu {
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    margin-top: 26px;
    text-transform: uppercase;
}

#menu a,
#menu a:visited {
    border-bottom: 2px solid transparent;
    color: var(--muted);
    margin-right: 20px;
    padding-bottom: 4px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#menu a:hover,
#menu a:focus {
    border-bottom-color: var(--gold);
    color: var(--gold-bright);
}


/* ---- LINKS in the reading area ---- */

#content a,
#content a:visited {
    border-bottom: 1px solid #5a4d31;
    color: var(--gold);
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

#content a:hover,
#content a:focus {
    border-bottom-color: var(--gold-bright);
    color: var(--gold-bright);
}


/* ---- LEAD GRID: the offset layout itself ----
   Twelve equal columns. The big story takes eight; the narrower side
   column takes the last four and is pushed down so the page looks
   deliberately off-centre rather than stacked. */

.lead-grid {
    display: grid;
    gap: 40px;
    grid-template-columns: repeat(12, 1fr);
}

.lead-story {
    grid-column: 1 / span 8;
}

.side-column {
    grid-column: 9 / span 4;
    margin-top: 48px;
}


/* ---- SHARED LABEL: the small gold eyebrow above headings ---- */

.section-label {
    color: var(--gold);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-label::after {
    background: var(--gold);
    content: "";
    display: inline-block;
    height: 2px;
    margin-left: 10px;
    vertical-align: middle;
    width: 26px;
}


/* ---- LEAD STORY: the large article ---- */

.lead-story h2 {
    font-size: 40px;
    font-weight: normal;
    letter-spacing: -0.5px;
    line-height: 1.12;
    margin: 14px 0 10px 0;
}

.byline {
    border-bottom: 1px solid var(--line);
    color: var(--faint);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 26px;
    padding-bottom: 18px;
    text-transform: uppercase;
}

.lead-story p {
    margin-bottom: 20px;
}

.lead {
    font-size: 20px;
    line-height: 1.7;
}

.lead::first-letter {
    color: var(--gold);
    float: left;
    font-size: 3.4em;
    line-height: 0.85;
    padding: 6px 10px 0 0;
}


/* ---- PULL QUOTE ---- */

blockquote {
    border-left: 3px solid var(--gold);
    color: var(--muted);
    font-size: 20px;
    font-style: italic;
    margin: 30px 0;
    padding: 4px 0 4px 22px;
}

blockquote p {
    margin: 0;
}


/* ---- SIDE COLUMN: two shorter stories, divided by hairlines ---- */

.side-story {
    border-top: 1px solid var(--line);
    margin-bottom: 34px;
    padding-top: 22px;
}

.side-story:first-child {
    border-top: none;
    padding-top: 0;
}

.side-story h3 {
    font-size: 24px;
    font-weight: normal;
    line-height: 1.25;
    margin: 10px 0 10px 0;
}

.side-story p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 14px;
}


/* ---- BRIEFS: a staggered row of three short items ----
   The columns skip a space between each item, so the row is spaced
   unevenly on purpose. */

.briefs {
    border-top: 3px double var(--gold);
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 56px;
    padding-top: 36px;
}

.brief:nth-child(1) {
    grid-column: 1 / span 4;
}

.brief:nth-child(2) {
    grid-column: 6 / span 4;
}

.brief:nth-child(3) {
    grid-column: 10 / span 3;
}

.brief h3 {
    font-size: 19px;
    font-weight: normal;
    margin: 8px 0 8px 0;
}

.brief p {
    color: var(--muted);
    font-size: 15px;
}


/* ---- EDITOR'S NOTE + PALETTE: two offset panels ----
   Notice how the note is nudged in from the left and the palette sits
   alone on the far right, keeping the asymmetry going to the end. */

.howto {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(12, 1fr);
    margin-top: 56px;
}

.note-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    grid-column: 2 / span 7;
    padding: 30px 32px;
}

.note-panel h3 {
    font-size: 22px;
    font-weight: normal;
    margin: 10px 0 14px 0;
}

.note-panel p {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 14px;
}

.note-panel p:last-child {
    margin-bottom: 0;
}

.note-panel strong {
    color: var(--ink);
    font-weight: normal;
}

.note-panel em {
    color: var(--gold);
    font-style: normal;
}

.palette {
    grid-column: 10 / span 3;
    padding-top: 6px;
}

.palette ul {
    list-style: none;
    margin-top: 14px;
}

.palette li {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.swatch {
    border: 1px solid var(--line);
    display: inline-block;
    height: 12px;
    margin-right: 8px;
    vertical-align: middle;
    width: 18px;
}

.swatch-page  { background: #14161c; }
.swatch-panel { background: #1b1e26; }
.swatch-ink   { background: #ece9e2; }
.swatch-muted { background: #a49f94; }
.swatch-gold  { background: #c9a55c; }


/* ---- FOOTER: the required credit link ---- */

#footer {
    border-top: 3px double var(--line);
    color: var(--faint);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10px;
    letter-spacing: 1px;
    margin-top: 64px;
    padding-top: 22px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    color: var(--muted);
    text-decoration: none;
}

#footer a:hover {
    color: var(--gold-bright);
}


/* ---- SMALL SCREENS: stack every grid into one column ----
   On a phone the offset grid becomes a simple vertical read, type
   steps down, and the padding pulls in. */

@media (max-width: 640px) {
    body {
        padding: 20px 12px;
    }

    #page {
        padding: 32px 22px 28px 22px;
    }

    #masthead h1 {
        font-size: 36px;
    }

    #masthead .tagline {
        font-size: 17px;
    }

    #menu a {
        display: inline-block;
        margin: 0 14px 10px 0;
    }

    .lead-grid,
    .briefs,
    .howto {
        display: block;
    }

    .side-column {
        margin-top: 40px;
    }

    .lead-story h2 {
        font-size: 30px;
    }

    .lead {
        font-size: 18px;
    }

    .brief,
    .palette {
        margin-top: 28px;
    }

    .note-panel {
        padding: 24px 22px;
    }

    .palette ul {
        margin-bottom: 0;
    }
}


/* ---- PRINT: swap the dark room for plain paper ---- */

@media print {
    body {
        background: #ffffff;
        color: #111111;
        padding: 0;
    }

    #page {
        border: none;
        box-shadow: none;
        max-width: 100%;
        padding: 0;
    }

    #menu {
        display: none;
    }

    .note-panel {
        background: transparent;
    }
}

