/* ==========================================================================
   Custard Monster: foundation (locked design "Porcelain and ink with depth")
   Tokens, fonts, base type, links, buttons, forms, notices, tables.
   Reference: design/LOCKED/2026-11-21/design-values.md
   ========================================================================== */

@font-face{font-family:"Fraunces";src:url(../fonts/fraunces-latin-400-500.woff2) format("woff2");font-weight:400 500;font-style:normal;font-display:swap}
@font-face{font-family:"Inter";src:url(../fonts/inter-latin-400-700.woff2) format("woff2");font-weight:400 700;font-style:normal;font-display:swap}
/* Metric-matched fallbacks keep the swap from reflowing text */
@font-face{font-family:"Fraunces Fallback";src:local("Georgia");size-adjust:98%;ascent-override:92%;descent-override:24%}
@font-face{font-family:"Inter Fallback";src:local("Arial");size-adjust:107%;ascent-override:90%;descent-override:22%;line-gap-override:0%}

:root{
  --cm-page:#FFFFFF; --cm-band:#F3F4F6; --cm-ink:#12151C; --cm-ink-deep:#0B0D12; --cm-slate:#4B5563;
  --cm-rule:#E5E7EB; --cm-control:#6B7280; --cm-cherry:#12151C; --cm-cherry-hover:#000000; --cm-ok:#1E6B30; --cm-error:#12151C;
  --cm-on-ink-2:#C9CDD6;
  --cm-head:"Fraunces","Fraunces Fallback",Georgia,serif; --cm-ui:"Inter","Inter Fallback",system-ui,sans-serif;
  --cm-gutter:clamp(16px,4vw,48px); --cm-max:1280px;
  --cm-r1:8px; --cm-r2:10px; --cm-r3:12px; --cm-pill:8px;
  --cm-sh-1:0 1px 2px rgba(18,21,28,.04);
  --cm-sh-2:0 1px 2px rgba(18,21,28,.04),0 10px 28px -16px rgba(18,21,28,.14);
  --cm-sh-3:0 1px 2px rgba(18,21,28,.05),0 18px 40px -20px rgba(18,21,28,.20);

  /* Old palettes re-pointed at the locked design, so existing Elementor and Astra content adopts it.
     Gallery direction (2026-11-23): no red anywhere except the logo; the old cherry token now points at ink. */
  --ast-global-color-0:#12151C; --ast-global-color-1:#12151C; --ast-global-color-2:#12151C; --ast-global-color-3:#4B5563;
  --ast-global-color-4:#F3F4F6; --ast-global-color-5:#FFFFFF; --ast-global-color-6:#E5E7EB; --ast-global-color-7:#12151C; --ast-global-color-8:#12151C;
  --e-global-color-astglobalcolor0:#12151C; --e-global-color-astglobalcolor1:#12151C; --e-global-color-astglobalcolor2:#12151C; --e-global-color-astglobalcolor3:#4B5563;
  --e-global-color-astglobalcolor4:#F3F4F6; --e-global-color-astglobalcolor5:#FFFFFF; --e-global-color-astglobalcolor6:#E5E7EB; --e-global-color-astglobalcolor7:#12151C; --e-global-color-astglobalcolor8:#12151C;
  --e-global-color-primary:#12151C; --e-global-color-secondary:#4B5563; --e-global-color-text:#4B5563; --e-global-color-accent:#12151C;
  --e-global-typography-primary-font-family:"Fraunces"; --e-global-typography-secondary-font-family:"Fraunces"; --e-global-typography-text-font-family:"Inter"; --e-global-typography-accent-font-family:"Inter";
}

