/* Chamarel Farms theme. Palette from the Seven Coloured Earths of Chamarel. */
:root {
    --forest: #1a2e10;
    --forest-2: #24401a;
    --olive: #6b6a2e;
    --red-earth: #944241;
    --rose: #b5695f;
    --apricot: #ea9e79;
    --plum: #673537;
    --rust: #7a3a0e;
    --gold: #d4ac2b;
    --cream: #f5f0e0;
    --paper: #fbf8ef;
    --ink: #2b211c;
    --muted: #6a5a4a;
    --line: rgba(26, 46, 16, .13);
    /* Ghost's Design > Typography settings override these when set */
    --serif: var(--gh-font-heading, "Fraunces", Georgia, "Times New Roman", serif);
    --sans: var(--gh-font-body, "Source Sans 3", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif);
    --wrap: 1160px;
    --content: 720px;
    --gutter: 24px;
    --cs-sticky-top: 96px;   /* keeps the shop's cart clear of the sticky header */
    --cs-accent: var(--forest);
}
[id] { scroll-margin-top: 90px; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--forest); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(36px, 4.6vw, 56px); }
h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3 { font-size: 22px; }
.eyebrow { font: 700 13px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--rust); margin: 0 0 14px; }
.eyebrow a { text-decoration: none; }
.lede { font-size: 20px; color: var(--muted); max-width: 60ch; margin: 16px 0 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 999px; padding: 14px 24px; font: 700 16px/1 var(--sans); text-decoration: none; transition: transform .15s, background .15s, color .15s; min-height: 48px; border: 0; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-small { min-height: 40px; padding: 10px 18px; font-size: 15px; }
.btn-primary { background: var(--apricot); color: var(--forest); }
.btn-primary:hover { background: #f2b08f; }
.btn-ghost { border: 2px solid rgba(245, 240, 224, .85); color: var(--cream); }
.btn-ghost:hover { background: rgba(245, 240, 224, .12); }
.btn-forest { background: var(--forest); color: var(--cream); }
.btn-forest:hover { background: var(--forest-2); }
.link { font-weight: 700; color: var(--rust); text-decoration: none; border-bottom: 2px solid rgba(122, 58, 14, .25); }
.link:hover { border-color: var(--rust); }
:focus-visible { outline: 3px solid var(--apricot); outline-offset: 2px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 40; background: rgba(245, 240, 224, .97); border-bottom: 1px solid var(--line); }
.site-head-inner { display: flex; align-items: center; gap: 28px; min-height: 76px; }
.site-logo { flex: none; text-decoration: none; }
.site-logo img { height: 50px; width: auto; }
.site-title { font: 700 24px/1 var(--serif); color: var(--forest); }
.site-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.site-nav .nav { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.site-nav .nav a { text-decoration: none; color: var(--forest); font-weight: 600; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav .nav a:hover, .site-nav .nav-current a { border-color: var(--apricot); }
.site-nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-signin { text-decoration: none; font-weight: 600; font-size: 16px; color: var(--forest); }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font: 700 15px var(--sans); color: var(--forest); padding: 10px; cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--forest); }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 40% 40%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20, 34, 12, .82) 0%, rgba(20, 34, 12, .55) 42%, rgba(20, 34, 12, .05) 75%), linear-gradient(0deg, rgba(20, 34, 12, .55), rgba(20, 34, 12, 0) 45%); }
.hero-inner { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 88px; }
.hero .eyebrow { color: var(--apricot); }
.hero h1 { color: var(--cream); font-size: clamp(42px, 6vw, 76px); max-width: 13ch; }
.hero-text { font-size: clamp(18px, 1.6vw, 21px); max-width: 46ch; margin: 22px 0 32px; color: rgba(245, 240, 224, .92); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-caption { position: absolute; right: var(--gutter); bottom: 18px; z-index: 1; font-size: 13px; color: rgba(245, 240, 224, .75); }

.section { padding: 104px 0; }

/* Story */
.story-inner { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: center; }
.story-image { width: 100%; max-width: 340px; filter: drop-shadow(0 18px 30px rgba(43, 33, 28, .18)); }
.mission { font-family: var(--serif); font-size: 26px; color: var(--forest); margin: 26px 0; line-height: 1.3; }
.mission span { color: var(--red-earth); }

/* Shop and veggie boxes (filled in by main.js from the shop service) */
.shop { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.product-image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: linear-gradient(135deg, var(--olive), #3d5a22); }
.product:nth-child(4n+2) .product-image { background: linear-gradient(135deg, var(--apricot), var(--rose)); }
.product:nth-child(4n+3) .product-image { background: linear-gradient(135deg, #7f9a3a, #4a6a24); }
.product:nth-child(4n+4) .product-image { background: linear-gradient(135deg, var(--red-earth), var(--plum)); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product h3 { font-size: 20px; }
.product-meta { color: var(--muted); font-size: 15px; margin: 0; }
.product-buy { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--forest); }
.product-add { background: var(--forest); color: var(--cream); border: 0; border-radius: 999px; padding: 9px 16px; font: 700 14px var(--sans); min-height: 40px; cursor: pointer; }
.product-add:disabled { background: var(--muted); cursor: default; }

.boxes { position: relative; color: var(--cream); background: var(--forest); overflow: hidden; }
.boxes-texture { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.boxes-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.boxes h2 { color: var(--cream); }
.boxes .eyebrow { color: var(--apricot); }
.boxes .lede { color: rgba(245, 240, 224, .85); }
.plans { display: grid; gap: 16px; }
.plan { background: rgba(245, 240, 224, .97); color: var(--ink); border-radius: 16px; padding: 24px 26px; display: grid; grid-template-columns: 1fr auto; gap: 6px 20px; align-items: center; text-decoration: none; border: 3px solid transparent; transition: border-color .15s; }
.plan:hover { border-color: var(--apricot); }
.plan h3 { font-size: 22px; }
.plan-meta { color: var(--muted); font-size: 15px; grid-column: 1; margin: 0; }
.plan-amount { grid-row: 1 / span 2; grid-column: 2; text-align: right; font: 600 30px/1 var(--serif); color: var(--red-earth); }
.plan-amount small { display: block; font: 600 13px/1.4 var(--sans); color: var(--muted); }

/* How we farm */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.pillar { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; }
.pillar-icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.pillar p { color: var(--muted); margin: 10px 0 0; font-size: 17px; }

/* Journal cards */
.journal { background: var(--cream); }
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.listing .post-grid { grid-template-columns: repeat(3, 1fr); }
.post-card { background: var(--paper); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(43, 33, 28, .1); }
.post-card-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: #e8e0cc; }
.post-card-noimage { background: linear-gradient(135deg, var(--rose), var(--red-earth)); }
.post-card-body { padding: 24px 26px 28px; }
.post-card time { font-size: 14px; font-weight: 700; color: var(--rust); letter-spacing: .06em; text-transform: uppercase; }
.post-card h3 { font-size: 26px; margin: 8px 0 10px; }
.post-card p { color: var(--muted); margin: 0; font-size: 17px; }
.listing-head { margin-bottom: 48px; }
.pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; color: var(--muted); }
.pagination a { font-weight: 700; color: var(--rust); text-decoration: none; }

/* Visit + newsletter */
.visit-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.panel { border-radius: 20px; padding: 40px; }
.panel.where { background: #fff; border: 1px solid var(--line); }
.panel.where dl { margin: 22px 0 0; display: grid; grid-template-columns: 120px 1fr; gap: 14px 18px; }
.panel.where dt { font-weight: 700; color: var(--forest); }
.panel.where dd { margin: 0; color: var(--muted); }
.panel.where a { color: var(--rust); }
.panel.news { background: var(--red-earth); color: var(--cream); }
.panel.news h2 { color: var(--cream); }
.panel.news .eyebrow { color: var(--apricot); }
.panel.news p { color: rgba(245, 240, 224, .9); }
.news-form { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.news-form input { flex: 1 1 220px; min-height: 50px; border-radius: 999px; border: 0; padding: 0 20px; font: 17px var(--sans); color: var(--ink); }
.news-form button { min-height: 50px; border-radius: 999px; border: 0; padding: 0 24px; font: 700 16px var(--sans); background: var(--forest); color: var(--cream); cursor: pointer; }
.news-form.loading button { opacity: .6; }
.form-msg { display: none; flex-basis: 100%; margin: 6px 0 0; font-weight: 600; }
.news-form.success .form-success, .news-form.error .form-error { display: block; }
.news-form.success input, .news-form.success button { display: none; }

/* Footer */
.site-foot { background: var(--forest); color: rgba(245, 240, 224, .8); padding: 56px 0 40px; font-size: 15px; }
.site-foot-inner { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; align-items: center; }
.site-foot-logo img { height: 46px; width: auto; }
.site-foot .site-title { color: var(--cream); }
.site-foot .nav { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.site-foot a { text-decoration: none; color: var(--cream); }
.site-foot-copy p { margin: 0; }
.site-foot-copy p + p { margin-top: 4px; opacity: .8; }
.site-foot-copy a { border-bottom: 1px solid rgba(245, 240, 224, .35); }
.site-foot-copy a:hover { border-color: var(--apricot); }

/* Posts and pages: a centred column with room for Ghost's wide and full-width cards */
.article { padding: 72px 0 40px; }
.gh-canvas {
    display: grid;
    grid-template-columns:
        [full-start] minmax(var(--gutter), 1fr)
        [wide-start] minmax(0, calc((var(--wrap) - var(--content)) / 2 - var(--gutter)))
        [main-start] min(var(--content), calc(100% - var(--gutter) * 2)) [main-end]
        minmax(0, calc((var(--wrap) - var(--content)) / 2 - var(--gutter))) [wide-end]
        minmax(var(--gutter), 1fr) [full-end];
}
.gh-canvas > * { grid-column: main; }
.gh-canvas > .kg-width-wide, .article-image { grid-column: wide; }
.gh-canvas > .kg-width-full { grid-column: full; }
.article-head h1 { margin: 6px 0 0; }
.article-byline { color: var(--muted); font-size: 15px; margin: 18px 0 0; }
.article-image { margin: 40px 0 0; }
.article-image img { width: 100%; border-radius: 18px; }
.article-image figcaption, .gh-content figcaption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 10px; }
.gh-content { margin-top: 40px; font-size: 19px; line-height: 1.72; }
.gh-content > * + * { margin-top: 1.25em; margin-bottom: 0; }
.gh-content > :first-child { margin-top: 0; }
.gh-content h2 { font-size: 34px; margin-top: 1.6em; }
.gh-content h3 { font-size: 26px; margin-top: 1.5em; }
.gh-content a { color: var(--rust); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gh-content blockquote { margin-left: 0; padding-left: 22px; border-left: 4px solid var(--apricot); font-family: var(--serif); font-size: 23px; color: var(--forest); }
.gh-content img { border-radius: 12px; }
.gh-content .kg-width-full img { border-radius: 0; }
.gh-content hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content pre { background: var(--forest); color: var(--cream); padding: 18px 20px; border-radius: 12px; overflow-x: auto; font-size: 15px; }
.gh-content code { font-size: .88em; }
.gh-content table { border-collapse: collapse; width: 100%; font-size: 16px; }
.gh-content th, .gh-content td { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.page .gh-content { margin-top: 32px; }
.article-comments { margin: 40px 0; }
.error-page h1 { margin-bottom: 8px; }

/* Responsive */
@media (max-width: 1000px) {
    .products { grid-template-columns: repeat(2, 1fr); }
    .story-inner, .boxes-inner, .visit-inner { grid-template-columns: 1fr; gap: 40px; }
    .story-image { max-width: 260px; margin: 0 auto; }
    .pillars { grid-template-columns: 1fr; }
    .listing .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .site-head-inner { min-height: 64px; flex-wrap: wrap; }
    .site-logo img { height: 40px; }
    .menu-btn { display: block; order: 2; }
    .site-nav { order: 3; display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 16px; padding: 8px 0 22px; margin: 0; }
    .site-nav.open { display: flex; }
    .site-nav .nav { flex-direction: column; gap: 10px; }
    .site-nav .nav a { font-size: 18px; }
}
@media (max-width: 760px) {
    body { font-size: 17px; }
    .section { padding: 72px 0; }
    .hero { min-height: 640px; }
    .hero::after { background: linear-gradient(0deg, rgba(20, 34, 12, .88) 10%, rgba(20, 34, 12, .35) 70%, rgba(20, 34, 12, .15)); }
    .hero-inner { padding-bottom: 64px; }
    .post-grid, .listing .post-grid { grid-template-columns: 1fr; }
    .panel { padding: 28px; }
    .panel.where dl { grid-template-columns: 1fr; gap: 4px; }
    .panel.where dd { margin-bottom: 12px; }
    .gh-content { font-size: 18px; }
}
@media (max-width: 480px) {
    :root { --gutter: 16px; }
    .products { gap: 12px; }
    .product-body { padding: 12px 12px 14px; }
    .product h3 { font-size: 17px; }
    .product-meta { font-size: 13.5px; }
    .product-add { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .post-card { transition: none; }
}
