/* ==========================================================================
   event-refinery entry site
   Tokens are the application's own (FrontEnd/src/styles/basic.scss and
   src/gui/entity/Entities.scss): the warm paper background, the two blues used
   for section heads and primary actions, and the per-entity colours.
   Fonts: Archer Pro (Adobe Fonts kit lrm8okx) for running text, Source Sans 3
   for headings, navigation, captions and controls — both are the app's faces. All colours OKLCH, lengths rem.
   ========================================================================== */

:root {
  /* surfaces — $master-bg and its derivatives */
  --paper:        oklch(94.4% 0.01 100);
  --paper-light:  color-mix(in oklch, var(--paper) 50%, white);
  --paper-deep:   color-mix(in oklch, var(--paper) 94%, black);
  --top-bar:      color-mix(in oklch, var(--paper) 80%, white);

  /* text */
  --ink:          oklch(18% 0.01 100);
  --ink-soft:     oklch(45.6% 0.027 285.3);   /* $fg-muted */
  --ink-dim:      oklch(51% 0 0);             /* $fg-dim */

  /* blues */
  --header:       oklch(31.4% 0.139 264.4);   /* $header-fg */
  --section:      oklch(47% 0.087 241);       /* $section-head-fg */
  --accent:       oklch(40% 0.076 241.9);     /* $accent-deep */
  --accent-hover: oklch(35.3% 0.067 242.1);
  --accent-soft:  oklch(76% 0.032 242.1);

  /* rules */
  --rule:         oklch(84.5% 0 0);           /* $brd-light */
  --rule-faint:   oklch(94.9% 0 0);           /* $brd-faint */

  /* entity colours — Entities.scss */
  --paper-color:        oklch(0.4 0.164 265.2);
  --presentation-color: oklch(0.4 0.164 230);
  --session-color:      oklch(0.4 0.164 200);
  --person-color:       oklch(0.4 0.164 181.3);
  --room-color:         oklch(0.4 0.164 11.1);
  --review-color:       oklch(0.4 0.164 248.0);
  --mail-color:         oklch(44.678% 0.18736 325.275);
  --product-color:      oklch(58.878% 0.10578 177.33);
  --agent-color:        oklch(0.45 0.15 300.0);

  /* type */
  --sans:  "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --serif: "archer-pro", "Source Serif 4", Georgia, serif;

  --measure: 38rem;
  --container: 74rem;
  --hairline: 0.0625rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.skip {
  position: absolute; left: -999rem; top: 0.5rem;
  background: var(--header); color: white; padding: 0.5rem 1rem; border-radius: 0.25rem;
}
.skip:focus { left: 0.5rem; z-index: 10; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2.5rem;
}
@media (max-width: 45rem) { .container { padding-inline: 1.25rem; } }
@media (max-width: 32rem) { .container { padding-inline: 1rem; } }

/* ── type ─────────────────────────────────────────────────────────────── */

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 700;
  line-height: 1.15;
  color: var(--header);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.25rem; }
h1 em { font-style: italic; color: var(--section); }

/* the app's "title" mixin: Source Sans 3, uppercase, bold */
.kicker {
  font-family: var(--sans);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--section);
  margin-bottom: 0.75rem;
}
.kicker-light { color: oklch(80% 0.06 241); }

.lede, .lead, .section-lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.lede { margin-top: 1.25rem; }

p + p { margin-top: 1rem; }

/* ── header ───────────────────────────────────────────────────────────── */

.site-header {
  background: var(--top-bar);
  border-bottom: var(--hairline) solid var(--rule);
  position: sticky; top: 0; z-index: 5;
}
.site-header .container {
  display: flex; align-items: center; gap: 2rem;
  min-height: 4.25rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--header); }
