@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-wght-normal.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url(/fonts/inter-latin-wght-italic.woff2) format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url(/fonts/space-mono-latin-400-normal.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Space Mono";
  src: url(/fonts/space-mono-latin-700-normal.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: rgb(255, 252, 236);
  --body: #e0105e;                   /* pink body text */
  --ink: rgba(0, 0, 0, 0.75);         /* links, subheadings, nav */
  --heading: #a57ae8;                /* lavender big headings */
  --name: #456ecd;                    /* blue name top-left */
  --muted: #777365;                  /* captions */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Space Mono", ui-monospace, Menlo, monospace;
  --pad: 3rem;
  /* Like Cargo: everything scales gently with the window width. */
  font-size: calc(9px + 0.45vw);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.4rem;
  line-height: 1.2;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; text-decoration-thickness: 1px; }
a:active { opacity: 0.7; }
/* Links inside running text are underlined so they're not told apart by color alone */
.content p a, .content li a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1px;
}

h1, h2, h3 { margin: 0 0 1em; }
h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--heading);
}
h2 {
  font-weight: 400;
  font-size: 2rem;
  color: var(--ink);
}
h3 { font-weight: 400; font-size: 1.4rem; margin-bottom: 0.4em; }
p { margin: 0 0 1.2em; }
strong, b { font-weight: 500; }
ul { margin: 0 0 1.2em; padding-left: 1.4em; }
blockquote {
  margin: 0 0 1.6em;
  padding-left: 1.2em;
  border-left: 2px solid var(--heading);
  font-size: 1.8rem;
  font-style: italic;
  color: var(--ink);
}
blockquote p { margin: 0; }

img, iframe { max-width: 100%; }
picture { display: block; }
img { display: block; height: auto; margin-bottom: 1rem; }
p:has(> picture, > img) { margin-bottom: 0.5rem; }

small, .caption {
  display: block;
  font-family: var(--mono);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* ---------- Header ---------- */

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 3rem;
  padding: var(--pad);
}
.name {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--name);
}
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 2.6rem;
}
.site-header nav a {
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.1;
}
.site-header nav a[aria-current] { color: var(--name); }
.header-end { display: flex; align-items: center; gap: 1.6rem; }
.lang { font-size: 1.5rem; font-weight: 400; color: var(--ink); }
.instagram { color: var(--ink); display: block; }
.instagram svg { width: 3rem; height: 3rem; display: block; }

/* Wide screens: like the original site – the name and each menu item get equal-width
   columns spread across the page (never narrower than their text), Instagram icon last. */
@media (min-width: 1400px) {
  .site-header {
    grid-template-columns: repeat(var(--cols), minmax(max-content, 1fr)) max-content;
    column-gap: 2rem;
  }
  .site-header nav,
  .site-header nav ul {
    display: grid;
    grid-template-columns: subgrid;
    column-gap: normal;
  }
  .site-header nav { grid-column: 2 / -2; }
  .site-header nav ul { grid-column: 1 / -1; }
  .header-end { justify-self: end; }
}

/* ---------- Content ---------- */

.content { padding: 3rem var(--pad) 6rem; }

.cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 4rem;
  align-items: start;
}
.cols > .col { min-width: 0; }
.cols + * { margin-top: 2rem; }

/* Contact form */
.contact-form { display: grid; gap: 1.2rem; max-width: 40rem; margin: 2rem 0 3rem; }
.contact-form label { display: grid; gap: 0.4rem; color: var(--ink); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  font-weight: 400;
  color: #000;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(0, 0, 0, 0.25);
  border-radius: 0;
  padding: 0.7rem 0.9rem;
}
.contact-form textarea { min-height: 12rem; resize: vertical; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--name); outline-offset: 1px; }
.contact-form button {
  justify-self: start;
  font: inherit;
  font-family: var(--mono);
  font-weight: 700;
  color: var(--bg);
  background: var(--ink);
  border: 0;
  padding: 0.8rem 1.6rem;
  cursor: pointer;
}
.contact-form button:hover { background: var(--name); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Scrolling headline on the Contact page */
.marquee { overflow: hidden; white-space: nowrap; }
.marquee span {
  display: inline-block;
  padding-right: 2ch;
  animation: marquee 12s linear infinite;
}
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee span { animation: none; } }

/* Video placeholders (click to load the player) */
.video { max-width: 56rem; margin-bottom: 2.5rem; }
.video a,
.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  padding: 0;
  margin: 0;
  background: #111;
  position: relative;
  cursor: pointer;
}
.video a picture { width: 100%; height: 100%; }
.video a img { width: 100%; height: 100%; object-fit: cover; margin: 0; }
.video .play {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 6.8rem;
  height: 4.8rem;
  transform: translate(-50%, -50%);
  background: rgba(20, 20, 20, 0.8);
  border-radius: 1.2rem;
  transition: background 0.15s;
}
.video .play::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 1rem 0 1rem 1.7rem;
  border-color: transparent transparent transparent #fff;
}
.video a:hover .play { background: #f00; }

/* Home page collage: positions are % of the collage width */
.collage {
  position: relative;
  aspect-ratio: 100 / var(--h);
  margin-top: 3rem;
}
.collage-item {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) / var(--h) * 100%);
  width: calc(var(--w) * 1%);
}
.collage-item img { width: 100%; margin: 0; }

/* ---------- Phones ---------- */

@media (max-width: 767px) {
  :root { --pad: 1.6rem; font-size: 10.5px; }
  body { font-size: 1.5rem; }
  .site-header { grid-template-columns: 1fr auto; gap: 1rem 2rem; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; }
  /* Two columns so the menu doesn't fill the whole first screen */
  .site-header nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 1.6rem; }
  .site-header nav a { font-size: 2.2rem; }
  .header-end { grid-column: 2; grid-row: 1; }
  .content { padding-top: 2rem; }
  .cols { grid-template-columns: 1fr; gap: 2rem; }
  h1 { font-size: 2.8rem; }
}

/* Readable by search engines and screen readers, invisible on screen */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Heading look without being a heading (keeps one real <h1> per page) */
.h1 {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  color: var(--heading);
  margin: 0 0 1em;
}

/* Larger paragraphs, e.g. on My Gym */
.lead p {
  font-weight: 400;
  font-size: 2rem;
  color: var(--ink);
}

/* Call-to-action button, e.g. "Book a talk" */
.content a.button {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--bg);
  background: var(--ink);
  padding: 0.9rem 1.8rem;
  text-decoration: none;
  margin: 0.4rem 0 1.6rem;
}
.content a.button:hover { background: var(--name); }
