/* Wildwood Printing — one stylesheet. Chosen look: WOODLAND.
   Classic and Modern are kept for reference (?theme=classic / ?theme=modern); each look only changes the variables below. */
/* Only the two fonts the Woodland look uses (Classic/Modern previews fall back to Georgia/system fonts). */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Lora:wght@500;700&display=swap");

[data-theme="classic"] {
  --bg: #fbf8f2; --surface: #ffffff; --text: #1f2633; --muted: #5b6475;
  --brand: #1d3557; --brand-ink: #ffffff; --accent: #b5452b; --line: #e4dccd;
  --hero-bg: linear-gradient(135deg, #1d3557 0%, #274b78 100%); --hero-ink: #ffffff;
  --head-font: "Fraunces", Georgia, serif; --body-font: "Inter", system-ui, sans-serif;
  --radius: 6px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(29,53,87,.07);
  --ph-a: #e9e1d2; --ph-b: #f4efe6;
}
[data-theme="modern"] {
  --bg: #f4f5f7; --surface: #ffffff; --text: #111318; --muted: #5c6370;
  --brand: #111318; --brand-ink: #ffffff; --accent: #ff4f1f; --line: #e1e4ea;
  --hero-bg: #111318; --hero-ink: #ffffff;
  --head-font: "Space Grotesk", system-ui, sans-serif; --body-font: "Inter", system-ui, sans-serif;
  --radius: 14px; --shadow: 0 2px 6px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06);
  --ph-a: #00b3e6; --ph-b: #e6007e;
}
/* Woodland = the chosen look, so it is also the default before any script runs */
:root:not([data-theme]), [data-theme="woodland"] {
  --bg: #f3efe6; --surface: #fffdf8; --text: #23291f; --muted: #5d6656;
  --brand: #2f5d3a; --brand-ink: #fffdf8; --accent: #c98a2c; --line: #ddd4c2;
  /* accent-ink = text ON a gold button (dark, 5:1); accent-text = gold-colored text on light backgrounds (4.8:1) */
  --accent-ink: #1f2419; --accent-text: #8a5a12;
  --hero-bg: linear-gradient(160deg, #2f5d3a 0%, #1f3f27 100%); --hero-ink: #fffdf8;
  --head-font: "Lora", Georgia, serif; --body-font: "Inter", system-ui, sans-serif;
  --radius: 10px; --shadow: 0 1px 3px rgba(35,41,31,.08), 0 6px 18px rgba(47,93,58,.08);
  --ph-a: #ddd0b2; --ph-b: #ece4d1;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body-font); }
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { font-family: var(--head-font); line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main { padding-bottom: 64px; }
section { padding: 48px 0; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; font-weight: 700; color: var(--accent-text, var(--accent)); margin: 0 0 .3em; }
.fine { font-size: .85rem; color: var(--muted); }

/* Buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink, #fff); text-decoration: none; font-weight: 700;
  padding: .8em 1.4em; border-radius: var(--radius); border: 0; cursor: pointer; font: 700 1rem var(--body-font); }
.btn:hover { filter: brightness(1.08); }
.btn-small { padding: .5em 1em; font-size: .9rem; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }

/* Demo bar + theme switch */
.demo-bar { background: #2b2b2b; color: #eee; font-size: .8rem; display: flex; justify-content: space-between;
  align-items: center; gap: 12px; padding: 6px 16px; flex-wrap: wrap; }
.theme-switch { display: flex; gap: 6px; align-items: center; }
.theme-switch button { font: 600 .8rem var(--body-font); border: 1px solid #777; background: transparent; color: #eee;
  padding: 4px 10px; border-radius: 999px; cursor: pointer; }
.theme-switch button[aria-pressed="true"] { background: #fff; color: #111; border-color: #fff; }

/* Header */
#site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-mark { width: 40px; height: 40px; border-radius: var(--radius); background: var(--brand); color: var(--brand-ink);
  display: grid; place-items: center; font: 700 1.3rem var(--head-font); }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--head-font); font-size: 1.15rem; }
.brand-text small { color: var(--muted); font-size: .78rem; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; }
.main-nav a[aria-current="page"] { color: var(--accent-text, var(--accent)); }
.menu-toggle { display: none; font: 600 .95rem var(--body-font); background: none; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 6px 12px; color: var(--text); }
@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface);
    flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .main-nav a:not(.btn) { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .main-nav .btn { margin-top: 12px; text-align: center; }
  .nav-open .main-nav { display: flex; }
  .header-inner { position: relative; }
}

