/* Root & Bay brand: fonts, colours and base type. Keep fonts/ next to web/ (or fix the url() paths). */
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/web/LibreCaslonText-Regular-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/web/LibreCaslonText-Regular-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/web/LibreCaslonText-Bold-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Libre Caslon Text'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('../fonts/web/LibreCaslonText-Bold-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/web/Montserrat-Regular-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('../fonts/web/Montserrat-Regular-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/web/Montserrat-Medium-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('../fonts/web/Montserrat-Medium-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/web/Montserrat-SemiBold-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('../fonts/web/Montserrat-SemiBold-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --rb-espresso: #352317;
  --rb-deep-espresso: #2B1B11;
  --rb-cream: #F4ECC8;
  --rb-paper: #FFFFFF;
  --rb-muted: #6E5A48;      /* secondary text on cream or paper, from the kit's title line */
  --rb-line: #D9CFA6;       /* hairlines and borders on cream */
  --rb-font-heading: 'Libre Caslon Text', Georgia, 'Times New Roman', serif;
  --rb-font-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

/* Colour roles: use these in components rather than the raw brand colours, so a dark section only
   swaps the roles. Every text pair passes WCAG AA (4.5:1): text 12.6-15:1, muted 5.5-6.5:1. */
:root {
  --rb-bg: var(--rb-paper);
  --rb-surface: var(--rb-cream);
  --rb-text: var(--rb-espresso);
  --rb-text-muted: var(--rb-muted);
  --rb-border: var(--rb-line);   /* decorative lines only: too faint (1.3:1) to be the only edge of a button or field */
  --rb-control-border: var(--rb-muted);  /* 5.5:1, for inputs and buttons (WCAG 1.4.11 needs 3:1) */
  --rb-focus: var(--rb-espresso);
}
.rb-dark {
  --rb-bg: var(--rb-espresso);
  --rb-surface: var(--rb-deep-espresso);
  --rb-text: var(--rb-cream);
  --rb-text-muted: #D6CDAA;      /* cream at 85%: 9.4:1 on espresso */
  --rb-border: rgba(244, 236, 200, .25);
  --rb-control-border: #D6CDAA;
  --rb-focus: var(--rb-cream);
  background: var(--rb-bg); color: var(--rb-text);
}

/* Type scale: the classic typographic scale (Bringhurst), 16 px base. */
:root {
  --rb-step--1: 0.875rem;  /* 14: captions, legal lines */
  --rb-step-0: 1rem;       /* 16: body */
  --rb-step-1: 1.3125rem;  /* 21: lead paragraph, small headings */
  --rb-step-2: 1.5rem;     /* 24: h3 */
  --rb-step-3: 2.25rem;    /* 36: h2 */
  --rb-step-4: 3rem;       /* 48: h1 */
  --rb-step-5: 4.5rem;     /* 72: hero headline on wide screens */
}

body { margin: 0; font: 500 var(--rb-step-0)/1.6 var(--rb-font-body); color: var(--rb-text); background: var(--rb-bg); }
h1, h2, h3, .rb-heading { font-family: var(--rb-font-heading); font-weight: 700; color: var(--rb-text); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(var(--rb-step-3), 5vw, var(--rb-step-4)); }
h2 { font-size: clamp(var(--rb-step-2), 3.5vw, var(--rb-step-3)); }
h3 { font-size: var(--rb-step-2); }
p { max-width: 68ch; }   /* keep lines under ~80 characters */
small, .rb-small { font-size: var(--rb-step--1); color: var(--rb-text-muted); }

/* The tagline belongs to the logo artwork. Don't reuse this all-caps style for section labels. */
.rb-tagline { font-family: var(--rb-font-body); font-weight: 500; text-transform: uppercase; letter-spacing: .14em; }

/* Visible keyboard focus on every interactive element, in the right colour for light and dark sections. */
:focus-visible { outline: 3px solid var(--rb-focus); outline-offset: 3px; border-radius: 2px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Logo sizes. Full horizontal lockup at 64 px tall or more; below that use lockup-horizontal-compact
   (no tagline). The mark is never under 32 px wide; under 48 px use mark-small (the pod alone). */
.rb-logo { display: block; height: 64px; width: auto; }
.rb-logo--compact { height: 40px; }
