body {
    margin: 0;
    background: #e7f5f0;
    color: #222;
    font-family: "Fragment Mono", system-ui, -apple-system, BlinkMacSystemFont, monospace;
    line-height: 1.8;
}

.fragment-mono-regular {
    font-family: "Fragment Mono", monospace;
    font-weight: 400;
    font-style: normal;
}

.fragment-mono-regular-italic {
    font-family: "Fragment Mono", monospace;
    font-weight: 400;
    font-style: italic;
}

main {
    min-height: 100vh;
    padding: 3rem 0;
}

.inner {
    max-width: 700px;
    padding-left: 3rem;
    position: relative;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.title-block {
    max-width: 650px;
}

h1 {
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin: 2rem 0 1.5rem;
}

code {
  background-color: #D7DFDD;
  font-size: 0.8rem;
  padding: 5px;
}

.intro {
    margin: 0;
    font-size: 0.8rem;
}

.hero-figure {
    margin: 0;
    flex-shrink: 0;
    position: relative;
    top: 0;
    left: -4rem;
}

.hero-image {
    display: block;
    height: auto;
}

hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 2.5rem 0;
}

/* calendar */
.calendar {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
}

.calendar-month {
    font-size: 0.9rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 0.2rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(1.75rem, 2rem));
    grid-auto-rows: 1.8rem;
    gap: 0.2rem;
    font-size: 0.75rem;
}

.day-label {
    font-weight: 500;
    text-align: center;
}

.day {
    border: none;
    background: transparent;
    padding: 0;
    font: inherit;
    text-align: center;
    cursor: default;
    border-radius: 4px;
    line-height: 1.8rem;
}

.day--active {
    background: #f39a4b;
    /* highlight for active day */
    color: #fff;
}

section.goals {
    font-size: 0.8em;
}

footer {
  font-size: 0.8em;
}

/* Responsiveness */
@media (max-width: 800px) {
    .header {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-figure {
        align-self: flex-end;
        top: 0;
    }

    .calendar {
        flex-direction: column;
        align-items: flex-start;
    }
}