:root {
  color-scheme: dark;
  --paper: #090b0c;
  --ink: #f8f6ef;
  --muted: #c9c5bb;
  --line: rgb(255 255 255 / 0.22);
  --blue: #9db7ff;
  --rose: #ff9ec3;
  --green: #78e0c2;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    linear-gradient(
      90deg,
      rgb(5 8 10 / 0.46) 0%,
      rgb(5 8 10 / 0.39) 48%,
      rgb(5 8 10 / 0.22) 100%
    ),
    linear-gradient(0deg, rgb(5 8 10 / 0.24), rgb(5 8 10 / 0.09)),
    url("/assets/golden-gate-background.jpg");
  background-position: center, center, center;
  background-repeat: no-repeat;
  background-size: auto, auto, cover;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

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

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

.frame {
  min-height: 100svh;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 48px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 30px;
}

.identity {
  display: flex;
  align-items: center;
  gap: 18px;
}

.portrait {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  object-fit: cover;
  background: transparent;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 750;
  line-height: 1;
}

.intro {
  align-self: center;
  max-width: 960px;
}

.intro p {
  margin: 0;
  text-wrap: balance;
}

.intro p:first-child {
  max-width: 780px;
  font-size: 4.4rem;
  font-weight: 760;
  line-height: 0.96;
}

.intro p + p {
  max-width: 720px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 1.22rem;
  font-weight: 520;
  line-height: 1.45;
}

.intro a {
  color: var(--ink);
  font-weight: 720;
  text-decoration: underline;
  text-decoration-color: rgb(248 246 239 / 0.38);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.intro a:hover {
  color: var(--blue);
  text-decoration-color: currentColor;
}

.intro a:nth-of-type(2):hover {
  color: var(--rose);
}

.intro a:nth-of-type(3):hover {
  color: var(--green);
}

.work {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.work a {
  min-height: 96px;
  padding: 18px 18px 18px 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}

.work a + a {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.work span {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.work strong {
  font-size: 1.04rem;
  font-weight: 720;
  line-height: 1.1;
}

.work small {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 650;
  line-height: 1.25;
}

.work-icon {
  width: 44px;
  height: 44px;
  border: 2px solid rgb(255 255 255 / 0.2);
  border-radius: 12px;
  display: block;
  object-fit: cover;
  background: #ffffff;
}

.work-icon.profile {
  border-radius: 50%;
}

.work a:hover strong {
  color: var(--blue);
}

.work a:nth-child(2):hover strong {
  color: var(--rose);
}

.work a:nth-child(3):hover strong {
  color: var(--green);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.links a {
  width: 38px;
  height: 38px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.links a:hover {
  background: rgb(255 255 255 / 0.12);
  border-color: var(--line);
  color: var(--ink);
}

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

@media (max-width: 860px) {
  .frame {
    padding: 32px 24px;
    gap: 24px;
  }

  .intro p:first-child {
    max-width: 620px;
    font-size: 3.2rem;
  }

  .intro p + p {
    max-width: 560px;
    font-size: 1.08rem;
  }

  .work {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work a {
    min-height: 82px;
    padding: 14px 14px 14px 0;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
  }

  .work a:nth-child(3) {
    border-left: 0;
  }

  .work a:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 560px) {
  body {
    background-image:
      linear-gradient(rgb(5 8 10 / 0.38), rgb(5 8 10 / 0.41)),
      url("/assets/golden-gate-background.jpg");
    background-position: center, 63% center;
    background-size: auto, cover;
    overflow: auto;
  }

  .frame {
    min-height: 100svh;
    padding: 22px 18px;
    gap: 18px;
  }

  .identity {
    gap: 12px;
  }

  .portrait {
    width: 54px;
    height: 54px;
  }

  .eyebrow {
    font-size: 0.74rem;
  }

  h1 {
    font-size: 1.22rem;
  }

  .intro p:first-child {
    font-size: 2.35rem;
    line-height: 1;
  }

  .intro p + p {
    margin-top: 16px;
    font-size: 0.98rem;
    line-height: 1.36;
  }

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

  .work a,
  .work a + a {
    min-height: 58px;
    padding: 11px 0;
    border-left: 0;
  }

  .work a + a {
    border-top: 1px solid var(--line);
  }

  .work span {
    gap: 6px;
  }

  .work strong {
    font-size: 0.98rem;
  }

  .work small {
    font-size: 0.78rem;
  }

  .work-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .work-icon.profile {
    border-radius: 50%;
  }

  .links {
    gap: 8px;
  }

  .links a {
    width: 34px;
    height: 34px;
  }

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

@media (max-height: 620px) and (min-width: 561px) {
  .frame {
    padding-block: 28px;
    gap: 18px;
  }

  .intro p:first-child {
    font-size: 3.35rem;
  }

  .intro p + p {
    margin-top: 16px;
    font-size: 1.02rem;
  }

  .work a {
    min-height: 74px;
  }
}

@media (max-width: 560px) and (max-height: 700px) {
  .frame {
    padding-block: 14px;
    gap: 10px;
  }

  .identity {
    gap: 10px;
  }

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

  .eyebrow {
    margin-bottom: 4px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: 1.05rem;
  }

  .intro p:first-child {
    font-size: 1.9rem;
    line-height: 0.98;
  }

  .intro p + p {
    margin-top: 10px;
    font-size: 0.86rem;
    line-height: 1.28;
  }

  .work a,
  .work a + a {
    min-height: 46px;
    padding-block: 7px;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .work span {
    gap: 4px;
  }

  .work strong {
    font-size: 0.88rem;
  }

  .work small {
    font-size: 0.72rem;
  }

  .work-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }

  .work-icon.profile {
    border-radius: 50%;
  }

  .links {
    gap: 6px;
  }

  .links a {
    width: 30px;
    height: 30px;
  }

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