/* PlantPosters — parchment, ink and botanical green, after the plates themselves. */
:root {
  color-scheme: light;
  --paper: #f4eedf;
  --paper-2: #ece3cc;
  --paper-3: #e3d8bb;
  --white: #fffdf7;
  --ink: #1c2419;
  --ink-2: #4b5547;
  --ink-3: #7a8275;
  --green: #2e5a3a;
  --green-2: #244a2f;
  --green-tint: #dfe8dc;
  --magenta: #b23a64;
  --magenta-tint: #f3dde6;
  --line: #d8ccb0;
  --shadow: 0 1px 2px rgba(28, 36, 25, .08), 0 12px 32px -12px rgba(28, 36, 25, .25);
  --radius: 6px;
  --serif: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Source Sans Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 600; line-height: 1.1; margin: 0 0 .35em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.latin { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.15em; color: var(--ink-2); }
.set-line { margin: -.2rem 0 .9rem; color: var(--ink-3); font-size: .95rem; }
.set-line a { font-weight: 600; }
.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin: 0 0 .6em; }
.muted { color: var(--ink-3); }
.small { font-size: .9rem; }
.wrap { width: min(var(--wrap), 100% - 2rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main { flex: 1; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 20; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 600; font-size: 1.55rem; letter-spacing: -.01em; }
.brand-mark { width: 30px; height: 30px; color: var(--green); flex: none; }
.site-nav { display: flex; align-items: center; gap: .25rem; }
.site-nav a { text-decoration: none; color: var(--ink); padding: .5rem .8rem; border-radius: var(--radius); font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
.site-nav .basket-link { background: var(--green); color: var(--white); padding-inline: .9rem; display: inline-flex; align-items: center; gap: .45rem; }
.site-nav .basket-link:hover { background: var(--green-2); color: var(--white); }
.basket-count { display: inline-grid; place-items: center; min-width: 1.35em; height: 1.35em; padding-inline: .3em; border-radius: 999px; background: var(--white); color: var(--green); font-size: .8rem; font-weight: 700; line-height: 1; }
@media (max-width: 560px) {
  .site-header .wrap { height: 60px; }
  .brand { font-size: 1.3rem; }
  .site-nav a { padding: .45rem .55rem; font-size: .95rem; }
}

/* Footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2rem 0 2.5rem; color: var(--ink-2); font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-footer h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 600; margin-bottom: .4em; color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .2em 0; }
.site-footer a { color: inherit; }
@media (max-width: 720px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* Buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 1px solid var(--green); background: var(--green); color: var(--white); font: inherit; font-weight: 600; padding: .7rem 1.25rem; border-radius: var(--radius); cursor: pointer; text-decoration: none; line-height: 1.2; transition: background .15s, transform .05s; }
.btn:hover { background: var(--green-2); border-color: var(--green-2); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { background: var(--green-tint); color: var(--green-2); }
.btn-small { padding: .45rem .9rem; font-size: .95rem; }
.btn-block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.chip:hover { border-color: var(--green); color: var(--green-2); }
.chip[aria-current="true"], .chip.active { background: var(--green); border-color: var(--green); color: var(--white); }
.chip .count { color: var(--ink-3); font-weight: 400; }
.chip.active .count { color: rgba(255,255,255,.8); }
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; background: var(--magenta-tint); color: var(--magenta); font-weight: 600; font-size: .85rem; letter-spacing: .02em; }
.badge-green { background: var(--green-tint); color: var(--green-2); }
.strike { text-decoration: line-through; color: var(--ink-3); font-weight: 400; }

/* Hero (home) */
.hero { padding: 2.5rem 0 1rem; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 800px) { .hero-grid { grid-template-columns: 1fr; } }
.frame { background: var(--white); padding: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 3px; }
.frame img { width: 100%; aspect-ratio: var(--ar, 1499 / 2473); object-fit: cover; background: var(--paper-2); }
.frame-link { display: block; }
.hero-copy h1 { margin-top: .4rem; }
.meta-line { color: var(--ink-2); margin: .4rem 0 1rem; }
.meta-line b { font-weight: 600; color: var(--ink); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0 1.25rem; }

/* Price list / size picker */
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0; }
@media (max-width: 420px) { .sizes { grid-template-columns: 1fr; } }
.size { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); cursor: pointer; }
.size input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.size:has(input:checked) { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--green-tint); }
.size:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.size .size-code { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; line-height: 1; }
.size .size-dims { font-size: .82rem; color: var(--ink-3); }
.size .size-price { font-weight: 600; margin-top: .2rem; }
.quick-buy { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: 1rem 0 .75rem; }
@media (max-width: 420px) { .quick-buy { grid-template-columns: 1fr; } }
.quick-buy .btn { flex-direction: column; gap: .1rem; padding: .7rem .5rem; }
.quick-buy .btn small { font-weight: 500; opacity: .9; font-size: .85rem; }
.quick-buy .btn .strike { color: rgba(255, 253, 247, .7); }
.facts.hero-facts { grid-template-columns: 1fr; gap: .35rem; margin: .25rem 0 1rem; font-size: .98rem; color: var(--ink-2); }
.buy-row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin: 1rem 0; }
.qty { display: inline-flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.qty button { border: 0; background: transparent; width: 2.3rem; font: inherit; font-size: 1.2rem; cursor: pointer; color: var(--green); }
.qty button:hover { background: var(--paper-2); }
.qty input { width: 3rem; border: 0; text-align: center; font: inherit; background: transparent; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.offer-note { color: var(--ink-2); font-size: .95rem; }

/* Sections & cards */
.section { padding: 2.5rem 0 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.4rem; }
.card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-image { display: block; background: var(--paper-2); padding: 12px 12px 0; }
.card-image img { width: 100%; aspect-ratio: 1499 / 2473; object-fit: cover; border: 1px solid var(--line); background: var(--paper-2); }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.card-body h3 { font-size: 1.3rem; margin: .1rem 0 0; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a:hover { color: var(--green-2); }
.card-body .latin { font-size: 1rem; }
.card-body .eyebrow { margin: 0; font-size: .72rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .7rem; }
.card-foot .price { font-weight: 600; }
.card .badge { position: absolute; }
.card { position: relative; }
.card .badge { top: 20px; left: 20px; z-index: 1; }

/* Collections block */
.collection-groups { display: grid; gap: 1rem 2rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.collection-group h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .5rem; }

/* Pillars (how it works) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; }
.pillar { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; }
.pillar h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.pillar p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.pillar .glyph { width: 34px; height: 34px; color: var(--green); margin-bottom: .6rem; }

/* Poster page */
.poster-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; padding-top: 2rem; }
@media (max-width: 800px) { .poster-grid { grid-template-columns: 1fr; } }
.breadcrumb { font-size: .92rem; color: var(--ink-3); padding-top: 1.25rem; }
.breadcrumb a { color: inherit; }
.specs { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 1.25rem 0; font-size: .96rem; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.prose { max-width: 68ch; font-size: 1.08rem; }
.prose p { margin-bottom: 1.1em; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem 1.5rem; }
.facts li { padding-left: 1.4rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: .6rem; height: .6rem; border-radius: 50%; background: var(--green); }
.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; padding-top: 2.5rem; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 1.5rem; } }
.aside-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.aside-box h3 { font-size: 1.2rem; }
.credit { font-size: .9rem; color: var(--ink-3); }

/* Archive */
.filters { margin: 1.25rem 0 .5rem; display: grid; gap: .8rem; }
.filter-group { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.filter-group .label { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; min-width: 7.5rem; }
.collection-intro { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; }
.collection-intro h2 { font-size: 1.5rem; margin-bottom: .2rem; }
.collection-intro p { margin: 0; color: var(--ink-2); }

/* About */
.about-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: center; padding-top: 2.5rem; }
@media (max-width: 800px) { .about-hero { grid-template-columns: 1fr; gap: 1.5rem; } }
.about-hero .prose { font-size: 1.15rem; }

/* Basket */
.basket-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2.5rem; align-items: start; padding-top: 2rem; }
@media (max-width: 860px) { .basket-grid { grid-template-columns: 1fr; } }
.lines { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
.line img { width: 72px; aspect-ratio: 1499 / 2473; object-fit: cover; border: 1px solid var(--line); }
.line h3 { font-size: 1.2rem; margin: 0; }
.line .latin { font-size: .95rem; }
.line-controls { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .4rem; }
.line-remove { background: none; border: 0; color: var(--ink-3); font: inherit; font-size: .9rem; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.line-remove:hover { color: var(--magenta); }
.line-price { text-align: right; font-weight: 600; white-space: nowrap; }
.line-price .small { font-weight: 400; display: block; }
.summary { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; position: sticky; top: 84px; }
.summary h2 { font-size: 1.5rem; }
.totals { display: grid; gap: .35rem; margin: .5rem 0 1rem; }
.totals div { display: flex; justify-content: space-between; gap: 1rem; }
.totals .saving { color: var(--magenta); }
.totals .grand { border-top: 1px solid var(--line); padding-top: .6rem; margin-top: .3rem; font-weight: 700; font-size: 1.15rem; }
.nudge { background: var(--green-tint); color: var(--green-2); border-radius: var(--radius); padding: .6rem .8rem; font-size: .92rem; margin-bottom: 1rem; }
.form { display: grid; gap: .8rem; }
.field { display: grid; gap: .3rem; }
.field label { font-size: .9rem; font-weight: 600; }
.field input { font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); width: 100%; }
.field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; } }
.form-error { color: var(--magenta); font-weight: 600; margin: 0; min-height: 1.4em; }
.empty { text-align: center; padding: 3rem 1rem; background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Order confirmation */
.confirm { max-width: 720px; padding-top: 2.5rem; }
.confirm .ref { font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: .04em; }
.order-items { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .5rem; }
.order-items li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--white); padding: .8rem 1.1rem; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; gap: 1rem; align-items: center; opacity: 0; transition: opacity .2s, transform .2s; z-index: 50; max-width: calc(100% - 2rem); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast a { color: var(--white); font-weight: 600; white-space: nowrap; }

/* States */
.loading { color: var(--ink-3); padding: 2rem 0; }
.error-box { background: var(--magenta-tint); color: var(--magenta); border-radius: var(--radius); padding: 1rem 1.25rem; }

/* Sign-up forms */
.subscribe { margin: .6rem 0 0; }
.subscribe-row { display: flex; gap: .5rem; }
.subscribe-row input { flex: 1; min-width: 0; font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.subscribe-row input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.subscribe-compact .subscribe-row input { padding: .45rem .6rem; font-size: .95rem; }
.subscribe-msg { margin: .4rem 0 0; min-height: 1.2em; color: var(--green-2); }
.subscribe-msg.is-error { color: var(--magenta); }
.pillar-signup p { margin-bottom: .2rem; }

/* Admin */
.table-wrap { overflow-x: auto; margin-top: 1rem; }
.admin-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); font-size: .95rem; }
.admin-table th, .admin-table td { text-align: left; vertical-align: top; padding: .6rem .7rem; border-bottom: 1px solid var(--line); }
.admin-table th { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.admin-table select { font: inherit; padding: .3rem .4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
