:root {
  --bg: #FDDB29;
  --fg: #000;
  --muted: rgba(0, 0, 0, 0.4);
  --line: rgba(0, 0, 0, 0.2);
  --accent: #000;
  --card: rgba(0, 0, 0, 0.06);
  --radius: 4px;
  --border: 1.5px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
}

a { color: inherit; text-decoration: none; border-bottom: var(--border) solid var(--line); }
a:hover { border-color: var(--fg); }
.contacts a, .case-media, .row a { border-bottom: none; }

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* LEFT */
.side {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.avatar {
  width: 160px;
  height: 160px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  align-self: center;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.ident { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.name {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
}
.role { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }

.contacts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.contacts a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  border-radius: 8px;
  transition: background .15s ease;
}
.contacts a:hover { background: var(--card); }
.c-label { color: var(--muted); font-size: 13px; }
.c-value { font-size: 13px; font-variant-numeric: tabular-nums; }

.foot { color: var(--muted); font-size: 12px; margin: 0; text-align: center; }

/* RIGHT */
.feed {
  display: flex;
  flex-direction: column;
  gap: 48px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.block { display: flex; flex-direction: column; gap: 20px; }
.block-title {
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 4px;
}

/* Experience row */
.row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  margin: -12px;
  border-radius: 10px;
  transition: background .15s ease;
}
.row:hover { background: var(--card); }

.row-mark { flex: none; }
.row-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--card) center/cover no-repeat;
  border: 1px solid var(--line);
}
.row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.row-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: baseline;
}
.row-title { font-weight: 600; font-size: 15px; }
.row-meta { color: var(--muted); font-size: 12px; flex: none; }
.row-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* Case card */
.case {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  margin: -12px;
  border-radius: var(--radius);
  transition: background .15s ease;
}
.case:hover { background: var(--card); }

.case-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--line);
}
.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.case:hover .case-media img { transform: scale(1.02); }

.case-body { display: flex; flex-direction: column; gap: 4px; }
.case-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.case-title { font-size: 15px; font-weight: 600; margin: 0; }
.case-tag { color: var(--muted); font-size: 12px; flex: none; }
.case-desc { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.prose { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* Desktop two-column layout */
@media (min-width: 900px) {
  .page {
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
    padding: 64px 32px;
    justify-content: center;
  }
  .side {
    position: sticky;
    top: 64px;
    width: 300px;
    max-width: 300px;
    margin: 0;
    text-align: left;
    align-self: flex-start;
  }
  .ident { text-align: left; }
  .avatar { align-self: flex-start; width: 149px; height: 149px; }
  .foot { text-align: left; }
  .feed { width: 600px; max-width: 600px; margin: 0; }
}
