:root {
    --ink: #17221c;
    --lime: #d8f351;
    --paper: #f7f5ef;
    --sand: #e8e3d8;
    --muted: #69716a;
    --line: #d8d9d2
}

* {
    box-sizing: border-box
}

.hidden {
    display: none !important
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Manrope, Arial, sans-serif
}

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

.announcement {
    background: var(--ink);
    color: #f7f5ef;
    text-align: center;
    font: 11px 'DM Mono', monospace;
    letter-spacing: .08em;
    padding: 10px
}

.announcement span {
    color: var(--lime);
    padding: 0 12px
}

.site-header,
.portal-header {
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5.5%;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    position: relative;
    z-index: 4
}

.brand {
    font-weight: 800;
    font-size: 29px;
    letter-spacing: -2px
}

.brand span {
    color: #708a13;
    font-size: 23px
}

nav {
    display: flex;
    gap: 32px;
    font-size: 13px;
    font-weight: 700
}

nav a:hover,
.header-actions button:hover {
    color: #708a13
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.icon-button,
.cart-button,
.menu-toggle {
    border: 0;
    background: transparent;
    font: 600 13px Manrope;
    color: var(--ink);
    cursor: pointer
}

.icon-button {
    font-size: 26px;
    line-height: 1
}

.cart-button span {
    background: var(--lime);
    padding: 3px 7px;
    border-radius: 20px;
    margin-left: 4px
}

.menu-toggle {
    display: none
}

.hero {
    display: grid;
    grid-template-columns: 47% 53%;
    min-height: 650px;
    position: relative
}

.hero-copy {
    padding: 114px 11.7% 80px;
    background: #e6edca
}

.eyebrow {
    font: 11px 'DM Mono', monospace;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 22px;
    color: #5e665c
}

.hero h1,
.section-heading h2,
.feature h2,
.newsletter h2,
.portal-intro h1 {
    font-size: clamp(42px, 5.1vw, 80px);
    line-height: .98;
    letter-spacing: -.075em;
    margin: 0;
    font-weight: 700
}

.hero h1 em,
h2 em,
.portal-intro em {
    font-family: 'Playfair Display', serif;
    font-weight: 600
}

.hero-text {
    max-width: 370px;
    line-height: 1.7;
    font-size: 14px;
    margin: 28px 0 35px
}

.button {
    border: 0;
    display: inline-flex;
    justify-content: space-between;
    gap: 28px;
    align-items: center;
    padding: 15px 18px;
    font: 700 12px Manrope;
    cursor: pointer
}

.button-dark {
    background: var(--ink);
    color: #fff
}

.button-dark:hover {
    background: #334239
}

.hero-image {
    overflow: hidden;
    position: relative
}

.hero-image img,
.category-card img,
.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.hero-stamp {
    position: absolute;
    bottom: 37px;
    right: 38px;
    border: 1px solid #fff;
    color: #fff;
    border-radius: 50%;
    height: 98px;
    width: 98px;
    display: grid;
    place-items: center;
    text-align: center;
    font: 10px 'DM Mono';
    letter-spacing: .1em;
    line-height: 1.5;
    transform: rotate(-12deg)
}

.hero-caption {
    position: absolute;
    right: 4%;
    bottom: 15px;
    color: white;
    font: 10px 'DM Mono';
    letter-spacing: .05em
}

.value-bar {
    background: var(--lime);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 19px 5.5%;
    gap: 20px
}

.value-bar p {
    font-size: 12px;
    margin: 0;
    font-weight: 700
}

.value-bar b {
    font: 10px 'DM Mono';
    margin-right: 12px
}

.category-section,
.product-section {
    padding: 115px 5.5%
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 40px
}

.section-heading h2 {
    font-size: clamp(36px, 4vw, 57px)
}

.section-heading>a,
.text-link {
    font: 700 12px Manrope;
    border-bottom: 1px solid var(--ink);
    padding-bottom: 6px
}

.categories {
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    gap: 18px
}

.category-card {
    height: 340px;
    overflow: hidden;
    position: relative;
    background: #ddd
}

.category-card.tall {
    height: 420px;
    margin-top: -80px
}

.category-card:after {
    content: '';
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, .42))
}