/* ---------- Base type ---------- */
body.cm-site{background:var(--cm-page);color:var(--cm-ink);font-family:var(--cm-ui);font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.cm-site :is(h1,h2,h3,h4,h5,h6),body.cm-site .entry-title{font-family:var(--cm-head);font-weight:400;letter-spacing:-.02em;color:var(--cm-ink);line-height:1.12}
body.cm-site h1{font-size:clamp(32px,4.2vw,48px)}
body.cm-site h2{font-size:clamp(26px,3vw,34px)}
body.cm-site h3{font-size:clamp(20px,2vw,24px)}
body.cm-site h4{font-size:19px}
body.cm-site h5,body.cm-site h6{font-size:16px}
body.cm-site p,body.cm-site li,body.cm-site td,body.cm-site th,body.cm-site label{font-family:var(--cm-ui)}
body.cm-site small,body.cm-site .cm-small{font-size:14px;color:var(--cm-slate)}
body.cm-site ::selection{background:#12151C;color:#fff}
.cm-sr{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;white-space:nowrap!important}
.cm-wrap{max-width:var(--cm-max);margin:0 auto;padding:0 var(--cm-gutter)}
.cm-price{font-variant-numeric:tabular-nums}

/* ---------- Links ---------- */
body.cm-site a{color:var(--cm-ink);text-underline-offset:3px;text-decoration-thickness:1px}
body.cm-site .entry-content a:not(.wp-element-button):not(.button):not(.elementor-button),
body.cm-site .cm-prose a{text-decoration:underline}
body.cm-site a:hover{color:var(--cm-ink);text-decoration-thickness:2px}

/* ---------- Focus (visible everywhere) ---------- */
body.cm-site :focus-visible{outline:3px solid var(--cm-focus,var(--cm-ink));outline-offset:3px}
body.cm-site :focus:not(:focus-visible){outline:none}

/* ---------- Buttons ---------- */
body.cm-site :is(.button,button.button,a.button,input[type=submit],input[type=button],.wp-element-button,.wp-block-button__link,.elementor-button,.ast-button,.ast-custom-button),
.cm-btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 26px;border-radius:var(--cm-pill)!important;
  border:1.5px solid transparent;font:600 16px/1.1 var(--cm-ui)!important;letter-spacing:0;text-transform:none;text-decoration:none!important;cursor:pointer;white-space:nowrap;
  background-color:var(--cm-ink);color:#fff!important;
  background-image:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),0 1px 2px rgba(18,21,28,.3),0 6px 14px -6px rgba(18,21,28,.45);
  transition:background-color .2s,box-shadow .2s,transform .12s}
