:root {
  --bg: #fffaf7;
  --surface: #ffffff;
  --surface-soft: #fff1eb;
  --text: #15202b;
  --muted: #667085;
  --line: #eadfd8;
  --accent: #d87b82;
  --accent-dark: #9b4f57;
  --shadow: 0 22px 60px rgba(68, 42, 37, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0 0, #ffe4ed 0, transparent 30rem),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

.page {
  width: min(1120px, calc(100% - 48px));
  margin: 32px auto;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: center;
  padding: 44px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.label {
  margin: 0 0 14px;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: #3f4852;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
}

.primary {
  color: #ffffff;
  background: var(--accent);
}

.secondary {
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid #f1cbc6;
}

.photo-card {
  width: 100%;
  aspect-ratio: 1 / 1.18;
  overflow: hidden;
  border: 10px solid #ffffff;
  border-radius: 34px;
  background: #f7ece7;
  box-shadow: 0 18px 50px rgba(76, 45, 38, 0.15);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 24px;
  margin-top: 24px;
}

.sidebar,
.content {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 24px;
  padding: 28px;
}

.content {
  padding: 34px;
}

.panel + .panel,
.block + .block {
  margin-top: 34px;
}

h2 {
  margin: 0 0 16px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.panel a {
  display: block;
  color: var(--muted);
}

.panel a + a,
.panel a + p {
  margin-top: 6px;
}

.panel p,
.block p {
  margin: 0;
  color: #4b5563;
}

.block p + p {
  margin-top: 14px;
}

.tags,
.list,
.soft {
  list-style: none;
  padding: 0;
  margin: 0;
}

.tags,
.soft {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tags li,
.soft li {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  font-size: 0.88rem;
  font-weight: 750;
}

.list li + li {
  margin-top: 6px;
}

.entry {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.entry:last-child {
  border-bottom: 1px solid var(--line);
}

.entry.compact {
  padding: 18px 0;
}

.entry-date {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.entry h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}

@media (max-width: 900px) {
  .page {
    width: min(100% - 28px, 720px);
    margin: 14px auto;
  }

  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 30px;
  }

  .photo-card {
    order: -1;
    width: min(78vw, 320px);
    justify-self: center;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .page {
    width: 100%;
    margin: 0;
  }

  .hero,
  .sidebar,
  .content {
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .hero {
    padding: 26px 18px;
    gap: 24px;
  }

  .sidebar,
  .content {
    padding: 24px 18px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-links {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .photo-card {
    width: min(82vw, 280px);
    border-radius: 26px;
  }

  .layout {
    gap: 0;
    margin-top: 0;
  }
}

.project-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.project-card:last-child {
  border-bottom: 1px solid var(--line);
}

.project-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  line-height: 1.3;
}


.project-card > a,
.project-links a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: var(--surface-soft);
  border: 1px solid #f1cbc6;
  font-size: 0.9rem;
  font-weight: 800;
}

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

@media (max-width: 560px) {
  .project-card {
    grid-template-columns: 1fr;
  }

  .project-card > a,
  .project-links a {
    width: 100%;
  }

  .project-links {
    display: grid;
  }
}
