@import url('fonts.css');

:root {
  --ink: #1d2238;
  --ink-light: #262c47;
  --cream: #f6f3ec;
  --cream2: #efeadf;
  --cream3: #f1ece1;
  --paper: #fff;
  --border: #e2ddd0;
  --border2: #eee9de;
  --border3: #d6d0c2;
  --orange: #e8743b;
  --orange-hover: #f08a52;
  --rust: #b8531f;
  --yellow: #f3c64b;
  --green: #2f6f5e;
  --green-light: #bfe0d3;
  --muted: #5b5f70;
  --muted2: #454a5c;
  --muted3: #a9a8b8;
  --input-bg: #fbfaf6;
  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--rust); }
input, select, textarea, button { font-family: inherit; font-size: 16px; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); }
p { text-wrap: pretty; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0; z-index: 100; text-decoration: none; font-weight: 700; }
.skip-link:focus { left: 0; }

/* photo placeholders → real images */
.ph { position: relative; overflow: hidden; background: #e9e3d6; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* nav */
.nav-link { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink); transition: background .15s ease; }
.nav-link:hover { background: #ebe5d8; }
.nav-link.active { background: #ebe5d8; }

.btn-header-cta { background: var(--orange); color: var(--ink); text-decoration: none; font-weight: 700; padding: 11px 18px; border-radius: 999px; font-size: 15px; transition: background .15s ease; white-space: nowrap; }
.btn-header-cta:hover { background: var(--orange-hover); color: var(--ink); }

.cart-btn { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--ink); background: transparent; border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; color: var(--ink); }
.cart-btn:hover { background: #ebe5d8; }
.cart-count { min-width: 24px; height: 24px; border-radius: 999px; background: var(--ink); color: var(--cream); font-size: 13px; display: flex; align-items: center; justify-content: center; padding: 0 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; border-radius: 999px; padding: 16px 26px; border: none; cursor: pointer; font-size: 16px; transition: background .15s ease, opacity .15s ease; }
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { background: var(--ink-light); color: var(--cream); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); padding: 14.5px 26px; }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-orange:hover { background: var(--orange-hover); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { filter: brightness(0.96); }
.btn-ghost { background: none; border: none; padding: 0; font-weight: 700; cursor: pointer; text-decoration: underline; color: var(--ink); }

/* subject cards */
.subject-card { text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 10px; min-height: 190px; transition: border-color .15s ease; }
.subject-card:hover { border-color: var(--ink); color: var(--ink); }

/* pills / chips */
.pill { border: 1.5px solid var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 600; cursor: pointer; background: transparent; color: var(--ink); text-decoration: none; display: inline-block; transition: background .15s ease, color .15s ease; }
.pill:hover { background: #ebe5d8; }
.pill.is-active { background: var(--ink); color: var(--cream); }
.tag { font-size: 13px; padding: 4px 10px; border-radius: 999px; background: var(--cream3); font-weight: 600; }

/* product / add to cart */
.btn-add { background: var(--orange); border: none; border-radius: 999px; padding: 10px 16px; font-weight: 700; cursor: pointer; color: var(--ink); transition: background .15s ease; }
.btn-add:hover { background: var(--orange-hover); }

/* footer links */
.footer-link { color: var(--muted3); text-decoration: none; }
.footer-link:hover { color: #fff; }

/* accordion (FAQ + blog) */
details.acc { border-bottom: 1px solid var(--border3); }
details.acc summary { list-style: none; width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; cursor: pointer; font-weight: 700; font-size: 19px; color: var(--ink); }
details.acc summary::-webkit-details-marker { display: none; }
details.acc .acc-icon { font-size: 24px; color: var(--rust); flex: none; font-family: var(--font-body); }
details.acc[open] .acc-icon::before { content: '\2212'; }
details.acc:not([open]) .acc-icon::before { content: '+'; }
details.acc .acc-body { margin: 0 0 22px; color: var(--muted2); max-width: 760px; }

article.blog-card details.acc { border: none; }
article.blog-card summary { padding: 0; font-weight: 700; text-decoration: underline; cursor: pointer; color: var(--ink); font-size: 16px; list-style: none; }
article.blog-card summary::-webkit-details-marker { display: none; }
article.blog-card .acc-body { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; padding-top: 6px; border-top: 1px solid var(--border2); }
article.blog-card .acc-body p { margin: 0; color: var(--muted2); }

/* checkout / forms */
.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { padding: 12px 14px; border: 1.5px solid var(--border3); border-radius: 12px; background: var(--input-bg); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.check-row { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.check-row input { margin-top: 4px; accent-color: var(--ink); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ship-opt { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; }
.ship-opt input { accent-color: var(--ink); }
.ship-opt.is-active { border-color: var(--ink); }

/* qty stepper */
.qty-btn { width: 32px; height: 32px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; cursor: pointer; font-weight: 700; }
.qty-btn:hover { background: var(--cream2); }

/* cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 60; display: none; justify-content: flex-end; }
.cart-drawer.is-open { display: flex; }
.cart-drawer-backdrop { position: absolute; inset: 0; background: rgba(29,34,56,.45); border: none; padding: 0; cursor: pointer; }
.cart-drawer-panel { position: relative; width: min(440px,100%); height: 100%; background: var(--cream); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.2); }
.cart-drawer-close { width: 40px; height: 40px; border-radius: 999px; border: 1.5px solid var(--ink); background: none; cursor: pointer; font-size: 18px; color: var(--ink); }
.cart-line { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cart-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 13px; text-decoration: underline; flex: none; }

/* toast */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 70; background: var(--green); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.2); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--border3); border-radius: 22px; padding: 24px; box-shadow: 0 20px 60px rgba(29,34,56,.25); display: none; }
.cookie-banner.is-visible { display: block; }
.cookie-settings { display: none; gap: 8px; margin-bottom: 14px; font-size: 15px; }
.cookie-settings.is-visible { display: grid; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 640px) {
  .top-bar-inner { justify-content: center; text-align: center; }
}
