:root {
    color-scheme: dark;
    --cream: #fce7dc;
    --pink: #f6adae;
    --line: #ffffff2e
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: radial-gradient(ellipse at 95% 3%,#4c262b55,transparent 35%),radial-gradient(ellipse at 0 80%,#19343955,transparent 45%),#0b1115;
    color: var(--cream);
    font: 15px 'Segoe UI',sans-serif
}

main {
    max-width: 1500px;
    margin: auto;
    padding: 28px 24px
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 26px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 3px;
    color: #d3a6a6;
    margin: 0 0 8px
}

h1 {
    font: 700 clamp(38px,5.5vw,85px)/1.05 Cambria,serif;
    letter-spacing: -3px;
    margin: 0;
    background: linear-gradient(100deg,#fff0df,#f7a8ad);
    background-clip: text;
    color: transparent
}

    h1 span {
        color: #e5557b;
        font-weight: 400
    }

#period {
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 3px;
    margin: 12px 0 0
}

nav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

    button, nav a {
        font: 12px 'Segoe UI',sans-serif;
        border: 1px solid #d1909560;
        border-radius: 7px;
        padding: 10px 13px;
        background: #ffffff05;
        color: var(--cream);
        text-decoration: none;
        cursor: pointer
    }

        button:hover, nav a:hover {
            background: #ffffff15
        }

        button:disabled {
            opacity: .5;
            cursor: wait
        }

#status {
    color: var(--pink);
    line-height: 1.6
}

.layout {
    display: grid;
    grid-template-columns: minmax(0,1.62fr) minmax(380px,1fr);
    gap: 18px;
    align-items: start
}

.heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px
}

    .heading h2 {
        font: 22px Cambria;
        margin: 0
    }

    .heading small {
        font-size: 11px;
        color: #b6b0b0
    }

.scroll {
    border: 1px solid #9ca6ae75;
    border-radius: 10px;
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%
}

th {
    font-weight: 500
}

.diary th, .diary td {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 12px 10px
}

.diary thead {
    background: #ffffff04
}

    .diary thead th {
        text-align: center;
        white-space: nowrap;
        font-size: 13px
    }

        .diary thead th:nth-child(3) {
            text-align: left;
            min-width: 210px
        }

.diary i {
    display: block;
    font-style: normal;
    font-size: 28px;
    color: #ffa12f;
    line-height: 1.2
}

.diary th:nth-child(6) i {
    color: #ed90ad
}

.diary tbody tr:nth-child(even) {
    background: #ffffff05
}

.diary td:first-child {
    white-space: nowrap;
    font-weight: 600
}

/*.diary td:nth-child(2) {
    font-size: 12px;
    text-align: center
}
*/

.notes {
    white-space: pre-line;
    line-height: 1.45;
    font-size: 13px
}

.diary small {
    display: block;
    color: #a5aeb0;
    font-size: 10px;
    margin-top: 4px
}

.number {
    text-align: center;
    font: 18px Cambria;
    color: #aaa
}

.positive {
    color: var(--pink);
    font-weight: bold
}

