/* Jo's Neuro Cafe — brand tokens (light + alt dark layout) */

:root {
  /* Light layout (hero, content) */
  --jos-cream: #f0f4e6;
  --jos-ink: #3a320c;
  --jos-gold: #ad8330;
  /* Gold for small text: --jos-gold is 3.1:1 on cream, below the 4.5:1 minimum. */
  --jos-gold-text: #836424;
  --jos-gold-on-dark: #caae78;
  --jos-body: #545454;
  --jos-black: #000000;
  --jos-white: #ffffff;

  /* Alt layout (header, footer, dark bands) — matches homepage Register CTA (--jos-ink) */
  --jos-alt-bg: var(--jos-ink);

  /* Handwritten inner-page titles — same browny olive as Register button */
  --jos-script-ink: var(--jos-alt-bg); /* r27: exactly the header bar colour (Mark 9 Nov) */
  --jos-alt-cream: #f0f4e6;
  --jos-alt-gold: #ad8330;

  /* Flowing script for inner-page hero titles. Brittany Signature again (Mark 9 Nov 2026).
     Sizes are the values from before 2375a59 (Mr De Haviland). */
  --jos-script: "Brittany Signature", "Parisienne", "Snell Roundhand", "Segoe Script", cursive;
  --jos-script-size: clamp(46px, 7.5vw, 66px);
  --jos-script-size-mobile: clamp(34px, 9.5vw, 50px);
  /* r30: Brittany Signature has tall capitals and deep descenders (ink about 1.75em from the
     descender of one line to the ascender of the next), so wrapped titles need generous leading
     to keep a visible gap between lines (Mark 9 Nov, Android 412px). Each rule trims the extra
     half-leading with a negative margin so single-line titles keep their spacing. */
  --jos-script-lh: 1.85;
  --jos-script-air: 0.22em; /* r30: breathing space above and below every script hero title (Mark 9 Nov) */

  /* Vertical rhythm — sectional pages (Mark spacing pass Aug 2026) */
  --jos-space-section-y: clamp(48px, 7vw, 72px);
  --jos-space-section-gap: clamp(28px, 4.5vw, 40px);
  --jos-space-block: 24px;
  --jos-space-stack: 18px;
  --jos-space-media-after: 24px;
  --jos-space-media-before: 28px;
  --jos-space-hero-bottom: clamp(40px, 6vw, 56px);
  --jos-space-hero-script-top: clamp(52px, 8vw, 64px);
}

/* —— Header (Reiss-style bar + landscape logo) —— */

.jos-header {
  align-items: center;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(58, 50, 12, 0.12);
  display: flex;
  justify-content: space-between;
  left: 0;
  padding: 14px clamp(20px, 4vw, 56px);
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 400;
}

.jos-header--alt {
  --jos-header-inline-pad: clamp(20px, 4vw, 56px);
  align-items: center;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--jos-alt-bg);
  border-bottom: none;
  column-gap: 28px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) auto;
  grid-template-areas:
    "brand main toggle"
    ". tagline tagline"
    "line line line"
    "nav nav nav";
  justify-content: stretch;
  padding: 14px var(--jos-header-inline-pad) 10px;
  row-gap: 0;
}

.jos-header--alt .jos-brand {
  align-self: center;
  background: transparent;
  grid-area: brand;
}

.jos-header--alt .jos-nav-toggle {
  grid-area: toggle;
  justify-self: end;
}

.jos-header--alt .jos-header-cta {
  display: none !important;
}

/* Full-bleed pinstripe — thickness matches Canva source (~3–4px) */
.jos-header-pinstripe {
  background: var(--jos-alt-cream);
  grid-area: line;
  height: 3.5px;
  margin: 6px calc(-1 * var(--jos-header-inline-pad)) 0;
  width: calc(100% + 2 * var(--jos-header-inline-pad));
}

.jos-brand {
  align-items: center;
  display: flex;
  flex-shrink: 0;
}

