:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #6b6f76;
  --line: #e7e7ea;
  --soft: #f6f6f7;
  --hover: #f2f2f3;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  --radius: 12px;
  --radiusSm: 10px;
  --max: 860px;
}

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    Roboto,
    Helvetica,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  line-height: 1.55;
  letter-spacing: -0.01em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
}
.skip-link:focus {
  left: 12px;
  z-index: 999;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 20px 44px;
}

.hero {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  align-items: center;
}

.avatar {
  width: 92px;
  height: 92px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--soft);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  /* ~10% zoom + slight shift up (tweak translateY if you want more/less) */
  transform: scale(1.1) translateY(-6%);
  transform-origin: center center;
}

.heroText {
  min-width: 0;
}

.kicker {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.title {
  margin: 2px 0 4px;
  font-size: 36px;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  max-width: 54ch;
}

.heroLinks {
  margin-top: 12px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
}
.link:hover {
  border-bottom-color: rgba(17, 17, 17, 0.45);
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}

.section {
  padding: 4px 0;
}

.sectionHeader {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.h2 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.muted {
  color: var(--muted);
}

/* Carousel */
.carouselWrap {
  position: relative;
}

.carouselControls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
}
.btn:hover {
  background: var(--hover);
}
.btn:active {
  transform: translateY(1px);
}

.carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 14px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  scroll-snap-type: x mandatory;
  scroll-padding: 8px;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
}

.carousel:focus {
  outline: 2px solid rgba(17, 17, 17, 0.14);
  outline-offset: 4px;
}

.card {
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.cardMedia {
  height: 128px;
  background: linear-gradient(135deg, #f6f6f7 0%, #eeeeef 100%);
  border-bottom: 1px solid var(--line);
  background-size: cover;
  background-position: center;
}

.cardBody {
  padding: 12px 12px 13px;
  display: grid;
  gap: 6px;
}

.cardTitle {
  margin: 0;
  font-size: 14px;
  letter-spacing: -0.01em;
}

.cardCaption {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* Notion-like table */
.tableWrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.notionTable {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg);
}

.notionTable thead th {
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.notionTable tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

.notionTable tbody tr:hover td {
  background: var(--hover);
}

.notionTable tbody tr:last-child td {
  border-bottom: 0;
}

.stack {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tag {
  font-size: 12px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  color: var(--text);
}

.projectName {
  display: grid;
  gap: 6px;
}

.projectName a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(17, 17, 17, 0.18);
  width: fit-content;
}
.projectName a:hover {
  border-bottom-color: rgba(17, 17, 17, 0.45);
}

.tiny {
  font-size: 12px;
  margin: 16px 0 0;
}

.footerInner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.footerLinks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--text);
  background: var(--bg);
}
.pill:hover {
  background: var(--hover);
}

@media (max-width: 520px) {
  .hero {
    grid-template-columns: 72px 1fr;
  }
  .avatar {
    width: 72px;
    height: 72px;
  }
  .title {
    font-size: 30px;
  }
  .carouselControls {
    justify-content: flex-start;
  }
}
