/* Fredericks Ancient & Ethnic Art — design tokens v2 (Mesa, 2026-11-26): rebuilt from Luke's official logo card.
   Drop-in: <link rel="stylesheet" href="/brand/tokens.css">. Fonts and frame art are self-hosted; URLs are relative to this file
   (fonts/…, frame/…). No CDN at runtime. Contrast pairs + sampling method: palette-contrast.md. */

@font-face{font-family:"Liberation Serif";src:url("fonts/LiberationSerif-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Liberation Serif";src:url("fonts/LiberationSerif-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Liberation Serif";src:url("fonts/LiberationSerif-Italic.woff2") format("woff2");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Inter";src:url("fonts/Inter-Variable.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap}

:root{
  /* ---- colour: the card's three inks (cream, black, red) + neutrals derived from them ---- */
  --fr-cream:#F9EFE1;       /* page background (card cream, white-balanced) */
  --fr-cream-light:#FDF7EF; /* cards, raised surfaces, form fields, frame cells */
  --fr-cream-deep:#F0E2CF;  /* bands, placeholder frames */
  --fr-line:#E0D2C2;        /* hairline on light (decorative, not text) */
  --fr-line-strong:#94877B; /* input/control borders: 3:1+ on cream + cream-light */
  --fr-stone:#665C58;       /* secondary text: 5.09:1 on cream-deep */
  --fr-ink:#252021;         /* primary text + the mark's black */
  --fr-ink-deep:#1B1717;    /* footer */
  --fr-sand:#D5C4B0;        /* muted text + hairlines on dark */
  --fr-red:#CB564F;         /* LOGO RED: mark, frame, divider, large display only (3.70:1 on cream) */
  --fr-red-deep:#AB3934;    /* small red text, links, buttons (5.48:1 on cream; labels 5.86:1) */
  --fr-red-deeper:#912C2B;  /* button hover / pressed */
  --fr-red-light:#ED9485;   /* red accent on dark */

  /* semantic */
  --fr-bg:var(--fr-cream);
  --fr-surface:var(--fr-cream-light);
  --fr-text:var(--fr-ink);
  --fr-text-muted:var(--fr-stone);
  --fr-eyebrow:var(--fr-red-deep);
  --fr-link:var(--fr-red-deep);
  --fr-link-hover:var(--fr-red-deeper);
  --fr-focus:var(--fr-red-deep);
  --fr-btn-bg:var(--fr-red-deep);
  --fr-btn-bg-hover:var(--fr-red-deeper);
  --fr-btn-text:var(--fr-cream-light);
  --fr-placeholder-bg:var(--fr-cream-deep);
  --fr-placeholder-text:var(--fr-stone);
  --fr-logo-red:var(--fr-red);  /* read by an inline head-mark.svg */
  --fr-logo-ink:var(--fr-ink);

  /* legacy names (v1) kept as aliases so existing markup/CSS keeps working. Don't use in new code.
     verdigris + clay are RETIRED: nothing on the card is green, and clay muddied the logo red. */
  --fr-bone:var(--fr-cream); --fr-linen:var(--fr-cream-light); --fr-sandstone:var(--fr-cream-deep);
  --fr-dune:var(--fr-sand); --fr-charcoal:var(--fr-ink);
  --fr-clay:var(--fr-red); --fr-clay-deep:var(--fr-red-deep);
  --fr-verdigris:var(--fr-red-deep); --fr-verdigris-deep:var(--fr-red-deeper); --fr-verdigris-light:var(--fr-red-light);

  /* ---- type: card serif for headings, Inter for body ---- */
  --fr-font-serif:"Liberation Serif","Times New Roman",Times,"Tinos",serif; /* Times-metric OFL; closest to the card */
  --fr-font-sans:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --fr-text-xs:0.75rem;      /* 12  labels */
  --fr-text-sm:0.875rem;     /* 14  captions */
  --fr-text-base:1rem;       /* 16  body (sans) */
  --fr-text-md:1.125rem;     /* 18  lede */
  --fr-text-lg:clamp(1.3rem,1.15rem + .5vw,1.6rem);     /* 21–26 card titles (serif) */
  --fr-text-xl:clamp(1.6rem,1.35rem + 1vw,2.25rem);     /* 26–36 section heads */
  --fr-text-2xl:clamp(2rem,1.55rem + 2vw,3.25rem);      /* 32–52 page titles */
  --fr-text-3xl:clamp(2.4rem,1.7rem + 3vw,4.5rem);      /* 38–72 hero */
  --fr-leading-tight:1.1;
  --fr-leading-snug:1.25;
  --fr-leading-body:1.6;
  --fr-tracking-caps:0.16em;
  --fr-tracking-display:0;
  --fr-weight-serif:700;          /* the card's heading weight */
  --fr-weight-serif-strong:700;
  --fr-weight-sans:400;
  --fr-weight-sans-strong:600;

  /* ---- space (4 px base) ---- */
  --fr-space-1:4px; --fr-space-2:8px; --fr-space-3:12px; --fr-space-4:16px; --fr-space-5:24px;
  --fr-space-6:32px; --fr-space-7:48px; --fr-space-8:64px; --fr-space-9:96px; --fr-space-10:128px;
  --fr-gutter:clamp(20px,4vw,64px);
  --fr-max:1280px;
  --fr-measure:66ch;

  /* ---- shape + depth: gallery = square, quiet ---- */
  --fr-radius-0:0; --fr-radius-1:2px; --fr-radius-2:4px; --fr-radius-pill:999px;
  --fr-shadow-1:0 1px 2px rgba(37,32,33,.06),0 1px 1px rgba(37,32,33,.04);
  --fr-shadow-2:0 8px 24px -12px rgba(37,32,33,.22),0 2px 6px rgba(37,32,33,.06);
  --fr-shadow-frame:inset 0 0 0 1px rgba(37,32,33,.08),0 18px 40px -24px rgba(37,32,33,.35);
  --fr-ease:cubic-bezier(.2,.7,.2,1);
  --fr-dur:180ms;

  /* ---- logo + provenance frame ---- */
  --fr-logo-h:52px;          /* height of the head mark in the brand slot */
  --fr-frame-band:14px;      /* frame band depth (outer rule to inner rule). Card art: 108 units */
  --fr-divider-h:18px;
}

/* ---- optional base layer (opt-in with class="fr") ---- */
.fr{background:var(--fr-bg);color:var(--fr-text);font:var(--fr-weight-sans) var(--fr-text-base)/var(--fr-leading-body) var(--fr-font-sans);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
.fr a{color:var(--fr-link);text-underline-offset:.18em;text-decoration-thickness:1px}
.fr a:hover{color:var(--fr-link-hover)}
.fr :focus-visible{outline:2px solid var(--fr-focus);outline-offset:3px}
.fr-display{font-family:var(--fr-font-serif);font-weight:var(--fr-weight-serif);line-height:var(--fr-leading-tight);letter-spacing:var(--fr-tracking-display)}
.fr-eyebrow{font:600 var(--fr-text-xs)/1.2 var(--fr-font-sans);letter-spacing:var(--fr-tracking-caps);text-transform:uppercase;color:var(--fr-eyebrow)}

/* ---- provenance frame (border art traced from the card; 9-slice, scales without stretching) ----
   <div class="fr-frame"> <img …> </div>  — any box: photo, placeholder, card. Band depth: --fr-frame-band.
   The corner art (225 of 729 units) overlaps the content's corners and rounds them; edges repeat whole tiles. */
.fr-frame{--_b:var(--fr-frame-band);position:relative;display:block;border:var(--_b) solid transparent;
  border-image-source:url("frame/border-frame.svg");border-image-slice:225;border-image-width:calc(var(--_b) * 2.0833);
  border-image-outset:0;border-image-repeat:round;background:var(--fr-cream-light) padding-box}
.fr-frame>img,.fr-frame>picture>img{display:block;width:100%;height:100%;object-fit:cover}
.fr-frame>img,.fr-frame>picture>img,.fr-frame>.fr-ph{border-radius:calc(var(--_b) * .26)}
.fr-frame>.fr-ph{box-shadow:none;width:100%}
.fr-frame>.fr-ph::before{display:none}
.fr-frame--sm{--fr-frame-band:10px}
/* quiet variant for dense grids (piece cards): the frame's own double rounded rule, without the cell pattern.
   Same proportions as the art: rule = band x .097, outer radius = band x .86, inner radius = band x .26 */
.fr-frame--rules{--fr-frame-band:10px;border-image:none;border:max(1px,calc(var(--_b) * .097)) solid var(--fr-ink);
  border-radius:calc(var(--_b) * .86);padding:calc(var(--_b) * .806);
  box-shadow:inset 0 0 0 calc(var(--_b) * .806 - max(1px,calc(var(--_b) * .097))) var(--fr-cream-light),inset 0 0 0 calc(var(--_b) * .806) var(--fr-ink);background:var(--fr-cream-light)}
.fr-frame--lg{--fr-frame-band:22px}

/* ---- divider built from the border motif ---- <hr class="fr-divider"> */
.fr-divider{border:0;height:var(--fr-divider-h);margin:var(--fr-space-8) auto;max-width:var(--fr-max);
  background:url("frame/divider.svg") center / auto 100% no-repeat,linear-gradient(var(--fr-line-strong),var(--fr-line-strong)) center / 100% 1px no-repeat}
.fr-divider--short{max-width:min(420px,70%)}

/* Placeholder frame — use until real photos exist. Never replace with stock artifact photos. */
.fr-ph{position:relative;display:grid;place-items:center;aspect-ratio:var(--fr-ph-ratio,4/5);background:var(--fr-placeholder-bg);
  box-shadow:var(--fr-shadow-frame);overflow:hidden;color:var(--fr-placeholder-text)}
.fr-ph::before{content:"";position:absolute;inset:var(--fr-ph-mat,14px);border:1px solid rgba(37,32,33,.18)}
.fr-ph__label{position:relative;font:600 var(--fr-text-xs)/1.3 var(--fr-font-sans);letter-spacing:var(--fr-tracking-caps);text-transform:uppercase;text-align:center;padding:0 var(--fr-space-4)}
.fr-ph__label::before{content:"";display:block;width:28px;height:1px;background:currentColor;margin:0 auto var(--fr-space-3);opacity:.6}
.fr-ph--dark{--fr-placeholder-bg:#2E2728;--fr-placeholder-text:var(--fr-sand)}
.fr-ph--dark::before{border-color:rgba(249,239,225,.22)}