.logo-slot {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem;
  flex: none;
}
.logo-slot img { width: 100%; height: 100%; object-fit: contain; }
.brand-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
.brand-dash { color: var(--section); }
.site-nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-nav a {
  font-family: var(--sans);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 0.125rem solid transparent;
}
.site-nav a:hover { color: var(--header); }
.site-nav a[aria-current] { color: var(--header); border-bottom-color: var(--section); }
.release-pill {
  font-family: var(--sans);
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em;
  color: var(--header);
  border: var(--hairline) solid var(--accent-soft);
  background: var(--paper-light);
  border-radius: 999px; padding: 0.35rem 0.85rem;
  white-space: nowrap;
}
.release-pill .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--section); }
@media (max-width: 45rem) {
  .site-header .container { flex-wrap: wrap; gap: 0.75rem 1.5rem; padding-block: 0.75rem; }
  .site-nav { margin-left: 0; gap: 1rem; order: 3; width: 100%; }
  .release-pill { margin-left: auto; }
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  font-family: var(--sans); font-weight: 700; font-size: 0.95rem;
  padding: 0.8rem 1.4rem; border-radius: 0.3rem;
  border: var(--hairline) solid var(--accent);
  color: var(--accent);
  transition: background-color 120ms ease, color 120ms ease;
}
.btn-solid { background: var(--accent); color: white; }
.btn-solid:hover { background: var(--accent-hover); color: white; }
.btn-ghost:hover { background: var(--paper-light); }
.btn-mail { font-weight: 400; font-size: 0.8rem; opacity: 0.85; margin-top: 0.15rem; }

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero { padding-block: 4.5rem 3.5rem; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 3rem; align-items: center;
}
.hero-text .lede { margin-top: 1.5rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.cta-note { font-family: var(--sans); margin-top: 1rem; font-size: 0.9rem; color: var(--ink-dim); }
.hero-shot img, .shot img, .ai-shot img {
  border: var(--hairline) solid var(--rule);
  border-radius: 0.4rem;
  box-shadow: 0 1.5rem 3rem -1.5rem oklch(30% 0.05 260 / 0.45);
  background: white;
}
.hero-shot figcaption, .shot figcaption {
  font-family: var(--sans);
  margin-top: 0.75rem; font-size: 0.85rem; color: var(--ink-dim); font-style: italic;
}
@media (max-width: 56rem) {
  .hero { padding-block: 3rem 2.5rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── sections ─────────────────────────────────────────────────────────── */

.section, .pillars, .timeline { padding-block: 4rem; }
.section-head { margin-bottom: 2.5rem; }
.section-head h2 + .section-lede { margin-top: 1rem; }

.pillars { background: var(--paper-light); border-block: var(--hairline) solid var(--rule); }
.pillar-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem;
}
.pillar {
  display: block; color: inherit;
  background: white; border: var(--hairline) solid var(--rule); border-radius: 0.4rem;
  border-top: 0.25rem solid var(--kind, var(--section));
  padding: 1.25rem 1.25rem 1.4rem;
  transition: transform 120ms ease, box-shadow 120ms ease;
}
.pillar:hover { transform: translateY(-0.125rem); box-shadow: 0 0.75rem 1.5rem -1rem oklch(30% 0.05 260 / 0.5); color: inherit; }
.pillar h3 { color: var(--kind, var(--header)); margin-bottom: 0.5rem; }
.pillar p { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); line-height: 1.5; }
@media (max-width: 56rem) { .pillar-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32rem) { .pillar-grid { grid-template-columns: 1fr; } }

.kind-paper        { --kind: var(--paper-color); }
.kind-review       { --kind: var(--review-color); }
.kind-mail         { --kind: var(--mail-color); }
.kind-session      { --kind: var(--session-color); }
.kind-room         { --kind: var(--room-color); }
.kind-presentation { --kind: var(--presentation-color); }
.kind-product      { --kind: var(--product-color); }
.kind-agent        { --kind: var(--agent-color); }
.kind-person       { --kind: var(--person-color); }

/* ── AI band (dark) ───────────────────────────────────────────────────── */

.ai-band {
  background: var(--header);
  color: oklch(92% 0.01 100);
  padding-block: 4.5rem;
}
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.ai-band h2 { color: white; }
.ai-band p { margin-top: 1rem; max-width: var(--measure); }
.ai-list { margin-top: 1.5rem; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.ai-list li::marker { color: oklch(80% 0.06 241); }
.ai-shot img { box-shadow: 0 2rem 4rem -1.5rem oklch(0% 0 0 / 0.6); }
@media (max-width: 56rem) { .ai-grid { grid-template-columns: 1fr; } }

/* ── timeline ─────────────────────────────────────────────────────────── */

.steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: step; }
.steps li { position: relative; padding-top: 1.25rem; border-top: 0.1875rem solid var(--rule); }
.steps li::before {
  content: ""; position: absolute; top: -0.5rem; left: 0;
  width: 0.8rem; height: 0.8rem; border-radius: 50%;
  background: var(--paper); border: 0.1875rem solid var(--rule);
}
.steps li.done { border-top-color: var(--section); }
.steps li.done::before { background: var(--section); border-color: var(--section); }
.steps li.now { border-top-color: var(--header); }
.steps li.now::before { background: var(--header); border-color: var(--header); box-shadow: 0 0 0 0.3rem oklch(31.4% 0.139 264.4 / 0.2); }
.steps strong { display: block; font-family: var(--sans); font-size: 1.15rem; color: var(--header); margin-bottom: 0.35rem; }
.steps span { font-family: var(--sans); font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 56rem) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 32rem) { .steps { grid-template-columns: 1fr; } }

/* ── CTA band ─────────────────────────────────────────────────────────── */

