/* ============================================================
   Drew Kramer — personal site
   Split 50/50: content left, full-height portrait right.
   Green-ink palette, Bricolage Grotesque display.
   Plain HTML + CSS, no build step.
   ============================================================ */

:root {
  /* Light — neutral off-white, green accent */
  --bg:        #f5f5f3;
  --bg-raised: #ececea;
  --ink:       #1a1a18;
  --muted:     #66655f;
  --faint:     #8d8c86;
  --rule:      rgba(26, 26, 24, 0.12);
  --accent:    #2e7d51;  /* forest green */
  --accent-2:  #379160;
  --ring:      rgba(26, 26, 24, 0.10);
  --shadow:    rgba(20, 20, 18, 0.16);
  --ok:        #2e9e5b;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* Dark — neutral near-black, green accent */
    --bg:        #121211;
    --bg-raised: #1c1c1a;
    --ink:       #ededea;
    --muted:     #9b9a94;
    --faint:     #6f6e69;
    --rule:      rgba(237, 237, 234, 0.14);
    --accent:    #6dc28b;  /* bright green reads on dark */
    --accent-2:  #86d2a0;
    --ring:      rgba(237, 237, 234, 0.14);
    --shadow:    rgba(0, 0, 0, 0.5);
    --ok:        #6dc28b;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;          /* 16px base — body content scales from here */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---------- split layout ---------- */
.layout {
  display: grid;
  grid-template-columns: 1fr 1fr;   /* 50 / 50 on desktop */
  min-height: 100vh;
}

.panel--content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* jam to the top-left corner */
  padding: clamp(0.9rem, 1.6vw, 1.25rem)        /* top    → ~20px desktop */
           clamp(1.25rem, 3vw, 2.5rem)          /* right  → gap to image  */
           clamp(2.5rem, 5vw, 4rem)             /* bottom */
           clamp(0.9rem, 1.6vw, 1.25rem);       /* left   → ~20px desktop */
  background-image: radial-gradient(120% 70% at 0% 0%, var(--bg-raised), transparent 55%);
}

.content {
  width: 100%;
  max-width: 38rem;
  padding-left: 0;
}

/* desktop: center the copy block in the panel with even side padding */
@media (min-width: 821px) {
  .content {
    padding: 0 1rem;
    align-self: center;
    margin-right: 7%;
  }
}

.panel--media { position: relative; }

.photo {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  object-fit: cover;
  object-position: center 32%;
  display: block;
}

/* ---------- giant stacked wordmark ---------- */
.name {
  font-family: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-size: clamp(3.5rem, 12.5vw, 10rem);   /* → 160px at ~1280px, scales down */
  line-height: 0.72;
  letter-spacing: -0.038em;
  margin: 0 0 clamp(1.75rem, 3.5vw, 3rem);
  margin-left: -2px;
  display: flex;
  flex-direction: column;
}

/* ---------- intro ---------- */
.tagline {
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* ---------- bio ---------- */
.bio { margin-top: 2.4rem; }
.bio p { margin: 0 0 1rem; }
.bio p:last-child { margin-bottom: 0; }

/* ---------- available ---------- */
.available {
  margin-top: 2.4rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.55rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.6s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); }
  70%  { box-shadow: 0 0 0 7px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.available p { margin: 0; color: var(--muted); }
.available strong { color: var(--ink); font-weight: 600; }

/* ---------- shared label ---------- */
.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 1.1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--rule);
}

/* ---------- work ---------- */
.work { margin-top: 3rem; }

.work-group { margin-bottom: 1.5rem; }
.work-group:last-child { margin-bottom: 0; }

.work-cat {
  font-weight: 500;
  font-size: 1rem;
  color: var(--muted);
  margin: 0 0 0.3rem;
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
}
.work-list li:last-child { border-bottom: none; }

.work-name {
  font-size: 1rem;
  font-weight: 500;
}

/* linked work items read as ink list entries, green on hover */
.work-list a.work-name {
  color: var(--ink);
  text-decoration: none;
}
.work-list a.work-name:hover {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 0.16em;
}

/* ---------- elsewhere ---------- */
.elsewhere { margin-top: 3rem; }

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}

.links a {
  position: relative;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- links ---------- */
a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}
a:not(.links a) {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
a:hover {
  color: var(--accent-2);
  text-decoration-color: currentColor;
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.links a:hover { color: var(--accent); }
.links a:hover::after { transform: scaleX(1); }

/* ---------- entrance animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 110ms + 60ms);
}
.panel--media.reveal { transform: none; }   /* fade only, no shift for the image */

@keyframes rise {
  to { opacity: 1; transform: none; }
}

/* ---------- responsive: stack on small screens ---------- */
@media (max-width: 820px) {
  .layout {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  /* image first, as a banner on top */
  .panel--media { order: -1; }
  .photo {
    position: static;
    height: clamp(20rem, 56vh, 30rem);
    object-position: center 30%;
  }
  .panel--content {
    padding: clamp(2.25rem, 8vw, 3.5rem) 1.5rem 4rem;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; animation: none; }
  .dot { animation: none; }
  * { transition: none !important; }
}
