/* Year in Review - A Free Design by Bryant Smith (bryantsmith.com)
   A year-end reflection page: a dark hero band, twelve month blocks and a
   closing lessons list. Every colour and measurement lives in this file.
   Look for the section headings to find what you want to change. */


/* ---- PALETTE (change these first) ----------------------------------------
   The whole page uses just these colours, repeated again and again. */

:root {
    --page:     #f5efe3;   /* the warm parchment behind everything   */
    --card:     #fffdf8;   /* the paper the month blocks sit on       */
    --ink:      #1d2433;   /* deep midnight navy for the hero band    */
    --ink-soft: #3a4560;   /* a lighter navy for quotes and labels    */
    --text:     #2b2c31;   /* body text                               */
    --muted:    #6d6a62;   /* secondary, quieter text                 */
    --rule:     #e2d9c8;   /* hairline borders                        */
    --accent:   #b0563a;   /* terracotta: numbers, links, small marks */
    --gold:     #c9a227;   /* one warm highlight for hovers           */
}


/* ---- BODY: the parchment the whole page is printed on ---- */

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

body {
    background: var(--page);
    color: var(--text);
    font-family: Georgia, "Times New Roman", Times, serif;
    font-size: 17px;
    line-height: 1.75;
    text-align: left;
}

a:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.skip-link {
    background: var(--ink);
    color: #ffffff;
    left: 16px;
    padding: 10px 16px;
    position: absolute;
    top: -60px;
    z-index: 10;
}

.skip-link:focus {
    top: 16px;
}


/* ---- HERO: the full-width navy band at the top ---- */

.hero {
    background-color: var(--ink);
    background-image:
        radial-gradient(circle at 80% 15%, rgba(201, 162, 39, 0.22), transparent 42%),
        linear-gradient(140deg, #171d2b 0%, #232d44 55%, #313e5b 100%);
    color: #f4f0e6;
    overflow: hidden;
    padding: 84px 32px 72px 32px;
    position: relative;
}

/* A faint field of "stars" made only from CSS gradients. */
.hero::after {
    background-image:
        radial-gradient(1.6px 1.6px at 8% 30%, rgba(255, 255, 255, 0.8), transparent),
        radial-gradient(1.4px 1.4px at 22% 68%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.8px 1.8px at 34% 18%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.3px 1.3px at 47% 74%, rgba(255, 255, 255, 0.5), transparent),
        radial-gradient(1.7px 1.7px at 59% 34%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.4px 1.4px at 71% 62%, rgba(255, 255, 255, 0.6), transparent),
        radial-gradient(1.9px 1.9px at 83% 26%, rgba(255, 255, 255, 0.7), transparent),
        radial-gradient(1.3px 1.3px at 92% 72%, rgba(255, 255, 255, 0.5), transparent);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.hero-inner {
    margin: 0 auto;
    max-width: 960px;
    position: relative;
    z-index: 2;
}

/* The huge ghost year, tucked into the corner as a watermark. */
.hero-year {
    color: rgba(255, 255, 255, 0.06);
    font-size: 300px;
    font-weight: bold;
    line-height: 1;
    position: absolute;
    right: -20px;
    top: -30px;
    z-index: 1;
}

.eyebrow {
    color: var(--gold);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 66px;
    font-weight: normal;
    letter-spacing: -1px;
    line-height: 1.05;
}

.hero-note {
    color: #c6cddd;
    font-size: 19px;
    margin-top: 22px;
    max-width: 46ch;
}


/* ---- MENU: the row of links below the hero ---- */

.menu {
    background: #efe7d8;
    border-bottom: 1px solid var(--rule);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    padding: 16px 32px;
    text-align: center;
    text-transform: uppercase;
}

.menu a,
.menu a:visited {
    border-bottom: 2px solid transparent;
    color: #55524a;
    display: inline-block;
    margin: 0 14px;
    padding: 4px 2px;
    text-decoration: none;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.menu a:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}


/* ---- MAIN: the reading column ---- */

main {
    margin: 0 auto;
    max-width: 960px;
    padding: 0 32px 48px 32px;
}

section {
    margin-top: 72px;
}


/* ---- SECTION HEADINGS: a small number, then the title ---- */

h2 {
    align-items: baseline;
    border-bottom: 2px solid var(--rule);
    color: var(--ink);
    display: flex;
    font-size: 32px;
    font-weight: normal;
    gap: 14px;
    letter-spacing: -0.3px;
    padding-bottom: 14px;
}

h2 .num {
    color: var(--accent);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 2px;
}

.section-note {
    color: var(--muted);
    font-size: 15px;
    margin-top: 14px;
    max-width: 60ch;
}


/* ---- INTRO: the welcome paragraph ---- */

.intro {
    margin-top: 56px;
}

.lead {
    color: #3a4560;
    font-size: 23px;
    line-height: 1.6;
}

.lead::first-letter {
    color: var(--accent);
    float: left;
    font-size: 3.5em;
    line-height: 0.8;
    padding: 6px 12px 0 0;
}

#how {
    color: var(--muted);
    margin-top: 24px;
    max-width: 68ch;
}

#how strong {
    color: var(--ink-soft);
}


