@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
    --ink: #19382f;
    --muted: #68766e;
    --green: #245943;
    --lime: #d7eaa2;
    --paper: #f7f8f2;
    --line: #dce3d8;
    --white: #fff;
    --orange: #bd572e
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 15px 'DM Sans', sans-serif
}

h1,
h2,
h3,
.brand {
    font-family: Manrope, sans-serif
}

h1 {
    font-size: 44px;
    line-height: 1.13;
    letter-spacing: -1.8px;
    margin: 12px 0 18px
}

h2 {
    font-size: 25px;
    letter-spacing: -.7px
}

h3 {
    font-size: 18px
}

a {
    color: var(--green)
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
input,
select,
textarea,
summary {
    outline-offset: 4px
}

button {
    cursor: pointer;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    color: var(--ink);
    padding: 11px 16px;
    font-weight: 600
}

button:hover {
    background: #eef2e6
}

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

button.primary:hover {
    background: #163e2d
}

button:disabled {
    opacity: .45;
    cursor: not-allowed
}

input:not([type=checkbox]):not([type=radio]):not([type=range]),
select,
textarea {
    width: 100%;
    border: 1px solid #bac7bd;
    border-radius: 7px;
    background: white;
    padding: 12px;
    color: var(--ink)
}

input[type=checkbox],
input[type=radio] {
    accent-color: var(--green);
    width: 17px;
    height: 17px;
    vertical-align: middle;
    margin-right: 7px
}

input[type=range] {
    width: 100%;
    accent-color: var(--green)
}

label {
    display: block;
    font-weight: 600;
    margin: 16px 0 7px
}

.check {
    font-weight: 400;
    display: flex;
    align-items: center;
    gap: 4px
}

.muted {
    color: var(--muted);
    line-height: 1.7
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 11px;
    font-weight: 800;
    color: var(--green)
}

.pill {
    display: inline-block;
    border: 1px solid #bfd0bc;
    border-radius: 30px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .4px
}

.brand {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 9px
}

.brand-mark {
    display: inline-grid;
    place-items: center;
    background: var(--green);
    color: var(--lime);
    border-radius: 9px;
    width: 33px;
    height: 33px;
    font-size: 23px
}

header {
    border-bottom: 1px solid var(--line);
    background: white
}

header .bar {
    max-width: 1240px;
    margin: auto;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 30px
}

.bar nav {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-left: auto
}

.nav-link {
    border: 0;
    background: transparent
}

.nav-link[aria-current=page] {
    background: #edf2e7
}

.wrap {
    max-width: 1240px;
    margin: auto;
    padding: 36px 30px 60px
}

.flex {
    display: flex;
    align-items: center;
    gap: 12px
}

.between {
    justify-content: space-between
}

.small {
    font-size: 12px
}

.login-shell {
    max-width: 1160px;
    margin: 50px auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    min-height: 670px;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: white
}

.login-story {
    padding: 48px;
    background: #e9efde;
    position: relative;
    overflow: hidden
}

.login-story h1 {
    font-size: 52px;
    max-width: 400px
}

.login-story .muted {
    max-width: 370px
}

.landscape {
    height: 230px;
    position: relative;
    margin: 30px -48px -48px;
    overflow: hidden;
    background: linear-gradient(#e9efde, #d9e6c7)
}

.sun {
    position: absolute;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #e4b66d;
    right: 80px;
    top: 25px
}

.mountain {
    position: absolute;
    width: 330px;
    height: 330px;
    background: #a9bea0;
    transform: rotate(45deg);
    top: 100px;
    left: 0;
    border-radius: 15px
}

.mountain.two {
    background: #65896c;
    left: 210px;
    top: 145px
}

.mountain.three {
    background: #325c49;
    left: -100px;
    top: 180px
}

.login-form {
    padding: 48px 55px
}

.login-form h2 {
    margin-top: 22px;
    font-size: 30px
}

.demo-box {
    background: #f4f6ee;
    border: 1px dashed #b3c4a6;
    border-radius: 9px;
    padding: 16px;
    margin-top: 24px;
    line-height: 1.8;
    font-size: 13px
}

.wide {
    width: 100%;
    margin-top: 20px
}

.error {
    color: #a12b25;
    font-size: 13px;
    margin: 7px 0;
    min-height: 0
}

.error:not(:empty) {
    background: #fff0ed;
    padding: 10px;
    border-radius: 6px
}

.hero {
    background: #e8eedf;
    border-radius: 14px;
    padding: 30px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    overflow: hidden
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px
}

.hero p {
    margin: 0
}

.hero-art {
    font-size: 76px;
    padding: 10px 35px;
    transform: rotate(-10deg)
}

.shop-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 30px;
    margin-top: 32px
}

.sidebar {
    background: white;
    border: 1px solid var(--line);
    padding: 22px;
    border-radius: 12px;
    align-self: start
}

.sidebar h2 {
    font-size: 18px;
    margin: 0
}

.sidebar hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 22px 0
}

