/* helby.studio. One stylesheet, no JavaScript. The per-app colours are appended by tools/build.py. */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  color-scheme: light dark;

  /* Helby orange owns the hero and the contact field; ink sits on it. */
  --orange: #f4701f;
  --orange-ink: #1c1208;
  --orange-soft: #3b2310;
  --orange-deep: #b3440b;

  --ground: #fbfaf8;
  --surface: #ffffff;
  --tint: #f3f0ec;
  --ink: #1c1917;
  --ink-soft: #57524c;
  --line: #e6e1db;
  --accent: var(--orange-deep);

  --code-bg: #1f1c1a;
  --code-ink: #e9e5e1;
  --code-dim: #a39b93;

  --title: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --space: clamp(4.5rem, 10vw, 8rem);
  --radius: 1.25rem;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  .app {
    box-shadow: 0 0 0 1px var(--line);
  }

  :root {
    --ground: #141210;
    --surface: #1c1916;
    --tint: #1a1714;
    --ink: #f3efea;
    --ink-soft: #b1a99f;
    --line: #2f2a25;
    --accent: #ff9a52;
    --code-bg: #0f0d0c;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 1rem;
  -webkit-text-size-adjust: 100%;
  scrollbar-color: var(--ink-soft) var(--ground);
}

/* Safari paints its own bars, the side column next to the Dynamic Island and the overscroll areas with
   the body's colour, which no section covers. It follows the page: orange while the hero or the contact
   field is on screen, the page ground in between. Without scroll-driven animations it stays the ground. */
@property --edge-top {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

@property --edge-bottom {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

body {
  margin: 0;
  background: var(--ground);
  timeline-scope: --hero, --contact;
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(1.0625rem, 0.3vw + 1rem, 1.1875rem);
  line-height: 1.6;
  font-weight: 380;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--orange);
  color: var(--orange-ink);
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

strong {
  font-weight: 600;
}

/* In landscape the notch or the Dynamic Island takes a side: content keeps clear of it (viewport-fit=cover). */
.wrap {
  --inset: max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right));
  width: min(100% - 2 * var(--inset), var(--wrap));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--ground);
  border-radius: 0.75rem;
  font-weight: 600;
}