.category-card span {
    position: absolute;
    z-index: 1;
    bottom: 21px;
    color: white;
    left: 20px;
    right: 20px;
    font: 700 16px Manrope;
    display: flex;
    justify-content: space-between
}

.category-card b {
    font-size: 22px
}

.category-card img {
    transition: transform .5s
}

.category-card:hover img {
    transform: scale(1.04)
}

.product-section {
    background: #eeece5
}

.filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap
}

.filter {
    border: 1px solid var(--line);
    background: transparent;
    border-radius: 30px;
    padding: 9px 14px;
    font: 600 11px Manrope;
    cursor: pointer
}

.filter.active,
.filter:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink)
}

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

.product-card {
    position: relative
}

.product-card.hidden {
    display: none
}

.product-image {
    height: 290px;
    background: #e1dfd6;
    position: relative;
    overflow: hidden
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s
}

.product-card:hover .product-image img {
    transform: scale(1.05)
}

.product-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--lime);
    font: 10px 'DM Mono';
    padding: 6px 8px
}

.add-product {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: #fff;
    border: 0;
    border-radius: 50%;
    height: 38px;
    width: 38px;
    font-size: 21px;
    cursor: pointer
}

.product-meta {
    padding: 14px 2px
}

.product-meta div {
    display: flex;
    justify-content: space-between;
    gap: 12px
}

.product-meta h3 {
    font-size: 13px;
    margin: 0
}

.product-meta p {
    font: 12px 'DM Mono';
    margin: 7px 0 0
}

.product-meta small {
    color: var(--muted);
    font-size: 11px
}

.feature {
    display: grid;
    grid-template-columns: 55% 45%;
    min-height: 570px
}

.feature-image {
    height: 570px
}

.feature-copy {
    background: #b8c2aa;
    padding: 110px 16%
}

.feature-copy h2 {
    font-size: clamp(39px, 4.3vw, 64px)
}

.feature-copy>p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.75;
    max-width: 360px;
    margin: 30px 0
}

.text-link {
    display: inline-block
}

.text-link span {
    margin-left: 15px
}

.newsletter {
    background: #f9f8f4;
    padding: 75px 11%;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 35px
}

.newsletter h2 {
    font-size: 52px
}

.newsletter p:not(.eyebrow) {
    font-size: 13px;
    color: var(--muted)
}

.newsletter form {
    width: min(100%, 420px);
    border-bottom: 1px solid var(--ink);
    display: flex
}

.newsletter input {
    border: 0;
    background: transparent;
    outline: none;
    padding: 13px 0;
    flex: 1;
    font: 13px Manrope
}

.newsletter button {
    border: 0;
    background: transparent;
    font-size: 25px;
    cursor: pointer
}

footer {
    background: var(--ink);
    color: #f6f5ef;
    padding: 60px 5.5% 26px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 35px
}

footer .brand {
    color: #fff
}

footer div {
    display: flex;
    flex-direction: column;
    gap: 10px
}

footer p {
    font: 10px 'DM Mono';
    letter-spacing: .1em;
    color: #aeb5aa;
    margin: 0 0 4px
}

footer a {
    font-size: 12px
}

footer small {
    grid-column: 1/-1;
    border-top: 1px solid #465049;
    padding-top: 22px;
    color: #aeb5aa;
    font: 9px 'DM Mono';
    letter-spacing: .06em
}

.cart-drawer {
    position: fixed;
    z-index: 10;
    right: 0;
    top: 0;
    width: min(100%, 430px);
    height: 100vh;
    background: #faf9f5;
    transform: translateX(100%);
    transition: transform .3s;
    display: flex;
    flex-direction: column;
    padding: 26px
}

