/* ==========================================================================
   Red Crafta — design tokens
   Single source of truth for colour, type, space, line, radius and shadow.
   Nothing else in this theme may hard-code a value that exists here.
   Palette and type are owner-supplied (questionnaire 9.1 / 9.2) and match the
   active Novamira design "Red Crafta — Earthen Heritage".
   ========================================================================== */

:root {
	/* --- Brand colour ---------------------------------------------------- */
	--rc-forest: #173323;          /* announcement strip, footer, nav ground */
	--rc-forest-alt: #3F4A24;      /* secondary brand green                  */
	--rc-cream: #F3EBDD;           /* primary page field                     */
	--rc-cream-light: #FBF6EC;     /* cards, logo band                       */
	--rc-terracotta: #A66A3F;      /* the one accent: calls to action        */
	--rc-earth: #8A5A3B;           /* supporting craft tone                  */
	--rc-gold: #C39A4B;            /* hairlines, rules, ornament strokes     */
	--rc-ink: #241E16;             /* warm near-black body text              */

	/* --- Derived surfaces and inks --------------------------------------- */
	--rc-page: var(--rc-cream);
	--rc-surface: var(--rc-cream-light);
	--rc-ink-soft: #5A4C3C;        /* secondary copy on cream: ink and cream mixed down,
	                                  since the brand palette carries no mid-tone
	                                  text colour of its own                  */
	--rc-on-forest: var(--rc-cream);  /* body copy on forest green: the brand cream itself */
	--rc-on-forest-soft: #B8AF9C;  /* secondary copy on forest green         */
	--rc-rule: rgba(195, 154, 75, 0.45);       /* gold hairline on cream     */
	--rc-rule-strong: rgba(195, 154, 75, 0.85);
	--rc-rule-on-forest: rgba(195, 154, 75, 0.38);

	/* --- Accent ------------------------------------------------------------
	   Terracotta is the brand's one warm accent and it is not a text colour:
	   3.73:1 on the page field, 4.10:1 on a card surface. Both clear the 3:1
	   that borders, fills, icon strokes and large numerals are held to; both
	   fall short of the 4.5:1 that small running text is held to. So the
	   accent is two tokens, and every placement picks the one that matches
	   what it is colouring:

	     --rc-accent      the accent you see - fills, borders, icons, marks
	     --rc-accent-ink  the same warmth where it has to be read as words
	     --rc-rule-accent a terracotta hairline, the warm sibling of --rc-rule

	   --rc-accent-ink is Earth Brown, already in the owner's palette as the
	   supporting craft tone, measured at 4.92:1. Nothing here is mixed.

	   --rc-rule-accent is deliberately under 3:1 - it lands at 2.03:1 over a
	   card and 1.94:1 over the page field, which is the same weight as the
	   gold --rc-rule-strong hairline it sits beside (2.09:1). That is the
	   point: a delicate line that warms an edge without hardening it. It
	   follows that this token must never be the only thing marking a state.
	   Everywhere it is used something louder is doing the real work - a
	   shadow on a hovered card, a 4.92:1 word on a link - and the line is
	   only there to agree with it. */
	--rc-accent: var(--rc-terracotta);
	--rc-accent-ink: var(--rc-earth);
	--rc-rule-accent: rgba(166, 106, 63, 0.55);
	--rc-scrim: rgba(23, 32, 25, 0.62);        /* hero image scrim           */
	--rc-scrim-strong: rgba(23, 51, 35, 0.88); /* banner copy side           */
	--rc-scrim-soft: rgba(23, 51, 35, 0.22);   /* banner picture side        */

	/* --- Type families --------------------------------------------------- */
	--rc-font-display: "Fraunces", Georgia, "Times New Roman", serif;
	--rc-font-body: "Noto Sans", "Noto Sans Sinhala", "Segoe UI", system-ui, sans-serif;
	--rc-font-sinhala: "Noto Sans Sinhala", "Noto Sans", system-ui, sans-serif;

	/* --- Type weight ----------------------------------------------------- */
	--rc-weight-display: 500;
	--rc-weight-body: 400;
	--rc-weight-label: 500;

	/* --- Type scale (fluid, editorial) ----------------------------------- */
	--rc-size-display: clamp(2.5rem, 5.6vw, 5.25rem);
	--rc-size-h2: clamp(1.9375rem, 3.8vw, 3.125rem);
	--rc-size-h3: clamp(1.375rem, 2vw, 1.875rem);
	--rc-size-h4: 1.375rem;
	--rc-size-h5: 1.1875rem;
	--rc-size-lead: clamp(1.0625rem, 1.3vw, 1.3125rem);
	--rc-size-body: 1.0625rem;
	--rc-size-small: 0.9375rem;
	--rc-size-micro: 0.6875rem;    /* 11px: counters and pills only, never running copy */
	--rc-size-label: 0.75rem;
	--rc-size-label-lg: 0.8125rem;

	/* --- Line height ----------------------------------------------------- */
	--rc-leading-display: 1.04;
	--rc-leading-head: 1.14;
	--rc-leading-body: 1.75;
	--rc-leading-tight: 1.35;

	/* --- Letter spacing -------------------------------------------------- */
	--rc-track-display: -0.005em;
	--rc-track-body: 0;
	--rc-track-label: 0.22em;
	--rc-track-label-wide: 0.34em;
	--rc-track-button: 0.18em;

	/* --- Space scale ----------------------------------------------------- */
	--rc-space-3xs: 0.25rem;
	--rc-space-2xs: 0.5rem;
	--rc-space-xs: 0.75rem;
	--rc-space-sm: 1.25rem;
	--rc-space-md: 2rem;
	--rc-space-lg: 3.5rem;
	--rc-space-xl: 5.5rem;
	--rc-space-2xl: clamp(5rem, 11vw, 9.5rem);   /* between page sections   */
	--rc-space-3xl: clamp(7rem, 15vw, 13rem);    /* around a single idea    */

	/* --- Measure and container ------------------------------------------- */
	--rc-measure: 62ch;
	--rc-measure-narrow: 46ch;
	--rc-container: 1240px;
	--rc-container-roomy: 1360px;
	--rc-container-wide: 1480px;
	--rc-gutter: clamp(1.25rem, 5vw, 4.5rem);

	/* --- Line and radius -------------------------------------------------- */
	--rc-hairline: 1px;
	--rc-radius-none: 0;           /* sharp corners are the house rule      */
	--rc-radius-pill: 999px;       /* language switch chip only             */

	/* --- Touch ------------------------------------------------------------ */
	--rc-tap: 44px;                /* the smallest a finger may be asked to hit */
	--rc-tap-lg: 48px;             /* a primary action: buy, call, enquire   */
	--rc-bar-h: 3.5rem;            /* fixed bottom bar, below 1024px only    */

	/* --- Sticky furniture -------------------------------------------------
	   The navigation row sticks to the top at every width. A second sticky
	   piece has to park under it, so its two measurements live here rather
	   than as literals in a sheet that does not know about the first. */
	--rc-navbar-h: 4.5rem;

	/* The crafting stage. The track is the scroll distance the pinned
	   hero is held for: one screen of it is the pin itself, so this is
	   roughly two further screens of scrolling to work the clay in. */
	--rc-navbar-rule: 5px;         /* its milled-gold closing rule          */

	/* --- Off-canvas ------------------------------------------------------- */
	--rc-drawer-w: min(22rem, 86vw); /* filter drawer, below 1024px only    */

	/* --- Icon ------------------------------------------------------------- */
	--rc-icon-social: clamp(15px, 1.25vw, 22px); /* the three social marks   */

	/* --- Shadow (warm, never grey, never heavy) --------------------------- */
	--rc-shadow-none: none;
	--rc-shadow-lift: 0 18px 44px -28px rgba(36, 30, 22, 0.38);
	--rc-shadow-image: 0 30px 70px -40px rgba(36, 30, 22, 0.45);
	--rc-shadow-bar: 0 -14px 34px -26px rgba(36, 30, 22, 0.42);

	/* --- Motion (calm: design dial motion = 0.25) ------------------------- */
	--rc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
	--rc-duration-fast: 220ms;
	--rc-duration: 520ms;
	--rc-duration-slow: 1100ms;
	--rc-reveal-shift: 22px;

	/* --- Layered elevation indices ---------------------------------------- */
	--rc-z-ornament: 1;
	--rc-z-content: 2;
	--rc-z-sticky: 40;        /* furniture that parks beneath the header    */
	--rc-z-header: 50;
	--rc-z-menu: 60;
	--rc-z-modal: 70;         /* quick view, which has to clear the header   */

	/* --- Header geometry, taken from the reference plate ------------------ */
	/* 01_Reference_Assets/Header_Reference_Original.png is 1983 x 793. Its
	   upper block - the forest strip plus the cream identity band - is 613px
	   tall and splits 96 : 517, and the emblem lockup inside it is 494px tall
	   starting 2px below the strip. The sliced panels carry that split baked
	   into their own pixels, so every one of those rows is driven from a
	   single height here and the seam can never drift out of register. */
	--rc-head-h: clamp(300px, 27vw, 420px);
	--rc-head-strip: 0.15661;       /*  96 / 613 */
	--rc-head-band: 0.84339;        /* 517 / 613 */
	--rc-head-emblem: 0.80587;      /* 494 / 613 */
	--rc-head-emblem-top: 0.00326;  /*   2 / 613 */

	/* --- Milled gold ------------------------------------------------------ */
	/* Sampled straight down the closing rule of that same plate at x = 400,
	   rows 714 to 718: pale lip, dark shoulder, lit core, warm shadow, deep
	   base. Five bands rather than a blur, which is what makes the line read
	   as metal instead of a tinted border. */
	--rc-metal-lip: #EDE1CC;
	--rc-metal-shoulder: #9F763B;
	--rc-metal-core: #F4D577;
	--rc-metal-shadow: #B27B25;
	--rc-metal-base: #784210;

	/* The halo around the beads that close the tagline's flanking rules. */
	--rc-gold-glow: rgba(195, 154, 75, 0.34);

	--rc-size-tagline: clamp(0.6875rem, 0.95vw, 0.9375rem);
	--rc-weight-nav: 500;
}

