/* ConceptCore brand tokens. Shared by every ConceptCore site.
   Dark is the default theme. Put data-theme="light" on <body> or on a
   section for the premium light look (admissions, Paris, legal). */

@font-face {
  font-family: 'Maintanker';
  src: url('/fonts/Maintanker-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Degrado Mono';
  src: url('/fonts/DegradoMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Degrado Mono';
  src: url('/fonts/DegradoMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Golos Text';
  src: url('/fonts/GolosText-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  /* Brand constants (same in both themes) */
  --neon: #e4ec3a;          /* hero background, big CTAs */
  --lime: #ced600;          /* labels, corner ticks, rules, pill dots */
  --pink: #ff4fbf;
  --orange: #ff8a3d;
  --cyan: #48c8ff;
  --ink-solid: #0b0b09;
  --paper-solid: #ecece6;

  /* Fonts */
  --font-display: 'Maintanker', 'Arial Narrow', sans-serif;
  --font-mono: 'Degrado Mono', ui-monospace, 'SFMono-Regular', monospace;
  --font-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Type scale. Readability floor: nothing under 13px, Maintanker never
     under 24px, body never under 16px. */
  --fs-body: clamp(16px, 15px + 0.3vw, 18px);
  --fs-body-lg: clamp(18px, 16px + 0.6vw, 22px);
  --fs-small: 15px;
  --fs-label: 13px;
  --fs-h1: clamp(56px, 12vw, 190px);
  --fs-h2: clamp(44px, 6.4vw, 104px);
  --fs-h3: clamp(26px, 2.6vw, 40px);
  --lh-body: 1.6;
  --ls-label: 0.16em;
  --measure: 64ch;

  /* Layout */
  --page-max: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --section: clamp(80px, 10vw, 150px);
  --r-card: 30px;
  --r-card-sm: 20px;
  --r-pill: 999px;

  /* Motion: premium and quiet */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 250ms;
  --t-med: 450ms;
  --t-slow: 650ms;

  /* Dark theme (default) */
  --bg: #0b0b09;
  --surface: #0e0f0c;
  --surface-2: #121310;
  --surface-3: #16170f;
  --text: #ecece6;
  --text-2: rgba(244, 244, 241, 0.78);
  --text-3: rgba(244, 244, 241, 0.64);
  --line: rgba(244, 244, 241, 0.12);
  --line-2: rgba(244, 244, 241, 0.22);
  --accent: var(--lime);        /* accent for text and rules on this theme */
  --accent-ink: #0b0b09;        /* text colour on an accent fill */
  --btn-bg: #ecece6;
  --btn-fg: #0b0b09;
  --shadow-card: 0 30px 80px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

[data-theme='light'] {
  --bg: #f5f5f1;
  --surface: #ffffff;
  --surface-2: #efefe9;
  --surface-3: #e7e7df;
  --text: #121310;
  --text-2: #3f3f3a;
  --text-3: #5e5e57;
  --line: rgba(18, 19, 16, 0.1);
  --line-2: rgba(18, 19, 16, 0.18);
  --accent: #5d6300;            /* lime is too light for text on white; this is its readable partner */
  --accent-ink: #0b0b09;
  --btn-bg: #121310;
  --btn-fg: #f5f5f1;
  --shadow-card: 0 1px 2px rgba(18, 19, 16, 0.04), 0 18px 50px rgba(18, 19, 16, 0.08);
  color-scheme: light;
}

[data-theme='neon'] {
  --bg: var(--neon);
  --text: #0b0b09;
  --text-2: rgba(11, 11, 9, 0.78);
  --text-3: rgba(11, 11, 9, 0.66);
  --line: rgba(11, 11, 9, 0.16);
  --accent: #0b0b09;
  --btn-bg: #0b0b09;
  --btn-fg: #ecece6;
}

/* Base layer shared by every ConceptCore site. Import after tokens.css. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img,
video {
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--focus, var(--lime));
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lime is too faint on white: light pages get an ink focus ring. */
[data-theme='light'] {
  --focus: #121310;
}

::selection {
  background: var(--lime);
  color: #0b0b09;
}

/* ---------- Layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--section);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--lime);
  color: #0b0b09;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type ---------- */

/* Maintanker is always uppercase and never under 24px. */
.display,
.h1,
.h2,
.h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  font-synthesis: none;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.h1 {
  font-size: var(--fs-h1);
  line-height: 0.86;
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
  line-height: 0.95;
}

.label {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--fs-label);
  letter-spacing: var(--ls-label);
  text-transform: uppercase;
  line-height: 1.4;
}

.lede {
  font-size: var(--fs-body-lg);
  line-height: 1.5;
  color: var(--text-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.body {
  font-size: var(--fs-body);
  color: var(--text-2);
  max-width: var(--measure);
  text-wrap: pretty;
}

.muted {
  color: var(--text-3);
}

.accent {
  color: var(--accent);
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Header height, so a hero can slide under the sticky header. */
:root {
  --header-h: 84px;
  --bar-h: 40px;
}
@media (max-width: 900px) {
  :root {
    --header-h: 68px;
  }
}

/* The booking pages. Built into public/book.css after the brand's tokens.css and base.css (scripts/brand.mjs).
   Dark ground, lime #D6FF03 as the accent (Aurel, 25 Oct 2026: #CED600 is retired). Maintanker in capitals for
   headings, never under 24px; Golos Text for what people read; Degrado Mono for labels, 13px minimum. */

:root {
  --lime: #d6ff03;
  --accent: #d6ff03;
  --bg: #0b0b09;
  --r: 18px;
  --gap: 16px;
}

body { min-height: 100vh; }
/* inside a conceptcore.co page: see-through. A frame whose colour scheme differs from its page paints an opaque ground,
   so the frame takes the page's (normal) scheme; every field sets its own colours. */
:root[data-embed] { color-scheme: normal; background: transparent; }
body.embed { background: transparent; min-height: 0; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); border-bottom: 1px solid var(--line); }
.brand { display: block; line-height: 0; }
.brand img { display: block; width: 96px; height: auto; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px var(--gutter) 64px; }
.embed .wrap { padding: 0 0 8px; max-width: none; }

.label { font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); margin: 0; }
.label.lime { color: var(--lime); }
.h1, .h2, .h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; line-height: 0.95; margin: 0; letter-spacing: 0.01em; }
.h1 { font-size: clamp(40px, 7vw, 84px); }
.h2 { font-size: clamp(30px, 4vw, 48px); }
.h3 { font-size: 26px; }
.lede { font-size: var(--fs-body-lg); color: var(--text-2); max-width: var(--measure); margin: 12px 0 0; }
.muted { color: var(--text-3); }
p { margin: 0 0 10px; }
a { color: var(--lime); }
.err { color: #ff8a7a; font-weight: 500; }
.ok { color: var(--lime); font-weight: 500; }
.head { margin-bottom: 28px; display: grid; gap: 10px; }

.card { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.embed .card { background: rgba(18, 19, 16, 0.92); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill); border: 0;
  background: var(--lime); color: #0b0b09; font: 600 16px/1 var(--font-body); cursor: pointer; text-decoration: none; transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line-2); }
.btn.small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn.link { background: none; color: var(--text-2); padding: 0 8px; text-decoration: underline; min-height: 44px; }

/* the booking: a month on the left, the hours of the day on the right */
.book { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.who { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.price { font-family: var(--font-display); font-size: 32px; text-transform: uppercase; }
.price small { font-family: var(--font-mono); font-size: 13px; letter-spacing: var(--ls-label); color: var(--text-2); margin-left: 6px; }
.switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 3px; gap: 2px; }
.switch button { min-height: 38px; min-width: 56px; border-radius: var(--r-pill); border: 0; background: none; color: var(--text-2); font: 500 13px/1 var(--font-mono); letter-spacing: var(--ls-label); cursor: pointer; }
.switch button[aria-pressed='true'] { background: var(--text); color: #0b0b09; }

.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head .h3 { font-size: 28px; }
.nav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; color: var(--text); font-size: 20px; cursor: pointer; }
.nav-btn:disabled { opacity: 0.3; cursor: default; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal .dow { font: 500 13px/1 var(--font-mono); letter-spacing: 0.08em; color: var(--text-3); text-align: center; padding: 6px 0; text-transform: uppercase; }
.day { aspect-ratio: 1 / 1; min-height: 44px; border-radius: 12px; border: 1px solid transparent; background: none; color: var(--text-3); font: 500 16px/1 var(--font-body); cursor: default; }
.day.has { color: var(--text); background: var(--surface-3); border-color: var(--line-2); cursor: pointer; }
.day.has::after { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--lime); margin: 5px auto 0; }
.day.on { background: var(--lime); color: #0b0b09; border-color: var(--lime); }
.day.on::after { background: #0b0b09; }
.day.today { text-decoration: underline; text-underline-offset: 4px; }

.times { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 12px; }
.time { min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: none; color: var(--text); font: 500 16px/1 var(--font-body); cursor: pointer; }
.time:hover { border-color: var(--lime); }
.time[aria-pressed='true'] { background: var(--lime); border-color: var(--lime); color: #0b0b09; }
.tz { margin-top: 18px; display: grid; gap: 6px; }

select, input, textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  font: 400 16px/1.4 var(--font-body); padding: 10px 14px; }
textarea { min-height: 110px; resize: vertical; }
select:focus, input:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span { font: 500 13px/1.2 var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; font-size: 16px; }
.checks input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--lime); }
.chosen { border-left: 3px solid var(--lime); padding: 4px 0 4px 14px; margin-bottom: 18px; }
.chosen b { display: block; font-size: 18px; }
.small-print { font-size: 15px; color: var(--text-3); margin-top: 12px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }

/* the booked page and the manage page */
.booked { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.booked .lede { margin: 4px 0 18px; }
.booked .facts { margin: 18px 0 20px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 0; }
.facts dt { font: 500 13px/1.6 var(--font-mono); letter-spacing: var(--ls-label); text-transform: uppercase; color: var(--text-2); }
.facts dd { margin: 0; font-size: 17px; }

/* the mentor page */
.mentor { display: grid; gap: 20px; }
.week { display: grid; gap: 10px; }
.wd { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wd > b { padding-top: 12px; font-weight: 600; }
.ranges { display: grid; gap: 8px; }
.range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.range input { width: 130px; }
.list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.list li { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: grid; gap: 4px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.row .field { margin: 0; min-width: 160px; flex: 1; }

@media (max-width: 860px) {
  .book { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .wd { grid-template-columns: 1fr; }
  .wd > b { padding-top: 0; }
  .card { padding: 16px; }
  .cal { gap: 4px; }
  .facts { grid-template-columns: 1fr; gap: 2px; }
  .facts dd { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
