:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #1d1b18;
  --muted: #6d675e;
  --line: #e6e1d8;
  --accent: #40682c;          /* pine green from the logo */
  --accent-ink: #ffffff;
  --ok: #0f2c09;              /* lettering green from the logo */
  --brand: #0f2c09;
  --progress: #579393;        /* mountain teal from the logo */
  --warn: #a12d2d;
  --radius: 6px;
  --max: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #151412; --surface: #1e1c19; --ink: #f1ede6; --muted: #a39c90;
    --line: #2f2c27; --accent: #9cc283; --accent-ink: #151412; --ok: #b9dca5;
      --brand: #f1ede6; --progress: #7fbcb8; --warn: #ef8a7e;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 Inter, system-ui, sans-serif;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }

/* Announcement + header */
.announce {
  background: #1c3a14; color: #fff; text-align: center; font-size: .9rem;
  padding: 9px 16px; font-weight: 500;
}
header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.brand { font-family: Fraunces, serif; font-size: 1.35rem; font-weight: 600; text-decoration: none; white-space: nowrap; color: var(--brand); }
nav { display: flex; align-items: center; }
nav a { margin-left: 24px; text-decoration: none; color: var(--muted); font-size: .95rem; }
nav a:hover { color: var(--ink); }
nav a.cart-link { color: var(--ink); font-weight: 500; }
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink); font-size: .75rem; line-height: 20px; text-align: center;
}