/* ==========================================================================
   The three responsive tiers.

   Every stylesheet in this theme bends at these two numbers and at no others,
   so a change made here moves the whole site at once:

     desktop          1024px and up      the values in :root above
     tablet           768px - 1023px     max-width: 1023px
     phone            767px and down     max-width: 767px

   Type and space are the only things a tier is allowed to change. Layout
   belongs to the sheet that owns the section, which reads these same two
   numbers. The phone tier holds every piece of running copy at 14px or more
   and trades the wide editorial tracking for something that still sets inside
   a 320px measure.
   ========================================================================== */

@media (max-width: 1023px) {
	:root {
		--rc-size-micro: 0.75rem;
		--rc-size-label: 0.8125rem;
		--rc-size-label-lg: 0.875rem;   /* 14px */
		--rc-size-tagline: 0.8125rem;

		--rc-navbar-h: 4rem;

		--rc-space-lg: 2.75rem;
		--rc-space-xl: 4rem;
		--rc-space-2xl: clamp(4rem, 9vw, 6.5rem);
		--rc-space-3xl: clamp(5rem, 11vw, 8rem);
	}
}

@media (max-width: 767px) {
	:root {
		/* Nothing a visitor has to read is allowed below 14px. */
		--rc-size-display: clamp(2.5rem, 10.5vw, 3.5rem);
		--rc-size-h2: clamp(1.875rem, 7.4vw, 2.5rem);
		--rc-size-h3: clamp(1.3125rem, 5.2vw, 1.5rem);
		--rc-size-h4: 1.25rem;
		--rc-size-h5: 1.125rem;
		--rc-size-lead: 1.0625rem;
		--rc-size-body: 1rem;
		--rc-size-small: 0.9375rem;     /* 15px */
		--rc-size-label: 0.875rem;      /* 14px: the floor               */
		--rc-size-label-lg: 0.9375rem;
		--rc-size-tagline: 0.875rem;

		/* Editorial tracking is a desktop luxury. At 14px in a 335px column
		   it only forces line breaks, so it comes most of the way in. */
		--rc-track-label: 0.12em;
		--rc-track-label-wide: 0.16em;
		--rc-track-button: 0.1em;

		/* The announcement strip is 44px tall here and holds two things. At
		   the desktop size the marks take a third of it and read as buttons
		   rather than the quiet credit line they are meant to be. */
		--rc-icon-social: 13px;

		--rc-leading-body: 1.68;

		--rc-space-lg: 2.25rem;
		--rc-space-xl: 3rem;
		--rc-space-2xl: 3.5rem;
		--rc-space-3xl: 4.5rem;

		--rc-gutter: 1.25rem;
	}
}
