/* Website Maker kit: design tokens + shared primitives. Linked after base.css and before site.css.
   Don't edit: override token values in :root of site.css (the style stage does that). */
/* Pattern token contract. Every pattern uses ONLY these custom properties for colour, type, radius and space,
   so the style stage re-skins all of them by setting these names in :root of css/site.css.
   The values below are neutral layout-stage defaults (and what the app's pattern gallery shows). */
:root {
  /* colour */
  --bg: #f6f5f1;          /* page */
  --surface: #ecebe5;     /* raised or alternate band */
  --text: #1d1c1a;        /* body + headings */
  --muted: #5f5d57;       /* secondary text (≥ 4.5:1 on --bg) */
  --line: #d6d4cc;        /* hairlines, borders */
  --accent: #2f2e2a;      /* the one filled button, active states */
  --accent-text: #ffffff; /* text on --accent */
  --night: #1b1a18;       /* dark bands */
  --night-text: #f3f1ea;  /* text on --night */
  --night-muted: #b5b1a6; /* secondary text on --night */
  --shade: rgb(10 10 10 / .55); /* photo shade under text */

  /* type */
  --font-heading: "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-arabic: "IBM Plex Sans Arabic", system-ui, sans-serif; /* Arabic pages: the block below points heading + body at it */
  --step-display: clamp(2.6rem, 1.4rem + 5.6vw, 6.5rem); /* the one very large moment */
  --step-1: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem);     /* section headings: ≥ 36px desktop, ≥ 28px phone */
  --step-2: clamp(1.35rem, 1.15rem + .8vw, 1.75rem);     /* card / item titles */
  --step-lede: clamp(1.1rem, 1rem + .35vw, 1.3rem);
  --step-0: 1.0625rem;                                    /* body, 17px */
  --step-small: .875rem;
  --tracking-tight: -0.025em;

  /* shape + space */
  --radius: 6px;
  --radius-lg: 14px;
  --container: 1280px;
  --gutter: clamp(1.25rem, .6rem + 3vw, 3rem);
  --section: clamp(4.5rem, 3rem + 6vw, 9rem);  /* vertical padding of a section */
  --gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  --shadow: 0 1px 2px rgb(0 0 0 / .06), 0 12px 32px -12px rgb(0 0 0 / .22);
}
:root[lang="ar"], [lang="ar"] {
  --font-heading: var(--font-arabic);
  --font-body: var(--font-arabic);
  --tracking-tight: 0;
}

/* Shared primitives the patterns build on. Put these in css/site.css ONCE (adapt names freely), then add only
   the CSS of the patterns you use. Logical properties only, so RTL works with no extra rules. */
body { background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.band-surface { background: var(--surface); }
.band-night { background: var(--night); color: var(--night-text); --muted: var(--night-muted); --line: rgb(255 255 255 / .16); }

/* type */
.display, .h1, .h2, .h3 { font-family: var(--font-heading); font-weight: 600; line-height: 1.04; letter-spacing: var(--tracking-tight); text-wrap: balance; }
.display { font-size: var(--step-display); line-height: .96; }
.h1 { font-size: var(--step-1); }
.h2 { font-size: var(--step-1); }
.h3 { font-size: var(--step-2); line-height: 1.2; }
.lede { font-size: var(--step-lede); line-height: 1.5; color: var(--muted); max-width: 38ch; text-wrap: pretty; }
.prose { max-width: 62ch; }
.prose p + p { margin-block-start: 1em; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; font-size: var(--step-small); font-weight: 600; color: var(--muted); margin-block-end: 1.1rem; }
.eyebrow::before { content: ""; inline-size: 1.75rem; block-size: 1px; background: currentColor; }
.eyebrow { letter-spacing: .12em; text-transform: uppercase; }
.eyebrow:lang(ar) { letter-spacing: 0; text-transform: none; }
.num { font-variant-numeric: tabular-nums; }
:is(.display, .h1, .h2, .h3):lang(ar) { line-height: 1.25; letter-spacing: 0; }

/* actions */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-block-size: 48px; padding: .8em 1.4em; border-radius: var(--radius); border: 1px solid var(--accent); background: var(--accent); color: var(--accent-text); font-weight: 600; text-decoration: none; line-height: 1.1; transition: background var(--fast) ease, color var(--fast) ease, transform var(--fast) ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 2rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px; padding-block: .25em; transition: background-size var(--med) var(--ease-out); }
[dir="rtl"] .link-arrow { background-position: 100% 100%; }
.link-arrow:hover { background-size: 100% 1px; }
.arrow { inline-size: 1em; block-size: 1em; flex: none; transition: transform var(--fast) var(--ease-out); }
[dir="rtl"] .arrow { transform: scaleX(-1); }
a:hover > .arrow { translate: calc(.2em * var(--from)) 0; }

/* media */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.frame img { inline-size: 100%; block-size: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
a:hover .frame img, .frame:hover img { transform: scale(1.03); }
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land { aspect-ratio: 3 / 2; }
.ratio-wide { aspect-ratio: 16 / 9; }
.ratio-square { aspect-ratio: 1; }
.caption { margin-block-start: .6rem; font-size: var(--step-small); color: var(--muted); }

/* forms */
.field { display: grid; gap: .4rem; }
.field label { font-size: var(--step-small); font-weight: 600; }
.field :is(input, select, textarea) { min-block-size: 48px; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--text); }
.field :is(input, select, textarea):focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
.field :is(input, textarea):user-invalid { border-color: #b3261e; }
