/* Palette taken from the portrait: plum jacket, lavender shirt, white brick. */
:root {
  --plum-900: #1f0f24;
  --plum-800: #2b1530;
  --plum-700: #4a2348;
  --plum-500: #7a3f78;
  --lavender: #c9b6f2;
  --lavender-soft: #ebe3fb;
  --cream: #f8f4ee;

  --bg: var(--cream);
  --surface: #ffffff;
  --text: #20151f;
  --muted: #5e5360;
  --accent: #6b2f6b;
  --border: #e7dfe6;
  --pill: var(--lavender-soft);
  --pill-text: #4a2348;

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #150d17;
    --surface: #1f1522;
    --text: #f3ecf2;
    --muted: #b7a9b8;
    --accent: var(--lavender);
    --border: #33243a;
    --pill: #2d1f34;
    --pill-text: #ddd0f7;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }

/* Buttons: one filled button per view, the rest quiet. All at least 44px tall. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--lavender); color: var(--plum-900); }
.button.primary:hover { background: #d8c9f7; }
.button.ghost { color: var(--cream); border: 1.5px solid rgba(248, 244, 238, .45); }
.button.ghost:hover { border-color: var(--cream); }
.button.light { background: var(--cream); color: var(--plum-800); }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(201, 182, 242, .22), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(122, 63, 120, .45), transparent 60%),
    var(--plum-800);
  color: var(--cream);
}
.hero-inner {
  max-width: 1100px; margin: 0 auto; padding: 72px 24px 80px;
  display: grid; gap: 48px; align-items: center;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr);
}
.eyebrow {
  margin: 0; font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--lavender);
}
h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(48px, 8vw, 92px); line-height: .98; letter-spacing: -.025em;
  margin: 14px 0 22px;
}
.lede { font-size: clamp(18px, 2vw, 21px); line-height: 1.6; max-width: 34em; margin: 0 0 32px; color: rgba(248, 244, 238, .86); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { margin: 0; position: relative; justify-self: end; width: min(100%, 400px); }
.portrait::before {
  content: ""; position: absolute; inset: 0;
  transform: translate(18px, 18px); border-radius: 28px;
  border: 2px solid rgba(201, 182, 242, .55);
}
.portrait img {
  position: relative; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}

/* Sections */
main { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0 0; }
.section-title {
  font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -.015em; line-height: 1.1; margin: 0 0 36px;
}
h3 { margin: 0 0 10px; font-size: 21px; line-height: 1.25; }

/* What I do: three columns, grouped by spacing rather than boxes. */
.pillars {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 40px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.pillars li { border-top: 2px solid var(--accent); padding-top: 20px; }
.pillars p { margin: 0; color: var(--muted); }
.num { display: block; font-family: var(--serif); font-size: 15px; color: var(--accent); margin-bottom: 6px; letter-spacing: .05em; }

/* Projects */
.projects { display: grid; gap: 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(43, 21, 48, .45); }
.project-art { height: 128px; display: grid; place-items: center; font-size: 52px; }
.bee .project-art { background: linear-gradient(135deg, #ffd66b, #f5a524 60%, #e07a1f); }
.shepherd .project-art { background: linear-gradient(135deg, var(--lavender), var(--plum-500) 65%, var(--plum-700)); }
.project-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.project-body > p { margin: 0 0 16px; color: var(--muted); }
.stack { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.stack li { background: var(--pill); color: var(--pill-text); font-size: 13px; font-weight: 500; padding: 4px 12px; border-radius: 999px; }
.status { display: inline-block; align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--pill-text) !important; background: var(--pill); padding: 4px 12px; border-radius: 999px; }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: auto 0 0 !important; }
.project-links a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; text-decoration: none; }
.project-links a:hover { text-decoration: underline; }

/* Quotes */
.quotes { display: grid; gap: 40px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
blockquote { margin: 0; position: relative; padding-top: 44px; }
blockquote::before {
  content: "“"; position: absolute; top: -18px; left: -4px;
  font-family: var(--serif); font-size: 96px; line-height: 1; color: var(--lavender);
}
blockquote p { font-family: var(--serif); font-size: 19px; line-height: 1.55; margin: 0 0 18px; }
blockquote footer { display: grid; gap: 2px; font-size: 15px; }
blockquote footer span { color: var(--muted); }

/* Closing call to action */
footer.site {
  margin-top: 112px;
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(201, 182, 242, .2), transparent 60%),
    var(--plum-800);
  color: var(--cream);
}
.site-inner { max-width: 1100px; margin: 0 auto; padding: 80px 24px 40px; }
.cta-title { font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 12px; }
.cta-text { font-size: 19px; color: rgba(248, 244, 238, .82); margin: 0 0 28px; max-width: 32em; }
.fine { margin: 72px 0 0; font-size: 14px; color: rgba(248, 244, 238, .7); }
.fine a { color: var(--lavender); }

/* Gentle entrance, skipped for people who ask for less motion. */
@media (prefers-reduced-motion: no-preference) {
  .hero-text > *, .portrait { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-text > :nth-child(2) { animation-delay: .06s; }
  .hero-text > :nth-child(3) { animation-delay: .12s; }
  .hero-text > :nth-child(4) { animation-delay: .18s; }
  .portrait { animation-delay: .1s; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  .button, .project { transition: none; }
  .button:hover, .project:hover { transform: none; }
}

/* Small screens */
@media (max-width: 860px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 20px 64px; gap: 40px; }
  .portrait { order: -1; justify-self: start; width: min(62%, 260px); }
  .pillars, .quotes, .projects { grid-template-columns: 1fr; }
  main { padding: 0 20px; }
  section { padding-top: 64px; }
  .site-inner { padding: 64px 20px 32px; }
}