.skip:focus {
  top: 1rem;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

main {
  background: var(--ground);
}

@supports (animation-timeline: view()) {
  body {
    background: color-mix(in srgb, var(--orange) calc(max(var(--edge-top), var(--edge-bottom)) * 100%), var(--ground));
    animation:
      edge-top linear both,
      edge-bottom linear both;
    animation-timeline: --hero, --contact;
    animation-range:
      exit 30% exit 60%,
      entry 40% entry 70%;
  }

  .hero {
    view-timeline-name: --hero;
  }

  .contact {
    view-timeline-name: --contact;
  }
}

@keyframes edge-top {
  from { --edge-top: 1; }
  to { --edge-top: 0; }
}

@keyframes edge-bottom {
  from { --edge-bottom: 0; }
  to { --edge-bottom: 1; }
}

/* MARK: Header */

.site-header {
  background: var(--orange);
  color: var(--orange-ink);
}

.site-header--plain {
  background: var(--ground);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.75rem;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0.2em;
  min-height: 2.75rem;
  align-self: center;
  padding-top: 0.55rem;
  text-decoration: none;
  font-family: var(--title);
  font-weight: 680;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.logo__brace {
  font-family: var(--mono);
  font-weight: 600;
  color: var(--orange-soft);
}

.site-header--plain .logo__brace {
  color: var(--accent);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav__link,
.nav__lang {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 0.85rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.98rem;
  transition: background-color 0.2s var(--ease);
}

.nav__link:hover,
.nav__lang:hover {
  background: rgb(28 18 8 / 0.09);
}

.site-header--plain .nav__link:hover,
.site-header--plain .nav__lang:hover {
  background: var(--tint);
}

.nav__lang {
  margin-left: 0.35rem;
  border: 1.5px solid currentColor;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  min-width: 2.75rem;
  justify-content: center;
}

@media (max-width: 52rem) {
  .site-header__inner {
    flex-wrap: wrap;
    gap: 0 1rem;
    padding-top: 0.6rem;
  }

  .nav__lang {
    margin-left: auto;
  }

  /* Every anchor stays reachable on a phone: one row that scrolls sideways under the logo. */
  .nav {
    order: 3;
    width: calc(100% + 2 * var(--gutter));
    margin: 0.25rem calc(-1 * var(--gutter)) 0;
    padding: 0 calc(var(--gutter) - 0.85rem) 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav::-webkit-scrollbar {
    display: none;
  }

  .nav__link {
    flex: none;
  }
}


/* MARK: Hero */

.hero {
  background: var(--orange);
  color: var(--orange-ink);
  padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero h1 {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw + 0.5rem, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero__soft {
  color: var(--orange-soft);
  font-weight: 400;
}

.hero__lead {
  margin-top: 1.75rem;
  max-width: 36rem;
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.5;
  font-weight: 420;
  text-wrap: pretty;
}

.hero__byline {
  margin-top: 1rem;
  max-width: 36rem;
  font-size: 1rem;
  color: var(--orange-soft);
}

.hero__byline strong {
  color: var(--orange-ink);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.4rem;
  padding: 0 1.5rem;
  border-radius: 999px;
  background: var(--orange-ink);
  color: #fff4ea;
  text-decoration: none;
  font-weight: 560;
  font-size: 1.05rem;
  box-shadow: 0 6px 16px -6px rgb(28 18 8 / 0.55);
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px -10px rgb(28 18 8 / 0.6);
}

.button .icon {
  transition: transform 0.25s var(--ease);
}

.button:hover .icon {
  transform: translateX(3px);
}

.button--ghost {
  background: transparent;
  color: var(--orange-ink);
  box-shadow: inset 0 0 0 1.5px var(--orange-ink);
}

.button--ghost:hover {
  background: rgb(28 18 8 / 0.07);
  box-shadow: inset 0 0 0 1.5px var(--orange-ink);
}

.button--ghost:hover .icon {
  transform: translateY(3px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.75rem;
  font-weight: 560;
  font-size: 0.98rem;
}

.status__dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #0a3d1b;
  box-shadow: 0 0 0 4px rgb(10 61 27 / 0.18);
}

/* The code card: an Xcode editor showing Jérôme as a Swift value. */

.code {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: var(--radius);
  box-shadow:
    0 2px 4px rgb(28 18 8 / 0.2),
    0 30px 60px -24px rgb(28 18 8 / 0.65);
  overflow: hidden;
}

.code__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  background: rgb(255 255 255 / 0.05);
  border-bottom: 1px solid rgb(255 255 255 / 0.07);
}

.code__bar span {
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: #ff5f57;
}

.code__bar span:nth-child(2) {
  background: #febc2e;
}

.code__bar span:nth-child(3) {
  background: #28c840;
}

.code__bar p {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--code-dim);
}

.code__body {
  margin: 0;
  padding: 1.25rem 1.25rem 1.5rem 0.5rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 0.55vw + 0.6rem, 0.98rem);
  line-height: 1.75;
  counter-reset: line;
  tab-size: 2;
}

.code__line {
  display: block;
  min-height: 1.75em;
  animation: type-in 0.7s var(--ease) both;
}

.code__line::before {
  counter-increment: line;
  content: counter(line);
  display: inline-block;
  width: 2.2em;
  margin-right: 1.1em;
  text-align: right;
  color: var(--code-dim);
}

.code__line:nth-child(2) { animation-delay: 0.12s; }
.code__line:nth-child(3) { animation-delay: 0.24s; }
.code__line:nth-child(4) { animation-delay: 0.36s; }
.code__line:nth-child(5) { animation-delay: 0.48s; }
.code__line:nth-child(6) { animation-delay: 0.6s; }
.code__line:nth-child(7) { animation-delay: 0.72s; }
.code__line:nth-child(8) { animation-delay: 0.84s; }
.code__line:nth-child(9) { animation-delay: 1s; }

.code__line:nth-child(10) { animation-delay: 1.15s; }

.code .k { color: #fc5fa3; font-weight: 600; }
.code .t { color: #5dd8ff; }
.code .c { color: #a167e6; }
.code .n { color: #d0bf69; }
.code .s { color: #fc6a5d; }

.caret {
  display: inline-block;
  width: 0.55em;
  height: 1.15em;
  margin-left: 0.15em;
  vertical-align: -0.2em;
  background: var(--orange);
  animation: blink 1.1s steps(1) 1.6s 8 both;
}

@keyframes type-in {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: 0.2;
  }
  to {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

@media (max-width: 22rem) {
  .code__body {
    font-size: 0.66rem;
  }
}

@media (max-width: 56rem) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* MARK: Sections */

.section {
  padding: var(--space) 0;
}

.section--ruled > .wrap {
  padding-top: var(--space);
  border-top: 1px solid var(--line);
}

.section--ruled {
  padding-top: 0;
}

.apps {
  padding-bottom: calc(var(--space) * 0.75);
}

.section--tint {
  background: var(--tint);
}

.section__title {
  font-family: var(--title);
  font-weight: 680;
  font-size: clamp(2.2rem, 3.5vw + 1rem, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.section__lead {
  margin-top: 1rem;
  max-width: 40rem;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 0.4vw + 1rem, 1.3rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.section__lead a {
  color: var(--ink);
  font-weight: 500;
}

.subhead {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--title);
  font-weight: 620;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.subhead .icon {
  color: var(--accent);
  width: 1.4rem;
  height: 1.4rem;
}

/* Lists of short labels (technologies, skills, fields) read as text separated by dots, never as pills. */
.job__tags,
.skill__items,
.detail__items,
.tatikati__stack {
  display: flex;
  flex-wrap: wrap;
  color: var(--ink-soft);
}

.job__tags li:not(:last-child)::after,
.skill__items li:not(:last-child)::after,
.detail__items li:not(:last-child)::after,
.tatikati__stack li:not(:last-child)::after {
  content: "·";
  margin: 0 0.55em;
  color: var(--ink-soft);
  opacity: 0.6;
  font-weight: 700;
}

.job__tags {
  font-size: 0.92rem;
}

.skill__items {
  color: var(--ink);
  line-height: 1.75;
}

.tatikati__stack {
  margin-top: 1rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

/* MARK: Apps */

.apps__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.app {
  display: flex;
  flex-direction: column;
  background: var(--app-bg);
  color: var(--app-ink);
  border-radius: calc(var(--radius) * 1.4);
  overflow: hidden;
}

.app__art {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(13rem, 24vw, 17rem);
  min-height: 0;
  padding: 2rem 2rem 0;
}

.app__art img {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgb(28 25 23 / 0.16));
  transition: transform 0.5s var(--ease);
}

.app:hover .app__art img {
  transform: translateY(-6px) rotate(-1.5deg);
}

.app__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.5rem;
}

.app__name {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--title);
  font-weight: 650;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.app__icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgb(28 25 23 / 0.15);
}

.app__tagline {
  margin-top: 1rem;
  color: var(--app-strong);
  font-family: var(--title);
  font-weight: 560;
  font-size: clamp(1.35rem, 1vw + 1rem, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.app__pitch {
  margin-top: 0.85rem;
  color: var(--app-ink-soft);
  text-wrap: pretty;
}

.app__meta {
  margin-top: 1.25rem;
  color: var(--app-strong);
  font-weight: 500;
  font-size: 0.95rem;
}

.app__soon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
  color: var(--app-ink-soft);
  font-size: 0.95rem;
}

.app__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--app-strong);
}

.app__more {
  margin-top: auto;
  padding-top: 1.5rem;
}

.app__link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.75rem;
  color: var(--app-strong);
  font-weight: 600;
  font-size: 1.05rem;
}

.app__note {
  margin-top: 0.15rem;
  color: var(--app-ink-soft);
  font-size: 0.88rem;
}

.tatikati {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--surface);
}

.tatikati__icon {
  width: clamp(4rem, 7vw, 6rem);
  height: auto;
  border-radius: 22%;
  box-shadow: 0 2px 8px rgb(28 25 23 / 0.14);
}

.tatikati__name {
  font-family: var(--title);
  font-weight: 650;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.tatikati__tagline {
  margin: 0.35rem 0 0.75rem;
  font-weight: 520;
  font-size: 1.15rem;
}

.tatikati__body > p:not([class]) {
  max-width: 44rem;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.tatikati__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.badge {
  display: inline-block;
  border-radius: 0.6rem;
}

.badge img {
  height: 3rem;
  width: auto;
}

.tatikati__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  color: var(--accent);
  font-weight: 600;
}

@media (max-width: 52rem) {
  .apps__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .tatikati {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .tatikati__actions {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem;
  }
}

@media (max-width: 36rem) {
  .tatikati {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* MARK: Experience */

.jobs {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1px solid var(--line);
}

.job {
  display: grid;
  grid-template-columns: 10.5rem minmax(0, 16rem) minmax(0, 1fr);
  gap: 1rem clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.5rem, 3vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
}

.job__period {
  padding-top: 0.6rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.job__who {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.job__logo {
  width: 3rem;
  height: 3rem;
  flex: none;
  border-radius: 0.8rem;
  box-shadow: 0 0 0 1px var(--line);
}

.job__logo--studio {
  display: grid;
  place-items: center;
  background: var(--orange);
  box-shadow: none;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.05em;
  color: var(--orange-ink);
}

/* What the studio holds (missions, practice, apps) hangs from it as a tree: indented under the studio's
   tile, one 1 px trunk, one branch per item, drawn level with the item's logo. */
.details {
  --branch-y: 2.35rem;
  margin: 1.25rem 0 0 1.5rem;
}

.detail {
  position: relative;
  padding: 1.1rem 0 0.6rem 1.75rem;
}

.detail::before,
.detail::after {
  content: "";
  position: absolute;
  left: 0;
  background: color-mix(in srgb, var(--ink-soft) 45%, var(--ground));
}

.detail::before {
  top: 0;
  bottom: 0;
  width: 1px;
}

.detail:last-child::before {
  bottom: auto;
  height: var(--branch-y);
}

.detail::after {
  top: var(--branch-y);
  width: 1.1rem;
  height: 1px;
}

.detail__head {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: start;
  column-gap: 0.85rem;
  margin-bottom: 0.6rem;
}

.detail__logo {
  grid-row: span 2;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
}

.detail__logo--icon {
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--orange) 16%, var(--ground));
  color: var(--accent);
}

.detail__logo--icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.detail__title {
  font-family: var(--title);
  font-weight: 650;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.detail__meta {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
}

.detail > p {
  max-width: 40rem;
  text-wrap: pretty;
}

.detail__items {
  margin-top: 0.85rem;
  font-size: 0.92rem;
}

.job__logo--initial {
  display: grid;
  place-items: center;
  background: var(--tint);
  font-family: var(--title);
  font-weight: 650;
  font-size: 1.3rem;
  color: var(--ink-soft);
}

.job__company {
  font-family: var(--title);
  font-weight: 620;
  font-size: 1.3rem;
  letter-spacing: -0.01em;
}

.job__role {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.job__what p {
  max-width: 40rem;
  text-wrap: pretty;
}

.job__what .job__tags {
  margin-top: 0.85rem;
}

@media (max-width: 56rem) {
  .job {
    grid-template-columns: minmax(0, 1fr);
  }

  .job__period {
    order: -1;
    padding-top: 0;
  }
}

/* MARK: Skills */

.skills {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(2rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 3rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.skill__title {
  margin-bottom: 0.85rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--title);
  font-weight: 620;
  font-size: 1.2rem;
}

/* MARK: Community */

.community-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.5rem, 5vw, 4rem);
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

.communities,
.contributions {
  margin-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.community {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.community__name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--title);
  font-weight: 620;
  font-size: 1.2rem;
}

.community__role {
  font-family: var(--body);
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--accent);
}

.community p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

.contribution {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contribution__title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--title);
  font-weight: 620;
  font-size: 1.15rem;
}

.contribution__title .icon {
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}

.contribution:hover .contribution__title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contribution:hover .contribution__title .icon {
  transform: translate(2px, -2px);
}

.contribution__text {
  display: block;
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.subhead--talks {
  margin-top: clamp(3rem, 6vw, 4.5rem);
}

.talks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  margin-top: 1.5rem;
}

.talk__link {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
}

.talk__thumb {
  position: relative;
  display: block;
  margin-bottom: 0.5rem;
  border-radius: calc(var(--radius) * 0.8);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--tint);
}

.talk__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.talk__play {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--orange-ink);
  box-shadow: 0 4px 12px -2px rgb(28 18 8 / 0.45);
}

.talk__play .icon {
  fill: currentColor;
  stroke-width: 1;
}

.talk__link:hover .talk__thumb img {
  transform: scale(1.04);
}

.talk__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  text-wrap: balance;
}

.talk__link:hover .talk__title {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.talk__meta {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.quote {
  max-width: 54rem;
  margin: clamp(4rem, 8vw, 6rem) auto 0;
  text-align: center;
}

.quote__mark {
  width: 3rem;
  height: 3rem;
  margin: 0 auto 1.25rem;
  fill: var(--orange);
  stroke: none;
}

.quote blockquote p {
  font-family: var(--title);
  font-weight: 450;
  font-size: clamp(1.5rem, 1.6vw + 1rem, 2.4rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.quote figcaption {
  margin-top: 1.25rem;
  color: var(--ink-soft);
}

@media (max-width: 60rem) {
  .talks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 44rem) {
  .community-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 30rem) {
  .talks {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* MARK: Contact */

.contact {
  background: var(--orange);
  color: var(--orange-ink);
  padding: var(--space) 0;
}

.contact__title {
  font-family: var(--title);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.contact__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.15rem, 0.6vw + 1rem, 1.35rem);
  line-height: 1.5;
}

.contact__list {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  border-top: 1.5px solid var(--orange-ink);
}

.contact__link {
  display: grid;
  grid-template-columns: auto 10rem minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 5rem;
  padding: 1rem 0.25rem;
  border-bottom: 1.5px solid var(--orange-ink);
  text-decoration: none;
  transition: background-color 0.25s var(--ease), padding 0.35s var(--ease);
}

.contact__link:hover {
  background: rgb(28 18 8 / 0.07);
  padding-inline: 1rem;
}

.contact__icon {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact__label {
  font-family: var(--title);
  font-weight: 650;
  font-size: 1.35rem;
}

.contact__value {
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.contact__note {
  color: var(--orange-soft);
  font-size: 0.98rem;
}

.contact__arrow {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.contact__link:hover .contact__arrow {
  transform: translateX(4px);
}

.site-header:not(.site-header--plain) :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.contact :focus-visible {
  outline-color: var(--orange-ink);
}

@media (max-width: 52rem) {
  .contact__link {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "icon label arrow"
      "icon value arrow"
      "icon note arrow";
    gap: 0.1rem 1rem;
  }

  .contact__icon { grid-area: icon; }
  .contact__label { grid-area: label; }
  .contact__value { grid-area: value; }
  .contact__note { grid-area: note; }
  .contact__arrow { grid-area: arrow; }
}

/* MARK: Footer */

.site-footer {
  padding: 3rem 0 2rem;
  background: var(--orange);
  color: var(--orange-ink);
  font-size: 0.95rem;
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer .logo {
  color: var(--orange-ink);
}

.site-footer__brand p {
  margin-top: 0.85rem;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.25rem 1.5rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
}

.site-footer__copy {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgb(28 18 8 / 0.25);
  color: var(--orange-soft);
  font-size: 0.88rem;
}

/* MARK: Legal pages */

.doc {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 var(--space);
}

.doc__inner {
  max-width: 46rem;
}

.doc__back {
  margin-bottom: 2rem;
}

.doc__back a {
  color: var(--accent);
  font-weight: 500;
}

.doc h1 {
  font-family: var(--title);
  font-weight: 680;
  font-size: clamp(2.2rem, 3vw + 1rem, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.doc h2 {
  margin: 2.5rem 0 0.75rem;
  font-family: var(--title);
  font-weight: 620;
  font-size: 1.4rem;
}

.doc p + p,
.doc table + p,
.doc p + ul {
  margin-top: 1rem;
}

.doc ul {
  list-style: disc;
  padding-left: 1.25rem;
}

.doc li + li {
  margin-top: 0.35rem;
}

.doc a {
  color: var(--accent);
}

.doc__lead {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  font-weight: 500;
}

.doc__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.doc__table th,
.doc__table td {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

.doc__table th {
  width: 38%;
  padding-right: 1rem;
  font-weight: 560;
}

.doc__updated {
  margin-top: 2.5rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.todo {
  background: #fde68a;
  color: #1c1917;
  padding: 0 0.3em;
  border-radius: 0.25em;
}

.doc--center {
  text-align: center;
}

.doc--center .doc__inner {
  margin-inline: auto;
}

.doc--center p {
  margin-top: 1rem;
}

.lost {
  font-family: var(--title);
  font-weight: 750;
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--accent);
}

@media (max-width: 36rem) {
  .doc__table th,
  .doc__table td {
    display: block;
    width: auto;
    padding: 0.2rem 0;
    border: 0;
  }

  .doc__table tr {
    display: block;
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
  }
}

/* MARK: Motion */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* The body's colour (above) follows the scroll but doesn't move: it stays. */
  *:not(body),
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}


/* Generated by Website/tools/build.py from content.json: one colour set per app card. Don't edit. */

.app--colimo {
  --app-bg: #e9f1dc;
  --app-strong: #2f5a3d;
  --app-ink: #1c1917;
  --app-ink-soft: #3d3934;
}

.app--nautilo {
  --app-bg: #dcf1ec;
  --app-strong: #14606b;
  --app-ink: #1c1917;
  --app-ink-soft: #3d3934;
}

@media (prefers-color-scheme: dark) {
  .app--colimo {
    --app-bg: #1f3023;
    --app-strong: #86b07b;
    --app-ink: #f3efea;
    --app-ink-soft: #d3ccc3;
  }

  .app--nautilo {
    --app-bg: #143336;
    --app-strong: #ff9a7a;
    --app-ink: #f3efea;
    --app-ink-soft: #d3ccc3;
  }
}
