/* ==========================================================================
   Miolu public web — shared base
   Local candidate, 17.8.2026. RTL-first, mobile-first. Plain CSS, no build.

   RECONCILED against the live miolu.app (Cloudflare Pages, static HTML):
   - palette tokens adopted verbatim from the live styles.css
   - Assistant self-hosted, matching the live site's "no external calls" rule
   - canonical logo asset (assets/img/miolu-logo.png) replaces the earlier
     typographic stand-in
   ========================================================================== */

/* ---- self-hosted fonts: NO external requests from any page ---- */
@font-face{
  font-family:"Assistant";
  font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/assistant-400.woff2") format("woff2");
}
@font-face{
  font-family:"Assistant";
  font-style:normal;font-weight:600;font-display:swap;
  src:url("../fonts/assistant-600.woff2") format("woff2");
}
@font-face{
  font-family:"Frank Ruhl Libre";
  font-style:normal;font-weight:500 600;font-display:swap;
  src:url("../fonts/frankruhllibre-hebrew.woff2") format("woff2");
  unicode-range:U+0307-0308,U+0590-05FF,U+200C-2010,U+20AA,U+25CC,U+FB1D-FB4F;
}
@font-face{
  font-family:"Frank Ruhl Libre";
  font-style:normal;font-weight:500 600;font-display:swap;
  src:url("../fonts/frankruhllibre-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD;
}
@font-face{
  font-family:"Pinyon Script";
  font-style:normal;font-weight:400;font-display:swap;
  src:url("../fonts/pinyonscript-latin.woff2") format("woff2");
  unicode-range:U+0000-00FF,U+2000-206F;
}

:root{
  /* ---- palette: values taken from the live miolu.app styles.css ---- */
  --cream-050:#ffffff;
  --cream-100:#faf8f3;   /* live --bg        */
  --cream-200:#f5f3ec;   /* live --surface-2 */
  --cream-300:#ece7db;
  --card:#ffffff;        /* live --surface   */

  --ink-900:#38322c;     /* live --ink       */
  --ink-700:#4d453d;
  --ink-600:#6c645b;     /* live --ink-soft  */
  --ink-400:#877e73;
  --ink-300:#a29889;

  --rose-100:#f7eef0;    /* live --rose-soft */
  --rose-200:#f0dee1;
  --rose-300:#e3c2c8;
  --rose-400:#d6a2ab;
  --rose-500:#c98792;    /* live --rose      */

  --gold-300:#d8c3a4;
  --gold-400:#a98a63;
  --gold-500:#8a6a45;    /* live --gold      */
  --gold-deep:#6d5234;   /* live --gold-deep */

  --sage-400:#a3ad95;

  --line:#e7e2d6;        /* live --border    */
  --line-soft:#eee9df;

  --shadow-sm:0 1px 2px rgba(56,50,44,.04), 0 8px 28px rgba(56,50,44,.06);
  --shadow-md:0 2px 4px rgba(56,50,44,.04), 0 14px 36px rgba(56,50,44,.07);
  --shadow-lg:0 4px 10px rgba(56,50,44,.05), 0 26px 64px rgba(56,50,44,.10);

  --r-sm:10px; --r-md:16px; --r-lg:24px; --r-xl:34px; --r-pill:999px;

  --ff-serif:"Frank Ruhl Libre","New Peninim MT","Noto Serif Hebrew","Times New Roman",serif;
  --ff-sans:"Assistant","Segoe UI",system-ui,"Arial Hebrew",Arial,sans-serif;
  --ff-script:"Pinyon Script","Snell Roundhand","Apple Chancery",cursive;

  --wrap:1120px;
  --wrap-wide:1280px;
  --gutter:clamp(18px,5vw,40px);
}

/* ---- reset ---- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body,h1,h2,h3,h4,p,ul,ol,li,figure,blockquote{margin:0;padding:0}
ul,ol{list-style:none}
img{max-width:100%;height:auto;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}

html{scroll-behavior:smooth}
/* keep in-page anchor targets clear of the sticky header */
[id]{scroll-margin-top:clamp(74px,10vw,98px)}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important}
}

body{
  font-family:var(--ff-sans);
  font-size:17px;
  line-height:1.75;
  color:var(--ink-600);
  background:var(--cream-100);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* ---- layout ---- */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gutter)}
.wrap--wide{max-width:var(--wrap-wide)}
.section{padding-block:clamp(48px,8vw,92px)}
.section--tight{padding-block:clamp(36px,6vw,64px)}

/* ---- type ---- */
h1,h2,h3,h4{font-family:var(--ff-serif);color:var(--ink-900);font-weight:600;line-height:1.2}
h2{font-size:clamp(26px,4.2vw,38px)}
h3{font-size:clamp(19px,2.4vw,23px);line-height:1.35}
.lede{font-size:clamp(16px,2vw,19px);color:var(--ink-400);line-height:1.8}

.section-head{text-align:center;margin-bottom:clamp(28px,4vw,46px)}
.section-head p{margin-top:10px;color:var(--ink-400);font-size:clamp(15px,1.8vw,17px)}

/* ---- gold heart divider (recurring motif in both references) ---- */
.divider{display:flex;align-items:center;justify-content:center;gap:12px;margin-block:16px}
.divider::before,.divider::after{
  content:"";height:1px;width:clamp(38px,9vw,78px);
  background:linear-gradient(to left,transparent,var(--gold-300));
}
.divider::after{background:linear-gradient(to right,transparent,var(--gold-300))}
.divider svg{width:15px;height:15px;flex:none;color:var(--rose-400)}
.divider--wide::before,.divider--wide::after{width:clamp(60px,16vw,150px)}

