/* ==========================================================
   COLOR SYSTEM
   ========================================================== */

:root {
    --ink: #303735;
    --green: #344c46;
    --sand: #d5b98c;
    --paper: #f7f6f2;
    --muted: #66736f;
    --line: #a8babf;
    --pale: #e8eceb;
    --weekend: #f7ece8;
}


/* ==========================================================
   BASE
   ========================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--paper);
    color: var(--ink);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.wrap {
    width: min(1120px, calc(100% - 40px));
    margin: auto;
}


/* ==========================================================
   NAVIGATION
   ========================================================== */

.nav {
    height: 76px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: var(--green);

    font-family: Georgia, serif;
    font-size: 22px;
    font-weight: bold;

    text-decoration: none;
}

.brand span {
    color: var(--sand);
}

nav {
    display: flex;
    align-items: center;

    gap: 28px;
}

nav a {
    color: var(--muted);

    font-size: 12px;

    text-decoration: none;
}

.support-link {
    padding: 9px 15px;

    border: 1px solid var(--line);
    border-radius: 99px;
}


/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

.eyebrow {
    color: var(--muted);

    font-size: 10px;
    font-weight: 800;

    letter-spacing: 0.19em;
}

.sand {
    color: var(--sand);
}

h1,
h2 {
    color: var(--green);

    font-family: Georgia, serif;
    font-weight: 400;

    letter-spacing: -0.035em;
}

h1 {
    margin: 18px 0 28px;

    font-size: 70px;
    line-height: 0.98;
}

h2 {
    margin: 15px 0 28px;

    font-size: 48px;
    line-height: 1.06;
}

h1 em,
h2 em {
    color: var(--sand);

    font-weight: 400;
}

.lead,
.intro {
    color: var(--muted);

    line-height: 1.75;
}

.lead {
    max-width: 600px;

    font-size: 18px;
}

.intro {
    max-width: 660px;

    font-size: 16px;
}

.micro {
    color: var(--muted);

    font-size: 10px;
}


/* ==========================================================
   BUTTONS
   ========================================================== */

.actions {
    display: flex;

    gap: 12px;

    margin: 30px 0 17px;
}

.button {
    display: inline-block;

    padding: 14px 18px;

    border-radius: 3px;

    font-size: 12px;
    font-weight: 800;

    text-decoration: none;
}

.button.primary {
    background: var(--green);
    color: white;
}

.button.ghost {
    border: 1px solid var(--line);

    color: var(--green);
}


/* ==========================================================
   HERO
   ========================================================== */

.hero {
    min-height: 650px;

    display: grid;

    grid-template-columns: 1.05fr 0.95fr;

    align-items: center;

    gap: 65px;

    padding: 55px 0 85px;
}


/* ----------------------------------------------------------
   Real planner preview
   ---------------------------------------------------------- */

.planner {
    min-height: 520px;

    display: grid;

    place-items: center;

    position: relative;
}

.planner-stack {
    width: 330px;
    height: 480px;

    position: relative;
}

.planner-image {
    width: 300px;
    height: auto;

    display: block;

    position: absolute;

    background: #fffefa;

    border-radius: 2px;
}

.planner-image-front {
    top: 5px;
    left: 28px;

    z-index: 2;

    transform: rotate(2deg);

    box-shadow:
        0 30px 70px rgba(52, 76, 70, 0.22);
}

.planner-image-back {
    top: 25px;
    left: -15px;

    z-index: 1;

    transform: rotate(-6deg);

    opacity: 0.86;

    box-shadow:
        0 18px 45px rgba(52, 76, 70, 0.15);
}


/* ==========================================================
   QUICK FACTS
   ========================================================== */

.facts {
    border-top: 1px solid #d9dfdc;
    border-bottom: 1px solid #d9dfdc;
}

.fact-grid {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    padding: 24px 0;
}

.fact-grid div {
    text-align: center;

    border-right: 1px solid #dde2df;
}