.cta-band { background: var(--paper-light); border-top: var(--hairline) solid var(--rule); padding-block: 4rem; }
.cta-inner { display: flex; gap: 3rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-text { margin-top: 1rem; max-width: var(--measure); color: var(--ink-soft); }

/* ── page head ────────────────────────────────────────────────────────── */

.page-head { padding-block: 3.5rem 2.5rem; border-bottom: var(--hairline) solid var(--rule); }
.toc { font-family: var(--sans); display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-top: 2rem; font-size: 0.9rem; font-weight: 600; }
.toc a { color: var(--ink-soft); border-bottom: var(--hairline) solid var(--rule); padding-bottom: 0.1rem; }
.toc a:hover { color: var(--header); border-bottom-color: var(--section); }

/* ── features ─────────────────────────────────────────────────────────── */

.feature { padding-block: 4rem; border-bottom: var(--hairline) solid var(--rule); scroll-margin-top: 5rem; }
.feature:nth-of-type(even) { background: var(--paper-light); }
.feature .kicker { color: var(--kind, var(--section)); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 3rem; align-items: start; }
.feature:nth-of-type(even) .feature-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.feature:nth-of-type(even) .feature-text { order: 2; }
.feature h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.feature .lead { margin-top: 1rem; font-size: 1.1rem; }
.shot { position: sticky; top: 5.5rem; }
.shot-second { position: static; margin-top: 2rem; }
.shot-placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 10;
  border: 0.125rem dashed var(--rule); border-radius: 0.4rem; color: var(--ink-dim); font-style: italic;
}
@media (max-width: 56rem) {
  .feature-grid, .feature:nth-of-type(even) .feature-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .feature:nth-of-type(even) .feature-text { order: 0; }
  .shot { position: static; }
}

.checks { list-style: none; margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.checks li { position: relative; padding-left: 1.5rem; color: var(--ink); line-height: 1.5; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: var(--kind, var(--section));
}

/* ── contact ──────────────────────────────────────────────────────────── */

.contact-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 3rem; align-items: start; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-top: 0.75rem; max-width: var(--measure); }
.contact-card {
  background: white; border: var(--hairline) solid var(--rule); border-top: 0.25rem solid var(--section);
  border-radius: 0.4rem; padding: 1.75rem; position: sticky; top: 5.5rem;
}
.contact-card hr { border: 0; border-top: var(--hairline) solid var(--rule-faint); margin-block: 1.25rem; }
.contact-card .kicker { margin-bottom: 0.35rem; }
.contact-mail { font-family: var(--sans); font-size: 1.3rem; font-weight: 600; word-break: break-all; }
.contact-big { font-family: var(--sans); font-size: 1.6rem; font-weight: 600; color: var(--header); }
.contact-note { font-family: var(--sans); font-size: 0.85rem; color: var(--ink-dim); margin-top: 0.25rem; }
@media (max-width: 56rem) { .contact-grid { grid-template-columns: 1fr; } .contact-card { position: static; } }

/* ── legal ────────────────────────────────────────────────────────────── */

.legal { max-width: var(--measure); }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--ink); }

/* ── footer ───────────────────────────────────────────────────────────── */

.colophon { font-family: var(--sans); background: var(--header); color: oklch(85% 0.01 100); padding-block: 3rem; margin-top: 0; font-size: 0.9rem; }
.colophon-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.colophon-brand { font-family: var(--sans); font-size: 1.3rem; font-weight: 600; color: white; margin-bottom: 0.5rem; }
.colophon-text { color: oklch(75% 0.02 100); }
.colophon nav { display: grid; gap: 0.4rem; align-content: start; }
.colophon a { color: oklch(88% 0.02 100); }
.colophon a:hover { color: white; }
.colophon-meta p { color: oklch(70% 0.02 100); }
.colophon-meta p + p { margin-top: 0.25rem; }
@media (max-width: 45rem) { .colophon-grid { grid-template-columns: 1fr; } }

@media print {
  .site-header, .colophon, .cta-band, .release-pill { display: none; }
  body { background: white; }
}

/* ── language switcher (flags) ────────────────────────────────────────── */

.lang-switch { display: flex; gap: 0.4rem; align-items: center; margin-left: 0.75rem; }
.lang-switch a {
  display: block; line-height: 0; border-radius: 0.15rem; padding: 0.15rem;
  border: var(--hairline) solid transparent; opacity: 0.55;
  transition: opacity 120ms ease;
}
.lang-switch a:hover { opacity: 1; }
.lang-switch a[aria-current] { opacity: 1; border-color: var(--rule); background: white; }
.lang-switch img { width: 1.5rem; height: 1rem; object-fit: cover; border-radius: 0.1rem; box-shadow: 0 0 0 var(--hairline) oklch(0% 0 0 / 0.15); }
@media (max-width: 45rem) { .lang-switch { margin-left: 0; } }