/* ---- MONTH GRID: twelve compact blocks in columns ---- */

.month-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 30px;
}

.month {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 6px;
    border-top: 3px solid #cbbfa4;
    padding: 16px 18px 18px 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.month:hover {
    box-shadow: 0 12px 24px rgba(29, 36, 51, 0.12);
    transform: translateY(-4px);
}

/* Each season gets a soft tint and its own top border. */
.month.winter { background: #eef3f7; border-top-color: #6d8ca3; }
.month.spring { background: #eef3e6; border-top-color: #7d9b61; }
.month.summer { background: #fbf2dd; border-top-color: #cf9f3f; }
.month.autumn { background: #faeae2; border-top-color: #b0563a; }

.month-num {
    color: var(--muted);
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
}

.month h3 {
    color: var(--ink);
    font-size: 21px;
    font-weight: normal;
    margin: 2px 0 8px 0;
}

.month p {
    color: #54514a;
    font-size: 15px;
    line-height: 1.6;
}


/* ---- MOMENTS: a pull quote beside a short list ---- */

.moments-layout {
    align-items: start;
    display: grid;
    gap: 44px;
    grid-template-columns: 0.9fr 1.4fr;
    margin-top: 30px;
}

.pull {
    border-left: 4px solid var(--gold);
    padding-left: 24px;
}

.pull p {
    color: var(--ink-soft);
    font-size: 27px;
    font-style: italic;
    line-height: 1.4;
}

.pull cite {
    color: var(--muted);
    display: block;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-style: normal;
    letter-spacing: 2px;
    margin-top: 16px;
    text-transform: uppercase;
}

.moment-list {
    list-style: none;
}

.moment-list li {
    border-bottom: 1px solid var(--rule);
    display: flex;
    gap: 20px;
    padding: 16px 0;
}

.moment-list li:first-child {
    border-top: 1px solid var(--rule);
}

.when {
    color: var(--accent);
    flex: none;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    padding-top: 4px;
    text-transform: uppercase;
    width: 96px;
}

.what {
    color: #3c3b40;
}


/* ---- LESSONS: the closing numbered bands ---- */

.lesson-list {
    display: grid;
    gap: 16px;
    list-style: none;
    margin-top: 30px;
}

.lesson-list li {
    background: var(--card);
    border: 1px solid var(--rule);
    border-left: 5px solid var(--ink);
    border-radius: 4px;
    padding: 22px 26px 22px 86px;
    position: relative;
}

.lesson-num {
    color: var(--gold);
    font-size: 38px;
    left: 26px;
    line-height: 1;
    position: absolute;
    top: 20px;
}

.lesson-list h3 {
    color: var(--ink);
    font-size: 22px;
    font-weight: normal;
    margin-bottom: 6px;
}

.lesson-list p {
    color: #565349;
    max-width: 62ch;
}


/* ---- FOOTER: the required credit line, on a navy band ---- */

#footer {
    background: var(--ink);
    color: #9aa2b5;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 11px;
    letter-spacing: 1.5px;
    padding: 30px 20px;
    text-align: center;
    text-transform: uppercase;
}

#footer a,
#footer a:visited {
    border-bottom: 1px solid rgba(217, 196, 138, 0.5);
    color: #d9c48a;
    text-decoration: none;
}

#footer a:hover {
    color: #ffffff;
}


/* ---- MEDIUM SCREENS: three month columns, stacked moments ---- */

@media (max-width: 900px) {
    .month-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .moments-layout {
        gap: 30px;
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 50px;
    }

    .hero-year {
        font-size: 210px;
    }
}


/* ---- SMALL SCREENS: two month columns, tighter spacing ---- */

@media (max-width: 640px) {
    body {
        font-size: 16px;
    }

    .hero {
        padding: 56px 22px 48px 22px;
    }

    .hero h1 {
        font-size: 38px;
    }

    .hero-note {
        font-size: 17px;
    }

    .hero-year {
        font-size: 150px;
    }

    .menu {
        padding: 14px 16px;
    }

    .menu a {
        margin: 4px 8px;
    }

    main {
        padding: 0 20px 32px 20px;
    }

    section {
        margin-top: 52px;
    }

    h2 {
        font-size: 26px;
    }

    .lead {
        font-size: 20px;
    }

    .month-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .moment-list li {
        display: block;
    }

    .when {
        display: block;
        margin-bottom: 2px;
        width: auto;
    }

    .pull p {
        font-size: 23px;
    }

    .lesson-list li {
        padding: 20px 22px 20px 22px;
    }

    .lesson-num {
        font-size: 30px;
        left: 20px;
        top: 18px;
    }
}


/* ---- PRINT: a clean sheet, no dark bands ---- */

@media print {
    body {
        background: #ffffff;
        color: #000000;
        font-size: 12pt;
    }

    .hero,
    #footer {
        background: #ffffff;
        color: #000000;
    }

    .hero::after,
    .hero-year,
    .menu,
    .skip-link {
        display: none;
    }

    .hero h1,
    .hero-note,
    .eyebrow {
        color: #000000;
    }

    .month,
    .lesson-list li {
        box-shadow: none;
    }
}
