:root {
  color-scheme: light;
  --bg: #ffffff;
  --ink: #050505;
  --muted: #586170;
  --line: #dfe3e8;
  --max: 1100px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  line-height: 1.55;
}

main {
  width: min(var(--max), calc(100% - 112px));
  margin: 0 auto;
  padding: 72px 0 92px;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-bottom: 52px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.profile {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  margin-bottom: 92px;
}

.avatar {
  width: 230px;
  height: 230px;
  display: block;
  object-fit: cover;
  border-radius: 28px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 64px;
  line-height: 1;
  letter-spacing: 0;
}

.page-head h1 {
  font-size: 32px;
  line-height: 1.15;
}

.location {
  margin-top: 18px;
  color: var(--muted);
  font-size: 26px;
  line-height: 1.25;
}

#seoul-time {
  margin-left: 10px;
  color: #727b8a;
  font-size: 17px;
  white-space: nowrap;
}

.links {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 28px;
  color: #505968;
}

.links a {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  color: inherit;
  text-decoration: none;
}

.links svg {
  width: 32px;
  height: 32px;
  display: block;
  fill: currentColor;
}

.links a:hover {
  color: var(--ink);
}

.copy {
  max-width: 960px;
}

.copy p {
  margin-bottom: 30px;
}

.page-head {
  margin-bottom: 46px;
}

.page-head p {
  max-width: 850px;
  margin-top: 22px;
  color: var(--muted);
}

.kicker {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 18px;
}

.rows,
.section {
  margin-top: 86px;
}

h2 {
  margin-bottom: 22px;
  font-size: 26px;
  line-height: 1.2;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.15;
}

.library {
  margin-top: 76px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
}

.filter {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #505968;
  padding: 8px 13px;
  font: inherit;
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}

.filter:hover,
.filter.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.resource-row[hidden] {
  display: none;
}

.rows a,
.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.rows a:last-child,
.row:last-child {
  border-bottom: 1px solid var(--line);
}

.rows span,
.row span {
  min-width: 0;
}

.rows a:hover span {
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

time,
.tag {
  color: #6f7787;
  font-size: 22px;
  white-space: nowrap;
  text-align: right;
}

.timeline {
  border-top: 1px solid var(--line);
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 34px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item time {
  color: #6f7787;
  font-size: 22px;
}

.timeline-item p,
.project p,
.resource-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 21px;
}

.project-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

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

.project p {
  max-width: 900px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

footer {
  margin-top: 58px;
  color: var(--muted);
}

@media (max-width: 720px) {
  body {
    font-size: 20px;
  }

  main {
    width: min(100% - 32px, var(--max));
    padding: 28px 0 64px;
  }

  .top-links {
    gap: 18px;
    margin-bottom: 34px;
    font-size: 18px;
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 56px;
  }

  .avatar {
    width: min(70vw, 260px);
    height: min(70vw, 260px);
  }

  h1 {
    font-size: clamp(58px, 17vw, 72px);
  }

  .location {
    font-size: 20px;
  }

  #seoul-time {
    font-size: 15px;
  }

  .links {
    gap: 24px;
  }

  .links svg {
    width: 27px;
    height: 27px;
  }

  h2 {
    font-size: 25px;
  }

  .page-head h1 {
    font-size: 32px;
  }

  .filters {
    gap: 8px;
  }

  .filter {
    font-size: 16px;
    padding: 8px 11px;
  }

  .rows a,
  .row,
  .timeline-item,
  .two-col {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  time,
  .tag {
    text-align: left;
    white-space: normal;
  }
}