/* Hero */
.hero { background: var(--hero-bg); color: var(--hero-ink); padding: 72px 0; }
.hero .lead { color: inherit; opacity: .85; max-width: 38em; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
[data-theme="modern"] .hero h1 span { color: var(--accent); }
[data-theme="classic"] .hero h1 span, [data-theme="woodland"] .hero h1 span { font-style: italic; color: #ffd9a8; }

/* How it works */
.how { background: var(--surface); border-bottom: 1px solid var(--line); }
.how-steps { list-style: none; padding: 0; margin: 24px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.how-steps li { display: flex; gap: 14px; align-items: flex-start; }
.how-steps .step-num { flex: none; width: 40px; height: 40px; font-size: 1.1rem; }
.how-steps h3 { margin-bottom: .25em; }
.how-steps p { margin: 0; color: var(--muted); }
.how .btn { margin: 0 8px 8px 0; }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature h3 { font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); }

/* Product cards (one template) */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform .15s ease; }
.card:hover { transform: translateY(-3px); }
.card-link { color: inherit; text-decoration: none; display: flex; flex-direction: column; height: 100%; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.card-body p { margin: 0 0 .6em; }
.card-body .sizes { font-size: .82rem; color: var(--muted); }
.price { margin-top: auto !important; font-size: .9rem; color: var(--muted); }
.price strong { font-size: 1.25rem; color: var(--text); }
.photo-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: repeating-linear-gradient(45deg, var(--ph-a) 0 14px, var(--ph-b) 14px 28px); color: var(--text); padding: 12px; }
[data-theme="modern"] .photo-placeholder { background: linear-gradient(135deg, var(--ph-a), var(--ph-b) 60%, #ffe100); color: #fff; }
.photo-placeholder span { font: 700 1.1rem var(--head-font); background: rgba(255,255,255,.85); color: var(--text); padding: 4px 10px; border-radius: 4px; }
.photo-placeholder small { margin-top: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .8; }
.card-photo { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.filters button { font: 600 .88rem var(--body-font); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* Product detail (one template) */
.crumbs { font-size: .9rem; color: var(--muted); margin: 24px 0; }
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.detail-photo { aspect-ratio: 1; width: 100%; border-radius: var(--radius); object-fit: cover; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; padding: 18px 0; margin: 20px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); }
.big-price { font-size: 1.5rem; color: var(--text); }
@media (max-width: 760px) { .detail { grid-template-columns: 1fr; gap: 20px; } }

/* Page header band */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 40px 0 28px; }
.page-head p { margin: 0; }

/* Two-column content */
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.map-placeholder { aspect-ratio: 16/10; border-radius: var(--radius); }

/* Forms */
form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { form .row { grid-template-columns: 1fr; } }
label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 14px; }
label span.opt { font-weight: 400; color: var(--muted); }
input, select, textarea { display: block; width: 100%; margin-top: 6px; font: 1rem var(--body-font); padding: 10px 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 110px; resize: vertical; }
.notice { background: var(--surface); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 16px; margin-top: 20px; }
.notice.success { border-style: solid; }
.notice pre { white-space: pre-wrap; word-break: break-word; font-size: .82rem; background: var(--bg); padding: 12px; border-radius: var(--radius); overflow: auto; }
.endpoint-box { font-size: .85rem; background: var(--bg); border: 1px dashed var(--line); padding: 10px 12px; border-radius: var(--radius); }
.endpoint-box code { word-break: break-all; }

/* Order page */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
/* Phones/tablets: summary moves below the form, and a slim price bar stays at the bottom of the screen. */
.mobile-bar { display: none; }
@media (max-width: 860px) {
  .order-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; align-items: center;
    justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
  .mobile-bar .mb-price { line-height: 1.2; }
  .mobile-bar .mb-price strong { font-size: 1.25rem; display: block; }
  .mobile-bar .mb-price span { font-size: .8rem; color: var(--muted); }
  body[data-page="order"] main { padding-bottom: 96px; }
}
.steps fieldset { border: 1px solid var(--line); margin: 0 0 20px; }
.steps legend { font: 700 1.15rem var(--head-font); padding: 0 8px; display: flex; align-items: center; gap: 8px; }
.step-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); font: 700 .9rem var(--body-font); }
.order-summary { position: sticky; top: 90px; }
.order-summary .specs { margin: 12px 0; }
.pay-box { border-top: 1px solid var(--line); padding-top: 12px; }
.pay-box p { margin: 4px 0 0; }
.drop input[type=file] { padding: 18px; border-style: dashed; background: var(--surface); cursor: pointer; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check-row input { width: auto; margin-top: 4px; }
.form-error { color: #b42318; font-weight: 600; margin-bottom: 12px; }
.form-error:empty { display: none; }
.ts-box { margin: 4px 0 14px; min-height: 65px; } /* Cloudflare "I'm human" check */
.btn[disabled] { opacity: .6; cursor: progress; }
.file-result { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; margin-bottom: 12px;
  border: 1px solid var(--line); border-left: 5px solid #2e7d32; border-radius: var(--radius); background: var(--bg); }
.file-result.warn { border-left-color: #c77700; }
.file-result.fail { border-left-color: #b42318; }
.file-thumb { width: 120px; max-height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; aspect-ratio: auto; }
div.file-thumb { height: 90px; }
@media (max-width: 500px) { .file-result { grid-template-columns: 1fr; } }
.checks { list-style: none; padding: 0; margin: 8px 0 0; font-size: .88rem; }
.checks li { display: flex; gap: 8px; margin-bottom: 4px; }
.checks li span { flex: none; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  font-size: .7rem; font-weight: 700; color: #fff; margin-top: 2px; }
.checks .pass span { background: #2e7d32; } .checks .warn span { background: #c77700; }
.checks .fail span { background: #b42318; } .checks .manual span { background: #5b6475; }

/* Footer */
#site-footer { background: var(--brand); color: var(--brand-ink); padding: 36px 0 20px; }
#site-footer a { color: inherit; }
#site-footer .fine { color: inherit; opacity: .7; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.footer-grid p { margin: .4em 0 0; }