.fact-grid div:last-child {
    border: 0;
}

.fact-grid b {
    display: block;

    color: var(--green);

    font-family: Georgia, serif;
    font-size: 27px;
}

.fact-grid span {
    color: var(--muted);

    font-size: 9px;
}


/* ==========================================================
   GENERIC SECTION
   ========================================================== */

.section {
    padding: 105px 0;
}


/* ==========================================================
   DOWNLOAD EDITIONS
   ========================================================== */

.editions h2 {
    margin-bottom: 20px;
}

.edition-heading {
    display: grid;

    grid-template-columns: 80px 1fr;

    margin-top: 65px;

    padding-top: 24px;

    border-top: 1px solid var(--line);
}

.edition-heading > span {
    color: var(--sand);

    font-family: Georgia, serif;
    font-size: 22px;
    font-style: italic;
}

.edition-heading h3 {
    margin: 0;

    color: var(--green);

    font-family: Georgia, serif;
    font-size: 34px;
    font-weight: 400;
}

.edition-heading p {
    margin: 7px 0 25px;

    color: var(--muted);

    font-size: 13px;
}

.edition-heading.second {
    margin-top: 55px;
}

.download-grid {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 10px;
}

.download-card {
    display: grid;

    grid-template-columns: 42px 1fr auto;

    align-items: center;

    gap: 15px;

    padding: 18px;

    border: 1px solid #c9d2cf;

    background: #faf9f5;

    color: var(--green);

    text-decoration: none;

    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.download-card:hover {
    transform: translateY(-2px);

    border-color: var(--green);

    box-shadow:
        0 8px 25px rgba(52, 76, 70, 0.08);
}

.download-card > span {
    color: var(--sand);

    font-family: Georgia, serif;
    font-size: 16px;
}

.download-card div {
    display: flex;

    flex-direction: column;

    gap: 4px;
}

.download-card b {
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
}

.download-card small {
    color: var(--muted);

    font-size: 8px;

    letter-spacing: 0.1em;
}

.download-card strong {
    font-size: 10px;
}


/* ==========================================================
   REAL IMAGE GALLERY
   ========================================================== */

.gallery {
    padding-top: 55px;
}

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 28px;

    margin-top: 55px;
}

.gallery figure {
    margin: 0;
}

.gallery-image {
    padding: 12px;

    background: #ecefea;
}

.gallery-image img {
    width: 100%;
    height: auto;

    display: block;

    background: #fffefa;

    box-shadow:
        0 18px 45px rgba(52, 76, 70, 0.12);
}

.gallery figcaption {
    display: flex;

    flex-direction: column;

    gap: 5px;

    padding-top: 18px;
}

.gallery figcaption strong {
    color: var(--green);

    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: 400;
}

.gallery figcaption span {
    color: var(--muted);

    font-size: 11px;
}


/* ==========================================================
   MADE FOR HANDWRITING
   ========================================================== */

.ink-section {
    padding: 100px 0;

    background: var(--green);
}

.ink-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: center;

    gap: 90px;
}

.ink-section h2 {
    margin-bottom: 0;

    color: white;
}

