:root {
  color-scheme: light;
  background: #fff;
  color: #111;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.layout {
  display: grid;
  min-height: 100vh;
  width: min(1000px, 100%);
  margin: 0 auto;
}

.sidebar {
  position: fixed;
  top: 0;
  left: max(0px, calc(50vw - 550px));
  width: 280px;
  height: 100vh;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.role {
  font-size: 0.95rem;
  color: #555;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 60px;
}

.menu-link {
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111;
}

.menu-link.active {
  color: #000;
}

.footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
  color: #555;
}

.footer-desktop {
  display: flex;
}

.footer-mobile {
  display: none;
}

.content {
  margin-left: 280px;
  padding: 38px 48px 48px 40px;
  max-width: 980px;
}

h1 {
  margin: 0 0 24px;
  font-size: 2.5rem;
  letter-spacing: -0.04em;
}

h2 {
  margin: 48px 0 18px;
  font-size: 1.35rem;
}

h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}

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

h3 a:hover {
  text-decoration: underline;
}

p, li {
  line-height: 1.8;
  color: #222;
}

section {
  max-width: 860px;
}

.about-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
}

.about-avatar {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border: 1px solid #ddd;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.about-name{
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-avatar {
    margin: 0 auto;
  }
}

.achievement-list,
.press-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.achievement-list li,
.press-list li,
.work-section article {
  padding: 0;
}

.work-section {
  margin-top: 32px;
}

.work-section article,
.content article {
  margin-bottom: 34px;
}

.work-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 0px;
}

.work-logo {
  width: 45px;
  height: 45px;
  object-fit: contain;
  border-radius: 0px;
  flex-shrink: 0;
}

article p {
  margin-top: 0px;
  margin-bottom: 50px;
}

.work-heading-text {
  min-width: 0;
}

.work-head h3 {
  margin-bottom: 4px;
}

.meta {
  margin: 0 0 6px;
  color: #555;
  font-size: 0.95rem;
}

.work-section article p {
  margin: 0;
}

.press-list a {
  display: inline-block;
  margin-bottom: 3px;
  font-weight: 600;
}

.copyright {
  margin: 8px 0 0;
  color: #555;
  font-size: 0.88rem;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  order: 2;
}

@media (max-width: 900px) {
  .layout {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: auto;
    padding: 16px 24px;
    order: -1;
    z-index: 99;
    background: #fff;
  }

  .brand {
    display: none;
  }

  .footer-desktop {
    display: none;
  }

  .footer-mobile {
    display: flex;
  }

  .menu {
    flex-direction: row;
    gap: 24px;
    margin-top: 0;
    flex-wrap: wrap;
  }

  .footer {
    position: static;
    width: 100%;
    background: #fff;
    padding: 32px 24px;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    z-index: auto;
    margin-top: 48px;
  }

  .footer p:first-child {
    margin: 0;
    order: 1;
  }

  .copyright {
    margin: 0;
    order: 3;
  }

  .content {
    margin: 0;
    margin-top: 60px;
    padding: 32px 24px 24px;
  }
}
