:root {
  --paper: #F4EFE6;
  --ink: #16130F;
  --ink-2: #4A443C;
  --line: rgba(22, 19, 15, .14);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gut: clamp(16px, 4vw, 48px);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 400 clamp(16px, 1vw + 11px, 19px)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
p { margin: 0 0 1em; }
.mono { font: 500 12px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gut); }
.home { font: 600 13px/1 var(--mono); text-decoration: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%; transition: background .3s, color .3s; }
.home:hover { background: var(--ink); color: var(--paper); }
.lang { display: flex; border: 1.5px solid var(--ink); border-radius: 99px; overflow: hidden; }
.lang button { font: 500 11px/1 var(--mono); letter-spacing: .06em; border: 0; background: none; color: var(--ink); padding: 8px 10px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.card {
  flex: 1;
  width: min(1120px, 100%); margin: 0 auto; padding: clamp(24px, 5vw, 64px) var(--gut);
  display: grid; grid-template-columns: minmax(200px, 320px) 1fr; gap: clamp(28px, 6vw, 88px); align-items: start;
}
.photo { position: relative; margin: 8px 0 0; animation: rise 1.1s var(--ease) both; }
/* round profile photo with a thin ink ring, like an Instagram avatar */
.photo img {
  display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%;
  border-radius: 50%; box-shadow: 0 0 0 6px var(--paper), 0 0 0 7.5px var(--ink);
}

h1 { margin: 0 0 .5em; font: 400 clamp(48px, 7vw, 112px)/.92 var(--serif); letter-spacing: -.04em; font-variation-settings: "opsz" 72; }
h1 span { display: inline-block; animation: rise 1s var(--ease) both; }
h1 span + span { font-style: italic; animation-delay: .1s; }
.about > div { animation: rise 1s .2s var(--ease) both; }
.big { font: 420 clamp(21px, 2vw, 28px)/1.32 var(--serif); letter-spacing: -.01em; }
.about p:not(.big) { color: var(--ink-2); }
.roles { list-style: none; margin: 1.4em 0; padding: 0; border-top: 1px solid var(--line); }
.roles li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.about a { text-decoration: none; font-weight: 600; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .4s var(--ease); }
.about a:hover { background-size: 0 1.5px; background-position: 100% 100%; }
.about { container-type: inline-size; }
/* one centred row of 10; if that doesn't fit, two equal rows of 5 */
.links { display: grid; grid-template-columns: repeat(10, auto); justify-content: center; gap: 8px; animation: rise 1s .3s var(--ease) both; }
@container (max-width: 540px) { .links { grid-template-columns: repeat(5, auto); gap: 10px 12px; } }
.about .links a {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1.5px solid var(--ink); border-radius: 50%; background: none;
  transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.about .links svg { width: 20px; height: 20px; fill: currentColor; }
.about .links a:hover, .about .links a:focus-visible { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px); }

.frc {
  display: flex; align-items: center; gap: clamp(16px, 3vw, 32px);
  width: calc(min(1120px, 100%) - 2 * var(--gut)); margin: 4px auto 0;
  padding: clamp(18px, 2.6vw, 30px) clamp(18px, 3vw, 36px);
  background: var(--ink); color: var(--paper); text-decoration: none; border-radius: 22px;
  animation: rise .9s var(--ease) both;
  transition: transform .4s var(--ease);
}
.frc:hover { transform: translateY(-3px); }
.frc-bars { display: flex; align-items: flex-end; gap: 4px; height: 44px; flex: none; }
.frc-bars i { width: 9px; border-radius: 9px 9px 0 0; transition: height .5s var(--ease); }
.frc-bars i:nth-child(1) { background: #3B4BDB; height: 60%; }
.frc-bars i:nth-child(2) { background: #F25C3B; height: 78%; }
.frc-bars i:nth-child(3) { background: #F4B223; height: 52%; }
.frc-bars i:nth-child(4) { background: #0FA38F; height: 88%; }
.frc-bars i:nth-child(5) { background: #DB3F8E; height: 70%; }
.frc-bars i:nth-child(6) { background: #6FB038; height: 100%; }
.frc:hover .frc-bars i { height: 100%; }
.frc-text { font: 400 clamp(20px, 2.4vw, 34px)/1.15 var(--serif); letter-spacing: -.015em; }
.frc-text em { font-weight: 300; }
.frc-go { margin-left: auto; font-size: 28px; transition: transform .4s var(--ease); }
.frc:hover .frc-go { transform: translateX(8px); }
/* small text link under the framework card: free PDFs */
.frc-free {
  display: flex; align-items: center; gap: 8px;
  width: calc(min(1120px, 100%) - 2 * var(--gut)); margin: 12px auto 0; padding: 0 clamp(18px, 3vw, 36px);
  font-weight: 500; text-decoration: none; animation: rise .9s .1s var(--ease) both;
}
.frc-free span[aria-hidden] { transition: transform .35s var(--ease); }
.frc-free:hover span[aria-hidden] { transform: translateX(6px); }
.frc-free .lang-content { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; transition: background-size .4s var(--ease); }
.frc-free:hover .lang-content { background-size: 0 1.5px; background-position: 100% 100%; }

/* live sessions (bottom of the page) */
.live { width: min(1120px, 100%); margin: 0 auto; padding: clamp(24px, 4vw, 48px) var(--gut) clamp(48px, 7vw, 88px); }
.live h2 { margin: 0 0 20px; font: 400 clamp(30px, 3.6vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; font-variation-settings: "opsz" 72; }
.live-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.live-card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: clamp(22px, 3vw, 32px); border: 1.5px solid var(--ink); border-radius: 22px;
  text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), background .3s;
}
.live-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--ink); }
.live-card.frc-topic::before { background: linear-gradient(90deg, #3B4BDB 0 16.66%, #F25C3B 0 33.33%, #F4B223 0 50%, #0FA38F 0 66.66%, #DB3F8E 0 83.33%, #6FB038 0); }
.live-card:hover { transform: translateY(-3px); background: #EBE4D7; }
.live-card .mono { color: var(--ink-2); margin-top: 6px; }
.live-lead { font: italic 400 18px/1.2 var(--serif); color: var(--ink-2); }
.live-card strong { font: 420 clamp(22px, 2.2vw, 28px)/1.18 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.live-when { margin-bottom: 14px; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 8px 12px; border-radius: 99px; background: #EBE4D7; }
.live-card:hover .live-when { background: var(--paper); }
.live-btn { margin-top: auto; padding: 14px 20px; border-radius: 99px; background: var(--ink); color: var(--paper); font: 500 16px/1 var(--sans); }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes drop { from { transform: scaleY(0); } }

/* phones: one centred column */
@media (max-width: 760px) {
  .card { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 28px; }
  .photo { width: min(200px, 56%); }
  .about { justify-self: stretch; } /* keep full width; only its contents are centred */
  .live h2 { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
}
