/* peers.marielouisemueller.com
   Two colours, nothing else: black ground, cream text. Secondary text is cream at
   60 %, hairlines are cream at 18 %, and anything that hovers inverts to a cream
   ground with black text. No third hue anywhere, no panels, one column.
   Playfair for display, Inter for text, zero radius anywhere.
   Phone first: one column, 16 px gutters, nothing that can scroll sideways.
   The webfonts are imported here so the markup stays free of query strings. */

@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500&family=Inter:wght@300;400;500&display=swap");

:root {
  --black: #121110;
  --cream: #faf6ef;
  --cream-60: rgba(250, 246, 239, 0.6);
  --cream-18: rgba(250, 246, 239, 0.18);
  --rule: 1px solid var(--cream-18);
  --font-display: "Playfair Display", Georgia, serif;
  --font-text: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --measure: 40rem;
}

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

html { -webkit-text-size-adjust: 100%; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-text);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; margin: 0; line-height: 1.15; text-wrap: balance; color: var(--cream); }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-color: var(--cream-60); }
a:hover { text-decoration-color: var(--cream); text-decoration-thickness: 2px; }
.nums { font-variant-numeric: tabular-nums; }

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

/* ------------------------------------------------------------------ header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.1rem; border-bottom: var(--rule);
}
.top__mark {
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  text-decoration: none; font-weight: 500; color: var(--cream);
}
.top__mark span { color: var(--cream-60); }
.lang {
  background: transparent; color: var(--cream); border: 1px solid var(--cream-18);
  padding: 0.4rem 0.8rem; font: inherit; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; cursor: pointer; border-radius: 0;
}
.lang:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }

/* ------------------------------------------------------------------ blocks */
/* One column, generous space. Only the header and the footer carry a rule. */
.section { padding-block: clamp(2.6rem, 9vw, 4.4rem); }
.eyebrow {
  font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--cream-60); margin-bottom: 1rem; font-weight: 500;
}
h1 { font-size: clamp(1.9rem, 1.1rem + 3.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1rem + 1.6vw, 1.8rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.12rem; }
.lede { font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + 0.8vw, 1.35rem); line-height: 1.45; margin-top: 1.4rem; color: var(--cream); }
.body + .body, .body + .lede, .lede + .body { margin-top: 1rem; }
.body { color: var(--cream-60); }
.small { font-size: 0.86rem; color: var(--cream-60); }
.tiny { font-size: 0.78rem; color: var(--cream-60); }

/* ----------------------------------------------------------- the page being read */
/* Twelve lines, a cream bar sweeping down them, three that stay bright because they
   are worth quoting. Fourteen seconds, and nothing moves under reduced motion. */
.mg { display: block; width: 100%; max-width: 15rem; height: auto; margin-top: 2.6rem; }
.mg__frame { fill: none; stroke: var(--cream-18); stroke-width: 1; }
.mg__l { fill: var(--cream); opacity: 0.28; }
.mg__l--q { opacity: 0.85; }
.mg__bar { fill: var(--cream); opacity: 0.4; transform: translateY(150px); }

@keyframes mgSweep {
  0%   { transform: translateY(0); }
  6%   { transform: translateY(0); }
  94%  { transform: translateY(150px); }
  100% { transform: translateY(150px); }
}
@keyframes mgRead {
  0%   { opacity: 0.28; }
  2%   { opacity: 0.28; }
  5%   { opacity: 1; }
  13%  { opacity: 0.28; }
  100% { opacity: 0.28; }
}
@keyframes mgQuote {
  0%   { opacity: 0.28; }
  2%   { opacity: 0.28; }
  5%   { opacity: 1; }
  13%  { opacity: 0.85; }
  100% { opacity: 0.85; }
}

@media (prefers-reduced-motion: no-preference) {
  .mg__bar { animation: mgSweep 14s linear infinite; }
  .mg__l { animation: mgRead 14s ease-in-out infinite; animation-delay: var(--d, 0s); }
  .mg__l--q { animation-name: mgQuote; }
}

/* ------------------------------------------------------------------ the bar */
.entry { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 2rem; }
.entry__field { flex: 1 1 15rem; min-width: 0; }
.entry input, .form input {
  width: 100%; background: transparent; color: var(--cream);
  border: 1px solid var(--cream-18); border-radius: 0;
  padding: 0.95rem 0.9rem; font: inherit; font-size: 16px;
}
.entry input::placeholder, .form input::placeholder { color: var(--cream-60); opacity: 1; }
.entry input:focus-visible, .form input:focus-visible {
  outline: 2px solid var(--cream); outline-offset: -2px; border-color: var(--cream);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.95rem 1.5rem; background: transparent; color: var(--cream);
  border: 1px solid var(--cream-18); border-radius: 0; cursor: pointer;
  font: inherit; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none;
}
.btn:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }
.btn[disabled] { opacity: 0.5; cursor: progress; }
/* An error reads as the bright line, the ordinary message as the quiet one. There is
   no red here: the page has two colours and a warning is not worth a third. */
