@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --text: #242424;
  --muted: #666;
  --accent: #86267f;
  --line: #cfcfcf;
  --background: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Inter, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

.container {
  width: min(100% - 48px, 1050px);
  margin: 0 auto;
}

/* PROFILE */

.profile {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 45px;
  padding: 55px 0 45px;
  border-bottom: 1px solid var(--line);
}

.photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #f4e6f3, #e9e9e9);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--accent);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.intro h1 {
  margin: 0 0 12px;
  font-size: 27px;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.intro p {
  max-width: 700px;
  margin: 0 0 14px;
}

.role {
  margin-top: 0;
  color: var(--accent);
  font-weight: 600;
}

.bio {
  margin-top: 0;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  text-decoration: underline;
}

/* SECTIONS */

section,
footer {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

h2 {
  margin: 0 0 22px;
  color: #666;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

h3 {
  margin: 0 0 5px;
  font-size: 18px;
  line-height: 1.35;
}

p {
  margin: 0 0 12px;
}

/* PROJECTS & ACHIEVEMENTS */

.project,
.achievement {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  align-items: center;
}

.project:first-of-type,
.achievement:first-of-type {
  border-top: none;
  padding-top: 0;
}

.writing-item {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 22px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.item-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f4e6f3, #e9e9e9);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 2.2rem;
  overflow: hidden;
}

.item-figure span {
  display: contents;
}

.item-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.year {
  color: #777;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.subtitle {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  font-size: 14px;
  flex-wrap: wrap;
}

.writing-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.writing-item .year {
  color: #777;
  font-size: 14px;
}

/* SHOW MORE */

.is-hidden {
  display: none;
}

.show-more-btn {
  display: block;
  margin: 24px auto 0;
  padding: 8px 22px;
  background: none;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.show-more-btn:hover {
  background: var(--accent);
  color: #fff;
}

/* FOOTER */

footer {
  border-bottom: none;
  padding-bottom: 60px;
}

.copyright {
  margin-top: 35px;
  color: #888;
  font-size: 13px;
}

/* MOBILE */

@media (max-width: 700px) {
  .container {
    width: min(100% - 32px, 1050px);
  }

  .profile {
    grid-template-columns: 1fr;
    gap: 25px;
    padding-top: 30px;
  }

  .photo {
    max-width: 220px;
  }

  .intro h1 {
    font-size: 24px;
  }

  .project,
  .achievement,
  .writing-item {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .item-figure {
    max-width: 220px;
    margin-bottom: 8px;
  }
}
