:root {
  --ink: #343733;
  --text: #4b504b;
  --muted: #686d67;
  --line: #d5d9d2;
  --paper: #f2f3ef;
  --surface: #e7ebe6;
  --sage: #5d7065;
  --mist-blue: #5d7180;
  --clay: #835f55;
  --page-width: 820px;
  --gutter: 24px;
  --serif: "Iowan Old Style", Baskerville, Georgia, "Songti SC", "STSong", serif;
  --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.82;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--mist-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--mist-blue);
  outline-offset: 4px;
}

::selection {
  color: var(--ink);
  background: #dbe3dc;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 10;
  padding: 8px 12px;
  color: var(--paper);
  background: var(--ink);
  font-size: 13px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header,
main,
.site-footer {
  width: min(var(--page-width), calc(100% - (var(--gutter) * 2)));
  margin-right: auto;
  margin-left: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 0 22px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.4;
}

.site-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header nav a:hover {
  color: var(--mist-blue);
  text-decoration: underline;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  white-space: nowrap;
}

.language-switch [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.language-divider {
  color: var(--line);
}

main {
  padding-top: 72px;
  padding-bottom: 92px;
}

.intro {
  max-width: 730px;
  padding-bottom: 62px;
}

h2,
h3,
p,
figure {
  letter-spacing: 0;
}

h2,
h3 {
  color: var(--ink);
  font-family: var(--serif);
}

.career-map {
  display: grid;
  grid-template-columns: max-content 42px max-content 42px max-content 42px max-content;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  height: 190px;
}

.career-node {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.1;
  white-space: nowrap;
}

.career-node-researcher {
  grid-row: 1;
  grid-column: 1;
  color: var(--ink);
}

.career-node-engineer {
  grid-row: 1;
  grid-column: 3;
  color: var(--mist-blue);
}

.career-node-product {
  grid-row: 2;
  grid-column: 5;
  color: var(--clay);
}

.career-node-manager {
  grid-row: 2;
  grid-column: 7;
  color: var(--sage);
}

.career-connector {
  color: var(--sage);
  font-family: var(--sans);
  font-size: 23px;
  line-height: 1;
  text-align: center;
  opacity: 0.55;
}

.career-connector-one {
  grid-row: 1;
  grid-column: 2;
}

.career-connector-one::before,
.career-connector-three::before {
  content: "→";
}

.career-connector-two {
  grid-row: 1 / 3;
  grid-column: 4;
}

.career-connector-two::before {
  content: "↘";
}

.career-connector-three {
  grid-row: 2;
  grid-column: 6;
}

.lang-en .career-map {
  grid-template-columns: minmax(0, 1fr) 42px minmax(0, 1fr);
  grid-template-rows: auto 36px auto;
  gap: 16px 12px;
  height: auto;
  min-height: 205px;
}

.lang-en .career-node {
  font-size: 31px;
  white-space: normal;
}

.lang-en .career-node-researcher {
  grid-row: 1;
  grid-column: 1;
  justify-self: start;
}

.lang-en .career-node-engineer {
  grid-row: 1;
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.lang-en .career-node-product {
  grid-row: 3;
  grid-column: 1;
  justify-self: start;
}

.lang-en .career-node-manager {
  grid-row: 3;
  grid-column: 3;
  justify-self: end;
  text-align: right;
}

.lang-en .career-connector-one {
  grid-row: 1;
  grid-column: 2;
}

.lang-en .career-connector-two {
  grid-row: 2;
  grid-column: 2;
}

.lang-en .career-connector-two::before {
  content: "↙";
}

.lang-en .career-connector-three {
  grid-row: 3;
  grid-column: 2;
}

.current-role {
  margin: 0;
  padding-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.current-role strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
}

main > section:not(.intro) {
  padding-top: 56px;
  border-top: 1px solid var(--line);
}

main > section + section {
  margin-top: 72px;
}

h2 {
  margin: 0 0 24px;
  font-size: 27px;
  font-weight: 600;
  line-height: 1.3;
}

.entry {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 26px;
  padding: 27px 0 29px;
  border-top: 1px solid var(--line);
}

.entry:last-child {
  padding-bottom: 0;
}

.entry-meta {
  color: var(--sage);
  font-size: 12px;
  line-height: 1.6;
}

.entry-meta {
  padding-top: 5px;
  font-weight: 600;
}

.entry-body h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.45;
}

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

.entry-body h3 a:hover {
  color: var(--mist-blue);
  text-decoration: underline;
}

.entry-body p {
  margin: 0;
}

figure {
  margin: 26px 0 0;
}

figure img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--mist-blue);
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-top: 24px;
  }

  .site-header nav {
    justify-content: flex-start;
    gap: 10px 16px;
  }

  main {
    padding-top: 50px;
    padding-bottom: 70px;
  }

  .intro {
    padding-bottom: 46px;
  }

  .career-map {
    grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr);
    grid-template-rows: auto 34px auto;
    gap: 20px 5px;
    height: auto;
    min-height: 170px;
  }

  .career-node {
    font-size: 27px;
  }

  .lang-en .career-map {
    gap: 20px 5px;
    min-height: 180px;
  }

  .lang-en .career-node {
    font-size: 25px;
  }

  .career-node-researcher {
    grid-row: 1;
    grid-column: 1;
    justify-self: start;
  }

  .career-node-engineer {
    grid-row: 1;
    grid-column: 3;
    justify-self: end;
  }

  .career-node-product {
    grid-row: 3;
    grid-column: 1;
    justify-self: start;
  }

  .career-node-manager {
    grid-row: 3;
    grid-column: 3;
    justify-self: end;
  }

  .career-connector-one {
    grid-row: 1;
    grid-column: 2;
  }

  .career-connector-two {
    grid-row: 2;
    grid-column: 2;
  }

  .career-connector-two::before {
    content: "↙";
  }

  .career-connector-three {
    grid-row: 3;
    grid-column: 2;
  }

  .current-role {
    padding-top: 15px;
    font-size: 16px;
  }

  .current-role strong {
    font-size: 22px;
  }

  main > section:not(.intro) {
    padding-top: 42px;
  }

  main > section + section {
    margin-top: 56px;
  }

  h2 {
    margin-bottom: 17px;
    font-size: 25px;
  }

  .entry {
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 23px 0;
  }

  .entry-meta {
    padding-top: 0;
  }

  .entry-body h3 {
    font-size: 20px;
  }

  figure {
    margin-top: 21px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
