:root {
  --oatmeal: #eee7dc;
  --ink: #283138;
  --sage: #5d7068;
  --rust: #a75f49;
  --stone: #827f78;
  --line: rgb(40 49 56 / 17%);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--oatmeal);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.personal-corner {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(circle at 4% 10%, rgb(167 95 73 / 7%), transparent 17rem),
    radial-gradient(circle at 96% 88%, rgb(93 112 104 / 8%), transparent 24rem),
    var(--oatmeal);
}

.personal-corner::after {
  position: absolute;
  right: -5rem;
  bottom: -12rem;
  color: rgb(40 49 56 / 2.3%);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: 34rem;
  font-style: italic;
  line-height: 1;
  content: "j";
  pointer-events: none;
}

.page-frame {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 80px));
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  margin-inline: auto;
  padding: clamp(32px, 4.2vw, 58px) 0 clamp(34px, 4.2vw, 58px);
}

.identity {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.identity-tools {
  display: flex;
  align-items: center;
  gap: 27px;
  padding-top: 2px;
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgb(40 49 56 / 40%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.language-selector a {
  padding: 2px 0 4px;
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease;
}

.language-selector a:hover,
.language-selector a[aria-current="page"] {
  border-color: var(--rust);
  color: var(--ink);
}

.language-selector span {
  color: rgb(40 49 56 / 24%);
}

.identity h1 {
  margin: 0;
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: clamp(33px, 2.9vw, 43px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
}

.identity p {
  margin: 11px 0 0;
  color: rgb(40 49 56 / 72%);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
  line-height: 1.3;
}

.identity-mark {
  width: 11px;
  height: 11px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 7px rgb(167 95 73 / 9%);
}

.welcome {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  align-items: center;
  gap: clamp(62px, 8vw, 126px);
  padding: clamp(70px, 10vh, 112px) 0 clamp(72px, 10vh, 112px);
}

.greeting {
  animation: arrive 720ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.greeting h2 {
  margin: 0;
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.greeting h2 span {
  display: block;
}

.greeting h2 span:first-child {
  color: var(--ink);
  font-size: clamp(88px, 10vw, 146px);
  line-height: 0.78;
}

.greeting h2 span:last-child {
  max-width: 700px;
  margin-top: clamp(25px, 4.3vh, 43px);
  margin-left: clamp(22px, 4.5vw, 72px);
  color: var(--rust);
  font-size: clamp(50px, 5.6vw, 80px);
  font-style: italic;
  line-height: 0.98;
  text-wrap: balance;
}

.details {
  align-self: center;
  padding-top: 16px;
  animation: arrive 720ms 90ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.curiosity {
  margin: 0;
  color: rgb(40 49 56 / 82%);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: clamp(22px, 2.05vw, 29px);
  line-height: 1.43;
}

.interests {
  margin-top: clamp(42px, 5.5vh, 59px);
}

.label {
  margin: 0 0 20px;
  color: var(--rust);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.interest-list {
  margin: 0;
  color: var(--sage);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: 17px;
  line-height: 1.62;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: clamp(45px, 6vh, 64px);
}

.links .label {
  margin-bottom: 13px;
}

.links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 0;
  color: var(--stone);
  font-size: 12px;
  line-height: 1.4;
  transition: color 180ms ease, transform 180ms ease;
}

.links .email-link {
  color: var(--ink);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: 17px;
}

.links .linkedin-link {
  margin-top: 2px;
}

.links a:hover {
  color: var(--sage);
  transform: translateY(-1px);
}

.text-arrow {
  font-family: Arial, sans-serif;
  font-style: normal;
}

.scripture {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: start;
  gap: 22px;
  margin-left: auto;
  padding-top: clamp(36px, 5vh, 58px);
  border-top: 1px solid var(--line);
}

.quote-mark {
  color: rgb(167 95 73 / 48%);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: 82px;
  line-height: 0.76;
}

.scripture blockquote {
  margin: 0;
  color: rgb(40 49 56 / 65%);
  font-family: Baskerville, "Baskerville Old Face", "Times New Roman", serif;
  font-size: clamp(17px, 1.55vw, 21px);
  font-style: italic;
  line-height: 1.55;
}

.scripture cite {
  display: block;
  margin-top: 14px;
  color: var(--sage);
  font-size: 9px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pearl-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: clamp(38px, 5vh, 54px);
  color: var(--sage);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  transition: color 180ms ease, transform 180ms ease;
}

.pearl-link:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

a:focus-visible {
  border-radius: 1px;
  outline: 2px solid var(--rust);
  outline-offset: 5px;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(13px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 850px) {
  .page-frame {
    width: min(680px, calc(100% - 48px));
  }

  .welcome {
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 80px 0 92px;
  }

  .greeting h2 span:first-child {
    font-size: clamp(82px, 18vw, 126px);
  }

  .greeting h2 span:last-child {
    max-width: 610px;
    font-size: clamp(50px, 10vw, 72px);
  }

  .details {
    width: min(520px, 100%);
    margin-left: auto;
    padding-top: 0;
  }
}

@media (max-width: 560px) {
  .personal-corner::after {
    right: -4rem;
    bottom: -5rem;
    font-size: 20rem;
  }

  .page-frame {
    width: calc(100% - 40px);
    padding-top: 25px;
    padding-bottom: 29px;
  }

  .identity {
    gap: 16px;
  }

  .identity h1 {
    font-size: 34px;
  }

  .identity-tools {
    gap: 0;
    padding-top: 4px;
  }

  .language-selector {
    gap: 6px;
    font-size: 8px;
  }

  .identity p {
    font-size: 14px;
  }

  .identity-mark {
    display: none;
  }

  .welcome {
    gap: 49px;
    padding: 63px 0 76px;
  }

  .greeting h2 span:first-child {
    font-size: clamp(74px, 25vw, 104px);
  }

  .greeting h2 span:last-child {
    margin-top: 23px;
    margin-left: 14px;
    font-size: clamp(45px, 14vw, 59px);
  }

  .curiosity {
    max-width: 420px;
    font-size: 21px;
  }

  .interests {
    margin-top: 39px;
  }

  .interest-list {
    font-size: 16px;
    line-height: 1.65;
  }

  .links {
    margin-top: 43px;
  }

  .scripture {
    grid-template-columns: 35px 1fr;
    gap: 14px;
    padding-top: 37px;
  }

  .quote-mark {
    font-size: 54px;
  }

  .scripture blockquote {
    font-size: 17px;
  }

  .pearl-link {
    margin-top: 34px;
  }
}

@media (max-width: 360px) {
  .page-frame {
    width: calc(100% - 32px);
  }

  .links {
    gap: 22px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
