:root {
  --background: #ffffff;
  --surface: #ffffff;
  --heading: #222222;
  --text: #727272;
  --muted: #777777;
  --line: #e5e5e5;
  --accent: #267cb9;
  --accent-hover: #006699;
  --accent-soft: #f4f4f4;
  --radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--background);
  color: var(--text);
  font-family: "Noto Sans", "Helvetica Neue", Helvetica, "Noto Sans SC", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.page {
  display: grid;
  width: min(900px, calc(100% - 48px));
  min-height: 100dvh;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 70px;
  margin: 0 auto;
  padding: 50px 0;
}

.profile {
  position: sticky;
  top: 50px;
  align-self: start;
}

.avatar-slot {
  display: grid;
  width: 150px;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #c8c8c8;
  border-radius: 50%;
  background: #f4f4f4;
  color: var(--muted);
  font-size: 13px;
}

.avatar-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile h1 {
  margin: 26px 0 8px;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--heading);
}

.bio {
  max-width: 23ch;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.profile-links {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.profile-links a {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.profile-links span {
  overflow-wrap: anywhere;
}

.link-icon {
  width: 16px;
  min-width: 16px;
  height: 16px;
}

.link-icon-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.link-icon-fill {
  fill: currentColor;
}

.profile-links a:hover {
  color: var(--accent-hover);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

main {
  min-width: 0;
}

.section-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.section-header span {
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.section-header h2 {
  margin: 10px 0 0;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.06em;
  line-height: 1;
  color: #393939;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-top: 24px;
}

.tool-card {
  display: grid;
  min-height: 138px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 160ms ease, transform 160ms ease;
}

.tool-card:hover {
  border-color: var(--accent);
}

.tool-card:active {
  transform: scale(0.98);
}

.tool-card-wide {
  grid-column: 1 / -1;
}

.tool-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}

.tool-icon svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.tool-copy {
  display: grid;
  gap: 7px;
  padding-top: 2px;
}

.tool-copy strong {
  font-size: 16px;
  color: var(--heading);
}

.tool-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.tool-mode {
  padding: 5px 7px;
  border-radius: 999px;
  background: #f4f4f4;
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .page {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 40px 0 64px;
  }

  .profile {
    position: static;
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    column-gap: 20px;
  }

  .avatar-slot {
    width: 92px;
    grid-row: 1 / 4;
  }

  .profile h1 {
    align-self: end;
    margin: 0 0 5px;
    font-size: 24px;
  }

  .bio {
    max-width: 42ch;
  }

  .profile-links {
    grid-column: 2;
    margin-top: 12px;
  }
}

@media (max-width: 600px) {
  .page {
    width: min(100% - 32px, 1120px);
  }

  .tool-grid {
    grid-template-columns: 1fr;
  }

  .tool-card-wide {
    grid-column: auto;
  }

  .tool-card {
    min-height: 124px;
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 18px;
  }

  .tool-mode {
    grid-column: 2;
    width: fit-content;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tool-card {
    transition: none;
  }
}