/* On top of the stripe, bottom-right */
.jos-brand-tagline {
  color: rgba(240, 244, 230, 0.9);
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 14px;
  font-weight: 500;
  grid-area: tagline;
  justify-self: end;
  letter-spacing: 0.22em;
  margin: 4px 0 0;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.jos-logo--landscape {
  display: block;
  height: auto;
  max-height: 230px;
  width: auto;
  max-width: min(1400px, 85vw);
}

.jos-header--alt .jos-nav a {
  border-bottom: 1px solid transparent;
  color: var(--jos-alt-cream);
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.16em;
  padding-bottom: 4px;
  text-decoration: none;
  text-transform: uppercase;
}

.jos-header--alt .jos-nav a.is-active,
.jos-header--alt .jos-nav a[aria-current="page"] {
  border-bottom-color: var(--jos-alt-gold);
}

.jos-header--alt .jos-nav a:hover,
.jos-header--alt .jos-nav a:focus-visible {
  color: var(--jos-alt-gold);
}

.jos-header--alt .jos-header-cta,
.jos-header--alt .jos-nav-enquire {
  background: var(--jos-alt-gold);
  border-radius: 999px;
  color: var(--jos-alt-bg);
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  padding: 13px 26px;
  text-decoration: none;
  text-transform: uppercase;
}

.jos-header--alt .jos-header-cta:hover,
.jos-header--alt .jos-nav-enquire:hover,
.jos-header--alt .jos-header-cta:focus-visible,
.jos-header--alt .jos-nav-enquire:focus-visible {
  background: #c49a4a;
  color: var(--jos-alt-bg);
}

.jos-header--alt .jos-nav-toggle {
  color: var(--jos-alt-cream);
}

.jos-header--alt .jos-nav-toggle-bars span {
  background: var(--jos-alt-cream);
}

/* Company small print (jos-footer-min + enquire footer) */
.jos-footer-legal {
  color: rgba(240, 244, 230, 0.62);
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 11px;
  letter-spacing: 0.02em;
  line-height: 1.6;
  margin: 12px auto 0;
  max-width: 40rem;
  overflow-wrap: break-word;
  text-align: center;
}

/* UF Labs studio credit (jos-footer-min + enquire footer) */
.jos-footer-min .footer-studio,
footer[data-screen-label="Footer"] .footer-studio {
  border-top: 1px solid rgba(240, 244, 230, 0.12);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding-top: 20px;
  width: 100%;
}

.jos-footer-min .studio-credit,
footer[data-screen-label="Footer"] .studio-credit {
  color: rgba(240, 244, 230, 0.55);
  display: inline-flex;
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 12px;
  letter-spacing: 0.02em;
  max-width: 100%;
  text-decoration: none;
}

.jos-footer-min .studio-credit:hover,
.jos-footer-min .studio-credit:focus-visible,
footer[data-screen-label="Footer"] .studio-credit:hover,
footer[data-screen-label="Footer"] .studio-credit:focus-visible {
  color: rgba(240, 244, 230, 0.88);
}

.jos-footer-min .studio-credit-text,
footer[data-screen-label="Footer"] .studio-credit-text {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.35;
}

.jos-footer-min .studio-credit-line,
footer[data-screen-label="Footer"] .studio-credit-line {
  max-width: 16rem;
  text-align: center;
}

.jos-footer-min .studio-credit-brand-row,
footer[data-screen-label="Footer"] .studio-credit-brand-row {
  align-items: center;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.jos-footer-min .studio-credit-brand-row img,
footer[data-screen-label="Footer"] .studio-credit-brand-row img {
  display: block;
  flex-shrink: 0;
  height: 28px;
  width: 28px;
}

.jos-footer-min .studio-credit-brand,
footer[data-screen-label="Footer"] .studio-credit-brand {
  color: rgba(240, 244, 230, 0.88);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.jos-footer-min .studio-credit:hover .studio-credit-brand,
.jos-footer-min .studio-credit:focus-visible .studio-credit-brand,
footer[data-screen-label="Footer"] .studio-credit:hover .studio-credit-brand,
footer[data-screen-label="Footer"] .studio-credit:focus-visible .studio-credit-brand {
  color: var(--jos-gold);
}

.studio-credit-lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  text-align: center;
}

.studio-credit-wordmark {
  font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #edf0f1;
  text-transform: lowercase;
}

.studio-credit-dot {
  display: inline-block;
  width: 0.34em;
  height: 0.34em;
  margin: 0 0.12em;
  border-radius: 50%;
  background-color: #12a574;
  vertical-align: 0.1em;
}

.studio-credit-tagline {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 400;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(237, 240, 241, 0.75);
}

.studio-credit:hover .studio-credit-wordmark {
  color: #edf0f1;
}

/* Links inside running text: underline so they are not shown by colour alone. */
p a:not([class]) {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Link-text CTA: underlined caps instead of a pill button (Mark Oct 2026: "huge buttons are a bit in yr face") */
.jos-link-cta {
  color: var(--jos-gold-text);
  display: inline-block;
  font-family: "Josefin Sans", "Josefin Sans Fallback", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 6px 14px 0;
  padding: 12px 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-transform: uppercase;
  text-underline-offset: 5px;
}

.jos-link-cta:hover,
.jos-link-cta:focus-visible {
  color: var(--jos-ink);
}

.jos-section--band .jos-link-cta,
.jos-section--dark .jos-link-cta {
  color: var(--jos-gold-on-dark);
}

.jos-section--band .jos-link-cta:hover,
.jos-section--dark .jos-link-cta:hover {
  color: var(--jos-cream);
}
