/* ===========================================================================
   heydarren — single page site
   Plain static HTML + CSS, no dependencies.
   Typography: Sora. Motion: one easing family, cubic-bezier(.22, .9, .3, 1).
   =========================================================================== */

:root {
  --ink: #333;
  --link: #ff9530;
  --link-hover: #69c536;

  /* per-project link colors */
  --sv: #ff9530; /* Shop Vitals — orange */
  --cs: #8b5cf6; /* Color Saver — violet */
  --wb: #3a9bff; /* Wishboard — sky blue */
  --gp: #e8402c; /* Spoiler Free GP — racing red */

  --ease: cubic-bezier(0.22, 0.9, 0.3, 1);
}

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

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

body {
  height: 100%;
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background-color: #fff;
  background-image: url("/assets/bg.jpg");
  background-position: 50% 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: scroll;
  font-family: Sora, system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Layout ------------------------------------------------------------------ */

.body-inner {
  display: flex;
  flex-flow: column;
  align-content: center;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 10vw 15vw;
  position: relative;
}

.darren-photo {
  width: 170px;
  height: 170px;
  margin-top: 0;
  margin-bottom: 20px;
  border-radius: 50%;
}

/* Headline — one line, two weights sharing a baseline ---------------------- */

.headline {
  margin: 0;
  font-size: clamp(2.4rem, 5.6vw, 4.2rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hey {
  font-weight: 800;
}

.iam {
  font-weight: 200;
}

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

.content {
  padding-bottom: 100px;
}

.content p {
  max-width: 44ch;
  margin: 1.7rem 0 0;
}

/* Links -------------------------------------------------------------------- */

a {
  color: var(--link);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.16s ease;
}

a:hover {
  color: var(--link-hover);
}

/* keep multi-word project names on one line */
.proj {
  white-space: nowrap;
}

.proj.sv { color: var(--sv); }
.proj.cs { color: var(--cs); }
.proj.wb { color: var(--wb); }
.proj.gp { color: var(--gp); }

/* keep after the per-project colors so hover wins at equal specificity */
.proj:hover {
  color: var(--link-hover);
}

/* Load animations ---------------------------------------------------------- */

@keyframes photoIn {
  from { opacity: 0; transform: scale(0.9) translateY(6px); }
  to   { opacity: 1; transform: none; }
}

@keyframes slideIn {
  0%   { opacity: 0; transform: translateX(-26px); }
  70%  { transform: translateX(2px); }
  100% { opacity: 1; transform: none; }
}

@keyframes dropIn {
  0%   { opacity: 0; transform: translateY(-26px); }
  70%  { opacity: 1; transform: translateY(3px); }
  100% { opacity: 1; transform: none; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* photo → "I'm Darren." slides in → "Hey." drops in → paragraphs stagger up */
.darren-photo {
  opacity: 0;
  animation: photoIn 0.65s var(--ease) 0.1s both;
}

.iam {
  display: inline-block;
  opacity: 0;
  animation: slideIn 0.6s var(--ease) 0.45s both;
}

.hey {
  display: inline-block;
  opacity: 0;
  animation: dropIn 0.55s var(--ease) 0.8s both;
}

.content p {
  opacity: 0;
  animation: riseIn 0.6s var(--ease) both;
}

.content p:nth-of-type(1) { animation-delay: 1.05s; }
.content p:nth-of-type(2) { animation-delay: 1.18s; }
.content p:nth-of-type(3) { animation-delay: 1.31s; }

/* Responsive --------------------------------------------------------------- */

@media screen and (max-width: 767px) {
  .body-inner {
    padding: 7vw;
  }
}

/* Respect reduced-motion --------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