.toolbar {
    margin-bottom: 20px
}

.toolbar select {
    width: 180px
}

.products {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px
}

.product-card {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    background: white
}

.product-art {
    height: 165px;
    display: grid;
    place-items: center;
    background: var(--tone);
    position: relative
}

.product-art span {
    font-size: 77px;
    filter: drop-shadow(0 12px 9px #0002)
}

.product-art .pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff9;
    font-size: 10px
}

.product-body {
    padding: 18px
}

.product-body h3 {
    margin: 8px 0
}

.product-body p {
    font-size: 12px;
    margin: 7px 0 16px
}

.price {
    font-size: 19px;
    font-weight: 700
}

.product-body button {
    padding: 9px 12px;
    font-size: 12px
}

.bottom-note {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 18px
}

.panel {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 28px
}

.two-col {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 26px
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px
}

.cart-row {
    display: grid;
    grid-template-columns: 50px 1fr 90px 80px 70px;
    gap: 14px;
    align-items: center;
    padding: 22px 0;
    border-bottom: 1px solid var(--line)
}

.cart-row .emoji {
    font-size: 32px
}

.cart-row h3 {
    margin: 0
}

.totals p {
    display: flex;
    justify-content: space-between
}

.totals .total {
    font-size: 22px;
    border-top: 1px solid var(--line);
    padding-top: 18px;
    font-weight: 700
}

fieldset {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 22px 0;
    padding: 10px 16px 20px
}

legend {
    font-weight: 700;
    padding: 0 8px
}

.success {
    max-width: 700px;
    margin: 30px auto;
    text-align: center
}

.success-icon {
    display: grid;
    place-items: center;
    background: #e7efd9;
    color: var(--green);
    width: 78px;
    height: 78px;
    border-radius: 50%;
    font-size: 36px;
    margin: 0 auto 22px
}

.success dl {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    background: var(--paper);
    padding: 20px;
    border-radius: 9px
}

.success dd {
    margin: 0;
    text-align: right
}

details {
    border-bottom: 1px solid var(--line);
    padding: 15px 0
}

summary {
    cursor: pointer;
    font-weight: 600
}

code {
    background: #edf1e7;
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 12px
}

pre {
    white-space: pre-wrap;
    line-height: 1.8
}

dialog {
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px;
    max-width: 450px
}

dialog::backdrop {
    background: #17362c77
}

#toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    border-radius: 8px;
    padding: 14px 24px;
    box-shadow: 0 4px 25px #0002;
    z-index: 5
}

#toast:empty {
    display: none
}

footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 12px
}

.tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 25px
}

.tab-panel {
    max-width: 850px
}

textarea {
    min-height: 90px
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left
}

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

progress {
    width: 100%;
    accent-color: var(--green)
}

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

    .login-shell {
        margin: 20px
    }

    .login-story,
    .login-form {
        padding: 30px
    }

    .login-story h1 {
        font-size: 40px
    }

    .two-col {
        grid-template-columns: 1fr
    }
}

@media(max-width:650px) {
    .login-shell {
        grid-template-columns: 1fr
    }

    .login-story {
        display: none
    }

    .shop-layout {
        grid-template-columns: 1fr
    }

    .sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px
    }

    .sidebar hr {
        display: none
    }

    .products {
        gap: 10px
    }

    .product-body {
        padding: 12px
    }

    .hero-art {
        display: none
    }

    .hero {
        padding: 24px
    }

    .hero h1 {
        font-size: 29px
    }

    .wrap {
        padding: 24px 16px
    }

    .bar {
        flex-wrap: wrap;
        padding: 16px !important;
        gap: 10px !important
    }

    .bar nav {
        margin-left: 0;
        flex-wrap: wrap
    }

    .bar .pill {
        display: none
    }

    .cart-row {
        grid-template-columns: 35px 1fr 65px
    }

    .cart-row button {
        grid-column: 2
    }

    .form-grid {
        grid-template-columns: 1fr
    }

    h1 {
        font-size: 34px
    }

    .toolbar {
        flex-wrap: wrap
    }

    .login-form {
        padding: 28px
    }

    .hero p {
        font-size: 13px
    }
}