.cart-drawer.open {
    transform: none
}

.overlay {
    position: fixed;
    z-index: 9;
    inset: 0;
    background: rgba(18, 27, 22, .35);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s
}

.overlay.open {
    opacity: 1;
    pointer-events: auto
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px
}

.drawer-head h2 {
    font-size: 22px;
    margin: 0
}

.close-cart {
    background: none;
    border: 0;
    font-size: 29px;
    cursor: pointer
}

.cart-items {
    flex: 1;
    overflow: auto;
    padding: 16px 0
}

.empty-cart {
    font-size: 14px;
    color: var(--muted);
    padding-top: 20px
}

.cart-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 13px;
    margin-bottom: 16px;
    align-items: center
}

.cart-item img {
    width: 72px;
    height: 72px;
    object-fit: cover
}

.cart-item h3,
.cart-item p {
    font-size: 12px;
    margin: 0
}

.cart-item p {
    font-family: 'DM Mono';
    margin-top: 5px
}

.remove-item {
    border: 0;
    background: none;
    color: var(--muted);
    cursor: pointer;
    font-size: 18px
}

.cart-footer {
    border-top: 1px solid var(--line);
    padding-top: 16px
}

.cart-footer>div {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px
}

.cart-footer .button {
    width: 100%;
    margin-bottom: 9px
}

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

.cart-footer small {
    font-size: 10px;
    color: var(--muted)
}

.toast {
    position: fixed;
    z-index: 12;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, 100px);
    background: var(--ink);
    color: #fff;
    padding: 13px 18px;
    font-size: 12px;
    transition: transform .25s
}

.toast.show {
    transform: translate(-50%, 0)
}

.portal-body {
    background: #edf0e9
}

.portal-header {
    height: 73px
}

.portal-header>span {
    font: 11px 'DM Mono';
    letter-spacing: .1em;
    text-transform: uppercase
}

.portal-header>a:last-child {
    font-size: 12px;
    font-weight: 700
}

.portal-main {
    max-width: 1120px;
    margin: auto;
    padding: 90px 30px
}

.portal-intro {
    max-width: 620px;
    margin-bottom: 60px
}

.portal-intro h1 {
    font-size: 62px
}

.portal-intro>p:not(.eyebrow) {
    font-size: 15px;
    line-height: 1.7;
    max-width: 400px
}

.portal-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 58px
}

.portal-option {
    min-height: 365px;
    padding: 34px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start
}

.portal-option-quick {
    background: #f8f7f2;
    border: 1px solid var(--line)
}

.portal-option-full {
    background: var(--ink);
    color: #f8f7f2
}

.option-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 28px;
    border-radius: 50%;
    background: var(--lime);
    color: var(--ink);
    font-size: 19px;
    font-weight: 800
}

.portal-option-full .option-icon {
    background: #52665a;
    color: var(--lime)
}

.option-label,
.form-kicker {
    margin: 0 0 9px;
    color: #6c756c;
    font: 10px 'DM Mono', monospace;
    letter-spacing: .1em
}

.portal-option-full .option-label {
    color: #b7c0b8
}

.portal-option h2 {
    margin: 0;
    font-size: 29px;
    letter-spacing: -.06em
}

.portal-option>p:not(.option-label) {
    max-width: 355px;
    margin: 12px 0 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65
}

.portal-option-full>p:not(.option-label) {
    color: #c2cbc3
}

.portal-option ul {
    display: grid;
    gap: 8px;
    margin: 0 0 25px;
    padding: 0;
    list-style: none;
    color: #4c574e;
    font-size: 11px
}

.portal-option li::before {
    content: '✓';
    margin-right: 8px;
    color: #718a16;
    font-weight: 800
}

.portal-option-full ul {
    color: #d5ddd5
}

.portal-option-full li::before {
    color: var(--lime)
}