.msg { margin-top: 0.8rem; font-size: 0.88rem; color: var(--cream-60); }
.msg--err { color: var(--cream); font-weight: 400; }

/* ----------------------------------------------------------------- the professions */
/* A row of chips that scrolls sideways with a thumb. No scrollbar chrome, and the
   edges fade so it reads as a row that continues rather than one that ends. */
.roles { margin-top: 0.4rem; }
.roles__row {
  display: flex; gap: 0.5rem; margin-top: 0.7rem;
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  padding-block: 0.25rem;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 26px), transparent 100%);
}
.roles__row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start;
  background: transparent; color: var(--cream); border: 1px solid var(--cream-18);
  border-radius: 0; padding: 0.5rem 0.9rem; font: inherit; font-size: 0.68rem;
  letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; cursor: pointer;
}
.chip:hover { background: var(--cream); color: var(--black); border-color: var(--cream); }
.chip[aria-pressed="true"] { background: var(--cream); color: var(--black); border-color: var(--cream); }
.chip:focus-visible { outline: 2px solid var(--cream); outline-offset: 2px; }

/* ------------------------------------------------------- the five questions */
.fams { list-style: none; margin: 0; padding: 0; }
.fams li + li { margin-top: 1.7rem; }
.fams__n { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--cream); }
.fams__t { margin-top: 0.5rem; font-size: 0.92rem; color: var(--cream-60); }

/* ------------------------------------------------------------------ progress */
.run { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.run li { padding-block: 0.8rem; }
.run__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.run__n { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.run__v { font-size: 0.85rem; color: var(--cream-60); font-variant-numeric: tabular-nums; }
.run__track { height: 2px; background: var(--cream-18); margin-top: 0.55rem; }
.run__fill { height: 100%; width: 0; background: var(--cream); transition: width 0.5s ease-in-out; }
.run li[data-state="running"] .run__fill { width: 100%; opacity: 0.35; }
.run li[data-state="done"] .run__v { color: var(--cream); }
.run li[data-state="failed"] .run__fill { opacity: 0.35; }
@media (prefers-reduced-motion: reduce) { .run__fill { transition: none; } }

/* ------------------------------------------------------------------ teaser */
.score { display: flex; align-items: baseline; gap: 0.8rem; margin-top: 0.4rem; color: var(--cream); }
.score__n { font-family: var(--font-display); font-size: clamp(3.4rem, 2rem + 9vw, 5.4rem); line-height: 1; font-variant-numeric: tabular-nums; }
.score__u { font-family: var(--font-display); font-size: 1.6rem; }
.score__c { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-60); }
.bars { list-style: none; margin: 1.8rem 0 0; padding: 0; }
.bars li { padding-block: 0.85rem; }
.bars__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.bars__n { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; }
.bars__v { font-size: 0.85rem; font-variant-numeric: tabular-nums; color: var(--cream-60); }
.bars__track { height: 2px; background: var(--cream-18); margin-top: 0.55rem; }
.bars__fill { height: 100%; background: var(--cream); width: 0; transition: width 0.5s ease-out; }
@media (prefers-reduced-motion: reduce) { .bars__fill { transition: none; } }
.veil { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.veil li {
  padding-block: 0.6rem; color: var(--cream-60);
  border-top: var(--rule); font-size: 0.88rem;
}
.veil li span { filter: blur(3px); user-select: none; }

/* ------------------------------------------------------------------ the form */
.promise { margin-top: 2rem; font-family: var(--font-display); font-size: 1.1rem; line-height: 1.5; }
.form { margin-top: 1.4rem; display: grid; gap: 0.6rem; }
.form label { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream-60); }
.form .btn { justify-self: start; }

/* The Calendly iframe brings its own white, so it gets a cream hairline and no fill
   of ours. It also needs a real height, not a min-height: with min-height it
   collapsed to 150 px on the careers page. Same trap, same fix. */
.book {
  margin-top: 1.4rem; border: 1px solid var(--cream-18); padding: 10px; height: 780px;
}
.book iframe { display: block; width: 100% !important; height: 100% !important; border: 0; }
@media (min-width: 720px) { .book { height: 720px; } }
.book-alt { margin-top: 0.8rem; font-size: 0.84rem; color: var(--cream-60); }

/* ------------------------------------------------------------------ tools */
.tools { list-style: none; margin: 0; padding: 0; }
.tools li + li { margin-top: 1.8rem; }
.tools h2 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.tools a.more { display: inline-block; margin-top: 1rem; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cream); text-decoration-thickness: 2px; text-underline-offset: 0.4em; }

/* ------------------------------------------------------------------ footer */
.foot { border-top: var(--rule); padding-block: 1.6rem 2.6rem; font-size: 0.8rem; color: var(--cream-60); }
.foot p + p { margin-top: 0.5rem; }
