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

:root {
  --bg: #ece8e1;
  --text: #1a1a1a;
  --text-secondary: #4a4a4a;
  --font: "Cormorant Garamond", "Georgia", serif;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.5;
}

::selection {
  background-color: rgba(0, 100, 255, 0.26);
}

a {
  color: var(--text);
  text-decoration: underline;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.4;
}

/* Layout */
article {
  max-width: 600px;
  margin: 0 auto;
  padding: 8rem 2rem 10rem;
}

/* Header */
header {
  margin-bottom: 4rem;
  text-align: center;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* About */
.about {
  margin-bottom: 5rem;
}

.about p {
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1.8;
  margin-bottom: 1.4rem;
}

.about p:last-child {
  margin-bottom: 0;
}

/* Sections */
section {
  margin-bottom: 5rem;
}

h2 {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.section-intro {
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

/* Experience */
.experience-item {
  margin-bottom: 3.5rem;
}

.experience-item:last-child {
  margin-bottom: 0;
}

.experience-item .period {
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.experience-item h3 {
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0.3rem 0 0.8rem;
}

.experience-item p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.experience-item p:last-child {
  margin-bottom: 0;
}

/* Projects */
.project-item {
  margin-bottom: 3rem;
}

.project-item:last-child {
  margin-bottom: 0;
}

.project-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.project-item p {
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.project-item p:last-child {
  margin-bottom: 0;
}

/* Contact */
.contact ul {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.contact li {
  font-size: 0.9rem;
}

.contact a {
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-secondary);
}

.contact a:hover {
  color: var(--text);
  opacity: 1;
}

/* Mobile */
@media (max-width: 480px) {
  article {
    padding: 5rem 1.5rem 6rem;
  }

  .contact ul {
    gap: 1.5rem;
  }
}
