/* Palette
---------------------------*/
:root {
  --paper:  #f4f1ea;   /* warm paper background */
  --ink:    #1b1b18;   /* near-black text       */
  --muted:  #6e6b62;   /* secondary text        */
  --accent: #d8452f;   /* single red accent     */
  --line:   #d9d4c9;   /* hairline              */
}

/* Global (mobile-first)
---------------------------*/
*, *::before, *::after { box-sizing: border-box; }

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;            /* avoid mobile URL-bar jump */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;   /* top-aligned on phones */
  padding: clamp(1.75rem, 7vw, 2.75rem) clamp(1.25rem, 6vw, 2rem);
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  font-feature-settings: "cv05" 1, "ss01" 1;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@supports (font-variation-settings: normal) {
  body { font-family: "Inter var", "Inter", sans-serif; }
}

/* Composition — single column on mobile, two columns on desktop
---------------------------*/
.wrap {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "portrait"
    "intro"
    "foot";
  gap: clamp(1.75rem, 6vw, 2.25rem);
  animation: rise 600ms cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}

.intro    { grid-area: intro; min-width: 0; }
.portrait { grid-area: portrait; }
.foot     { grid-area: foot; }

/* Name */
.name {
  margin: 0;
  font-weight: 800;
  font-size: clamp(2.5rem, 12vw, 4.6rem);
  line-height: .92;
  letter-spacing: -.04em;
}
.name span { display: block; }

/* Rule */
.rule {
  height: 0;
  margin: clamp(1.25rem, 5vw, 2.2rem) 0;
  border: 0;
  border-top: 1px solid var(--ink);
}

/* Bio */
.bio {
  margin: 0;
  max-width: 28ch;
  font-size: clamp(1.15rem, 5vw, 1.5rem);
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -.011em;
}

/* Company row — uniform text wordmarks */
.worked { margin: clamp(1.75rem, 7vw, 3rem) 0 0; }
.logos {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.6rem;
}
.logos li { display: inline-flex; align-items: center; }
.logos .wordmark {
  font-size: clamp(1rem, 4.4vw, 1.1rem);
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--ink);
  opacity: .85;
}

/* Texture line */
.texture {
  margin: clamp(1.5rem, 6vw, 2.6rem) 0 0;
  color: var(--muted);
  font-size: clamp(.92rem, 3.6vw, .98rem);
}

/* Portrait */
.portrait img {
  display: block;
  width: min(62vw, 230px);
  height: auto;              /* source is already 4:5, so no stretch */
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(27, 27, 24, .14);
}

/* Footer: stacked on mobile */
.foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.1rem;
  padding-top: clamp(1.4rem, 5vw, 2.2rem);
  border-top: 1px solid var(--line);
}

.social { display: flex; gap: 1.3rem; }
.social a {
  display: inline-flex;
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
}
.social a:hover,
.social a:focus-visible { color: var(--ink); transform: translateY(-2px); }
.social a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
  border-radius: 3px;
}

.press {
  margin: 0;
  font-size: .82rem;
  color: var(--muted);
}
.press a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 180ms ease, text-decoration-color 180ms ease;
}
.press a:hover,
.press a:focus-visible {
  color: var(--accent);
  text-decoration-color: var(--accent);
}

/* Desktop enhancement — two columns, centered in the viewport
---------------------------*/
@media (min-width: 760px) {
  body { justify-content: center; padding: clamp(2.5rem, 6vw, 5rem); }

  .wrap {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "intro portrait"
      "foot  foot";
    align-items: center;
    column-gap: clamp(2.5rem, 6vw, 5.5rem);
    row-gap: clamp(2.5rem, 5vw, 4rem);
  }

  .portrait img { width: clamp(260px, 30vw, 340px); }

  .foot {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
  }
}

/* Motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
}
