:root {
  --ink: #1a1a1a;
  --text: #555555;
  --muted: #8a8a8a;
  --accent: #428bff;
  --line: #ececec;
  --bg: #ffffff;
  --header: 72rem;
  --column: 40rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto Slab", Georgia, serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.8rem;
  z-index: 10;
}

.skip:focus {
  top: 1rem;
}

.site-header {
  padding: 1.6rem 1.5rem 0;
}

.site-header__inner {
  max-width: var(--header);
  margin: 0 auto;
}

.brand {
  font-family: Roboto, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.wrap {
  width: min(var(--column), calc(100% - 2.5rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.profile {
  margin-top: 4.5rem;
  text-align: center;
}

.avatar {
  width: 144px;
  height: 144px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.name {
  margin: 1.35rem 0 0.2rem;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1.65rem;
  line-height: 1.3;
  color: var(--ink);
}

.role {
  margin: 0;
  font-family: "Source Serif 4", Georgia, serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text);
}

.bio {
  margin: 1.6rem 0 0;
  text-align: justify;
  hyphens: auto;
  font-size: 1rem;
  line-height: 1.7;
}

.social {
  display: flex;
  justify-content: center;
  gap: 1.15rem;
  margin-top: 1.35rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--ink);
  border-radius: 999px;
}

.social a:hover,
.social a:focus-visible {
  color: var(--accent);
}

.social svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 3.25rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
}

.tabs button {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  padding: 0.7rem 0.25rem 0.75rem;
  color: var(--muted);
  font-family: Montserrat, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.tabs button svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
}

.tabs button[aria-selected="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tabs button:hover {
  color: var(--accent);
}

.tabs button:focus-visible,
.social a:focus-visible,
.entry__body a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.panel[hidden] {
  display: none;
}

.entry {
  display: grid;
  grid-template-columns: 10.4rem 3rem minmax(0, 1fr);
  gap: 0.35rem 0.9rem;
  padding: 1.15rem 0;
}

.entry__date {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  white-space: nowrap;
}

.entry__logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  background: #f6f6f6;
}

.entry__body h3 {
  margin: 0;
  font-family: Roboto, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink);
}

.entry__body h3 a {
  color: var(--ink);
  text-decoration: none;
}

.entry__body h3 a:hover {
  color: var(--accent);
}

.entry__org {
  margin: 0.15rem 0 0;
  color: #7d7d7d;
  font-style: italic;
  font-size: 0.95rem;
}

.entry__desc {
  margin: 0.45rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

#experience .entry__desc {
  text-align: justify;
  hyphens: auto;
}

.site-footer {
  padding: 0 1.5rem 2.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .profile {
    margin-top: 2.5rem;
  }

  .tabs button span {
    font-size: 0.68rem;
  }

  .entry {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 0.45rem 0.75rem;
  }

  .entry__date {
    grid-column: 1 / -1;
    margin: 0;
  }

  .entry__logo {
    width: 44px;
    height: 44px;
  }
}
