:root {
    --navy: #192d46;
    --charcoal: #303943;
    --gold: #b49a62;
    --gold-light: #eee7d8;
    --white: #ffffff;
    --paper: #fbfaf7;
    --muted: #7b8188;
    --line: #e9e7e1;
    --shadow: 0 12px 35px rgba(25,45,70,.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: var(--white);
    color: var(--charcoal);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.site-header {
    width: 100%;
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.96);
}

.header-inner {
    max-width: 1160px;
    min-height: 88px;
    margin: auto;
    padding: 15px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.brand img {
    display: block;
    width: 178px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--navy);
    font-size: .9rem;
}

.main-nav a {
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--gold);
}

.nav-tap {
    border: 1px solid var(--gold);
    padding: 9px 19px;
    border-radius: 3px;
}

.page-shell {
    max-width: 1080px;
    margin: auto;
    padding: 0 28px;
}

.hero {
    text-align: center;
    padding: 76px 20px 58px;
    background: var(--paper);
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .19em;
    font-size: .72rem;
    font-weight: 700;
    margin-bottom: 17px;
}

.hero h1 {
    max-width: 760px;
    margin: 0 auto 17px;
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    line-height: 1.13;
}

.hero-intro {
    max-width: 590px;
    margin: auto;
    color: var(--muted);
    font-size: 1.03rem;
}

.daily-section {
    padding: 66px 0 76px;
    text-align: center;
}

.section-kicker {
    color: var(--gold);
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .18em;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-heading {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 400;
    margin-bottom: 12px;
}

.section-intro {
    max-width: 590px;
    margin: 0 auto 30px;
    color: var(--muted);
}

.daily-card {
    max-width: 760px;
    margin: 30px auto 0;
    padding: 43px 48px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    text-align: left;
    position: relative;
}

.daily-card:before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    bottom: 28px;
    width: 3px;
    background: var(--gold);
}

.daily-date {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .75rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.daily-message {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.25rem, 2.4vw, 1.65rem);
    line-height: 1.55;
}

.calendar-section {
    padding: 75px 0 82px;
    background: var(--paper);
}

.calendar-heading {
    text-align: center;
    margin-bottom: 35px;
}

.calendar-panel {
    max-width: 850px;
    margin: auto;
    padding: 30px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.calendar-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 25px;
}

.calendar-toolbar h3 {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: 1.55rem;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button,
.calendar-day {
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.calendar-nav button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.calendar-nav button:hover,
.calendar-day:hover {
    border-color: var(--gold);
    background: var(--paper);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 7px;
}

.calendar-weekday {
    text-align: center;
    padding: 8px 0;
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 68px;
    border-radius: 3px;
    padding: 9px;
    text-align: left;
    font-size: .88rem;
}

.calendar-day:disabled {
    cursor: default;
    background: var(--paper);
    border-color: transparent;
}

.calendar-day.is-selected {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
}

.calendar-day.has-message:after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    margin-top: 7px;
    background: var(--gold);
}

.calendar-day.is-selected:after {
    background: var(--white);
}

.calendar-detail {
    margin-top: 25px;
    padding: 22px;
    background: var(--paper);
    border-left: 3px solid var(--gold);
}

.calendar-detail-date {
    color: var(--gold);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.calendar-detail-message {
    color: var(--navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.1rem;
}

.calendar-downloads {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.outline-button,
.gold-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 44px;
    padding: 10px 20px;
    border-radius: 2px;
    cursor: pointer;
    font-size: .88rem;
    transition: .2s ease;
}

.outline-button {
    background: var(--white);
    border: 1px solid var(--navy);
    color: var(--navy);
}

.outline-button:hover {
    background: var(--navy);
    color: var(--white);
}

.gold-button {
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--white);
}

.gold-button:hover {
    background: #9d824d;
}

.tap-section {
    padding: 78px 0 85px;
    text-align: center;
}

.mood-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 720px;
    margin: 38px auto 25px;
}

.mood {
    position: relative;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 20px 10px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.mood:hover {
    transform: translateY(-4px);
    border-color: var(--gold);
    box-shadow: var(--shadow);
}

.mood:active {
    transform: scale(.97);
}

.mood span:first-child {
    font-size: 2.8rem;
    line-height: 1.2;
}

.mood-name {
    color: var(--navy);
    font-size: .94rem;
    font-weight: 600;
}

.mood span:last-of-type {
    color: var(--muted);
    font-size: .8rem;
}

.tooltip {
    display: none;
}

.selected {
    border: 2px solid var(--gold);
    background: var(--paper);
    box-shadow: 0 0 0 3px var(--gold-light);
}

#promptText {
    color: var(--muted);
    font-size: 1rem;
    margin-top: 15px;
}

#globalMood {
    color: var(--navy);
    font-size: .9rem;
    margin-top: 15px;
}

#messageBox {
    max-width: 560px;
    min-height: 24px;
    margin: 20px auto;
    padding: 13px 18px;
    color: var(--navy);
    background: var(--paper);
    border-left: 3px solid var(--gold);
    opacity: 0;
    transform: translateY(8px);
    transition: all .3s ease;
}

#shareBtn {
    margin-top: 12px;
    padding: 12px 23px;
    border: 1px solid var(--navy);
    border-radius: 2px;
    background: var(--navy);
    color: var(--white);
    font-size: .9rem;
    cursor: pointer;
}

#shareBtn:hover {
    background: #263f5e;
}

.pop {
    animation: pop .3s ease;
}

@keyframes pop {
    0% { transform: scale(1); }
    50% { transform: scale(1.18); }
    100% { transform: scale(1); }
}

.site-footer {
    padding: 27px 20px;
    border-top: 1px solid var(--line);
    text-align: center;
    color: var(--muted);
    font-size: .78rem;
    letter-spacing: .08em;
}

.site-footer a {
    color: var(--navy);
}

@media (max-width: 650px) {
    .header-inner {
        min-height: 75px;
        padding: 12px 18px;
    }

    .brand img {
        width: 145px;
    }

    .main-nav {
        gap: 13px;
        font-size: .8rem;
    }

    .main-nav a:not(.nav-tap) {
        display: none;
    }

    .page-shell {
        padding: 0 18px;
    }

    .hero {
        padding: 58px 20px 48px;
    }

    .daily-section,
    .tap-section {
        padding: 55px 0 60px;
    }

    .daily-card {
        padding: 32px 25px 32px 30px;
    }

    .calendar-section {
        padding: 58px 0;
    }

    .calendar-panel {
        padding: 17px;
    }

    .calendar-day {
        min-height: 48px;
        padding: 6px;
        font-size: .8rem;
    }

    .calendar-weekday {
        font-size: .62rem;
    }

    .mood-container {
        gap: 9px;
    }

    .mood {
        min-height: 120px;
        padding: 13px 5px;
    }

    .mood span:first-child {
        font-size: 2.25rem;
    }

    .mood-name {
        font-size: .82rem;
    }

    .calendar-downloads {
        flex-direction: column;
    }

    .calendar-downloads a,
    .calendar-downloads button {
        width: 100%;
    }
}
