:root {
  --bg: #f3ece0;
  --bg-glow: #fbd9b4;
  --sky: #cfe3ea;
  --card: #fffdf8;
  --stub: #f8f1e4;
  --ink: #1f2328;
  --muted: #5d6268;
  --line: #e6dccb;
  --accent: #d2552f;
  --accent-ink: #ffffff;
  --sea: #1f6f78;
  --shadow: 0 1px 2px rgba(60, 40, 10, .06), 0 18px 50px -18px rgba(60, 40, 10, .28);
  --radius: 22px;
  --text: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1100px 520px at 85% -10%, var(--bg-glow), transparent 65%),
    radial-gradient(900px 500px at -10% 110%, var(--sky), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: clamp(28px, 7vh, 72px) 16px 40px;
}

/* Business card, styled like a boarding pass */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise .6s cubic-bezier(.2, .8, .2, 1) both;
}

.card-main {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  padding: 30px 30px 26px;
}

.avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--stub);
  box-shadow: 0 0 0 4px var(--card), 0 0 0 6px var(--accent);
}

h1 {
  font-weight: 800;
  font-size: clamp(1.6rem, 1.15rem + 2vw, 2.05rem);
  line-height: 1.1;
  letter-spacing: -.025em;
  margin: 0 0 6px;
}

.who {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--sea);
}

.bio {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}
.bio li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-wrap: pretty;
}
.bio li svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--accent);
}

.perforation {
  position: relative;
  height: 0;
  margin: 0 20px;
  border-top: 2px dashed var(--line);
}
.perforation::before,
.perforation::after {
  content: "";
  position: absolute;
  top: -13px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg);
}
.perforation::before { left: -33px; }
.perforation::after { right: -33px; }

.card-stub {
  padding: 24px 30px 28px;
  background: var(--stub);
}

.social {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.social a {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 2px;
  min-height: 112px;
  padding: 16px 10px;
  border-radius: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.social a svg {
  width: 30px;
  height: 30px;
  margin-bottom: 8px;
  color: var(--accent);
  transition: color .18s ease;
}
.social .label {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -.01em;
}
.social .sub {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  color: var(--muted);
  transition: color .18s ease;
}
.social svg,
.bio svg,
.project-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.social svg .fill { fill: currentColor; stroke: none; }

/* Projects */
.projects {
  margin-top: 40px;
  animation: rise .6s .12s cubic-bezier(.2, .8, .2, 1) both;
}

h2 {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.01em;
  margin: 0 0 14px 4px;
}

.project {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 18px;
  padding: 22px 24px;
  margin-bottom: 14px;
  border-radius: 18px;
  background: var(--card);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.project-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.project-icon .fill-soft { fill: color-mix(in srgb, currentColor 18%, transparent); }

.project h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -.01em;
}
.project p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  text-wrap: pretty;
}
.project-cta {
  grid-column: 2;
  margin-top: 10px;
  font-weight: 600;
  font-size: .92rem;
  color: var(--accent);
}
.project-cta span { display: inline-block; transition: transform .18s ease; }

.project.is-soon { border-style: dashed; background: transparent; }
.project.is-soon .project-icon { color: var(--sea); background: color-mix(in srgb, var(--sea) 12%, transparent); }
.project.is-soon .project-cta { color: var(--muted); }

.foot {
  margin-top: 36px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted);
}

/* Interaction */
@media (hover: hover) {
  .social a:hover { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
  .social a:hover svg,
  .social a:hover .sub { color: var(--accent-ink); }
  a.project:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
  a.project:hover .project-cta span { transform: translateX(4px); }
}
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

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

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

/* Phones */
@media (max-width: 520px) {
  .card-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    padding: 28px 22px 22px;
  }
  .bio { text-align: left; }
  .card-stub { padding: 20px 18px 22px; }
  .social { grid-template-columns: 1fr; gap: 10px; }
  .social a {
    grid-template-columns: auto 1fr;
    justify-items: start;
    column-gap: 14px;
    min-height: 0;
    padding: 14px 18px;
    text-align: left;
  }
  .social a svg { grid-row: span 2; margin: 0; }
  .project { padding: 18px; gap: 4px 14px; }
}
