:root {
    --paper: #f4f0e6;
    --paper-deep: #e8e1d3;
    --ink: #20271f;
    --muted: #687064;
    --line: rgba(32, 39, 31, 0.2);
    --green: #355d45;
    --lime: #d6df9b;
    --peach: #e7a57e;
    --sun: #f2ce63;
    --white: #fffdf7;
    --radius: 2px;
    --serif: Iowan Old Style, Baskerville, "Times New Roman", serif;
    --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
}

a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3,
blockquote {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 0.96;
}

h1 {
    margin-bottom: 0.45em;
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    letter-spacing: -0.055em;
}

h2 {
    margin-bottom: 0.5em;
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -0.035em;
}

h3 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.65rem, 2.2vw, 2.35rem);
    letter-spacing: -0.025em;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 20;
    padding: 0.65rem 0.9rem;
    background: var(--white);
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

.site-header {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 1.2rem clamp(1.25rem, 4vw, 4.5rem);
    border-bottom: 1px solid var(--line);
}

.wordmark {
    display: inline-flex;
    flex-direction: column;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.68rem;
    line-height: 1.05;
    letter-spacing: 0.2em;
}

.wordmark strong {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: clamp(0.8rem, 2.5vw, 2rem);
    font-size: 0.84rem;
}

.site-nav a,
.link-button {
    text-decoration: none;
}

.site-nav a:hover,
.link-button:hover {
    text-decoration: underline;
}

.nav-count {
    display: inline-grid;
    place-items: center;
    min-width: 1.35rem;
    height: 1.35rem;
    margin-left: 0.15rem;
    padding: 0 0.3rem;
    color: var(--white);
    background: var(--ink);
    border-radius: 999px;
    font-size: 0.68rem;
}

.nav-form {
    display: inline;
    margin: 0;
}

.link-button,
.text-button {
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.flash-stack {
    position: fixed;
    z-index: 15;
    top: 6.5rem;
    right: clamp(1rem, 4vw, 4.5rem);
    width: min(28rem, calc(100vw - 2rem));
}

.flash {
    margin-bottom: 0.5rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--ink);
    background: var(--white);
    box-shadow: 5px 5px 0 var(--ink);
    font-size: 0.86rem;
}

.flash--success {
    background: var(--lime);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
    min-height: calc(100vh - 88px);
    border-bottom: 1px solid var(--line);
}

.hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem);
}

.hero h1 {
    max-width: 8ch;
}

.hero .lede {
    max-width: 32rem;
}

.hero__art {
    position: relative;
    min-height: 38rem;
    overflow: hidden;
    background: var(--green);
    isolation: isolate;
}

.hero__art p {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
}

.sun {
    position: absolute;
    top: 13%;
    right: 12%;
    width: clamp(9rem, 18vw, 16rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--sun);
}

.leaf {
    position: absolute;
    width: clamp(11rem, 21vw, 20rem);
    aspect-ratio: 0.6;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 100% 0 100% 0;
    transform-origin: bottom;
}

.leaf::after {
    position: absolute;
    top: 6%;
    left: 50%;
    width: 1px;
    height: 90%;
    background: rgba(255, 255, 255, 0.55);
    content: "";
    transform: rotate(31deg);
    transform-origin: bottom;
}

.leaf--one {
    left: 7%;
    bottom: -8%;
    transform: rotate(-24deg);
}

.leaf--two {
    right: 4%;
    bottom: -12%;
    transform: rotate(17deg) scale(1.15);
}

.leaf--three {
    left: 40%;
    bottom: 5%;
    transform: rotate(-2deg) scale(0.7);
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lede {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    line-height: 1.35;
}

.text-link {
    align-self: flex-start;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-space,
.page-space {
    padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 6vw, 7rem);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
}

.section-heading h1,
.section-heading h2 {
    margin-bottom: 0;
}

.section-heading > p {
    max-width: 26rem;
    margin-bottom: 0.7rem;
    color: var(--muted);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 2.5rem);
}

