/* Life Labs shared styles. Palette and lettering taken from the hero artwork. */
:root {
  --ink: #1C1530;
  --muted: #4F4766;
  --violet: #6A2BD9;
  --line: rgba(28, 21, 48, 0.14);
  /* Darkened versions of the artwork's pink, violet and cyan so text stays AA readable */
  --paint: linear-gradient(90deg, #B0148F, #6A2BD9 52%, #0A7FA6);
  --paint-bright: linear-gradient(90deg, #E43FCB, #8B3FE0 50%, #1FBFEA);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --display: 'Fredoka', 'Poppins', system-ui, sans-serif;
  --body: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  font-family: var(--body);
  color: var(--ink);
  /* Matches the wall at the top and the floor at the bottom of the artwork */
  background: linear-gradient(#F6F4F4, #ECEAF0 60%, #DEDDE8) fixed;
  -webkit-font-smoothing: antialiased;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Header: logo left, tabs right */
.site-head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 24px;
}
.home { display: block; border-radius: 50%; transition: transform 160ms var(--ease-out); }
.home img { width: 46px; height: 46px; display: block; filter: drop-shadow(0 6px 16px rgba(28,21,48,0.18)); }
.home:active { transform: scale(0.95); }
.home:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }

.tabs { display: flex; gap: 6px; }
/* Bare labels, no box: a soft white halo keeps them readable over the artwork */
.tab {
  position: relative;
  font-family: var(--display); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; white-space: nowrap;
  padding: 10px 10px 12px; border-radius: 8px;
  filter: drop-shadow(0 0 5px rgba(255,255,255,0.95)) drop-shadow(0 0 2px rgba(255,255,255,0.9));
  transition: transform 160ms var(--ease-out);
}
.tab span {
  background: var(--paint);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--violet);
}
/* Active tab: a stripe of paint under the label */
.tab::after {
  content: ''; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2.5px;
  border-radius: 3px; background: var(--paint-bright);
  transform: scaleX(0); transform-origin: left;
  transition: transform 220ms var(--ease-out);
}
.tab[aria-current="page"]::after { transform: scaleX(1); }
.tab:active { transform: scale(0.97); }
.tab:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) {
  .tab:hover::after { transform: scaleX(1); }
}

/* Instagram button */
.insta {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px;
  background: rgba(255,255,255,0.86); color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(28,21,48,0.16);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform 160ms var(--ease-out), background-color 160ms ease, color 160ms ease;
}
.insta svg { width: 22px; height: 22px; fill: currentColor; }
.insta:active { transform: scale(0.95); }
.insta:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .insta:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
}

/* Entrance motion */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.site-head .tabs { animation: rise 520ms var(--ease-out) 300ms both; }

/* ---------- Inner pages ---------- */
.page {
  min-height: 100dvh;
  padding: 120px clamp(20px, 5vw, 72px) 64px;
  display: grid; align-content: center;
}
.page-grid {
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.page-grid > * { animation: rise 560ms var(--ease-out) both; }
.page-grid > :nth-child(2) { animation-delay: 90ms; }

.title {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(44px, 6vw, 80px); line-height: 1.02; letter-spacing: -0.01em;
  padding-bottom: 4px;
}
.title span {
  background: var(--paint);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--violet);
}
.lead {
  margin-top: 22px; max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted);
}
.lead + .lead { margin-top: 14px; }
.follow { margin-top: 32px; display: flex; align-items: center; gap: 14px; font-weight: 500; }

.art-frame {
  border-radius: 24px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(60,30,110,0.22);
  aspect-ratio: 4 / 3; background: #EEECF2;
}
.art-frame picture { display: block; height: 100%; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Empty state for projects */
.soon {
  border-radius: 24px; padding: clamp(28px, 4vw, 44px);
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(60,30,110,0.14);
  position: relative; overflow: hidden;
}
.soon::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px;
  background: var(--paint-bright);
}
.soon h2 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }
.soon p { margin-top: 12px; font-size: 16px; line-height: 1.6; color: var(--muted); max-width: 44ch; }

@media (max-width: 860px) {
  .page { padding-top: 104px; align-content: start; }
  .page-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-head { padding: 14px 12px 14px 16px; }
  .home img { width: 38px; height: 38px; }
  .tabs { gap: 0; }
  .tab { font-size: 15px; padding: 12px 8px 13px; }
  .tab::after { left: 8px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-head .tabs, .page-grid > * { animation: fadeOnly 400ms ease both; }
  .tab::after { transition: none; }
  @keyframes fadeOnly { from { opacity: 0; } to { opacity: 1; } }
}