/* ---- buttons ---- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  padding:12px 26px;border-radius:var(--r-pill);
  font-size:15px;font-weight:600;letter-spacing:.01em;
  transition:background-color .2s ease,border-color .2s ease,transform .2s ease,box-shadow .2s ease;
}
.btn svg{width:16px;height:16px;flex:none}
.btn--ghost{border:1px solid var(--rose-300);color:var(--ink-700);background:rgba(255,255,255,.6)}
.btn--ghost:hover{background:var(--rose-100);border-color:var(--rose-400)}
.btn--solid{background:var(--gold-500);color:#fff;box-shadow:var(--shadow-sm)}
.btn--solid:hover{background:var(--gold-deep);transform:translateY(-1px);box-shadow:var(--shadow-md)}

/* ---- focus (live site uses the gold token) ---- */
:where(a,button,summary,[tabindex]):focus-visible{
  outline:2px solid var(--gold-500);outline-offset:3px;border-radius:6px;
}

.skip{
  position:absolute;inset-inline-start:-9999px;top:12px;z-index:200;
  background:var(--gold-500);color:#fff;padding:10px 18px;border-radius:var(--r-pill);
  box-shadow:var(--shadow-md);font-weight:600;font-size:14px;
}
.skip:focus{inset-inline-start:12px}

.vh{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ==========================================================================
   Brand lockup — CANONICAL logo asset pulled from https://miolu.app/assets/
   ========================================================================== */
.logo{height:var(--logo-h,40px);width:auto;display:block}
.brand{display:inline-flex;flex-direction:column;align-items:center;gap:5px;text-align:center}
.brand__tag{
  font-size:10.5px;letter-spacing:.16em;
  color:var(--ink-300);font-weight:600;
}

/* ==========================================================================
   Site header — three-zone composition (matches both page references)
   ========================================================================== */
.site-header{
  position:sticky;top:0;z-index:60;
  background:rgba(250,248,243,.92);
  backdrop-filter:saturate(1.15) blur(10px);
  -webkit-backdrop-filter:saturate(1.15) blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.site-header__inner{
  display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;
  min-height:74px;padding-block:10px;
}
.site-nav{display:flex;align-items:center;gap:clamp(14px,2.4vw,30px)}
.site-nav--end{justify-content:flex-end}
.site-nav a{
  font-size:15px;color:var(--ink-600);white-space:nowrap;
  padding-block:6px;border-bottom:1.5px solid transparent;transition:color .18s,border-color .18s;
}
.site-nav a:hover{color:var(--ink-900);border-bottom-color:var(--gold-300)}
.site-nav a[aria-current="page"]{color:var(--gold-500);font-weight:600}

/* small chip used where the references place icon clusters */
.chip{
  display:inline-flex;align-items:center;gap:7px;
  padding:5px 13px;border-radius:var(--r-pill);
  border:1px solid var(--line);background:var(--cream-050);
  font-size:12px;color:var(--ink-400);white-space:nowrap;
}
.chip__dot{width:6px;height:6px;border-radius:50%;background:var(--rose-400);flex:none}

@media (max-width:880px){
  .site-header__inner{min-height:62px;grid-template-columns:1fr auto 1fr}
  .site-nav,.site-header .chip{display:none}
}

/* ==========================================================================
   Site footer — structure mirrors the live miolu.app footer
   ========================================================================== */
.site-footer{
  background:var(--cream-200);
  border-top:1px solid var(--line-soft);
  padding-block:clamp(40px,6vw,60px) 26px;
}
.site-footer__top{
  display:flex;flex-wrap:wrap;align-items:flex-start;justify-content:space-between;
  gap:32px;padding-bottom:26px;border-bottom:1px solid var(--line-soft);
}
.site-footer__brand{max-width:330px}
.site-footer__brand p{margin-top:10px;font-size:14.5px;color:var(--ink-400);line-height:1.7}

.footer-nav{display:flex;flex-wrap:wrap;gap:10px 28px;align-items:center}
.footer-nav a{font-size:15px;color:var(--ink-600);border-bottom:1px solid transparent;padding-block:2px}
.footer-nav a:hover{color:var(--gold-500);border-bottom-color:var(--gold-300)}

.site-footer__bottom{
  display:flex;flex-wrap:wrap;gap:12px 24px;justify-content:space-between;align-items:center;
  padding-top:20px;font-size:13px;color:var(--ink-300);
}
.site-footer__bottom a{color:var(--gold-500)}
.site-footer__bottom a:hover{color:var(--gold-deep)}

/* discreet synthetic-content disclosure */
.disclosure{
  margin-top:22px;padding:13px 18px;
  border:1px dashed var(--line);border-radius:var(--r-md);
  background:rgba(255,255,255,.55);
  font-size:12.5px;line-height:1.65;color:var(--ink-400);
}
.disclosure strong{color:var(--ink-600);font-weight:600}

@media (max-width:640px){
  .site-footer__top{flex-direction:column;gap:24px}
  .footer-nav{gap:8px 20px}
}

/* the four legal links hold a single line on a phone, every page */
@media (max-width:600px){
  .footer-nav{flex-wrap:nowrap;gap:clamp(9px,2.7vw,15px);justify-content:center}
  .footer-nav a{white-space:nowrap;font-size:clamp(10.5px,2.9vw,13px)}
  .site-footer__bottom{flex-direction:column;gap:5px;text-align:center}
}

/* ---- shared card primitive ---- */
.card{
  background:var(--card);
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-md);
}

/* ---- decorative line-art helper ---- */
.art{position:absolute;pointer-events:none;color:var(--gold-300);opacity:.5}