.news {
    background: var(--paper-deep);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.news-card {
    min-width: 0;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border-right: 1px solid var(--line);
}

.news-card:last-child {
    border-right: 0;
}

.news-card time {
    display: block;
    margin-bottom: clamp(2.5rem, 5vw, 5rem);
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-card h3 {
    max-width: 18rem;
    margin-bottom: 1rem;
}

.news-card p {
    max-width: 24rem;
    margin-bottom: 0;
    color: var(--muted);
}

.product-card {
    min-width: 0;
}

.product-art {
    position: relative;
    display: block;
    aspect-ratio: 0.84;
    overflow: hidden;
    text-decoration: none;
}

.product-art span {
    position: absolute;
    top: 1.2rem;
    left: 1.2rem;
    z-index: 2;
    font-family: var(--serif);
    font-size: 1.4rem;
}

.product-art i,
.product-art::before,
.product-art::after {
    position: absolute;
    display: block;
    content: "";
}

.product-art i {
    left: 28%;
    bottom: -5%;
    width: 48%;
    height: 78%;
    border: 2px solid currentColor;
    border-radius: 100% 0 100% 0;
    transform: rotate(-13deg);
}

.product-art i::after {
    position: absolute;
    left: 49%;
    bottom: 0;
    width: 1px;
    height: 92%;
    background: currentColor;
    content: "";
    transform: rotate(30deg);
    transform-origin: bottom;
}

.product-art::before {
    top: 22%;
    right: 12%;
    width: 27%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.56);
}

.product-art--1 {
    color: var(--ink);
    background: var(--lime);
}

.product-art--2 {
    color: var(--white);
    background: var(--peach);
}

.product-art--3 {
    color: var(--white);
    background: var(--green);
}

.product-card__body {
    padding-top: 1.35rem;
}

.product-card__body h3 a {
    text-decoration: none;
}

.product-card__body > p:last-of-type {
    color: var(--muted);
}

.product-origin {
    margin-bottom: 0.4rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-card__buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.round-button {
    display: grid;
    width: 2.8rem;
    height: 2.8rem;
    place-items: center;
    border: 1px solid var(--ink);
    border-radius: 50%;
    color: var(--ink);
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 150ms ease;
}

.round-button:hover {
    color: var(--white);
    background: var(--ink);
}

.manifesto {
    display: grid;
    grid-template-columns: 0.5fr 2fr 0.75fr;
    align-items: end;
    gap: 3rem;
    color: var(--white);
    background: var(--ink);
}

.manifesto .eyebrow {
    color: rgba(255, 255, 255, 0.55);
}

.manifesto blockquote {
    margin: 0;
    font-size: clamp(3.2rem, 7vw, 7rem);
    letter-spacing: -0.05em;
}

.manifesto > p:last-child {
    color: rgba(255, 255, 255, 0.7);
}

.narrow {
    width: min(100%, 68rem);
    margin: 0 auto;
}

.narrow > h1,
.admin-page h1 {
    font-size: clamp(3.2rem, 7vw, 6.5rem);
}

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

.button {
    display: inline-flex;
    min-height: 3.2rem;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.3rem;
    border: 1px solid var(--ink);
    border-radius: var(--radius);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
}

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

.button--dark:hover {
    color: var(--ink);
    background: var(--sun);
}

.button--small {
    min-height: 2.35rem;
    padding: 0.5rem 0.8rem;
    background: transparent;
    font-size: 0.65rem;
}

.button--wide {
    width: 100%;
}

.empty-state {
    margin-top: 3rem;
    padding: clamp(2rem, 5vw, 4rem);
    border: 1px solid var(--line);
    text-align: center;
}

.cart-form {
    border-top: 1px solid var(--ink);
}

.cart-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6rem 8rem;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--line);
}

.cart-row h2 {
    margin-bottom: 0.3rem;
    font-size: 2rem;
}

.cart-row .eyebrow {
    margin-bottom: 0.4rem;
}

.cart-row label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.cart-row input {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.65rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.cart-row > strong {
    text-align: right;
}

.cart-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.5rem 0;
}

