:root {
  --bg: #e8e8e8;
  --text: #05070a;
  --accent: #f2cf1d;
  --font: "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  --side-pad: clamp(22px, 4vw, 72px);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--text);
}

.landing-body {
  background: var(--bg);
  min-height: 100vh;
  overflow: hidden;
}

.site-header {
  height: clamp(64px, 8vh, 88px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--side-pad);
  opacity: 0;
  animation: fadeUp 0.55s ease-out 0.95s forwards;
}

.brand {
  font-size: clamp(22px, 1.9vw, 36px);
  font-weight: 700;
  line-height: 1;
}

.landing-layout {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) minmax(380px, 1fr) minmax(320px, 1fr);
  align-items: end;
  height: calc(100vh - clamp(64px, 8vh, 88px));
  padding: 0 var(--side-pad);
  gap: clamp(12px, 2.2vw, 34px);
}

.landing-mobile {
  display: none;
}

.links-col {
  align-self: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding-left: 0;
  font-size: 14px;
  margin-left: 15%;
  margin-bottom: clamp(80px, 14vh, 180px);
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.5s ease-out 0.78s forwards;
}

.links-col a {
  color: #232830;
  text-decoration: underline;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes circleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.photo-col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
}

.yellow-circle {
  position: absolute;
  width: clamp(380px, 34vw, 500px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--accent);
  bottom: clamp(140px, 16vh, 220px);
  z-index: 1;
  opacity: 0;
  transform: scale(0.9);
  animation: circleIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s forwards;
}

.avatar-image {
  position: relative;
  z-index: 2;
  height: clamp(800px, 88vh, 980px);
  width: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom center;
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.6s ease-out 0.32s forwards;
}

.name-col {
  align-self: center;
  z-index: 3;
  margin-left: clamp(-86px, -7vw, -34px);
  margin-bottom: clamp(120px, 15vh, 220px);
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 0.55s ease-out 0.56s forwards;
}

.name-col h1 {
  margin: 0;
  font-size: clamp(72px, 8.8vw, 128px);
  line-height: 0.95;
  font-weight: 700;
}

/* Articles */
.article-page {
  min-height: 100svh;
  background: #fff;
}

.article-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 16px 48px;
}

.article-wrap article {
  font-size: 18px;
  line-height: 1.6;
}

.article-wrap h1 {
  margin: 0 0 12px;
  font-size: 36px;
  line-height: 1.15;
}

.article-meta {
  color: #667085;
  font-size: 14px;
  margin-bottom: 24px;
}

.article-wrap h2 {
  margin: 30px 0 10px;
  font-size: 28px;
  line-height: 1.2;
}

.article-wrap p {
  margin: 0 0 14px;
}

.article-wrap ul,
.article-wrap ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-wrap li {
  margin: 0 0 8px;
}

.article-wrap hr {
  border: 0;
  border-top: 1px solid #e4e7ec;
  margin: 28px 0;
}

.article-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.45;
  display: block;
  overflow-x: auto;
}

.article-wrap th,
.article-wrap td {
  border: 1px solid #dfe3e8;
  padding: 10px;
  text-align: left;
  vertical-align: top;
  min-width: 180px;
}

.article-wrap th {
  background: #f8fafc;
  font-weight: 700;
}

.article-wrap figure {
  margin: 24px 0;
}

.article-wrap img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-wrap figcaption {
  font-size: 14px;
  color: #667085;
  margin-top: 8px;
}

.simple-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.simple-404 h1 {
  margin: 0 0 12px;
  font-size: 48px;
}

.simple-404 p {
  margin: 0;
  font-size: 18px;
}

@media (max-width: 1024px) {
  .site-header,
  .landing-desktop {
    display: none;
  }

  .landing-mobile {
    position: relative;
    display: block;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }

  .m-name-col {
    position: absolute;
    top: 20px;
    left: 16px;
    right: 16px;
    z-index: 6;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.55s ease-out 0.56s forwards;
  }

  .m-name-col h1 {
    margin: 0;
    font-size: clamp(65px, 17vw, 168px);
    line-height: 0.93;
    font-weight: 700;
  }

  .m-photo-col {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
  }

  .m-yellow-circle {
    position: absolute;
    width: clamp(340px, 86vw, 620px);
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: var(--accent);
    bottom: clamp(140px, 18vh, 220px);
    z-index: 1;
    opacity: 0;
    transform: scale(0.9);
    animation: circleIn 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) 0.05s forwards;
  }

  .m-avatar-image {
    position: relative;
    z-index: 2;
    height: min(78vh, 980px);
    width: auto;
    max-height: none;
    object-fit: contain;
    object-position: bottom center;
    display: block;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease-out 0.32s forwards;
  }

  .m-links-col {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 58px;
    z-index: 7;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(14px);
    animation: fadeUp 0.5s ease-out 0.78s forwards;
  }

  .m-links-col a {
    color: #ffffff;
    text-decoration: underline;
    text-decoration-color: #ffffff;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .yellow-circle,
  .avatar-image,
  .name-col,
  .links-col,
  .m-name-col,
  .m-yellow-circle,
  .m-avatar-image,
  .m-links-col {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
