@font-face {
  font-family: "OpenAI Sans";
  src: url("./assets/fonts/OpenAISans-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "OpenAI Sans";
  src: url("./assets/fonts/OpenAISans-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f7f6f2;
  --text: #111111;
  --muted: #66635d;
  --sans: "OpenAI Sans", Arial, sans-serif;
  --mono: "OpenAI Sans", "SFMono-Regular", Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
}

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

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
  border-radius: 2px;
}

.page {
  width: min(100%, 640px);
  margin: 0 auto;
  min-height: calc(100svh - 68px);
  display: grid;
  align-items: center;
  padding: 32px 24px 40px;
}

.content-group {
  width: 100%;
  min-width: 0;
}

.writing-page {
  justify-items: center;
  text-align: center;
}

.writing-page p {
  margin: 0;
}

.writing-copy {
  max-width: 360px;
}

.writing-copy h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 500;
}

.writing-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.writing-copy .coming-soon {
  margin-top: 24px;
  font-size: 14px;
}

.top-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  background: var(--bg);
}

.top-nav-inner {
  width: min(calc(100% - 48px), 592px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 37px;
  padding: 24px 0;
  font-family: var(--mono);
  font-size: 16px;
}

.hero {
  display: grid;
  gap: 22px;
}

.hero-content {
  display: grid;
  gap: 16px;
}

.portrait {
  display: block;
  width: 160px;
  height: 174px;
  object-fit: cover;
  object-position: center;
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.site-title,
.intro {
  margin: 0;
}

.site-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  font-family: var(--sans);
  font-size: 24px;
  font-weight: 500;
  line-height: 24px;
}

.korean-name {
  font-size: inherit;
  font-weight: inherit;
}

.intro {
  max-width: 580px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-family: var(--mono);
  font-size: 16px;
}

.bottom-links {
  margin-top: 64px;
}

.links a {
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: border-color 160ms ease;
}

.links a:hover {
  border-color: currentColor;
}

.experience {
  margin-top: 42px;
}

.experience-label {
  margin: 0 0 18px;
  font-size: 20px;
  font-weight: 500;
}

.previous-label {
  margin-top: 28px;
}

.previous-logo-start {
  margin-left: 12px;
}

.previous-logo-link {
  display: block;
}

.previous-logo {
  display: block;
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.previous-logo-small {
  width: 39px;
  height: 39px;
}

.previous-logo-smaller {
  width: 35px;
  height: 35px;
}

.previous-name {
  align-self: center;
}

.previous-content {
  display: grid;
  justify-items: end;
  align-self: center;
}

.experience-item.previous-item {
  grid-template-columns: 64px max-content max-content;
}

.experience-item.current-item {
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 24px;
}

.experience-item {
  display: grid;
  grid-template-columns: 64px max-content;
  justify-content: space-between;
  align-items: start;
}

.company-logo {
  width: 46px;
  height: 46px;
  margin-left: 8px;
  object-fit: contain;
}

.experience-title,
.experience-description {
  margin: 0;
}

.experience-content {
  display: grid;
  gap: 4px;
  justify-items: end;
  align-self: center;
  text-align: right;
}

.experience-title,
.experience-description {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

@media (min-width: 760px) {
  .page {
    padding: 32px 24px 40px;
  }

  .hero {
    grid-template-columns: 160px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
  }

  .hero-content {
    padding-top: 2px;
  }

  .experience-item {
    grid-template-columns: 64px max-content max-content;
  }

  .experience-item.previous-item {
    grid-template-columns: 64px max-content max-content;
  }
}