.text-button {
    text-decoration: underline;
    text-underline-offset: 0.22em;
}

.cart-actions > div {
    display: flex;
    gap: 2rem;
}

.checkout-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem;
    background: var(--paper-deep);
}

.checkout-callout p {
    margin: 0;
    color: var(--muted);
}

.auth-layout,
.checkout-layout,
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.75fr);
    gap: clamp(3rem, 9vw, 10rem);
    align-items: start;
}

.auth-layout > div:first-child,
.checkout-layout > div:first-child {
    padding-top: 2rem;
}

.auth-layout h1,
.checkout-layout h1,
.product-detail h1 {
    font-size: clamp(3.4rem, 7vw, 7rem);
}

.panel,
.order-aside {
    padding: clamp(1.6rem, 4vw, 3rem);
    background: var(--white);
}

.panel h2 {
    font-size: 2.4rem;
}

.form-stack {
    display: grid;
    gap: 1.2rem;
}

.form-stack label {
    display: grid;
    gap: 0.4rem;
    color: var(--muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.form-stack label span {
    color: var(--muted);
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.form-stack input,
.form-stack select {
    width: 100%;
    min-height: 3.15rem;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid var(--ink);
    border-radius: 0;
    color: var(--ink);
    background: transparent;
}

.form-stack select {
    cursor: pointer;
}

.form-error {
    padding: 0.9rem 1rem;
    border-left: 4px solid #a94732;
    background: #f4d9cb;
    font-size: 0.86rem;
}

.form-note,
.fine-print {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.field-pair {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.checkout-form {
    margin-top: 3rem;
}

.order-aside {
    position: sticky;
    top: 2rem;
}

.aside-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.86rem;
}

.aside-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.5rem 0;
    font-family: var(--serif);
    font-size: 1.4rem;
}

.product-detail {
    align-items: center;
}

.product-art--detail {
    color: var(--white);
    background: var(--green);
}

.tasting {
    margin: 2.5rem 0;
    padding: 1rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-family: var(--serif);
    font-size: 1.3rem;
}

.tasting span {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--muted);
    font-family: var(--sans);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.detail-buy {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.detail-buy > strong {
    font-family: var(--serif);
    font-size: 2rem;
}

.detail-buy form {
    display: flex;
    align-items: end;
    gap: 0.8rem;
}

.detail-buy label {
    display: grid;
    gap: 0.3rem;
    font-size: 0.68rem;
    text-transform: uppercase;
}

.detail-buy input {
    width: 5rem;
    min-height: 3.2rem;
    padding: 0.5rem;
    border: 1px solid var(--ink);
    background: var(--white);
}

.line-items {
    margin-top: 2rem;
    border-top: 1px solid var(--line);
}

.line-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.line-item div {
    display: grid;
}

.line-item span {
    color: var(--muted);
    font-size: 0.82rem;
}

.totals {
    margin: 1.5rem 0;
}

.totals div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.totals dd {
    margin: 0;
}

.totals__grand {
    margin-top: 0.5rem;
    padding-top: 1rem !important;
    border-top: 1px solid var(--ink);
    font-weight: 800;
}

.centred {
    margin-top: 1rem;
    text-align: center;
}

.status {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    padding: 0.35rem 0.55rem;
    border: 1px solid currentColor;
    border-radius: 999px;
    color: var(--green);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status--awaiting_payment {
    color: #8a5b20;
}

.status--shipped {
    color: #365284;
}

.receipt {
    width: min(100%, 70rem);
    margin: 0 auto;
}

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

.receipt__heading h1 {
    font-size: clamp(2.5rem, 6vw, 5.5rem);
    overflow-wrap: anywhere;
}

.success-panel {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0 3rem;
    padding: 1rem 1.2rem;
    background: var(--lime);
}

.bank-panel {
    margin-top: 2rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border: 1px solid var(--ink);
    background: var(--white);
}

.bank-panel h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.bank-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin: 2rem 0;
    border-top: 1px solid var(--line);
}

.bank-details div {
    padding: 1rem 0;
    border-bottom: 1px solid var(--line);
}

.bank-details dt {
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bank-details dd {
    margin: 0.25rem 0 0;
    overflow-wrap: anywhere;
}

.proof-form {
    max-width: 34rem;
}

.receipt__grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: clamp(3rem, 8vw, 8rem);
    padding: 3rem 0;
    border-top: 1px solid var(--ink);
}

.receipt__grid h2 {
    font-size: 2rem;
}

address {
    font-style: normal;
}

.admin-table {
    border-top: 1px solid var(--ink);
}

.admin-order {
    display: grid;
    grid-template-columns: minmax(13rem, 1.3fr) 9rem 7rem minmax(18rem, 1fr) minmax(9rem, 0.65fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1.4rem 0;
    border-bottom: 1px solid var(--line);
}

.admin-order > div:first-child {
    display: grid;
}

.admin-order > div:first-child span {
    color: var(--muted);
    font-size: 0.78rem;
}

.proof-review {
    display: grid;
    gap: 0.55rem;
}

.proof-review > a {
    width: fit-content;
    font-weight: 800;
}

.proof-state {
    width: fit-content;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.proof-state--submitted {
    color: #8a5b20;
}

.proof-state--approved {
    color: var(--green);
}

.proof-state--rejected {
    color: #a94732;
}

.proof-decision {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 0.65rem;
}

.proof-decision label {
    display: grid;
    flex: 1 1 10rem;
    gap: 0.25rem;
    color: var(--muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.proof-decision label span {
    font-weight: 400;
    text-transform: none;
}

.proof-decision input {
    min-height: 2.5rem;
    padding: 0.5rem;
    border: 1px solid var(--line);
    background: var(--white);
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem clamp(1.25rem, 4vw, 4.5rem);
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
}

.site-footer p {
    margin: 0;
}

.footer-mark {
    font-weight: 800;
    letter-spacing: 0.12em;
}

@media (max-width: 900px) {
    .hero,
    .auth-layout,
    .checkout-layout,
    .product-detail {
        grid-template-columns: 1fr;
    }

    .hero__art {
        min-height: 65vw;
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-card:last-child {
        grid-column: span 2;
        width: calc(50% - 0.75rem);
    }

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

    .manifesto blockquote {
        order: -1;
    }

    .order-aside {
        position: static;
    }

    .admin-order {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .proof-review,
    .admin-order > form,
    .admin-order > .muted {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-header {
        align-items: flex-start;
        min-height: 96px;
        padding: 1rem 1.1rem;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem 0.85rem;
        max-width: 14rem;
        font-size: 0.75rem;
    }

    .flash-stack {
        position: static;
        width: auto;
        margin: 1rem 1.1rem 0;
    }

    .hero {
        min-height: 0;
    }

    .hero__copy,
    .section-space,
    .page-space {
        padding: 3.5rem 1.2rem;
    }

    .hero__art {
        min-height: 105vw;
    }

    .section-heading {
        display: block;
    }

    .section-heading > p {
        margin-top: 1rem;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

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

    .news-card {
        padding: 2rem 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .news-card:last-child {
        border-bottom: 0;
    }

    .news-card time {
        margin-bottom: 2rem;
    }

    .product-card:last-child {
        grid-column: auto;
        width: auto;
    }

    .cart-row {
        grid-template-columns: minmax(0, 1fr) 4.5rem;
        gap: 1rem;
    }

    .cart-row > strong {
        grid-column: 1 / -1;
        text-align: left;
    }

    .cart-actions,
    .checkout-callout,
    .detail-buy,
    .success-panel,
    .site-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-actions > div {
        justify-content: space-between;
    }

    .field-pair,
    .bank-details,
    .receipt__grid {
        grid-template-columns: 1fr;
    }

    .detail-buy form {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

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

    .admin-order {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .admin-order > strong,
    .proof-review,
    .admin-order > form,
    .admin-order > .muted {
        grid-column: 1 / -1;
    }

    .admin-order .button {
        width: 100%;
    }
}