body.cm-site :is(.button,button.button,a.button,input[type=submit],.wp-element-button,.wp-block-button__link,.elementor-button):hover,.cm-btn:hover{background-color:#262B36!important;background-image:none!important;color:#fff!important}
body.cm-site :is(.button,button.button,a.button,input[type=submit],.wp-element-button,.wp-block-button__link,.elementor-button):active,.cm-btn:active{transform:translateY(1px);box-shadow:inset 0 2px 5px rgba(0,0,0,.28)}
/* Buy actions: the only place cherry is used for buttons */
body.cm-site :is(.single_add_to_cart_button,.add_to_cart_button,.checkout-button,#place_order,.wc-proceed-to-checkout .button,.cm-btn-buy),
.cm-btn-buy{background-color:var(--cm-cherry)!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 1px 2px rgba(124,2,40,.25),0 6px 14px -6px rgba(209,4,68,.55)}
body.cm-site :is(.single_add_to_cart_button,.add_to_cart_button,.checkout-button,#place_order,.cm-btn-buy):hover{background-color:var(--cm-cherry-hover)!important}
/* Secondary (outline) */
.cm-btn-line,body.cm-site .is-style-outline .wp-block-button__link{background:#fff!important;background-image:none!important;color:var(--cm-ink)!important;border-color:var(--cm-ink)!important;box-shadow:var(--cm-sh-1)}
.cm-btn-line:hover,body.cm-site .is-style-outline .wp-block-button__link:hover{background:var(--cm-band)!important;color:var(--cm-ink)!important}
.cm-btn-lg{min-height:52px;font-size:17px!important;padding:0 30px}
.cm-btn-block{width:100%}
body.cm-site :is(.button,.cm-btn)[disabled],body.cm-site .button.disabled{opacity:.55;cursor:not-allowed}
@media (prefers-reduced-motion:reduce){body.cm-site *{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* ---------- Forms ---------- */
body.cm-site :is(input[type=text],input[type=email],input[type=tel],input[type=password],input[type=number],input[type=search],input[type=url],input[type=date],select,textarea),
body.cm-site .select2-container .select2-selection--single{
  min-height:48px;border:1.5px solid var(--cm-control)!important;border-radius:var(--cm-r1)!important;background:#fff;color:var(--cm-ink);
  font:400 16px/1.4 var(--cm-ui);padding:10px 14px;box-shadow:none;transition:border-color .15s}
body.cm-site textarea{min-height:120px}
body.cm-site .select2-container .select2-selection--single{display:flex;align-items:center;padding:0 10px}
body.cm-site .select2-container .select2-selection__arrow{height:46px!important}
body.cm-site :is(input,select,textarea):focus{border-color:var(--cm-ink)!important;outline:3px solid var(--cm-ink);outline-offset:2px}
body.cm-site ::placeholder{color:var(--cm-slate);opacity:1}
body.cm-site label{font-weight:600;font-size:15px;color:var(--cm-ink)}
body.cm-site .required{color:var(--cm-cherry);text-decoration:none;border:0}
body.cm-site input[type=checkbox],body.cm-site input[type=radio]{width:20px;height:20px;accent-color:var(--cm-ink);vertical-align:-4px}
body.cm-site fieldset{border:0;padding:0;margin:0}

/* ---------- Notices (WooCommerce and Elementor) ---------- */
body.cm-site :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice,.wc-block-components-notice-banner),
.cm-notice{
  position:relative;display:block;background:#fff;color:var(--cm-ink);border:0!important;border-radius:var(--cm-r1);
  box-shadow:var(--cm-sh-1);padding:14px 16px 14px 48px;margin:0 0 14px;font-size:15px;line-height:1.5;list-style:none}
body.cm-site :is(.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-notice)::before,.cm-notice::before{
  content:"";position:absolute;left:16px;top:16px;width:20px;height:20px;border-radius:50%;background:var(--cm-ink);color:#fff;
  font:700 13px/20px var(--cm-ui);text-align:center}
body.cm-site .woocommerce-message::before{content:"✓";background:var(--cm-ok)}
body.cm-site .woocommerce-info::before,.cm-notice::before{content:"i"}
body.cm-site .woocommerce-error::before{content:"!";background:var(--cm-error)}
body.cm-site .woocommerce-error{color:var(--cm-ink)}
body.cm-site .woocommerce-error li{margin:0}
body.cm-site :is(.woocommerce-message,.woocommerce-info,.woocommerce-error) .button{float:right;min-height:40px;padding:0 16px;margin:-4px 0 0 12px}
.cm-notice{display:grid}

/* ---------- Tables ---------- */
body.cm-site :is(table,.shop_table){border-collapse:separate;border-spacing:0;width:100%;background:#fff;border:0!important;border-radius:var(--cm-r2);overflow:hidden;box-shadow:var(--cm-sh-1);font-size:15px}
body.cm-site :is(table,.shop_table) :is(th,td){border:0!important;border-bottom:1px solid var(--cm-rule)!important;padding:12px 16px!important;text-align:left;vertical-align:middle}
body.cm-site :is(table,.shop_table) th{font-weight:600;color:var(--cm-ink);background:var(--cm-band)}
body.cm-site :is(table,.shop_table) tr:last-child :is(th,td){border-bottom:0!important}
body.cm-site .cm-table-scroll{overflow-x:auto}

/* ---------- Images never stretch ---------- */
body.cm-site img{max-width:100%;height:auto}

/* Light (outline) buttons: every state keeps ink text on a light fill, so the label never disappears.
   Covers the mini-cart "View cart", cart "Update cart", the age popup's second button, outline blocks. */
body.cm-site :is(.cm-btn-line,.is-style-outline .wp-block-button__link,.cm-drawer .elementor-button--view-cart,.woocommerce button[name="update_cart"],#elementor-popup-modal-1773 .elementor-widget-button:last-of-type .elementor-button){background:#fff!important;background-image:none!important;color:var(--cm-ink)!important;border:1.5px solid var(--cm-ink)!important}
body.cm-site :is(.cm-btn-line,.is-style-outline .wp-block-button__link,.cm-drawer .elementor-button--view-cart,.woocommerce button[name="update_cart"],#elementor-popup-modal-1773 .elementor-widget-button:last-of-type .elementor-button):is(:hover,:focus-visible){background:var(--cm-band)!important;color:var(--cm-ink)!important}
body.cm-site :is(.cm-btn-line,.is-style-outline .wp-block-button__link,.cm-drawer .elementor-button--view-cart,.woocommerce button[name="update_cart"],#elementor-popup-modal-1773 .elementor-widget-button:last-of-type .elementor-button):active{background:#E5E7EB!important;color:var(--cm-ink)!important}
body.cm-site :is(.cm-btn-line,.is-style-outline .wp-block-button__link,.cm-drawer .elementor-button--view-cart,.woocommerce button[name="update_cart"],#elementor-popup-modal-1773 .elementor-widget-button:last-of-type .elementor-button) *{color:inherit!important}
body.cm-site .woocommerce button[name="update_cart"]:disabled{opacity:.55;background:#fff!important}