.diary tfoot {
    background: linear-gradient(100deg,#542536,#682f46)
}

    .diary tfoot th {
        text-align: left;
        font: 700 24px Cambria
    }

    .diary tfoot td {
        font: 700 23px Cambria;
        text-align: center
    }

aside {
    display: grid;
    gap: 12px
}

.hero {
    position: relative;
    text-align: center;
    color: #170d10;
    background: linear-gradient(120deg,#ffb8ad,#eea0aa);
    border: 1px solid #ffd4c0;
    border-radius: 12px;
    padding: 18px;
    overflow: hidden
}

    .hero p {
        font: bold 21px Cambria;
        margin: 0
    }

    .hero strong {
        font: bold 108px/.95 Cambria;
        display: block
    }

    .hero h2 {
        font: bold 30px Cambria;
        margin: 4px 0
    }

    .hero > span {
        position: absolute;
        right: 16px;
        bottom: 5px;
        font: 110px Cambria;
        color: #9a324230;
        transform: rotate(-15deg)
    }

#breakdowns {
    display: grid;
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px
}

.card {
    border: 1px solid #eaa03d;
    border-radius: 11px;
    overflow: hidden;
    text-align: center;
    background: linear-gradient(160deg,#372008,#1c160f);
    display: flex;
    flex-direction: column;
    padding: 12px 7px 0
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px
}

    .card-title > span {
        font-size: 40px;
        line-height: 1;
        color: #ff9b28
    }

    .card-title h2 {
        font: 700 18px Cambria;
        margin: 0
    }

    .card-title small {
        display: block;
        font: 14px Cambria
    }

.card > strong {
    font: bold 59px/1 Cambria;
    margin-top: 8px
}

.card > p {
    font-size: 16px;
    line-height: 1.15;
    margin: 0 0 14px
}

.card table {
    font-size: 13px;
    border-radius: 7px;
    overflow: hidden
}

.card th, .card td {
    padding: 6px 4px;
    border: 1px solid #ffffff17
}

.card thead {
    background: #e7a34d55
}

.card tbody {
    background: #100b0644
}

.card tfoot {
    background: #edac59;
    color: #1b0e07;
    font: bold 17px Cambria
}

.afternoon {
    border-color: #fb8436;
    background: linear-gradient(#6a240e,#4a1e10)
}

    .afternoon thead {
        background: #e96e2e80
    }

    .afternoon tfoot {
        background: #ff8b51
    }

.night {
    border-color: #d6487e;
    background: linear-gradient(#340c1d,#200b16)
}

    .night .card-title > span {
        color: #f4a2bb
    }

    .night thead {
        background: #a52a5b80
    }

    .night tfoot {
        background: #9c2754;
        color: #ffe0df
    }

    .night > strong {
        color: #ffb6c5
    }

.landscape {
    height: 90px;
    margin: 12px -7px 0;
    background: radial-gradient(ellipse at 65% 80%,#b6724a55,transparent 60%),linear-gradient(165deg,transparent 45%,#ffffff0c 46%,transparent 60%);
    flex: 1;
    min-height: 70px
}

.afternoon .landscape {
    min-height: 220px;
    background: radial-gradient(circle at 50% 50%,#ffb247 0 10%,transparent 11%),linear-gradient(180deg,#6e2919,#bd4d20 48%,#58251c 51%,#271716)
}

.night .landscape {
    background: repeating-linear-gradient(160deg,#6e344640 0 13px,#311321 18px 32px)
}

#calendar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fbe4d6;
    color: #201618;
    border-radius: 10px;
    padding: 16px 10px
}

    #calendar > div {
        display: flex;
        gap: 8px;
        padding: 0 8px
    }

        #calendar > div + div {
            border-left: 1px dashed #b14b6c
        }

    #calendar span {
        color: #a32253;
        font-size: 33px
    }

    #calendar p {
        margin: 0;
        font-size: 13px;
        font-weight: 600
    }

    #calendar strong {
        display: block;
        font: bold 48px/.95 Cambria
    }

    #calendar small {
        display: block;
        font-size: 10px;
        font-weight: 400;
        margin-top: 5px
    }

.summary {
    border: 1px solid #be4b72;
    border-radius: 10px;
    padding: 15px;
    background: linear-gradient(140deg,#24171b70,#0d0e13)
}

    .summary h2 {
        font: bold 25px Cambria;
        margin: 0 0 14px
    }

#summary-periods {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    padding-bottom: 17px;
    border-bottom: 1px solid #df8097
}

    #summary-periods > div, #summary-total > div {
        display: flex;
        align-items: center;
        gap: 8px
    }

        #summary-periods > div + div {
            border-left: 1px dashed #a86372;
            padding-left: 8px
        }

.summary span {
    font-size: 36px;
    color: #ff9c35
}

.summary p {
    font-size: 11px;
    margin: 0
}

.summary strong {
    font: bold 39px/1 Cambria;
    display: block
}

.summary small {
    display: block;
    margin-top: 3px;
    font-size: 10px
}

#summary-periods > div:last-child span {
    color: #f5a3bb
}

#summary-total {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 12px;
    padding-top: 15px
}

    #summary-total span {
        color: #e96588;
        font-size: 49px
    }

    #summary-total strong {
        font-size: 45px
    }

    #summary-total > div + div {
        border-left: 1px dashed #a86372;
        padding-left: 12px
    }

footer {
    text-align: center;
    font-size: 11px;
    color: #9b8d90;
    padding: 26px 0 8px;
    letter-spacing: 1px
}

    footer small {
        display: block;
        font-size: 9px;
        margin-top: 7px;
        letter-spacing: 0
    }

@media(max-width:1050px) {
    main {
        padding: 22px 16px
    }

    .layout {
        grid-template-columns: minmax(0,1.3fr) minmax(350px,1fr)
    }

    header {
        align-items: flex-start
    }

    nav {
        max-width: 130px
    }

    .diary th, .diary td {
        padding: 10px 7px
    }
}

@media(max-width:820px) {
    .layout {
        grid-template-columns: 1fr
    }

    aside {
        grid-row: 1
    }

    .heading {
        margin-top: 14px
    }

    .hero strong {
        font-size: 85px
    }

    .card .landscape {
        min-height: 50px;
        max-height: 90px
    }

    nav {
        max-width: none
    }

    header {
        flex-wrap: wrap
    }

    h1 {
        letter-spacing: -2px
    }

    #period {
        font-size: 12px;
        letter-spacing: 2px
    }

    .diary {
        min-width: 650px
    }

    #calendar strong {
        font-size: 40px
    }

    .summary strong {
        font-size: 34px
    }

    #summary-total strong {
        font-size: 42px
    }
}