.ink-copy {
    padding-left: 50px;

    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.ink-copy p {
    color: #d5dfdc;

    font-size: 16px;

    line-height: 1.85;
}


/* ==========================================================
   DETAILS
   ========================================================== */

.detail-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    margin-top: 50px;

    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.detail-grid article {
    min-height: 200px;

    padding: 28px;

    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.detail-grid article > span {
    color: var(--sand);

    font-family: Georgia, serif;
    font-size: 14px;
    font-style: italic;
}

.detail-grid article h3 {
    margin: 25px 0 10px;

    color: var(--green);

    font-family: Georgia, serif;
    font-size: 19px;
    font-weight: 400;
}

.detail-grid article p {
    color: var(--muted);

    font-size: 12px;

    line-height: 1.7;
}


/* ==========================================================
   REAL PAGE COMPOSITION
   ========================================================== */

.device {
    min-height: 470px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    margin-bottom: 110px;

    overflow: hidden;

    background: #ecefea;
}

.device-card {
    padding: 65px;
}

.device-card h2 {
    margin-bottom: 20px;
}

.device-card p {
    color: var(--muted);

    line-height: 1.8;
}

.real-pages {
    min-height: 470px;

    position: relative;
}

.real-page {
    width: 190px;
    height: auto;

    display: block;

    position: absolute;

    background: #fffefa;

    box-shadow:
        0 20px 50px rgba(52, 76, 70, 0.18);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.real-page-daily {
    top: 105px;
    left: 0;

    z-index: 1;

    transform: rotate(-8deg);
}

.real-page-habit {
    top: 35px;
    left: 145px;

    z-index: 2;

    transform: rotate(5deg);
}

.real-page-weekly {
    top: 130px;
    left: 280px;

    z-index: 3;

    transform: rotate(11deg);
}

.real-page:hover {
    z-index: 10;

    transform:
        rotate(0deg)
        translateY(-12px)
        scale(1.04);

    box-shadow:
        0 28px 70px rgba(52, 76, 70, 0.24);
}


/* ==========================================================
   SUPPORT
   ========================================================== */

.support {
    padding: 90px 0;

    background: #293f39;

    color: white;
}

.support-grid {
    display: grid;

    grid-template-columns: 1fr 380px;

    align-items: center;

    gap: 100px;
}

.support h2 {
    margin: 12px 0 20px;

    color: white;
}

.support-grid > div > p {
    color: #d4dfdb;

    font-size: 14px;

    line-height: 1.8;
}

.donate-box {
    padding: 36px;

    border: 1px solid rgba(255, 255, 255, 0.2);

    text-align: center;
}

.donate-box > span {
    color: var(--sand);

    font-size: 28px;
}

.donate-box h3 {
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 400;
}

.donate-box p {
    color: #d4dfdb;

    font-size: 12px;

    line-height: 1.6;
}

.button.donate {
    display: block;

    margin: 22px 0 15px;

    background: var(--sand);
    color: #263b36;
}

.donate-box small {
    color: #aebdb8;

    font-size: 9px;
}


/* ==========================================================
   FOOTER
   ========================================================== */

footer {
    height: 95px;

    display: flex;

    align-items: center;

    gap: 28px;

    color: var(--muted);

    font-size: 10px;
}

footer b {
    color: var(--green);

    font-size: 14px;
}

footer .right {
    margin-left: auto;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 800px) {

    nav a:not(.support-link) {
        display: none;
    }


    .hero {
        grid-template-columns: 1fr;

        gap: 0;

        padding-top: 35px;
    }


    h1 {
        font-size: 49px;
    }


    h2 {
        font-size: 38px;
    }


    .planner {
        min-height: 450px;
    }


    .planner-stack {
        width: 280px;
        height: 410px;

        transform: scale(0.88);

        transform-origin: center top;
    }


    .fact-grid span {
        font-size: 7px;
    }


    .download-grid {
        grid-template-columns: 1fr;
    }


    .edition-heading {
        grid-template-columns: 48px 1fr;
    }


    .gallery-grid {
        grid-template-columns: 1fr;

        gap: 55px;
    }


    .gallery-image {
        max-width: 420px;

        margin: auto;
    }


    .ink-grid {
        grid-template-columns: 1fr;

        gap: 35px;
    }


    .ink-copy {
        padding: 30px 0 0;

        border-top: 1px solid rgba(
            255,
            255,
            255,
            0.2
        );

        border-left: 0;
    }


    .detail-grid {
        grid-template-columns: 1fr;
    }


    .device {
        grid-template-columns: 1fr;
    }


    .device-card {
        padding: 45px 28px;
    }


    .real-pages {
        min-height: 430px;

        transform: scale(0.82);

        transform-origin: top left;
    }


    .support-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }


    .section {
        padding: 80px 0;
    }

}