.portal-option .button {
    margin-top: auto;
    min-width: 190px
}

.button-light {
    background: var(--lime);
    color: var(--ink)
}

.button-light:hover {
    background: #e8ff83
}

.portal-divider {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 16px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 13px
}

.portal-divider span {
    font: 11px 'DM Mono', monospace;
    letter-spacing: .1em;
    font-weight: 700
}

.portal-divider small,
.guest-note {
    color: var(--muted);
    font-size: 10px
}

.form-kicker {
    margin-bottom: 6px
}

.guest-note {
    line-height: 1.6;
    margin: 17px 0 0
}

.invoice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f8f7f2;
    box-shadow: 0 15px 45px rgba(31, 43, 33, .08)
}

.invoice-form {
    padding: 42px
}

.form-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px
}

.form-head h2 {
    margin: 0;
    font-size: 23px
}

.form-head span {
    font: 10px 'DM Mono';
    background: var(--lime);
    padding: 6px 8px
}

label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 20px
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0;
    margin-top: 8px;
    background: #fff;
    padding: 13px;
    font: 13px Manrope;
    outline-color: #819b20
}

textarea {
    resize: vertical;
    line-height: 1.5
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px
}

.invoice-form .button {
    width: 100%;
    margin-top: 10px
}

.form-section-title {
    border-bottom: 1px solid var(--line);
    color: #697369;
    font: 10px 'DM Mono', monospace;
    letter-spacing: .1em;
    margin: 27px 0 17px;
    padding-bottom: 8px
}

.item-heading {
    display: flex;
    justify-content: space-between;
    align-items: center
}

.add-item {
    border: 0;
    background: transparent;
    color: #627816;
    cursor: pointer;
    font: 700 10px Manrope;
    padding: 0
}

.invoice-items {
    display: grid;
    gap: 9px;
    margin-bottom: 20px
}

.invoice-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 70px 105px 25px;
    gap: 8px;
    align-items: end;
    padding: 12px;
    background: #efeee8
}

.invoice-item-row label {
    margin-bottom: 0
}

.invoice-item-row input {
    padding: 10px 9px
    }

.remove-item-row {
    height: 36px;
    border: 0;
    background: transparent;
    color: #8a918a;
    cursor: pointer;
    font-size: 20px
}

.remove-item-row:disabled {
    cursor: default;
    opacity: .25
}

.invoice-preview {
    margin: 22px;
    background: var(--ink);
    color: #f8f7f2;
    padding: 34px;
    display: flex;
    flex-direction: column
}

.preview-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #596259;
    padding-bottom: 22px
}

.preview-top .brand {
    font-size: 24px
}

.preview-top small {
    display: block;
    color: #b9c0b7;
    font: 9px 'DM Mono', monospace;
    margin-top: 5px
}

.preview-business-address,
.preview-customer-details {
    color: #b9c0b7;
    font-size: 10px;
    line-height: 1.5;
    margin: 8px 0 0
}

.invoice-number,
.preview-label {
    font: 10px 'DM Mono';
    letter-spacing: .08em;
    color: #b9c0b7
}

.preview-label {
    margin: 33px 0 8px
}

.invoice-preview h3 {
    font-size: 25px;
    margin: 0
}

.invoice-item-preview {
    border-top: 1px solid #596259;
    margin-top: 5px;
    padding-top: 12px
}

.invoice-item-preview-head,
.invoice-item-preview-row {
    display: flex;
    justify-content: space-between;
    gap: 15px
}

.invoice-item-preview-head {
    color: #9ca89d;
    font: 9px 'DM Mono', monospace;
    letter-spacing: .06em;
    margin-bottom: 10px
}

.invoice-item-preview-row {
    color: #f8f7f2;
    font-size: 11px;
    padding: 7px 0
}

.invoice-item-preview-row small {
    color: #aeb8ae;
    font-size: 9px
}