/* Hero */
.hero { padding-top: 88px; padding-bottom: 56px; }
.hero h1 {
  font-family: Fraunces, serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.05; margin: 0 0 16px; letter-spacing: -.02em;
}
.hero p { color: var(--muted); font-size: 1.15rem; margin: 0; max-width: 40ch; }
/* Home page: logo centered at the top */
.hero-logo { text-align: center; padding-top: 48px; padding-bottom: 40px; }
.hero-logo h1 { margin: 0 auto 12px; line-height: 0; }
.hero-logo h1 img { width: 100%; max-width: 600px; height: auto; margin: 0 auto; }
.hero-logo p { margin: 0 auto; max-width: none; }
.hero-logo .hero-cta { margin-top: 22px; }
.hero-photo {
  display: block; width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12);
}
#work { scroll-margin-top: 72px; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 28px; }
.card { display: block; text-decoration: none; color: inherit; }
.frame {
  aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--line);
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}
.frame > * { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Real photos keep their own shape (portrait or landscape) instead of being cropped */
.frame:has(> img) { aspect-ratio: auto; }
.frame > img { height: auto; }
/* In the gallery, every card sits on an equal square mat so titles line up */
.card .frame:has(> img) {
  aspect-ratio: 1; padding: 22px; display: flex; align-items: center; justify-content: center;
  background: #efe9df; box-shadow: none;
}
.card .frame > img {
  width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 8px 20px rgba(0,0,0,.10);
}
@media (prefers-color-scheme: dark) { .card .frame:has(> img) { background: #26231f; } }
.card .frame > * { transition: transform .5s ease; }
.card:hover .frame > * { transform: scale(1.03); }
.card h3 { font-family: Fraunces, serif; font-weight: 400; font-size: 1.2rem; margin: 2px 0 2px; }
.card .meta { color: var(--muted); font-size: .9rem; }
.sold { color: var(--warn); font-weight: 500; }
.tag {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600;
  color: var(--accent); margin-top: 14px;
}

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-family: Fraunces, serif; font-weight: 400; font-size: 2rem; margin: 0 0 20px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.two-col p { color: var(--muted); margin-top: 0; }
.pricing-note { font-size: 1.05rem; margin: -8px 0 28px; max-width: 60ch; }
.custom-note { margin: 28px 0 0; color: var(--muted); font-size: .95rem; }

/* Forms + buttons */
form { display: grid; gap: 14px; }
label { font-size: .9rem; font-weight: 500; display: grid; gap: 6px; }
input, textarea {
  font: inherit; padding: 10px 12px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.btn {
  display: inline-block; font: inherit; font-weight: 600; text-decoration: none; text-align: center;
  padding: 12px 22px; border-radius: var(--radius); border: 0; cursor: pointer;
  background: var(--accent); color: var(--accent-ink);
}
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.block { display: block; width: 100%; }

/* Coming soon */
.soon { background: var(--surface); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  font-weight: 500; font-size: .95rem;
}

/* ---------- Card product page ---------- */
.crumb { display: inline-block; margin: 28px 0 20px; color: var(--muted); text-decoration: none; font-size: .92rem; }
.crumb:hover { color: var(--ink); }
.product { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; padding-bottom: 72px; }
.product .frame { position: sticky; top: 88px; }
.product h1 { font-family: Fraunces, serif; font-weight: 400; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.1; margin: 4px 0 8px; }
.details { font-size: .92rem; color: var(--muted); margin: 0 0 4px; }
.step { margin-top: 28px; }
.step h2 { font-family: Inter, system-ui, sans-serif; font-size: 1rem; font-weight: 600; margin: 0 0 12px; }

.packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice {
  font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.choice strong { display: block; font-weight: 600; }
.choice small { color: var(--muted); font-size: .82rem; }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 14px; }
.modes .choice { text-align: center; font-size: .9rem; padding: 10px 8px; }

.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px; }
.counter { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; font-weight: 600; }
.counter.done { color: var(--ok); }
.meter { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.meter > div { height: 100%; background: var(--progress); transition: width .2s ease; }
.counter.done + .meter > div { background: var(--ok); }
.picklist { list-style: none; margin: 0; padding: 0; }
.picklist li { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.picklist li + li { border-top: 1px solid var(--line); }
.thumb { width: 44px; height: 55px; flex: none; border-radius: 4px; overflow: hidden; background: var(--line); }
.thumb > * { width: 100%; height: 100%; object-fit: cover; display: block; }
.picklist .name { flex: 1; min-width: 0; }
.picklist .qty-fixed { font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.stepper button {
  font: inherit; font-size: 1.1rem; width: 40px; height: 40px; border: 0; background: transparent;
  color: var(--ink); cursor: pointer;
}
.stepper button:disabled { opacity: .3; cursor: not-allowed; }
.stepper output { min-width: 28px; text-align: center; font-weight: 600; }

.buybar { margin-top: 24px; display: grid; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; }
.total .amount { font-size: 1.6rem; font-weight: 600; }
.hint { font-size: .9rem; color: var(--muted); min-height: 1.4em; margin: 0; }
.added { color: var(--ok); font-weight: 500; }

/* ---------- Cart ---------- */
.cart { padding-top: 8px; padding-bottom: 72px; }
.cart h1 { font-family: Fraunces, serif; font-weight: 400; font-size: 2.4rem; margin: 0 0 24px; }
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.line h3 { margin: 0; font-size: 1.05rem; font-weight: 600; }
.line ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }
.line .line-price { text-align: right; font-weight: 600; }
.line .line-price small { display: block; color: var(--muted); font-weight: 400; }
.line .controls { display: flex; gap: 16px; align-items: center; }
.linkbtn { font: inherit; font-size: .88rem; background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.summary { position: sticky; top: 88px; }
.summary .row { display: flex; justify-content: space-between; margin: 6px 0; }
.summary .row.big { font-size: 1.25rem; font-weight: 600; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.error { color: var(--warn); font-size: .92rem; }

footer { padding: 40px 0; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 760px) {
  nav a { margin-left: 14px; white-space: nowrap; }
  nav a.hide-sm { display: none; }
  .brand { font-size: 1.1rem; }
  .hero { padding-top: 56px; padding-bottom: 36px; }
  .hero-logo { padding-top: 24px; padding-bottom: 28px; }
  .two-col, .product, .cart-layout { grid-template-columns: 1fr; gap: 28px; }
  .product .frame, .summary { position: static; }
  .product .frame { max-width: 420px; }
  .modes { grid-template-columns: 1fr; }
}
