/* The Open Book — design tokens (verbatim from the Claude Design system) + element base. */
:root{
/* Base palette (from brief) */
--ob-green-900:#122419;
--ob-green-800:#1A3323; /* Bottle Green / Forest Night — lead colour, the storefront & mezzanine wall */
--ob-green-700:#24452F;
--ob-green-600:#3D5C47;
--ob-green-100:#DDE5DE;
--ob-green-050:#EEF2EE;
--ob-cream-050:#FAF8F5; /* Off-White / Warm Linen — page ground */
--ob-cream-100:#F3EFE8; /* Newsprint — alternate section ground */
--ob-cream-200:#E9E2D7;
--ob-cream-300:#D9CFC0;
--ob-amber-800:#5C4330;
--ob-amber-700:#7A5C43; /* Warm Amber / Cognac — walnut, leather */
--ob-amber-500:#C4A98B; /* lightened for 4.5:1 on bottle green (eyebrows, footer heads) */
--ob-amber-100:#EFE4D6;
--ob-charcoal-900:#1F2622;
--ob-charcoal-800:#2C3531; /* Soft Charcoal — body ink */
--ob-charcoal-600:#55605A;
--ob-charcoal-400:#68706B; /* 4.7:1 on white: disabled/faint text stays readable */
--ob-white:#FFFFFF;
/* Semantic — surfaces */
--surface-page:var(--ob-cream-050);
--surface-alt:var(--ob-cream-100);
--surface-card:var(--ob-white);
--surface-brand:var(--ob-green-800);
--surface-brand-deep:var(--ob-green-900);
--surface-tint:var(--ob-green-050);
--surface-amber-tint:var(--ob-amber-100);
--surface-overlay:rgba(18,36,25,0.55);
/* Semantic — text */
--text-heading:var(--ob-green-800);
--text-body:var(--ob-charcoal-800);
--text-muted:var(--ob-charcoal-600);
--text-faint:var(--ob-charcoal-400);
--text-accent:var(--ob-amber-700);
--text-on-brand:var(--ob-cream-050);
--text-on-brand-muted:rgba(250,248,245,0.72);
/* Semantic — lines */
--border-hairline:var(--ob-cream-300);
--border-input:#8F897F; /* 3:1 against cream/white: form field boundaries (WCAG 1.4.11) */
--border-strong:var(--ob-green-800);
--border-on-brand:rgba(250,248,245,0.35);
/* Semantic — interactive */
--action-primary:var(--ob-green-800);
--action-primary-hover:var(--ob-green-900);
--action-primary-text:var(--ob-cream-050);
--action-outline:var(--ob-green-800);
--action-outline-hover-bg:var(--ob-green-050);
--action-amber:var(--ob-amber-700);
--action-amber-hover:var(--ob-amber-800);
--link:var(--ob-green-800);
--link-hover:var(--ob-amber-700);
--focus-ring:var(--ob-amber-700);
--focus-ring-on-brand:var(--ob-cream-050);
/* Semantic — status */
--status-success:#3D6B4A;
--status-warning:#8A5E1F;
--status-error:#9B3B2E;
--status-info:var(--ob-charcoal-600);
/* Third-party */
--brand-whatsapp:#25D366;

/* Typography */
--font-serif-display:"Frank Ruhl Libre","David Libre","Frank Ruehl","Times New Roman",serif;
--font-sans-body:"Assistant","Heebo","Arial Hebrew",system-ui,sans-serif;
--fs-display:clamp(44px,5.2vw,72px);
--fs-h1:clamp(36px,4vw,56px);
--fs-h2:clamp(30px,3vw,42px);
--fs-h3:28px;
--fs-h4:22px;
--fs-lead:21px;
--fs-body:18px;
--fs-small:15px;
--fs-caption:13px;
--fs-eyebrow:13px;
--lh-display:1.05;
--lh-heading:1.15;
--lh-body:1.65;
--lh-tight:1.3;
--fw-display:400;
--fw-heading:500;
--fw-body:400;
--fw-medium:500;
--fw-semibold:600;
--ls-display:-0.01em;
--ls-heading:0;
--ls-body:0.01em;
--ls-eyebrow:0.14em;
--ls-button:0.04em;
--measure-body:62ch;
--measure-narrow:44ch;

/* Spacing — 4px base, opening up quickly */
--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:24px;--space-6:32px;--space-7:48px;--space-8:64px;--space-9:96px;--space-10:128px;--space-11:160px;
--section-pad-y:var(--space-10);
--section-pad-y-mobile:var(--space-8);
--section-gap:var(--space-8);
--stack-gap:var(--space-5);
--inline-gap:var(--space-4);
--container-max:1200px;
--container-narrow:760px;
--container-pad-x:clamp(20px,5vw,64px);
--grid-gutter:var(--space-8);
--control-height:52px;
--control-height-sm:40px;
--control-pad-x:28px;
--control-pad-x-sm:18px;
--header-height:76px;

/* Effects */
--radius-none:0;--radius-xs:2px;--radius-sm:4px;--radius-md:6px;--radius-pill:999px;--radius-photo:4px;
--border-w:1px;--border-w-strong:1.5px;
--rule-hairline:1px solid var(--border-hairline);
--rule-strong:1.5px solid var(--border-strong);
--shadow-none:none;
--shadow-sm:0 1px 2px rgba(31,38,34,0.06);
--shadow-md:0 6px 20px rgba(31,38,34,0.08);
--shadow-lg:0 18px 48px rgba(31,38,34,0.14);
--shadow-focus:0 0 0 3px rgba(122,92,67,0.35);
--ease-out:cubic-bezier(0.22,1,0.36,1);
--ease-in-out:cubic-bezier(0.65,0,0.35,1);
--dur-fast:160ms;--dur-base:280ms;--dur-slow:600ms;--dur-reveal:800ms;
--reveal-offset:16px;
--photo-overlay:linear-gradient(180deg,rgba(18,36,25,0.25) 0%,rgba(18,36,25,0.65) 100%);
--photo-filter:saturate(0.92) contrast(1.02);
--rtl-flip:-1;
}

/* Element base: elements only, no utility classes. Pages are Hebrew-first; components use logical properties. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{margin:0;background:var(--surface-page);color:var(--text-body);font-family:var(--font-sans-body);font-size:var(--fs-body);line-height:var(--lh-body);letter-spacing:var(--ls-body);font-weight:var(--fw-body);-webkit-font-smoothing:antialiased;text-wrap:pretty}
h1,h2,h3,h4{margin:0;font-family:var(--font-serif-display);color:var(--text-heading);font-weight:var(--fw-heading);line-height:var(--lh-heading);letter-spacing:var(--ls-heading);text-wrap:balance}
h1{font-size:var(--fs-h1)}h2{font-size:var(--fs-h2)}h3{font-size:var(--fs-h3)}h4{font-size:var(--fs-h4)}
p{margin:0}
a{color:var(--link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;transition:color var(--dur-fast) var(--ease-out)}
a:hover{color:var(--link-hover)}
img{display:block;max-width:100%}
button,input,select,textarea{font:inherit;letter-spacing:inherit;color:inherit}
:focus-visible{outline:2px solid var(--focus-ring);outline-offset:3px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important;scroll-behavior:auto!important}html{scroll-behavior:auto}}
