/* Base layer: design-system tokens, resets, and the primitives that are shared
   across all three pages (button, logo, image placeholder, page chrome).
   Values are taken verbatim from the Claude Design prototypes. */

@import 'tokens/colors.css';
@import 'tokens/typography.css';
@import 'tokens/spacing.css';

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

body {
  margin: 0;
  background: var(--color-bg);
  font-family: var(--font-body);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-accent-sage);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-honey);
}

img,
svg {
  display: block;
}

/* ---------------------------------------------------------------- Button
   Mirrors TrainSlimDesignSystem_c73279.Button from the DS bundle. */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  line-height: normal;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: center;
  transition: filter 0.15s ease;
}

.btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.btn:not(:disabled):hover {
  filter: brightness(0.95);
}

.btn--primary {
  background: var(--color-accent-honey);
  color: var(--color-on-dark);
  border: none;
}

.btn--secondary {
  background: var(--color-accent-sage);
  color: var(--color-on-dark);
  border: none;
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid rgba(58, 42, 46, 0.2);
}

/* Anchors styled as buttons must not inherit the global link colours. */
a.btn--primary,
a.btn--primary:hover,
a.btn--secondary,
a.btn--secondary:hover {
  color: var(--color-on-dark);
}

a.btn--ghost,
a.btn--ghost:hover {
  color: var(--color-ink);
}

/* ------------------------------------------------------------------ Logo */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.logo:hover {
  color: inherit;
}

.logo__word {
  font: 700 17px var(--font-display);
  color: var(--color-ink);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------- Image placeholder
   Static stand-in for the prototype's <image-slot>. Real photos drop in later,
   so this only reproduces the empty state: tinted frame, dashed ring, icon and
   caption. */

.img-slot {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  text-align: center;
  font: 13px/1.3 system-ui, -apple-system, sans-serif;
  color: var(--color-ink);
  background: rgba(127, 127, 127, 0.08);
}

.img-slot::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px dashed currentColor;
  border-radius: inherit;
  opacity: 0.35;
  pointer-events: none;
}

.img-slot svg {
  opacity: 0.45;
}

.img-slot span {
  max-width: 90%;
  font-weight: 500;
  letter-spacing: 0.01em;
  opacity: 0.75;
}

/* On the dark hero panel the placeholder chrome needs the light ink to stay
   legible. */
.img-slot--on-dark {
  color: var(--color-on-dark);
}

.img-slot--rounded {
  border-radius: 8px;
}

/* Filled state: a real photo replaces the empty chrome. The wrapper keeps its
   box and radius, the image covers it whatever its own aspect ratio is. */

.img-slot--filled {
  padding: 0;
  background: rgba(58, 42, 46, 0.06);
  /* Het lege vlak centreert het pictogram met flexbox. Met een foto erin werkt
     dat tegen: <picture> wordt dan een flex-item dat zijn eigen hoogte houdt,
     en de foto blijft op zijn eigen verhouding staan met een strook achtergrond
     erboven en eronder. Als blok vult hij het vlak wel. */
  display: block;
}

.img-slot--filled picture {
  display: block;
  width: 100%;
  height: 100%;
}

.img-slot--filled::after {
  content: none;
}

.img-slot__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

/* ---------------------------------------------------------------- Utility */

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