.invoice-item-preview-row strong {
    font: 11px 'DM Mono', monospace;
    white-space: nowrap
}

.preview-date {
    font: 12px 'DM Mono';
    color: #b9c0b7;
    margin: 8px 0 35px
}

.invoice-lines {
    border-top: 1px solid #596259;
    padding-top: 17px;
    display: grid;
    gap: 15px
}

.invoice-lines div,
.invoice-total {
    display: flex;
    justify-content: space-between;
    font-size: 12px
}

.invoice-lines strong {
    font-family: 'DM Mono';
    font-weight: 500
}

.invoice-total {
    margin-top: 20px;
    padding: 18px 0;
    border-top: 1px solid #596259;
    border-bottom: 1px solid #596259;
    font-size: 16px
}

.invoice-total strong {
    color: var(--lime);
    font: 500 20px 'DM Mono'
}

.invoice-print {
    align-self: flex-start;
    border: 1px solid #667367;
    background: transparent;
    color: var(--lime);
    padding: 9px 11px;
    margin-top: 23px;
    font: 10px 'DM Mono', monospace;
    cursor: pointer
}

.invoice-print:hover {
    background: #304136
}

.invoice-note {
    margin-top: auto;
    padding-top: 35px;
    color: #b9c0b7;
    font-size: 10px;
    line-height: 1.6
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

@media(max-width:760px) {
    .site-header {
        height: 65px;
        padding: 0 5%
    }

    nav,
    .search-button {
        display: none
    }

    .site-header.nav-open nav {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 22px 5%;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        flex-direction: column;
        gap: 18px
    }

    .menu-toggle {
        display: block;
        order: 3;
        font-size: 18px
    }

    .header-actions {
        margin-left: auto;
        margin-right: 12px
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: 0
    }

    .hero-copy {
        padding: 70px 9%
    }

    .hero-image {
        height: 390px
    }

    .hero-caption {
        bottom: 10px;
        right: 20px
    }

    .hero h1,
    .portal-intro h1 {
        font-size: 52px
    }

    .value-bar {
        grid-template-columns: 1fr 1fr;
        padding: 17px 8%;
        gap: 15px
    }

    .category-section,
    .product-section {
        padding: 70px 6%
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 24px
    }

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

    .category-card {
        height: 230px
    }

    .category-card.tall {
        height: 290px;
        margin-top: -40px
    }

    .category-card:last-child {
        display: none
    }

    .products {
        grid-template-columns: 1fr 1fr;
        gap: 24px 12px
    }

    .product-image {
        height: 205px
    }

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

    .feature-image {
        height: 360px
    }

    .feature-copy {
        padding: 70px 9%
    }

    .newsletter {
        padding: 60px 8%;
        display: block
    }

    .newsletter form {
        margin-top: 30px
    }

    footer {
        grid-template-columns: 1fr 1fr
    }

    .portal-header {
        padding: 0 6%
    }

    .portal-header>span {
        display: none
    }

    .portal-main {
        padding: 65px 18px
    }

    .portal-intro {
        margin-bottom: 38px
    }

    .portal-intro h1 {
        font-size: 48px
    }

    .portal-options {
        grid-template-columns: 1fr;
        margin-bottom: 45px
    }

    .portal-option {
        min-height: 0;
        padding: 28px
    }

    .portal-divider {
        display: grid;
        gap: 5px
    }

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

    .invoice-form {
        padding: 28px
    }

    .invoice-preview {
        min-height: 420px
    }

    .hero-stamp {
        height: 75px;
        width: 75px;
        right: 18px;
        bottom: 20px;
        font-size: 8px
    }

    .cart-drawer {
        width: 100%
    }
}

@media print {
    body * { visibility: hidden }
    .invoice-preview, .invoice-preview * { visibility: visible }
    .invoice-preview { position: absolute; inset: 0; margin: 0; min-height: 100vh; box-shadow: none }
    .invoice-print { display: none }
}
