/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-bg: #fefcfb;
  --color-text: #2d2d2d;
  --color-text-muted: #6b6b6b;
  --color-accent: #dbaebe;
  --color-accent-hover: #c99aac;
  --color-border: #f2e8ec;
  --color-surface: #ffffff;
  --color-hero-bg: #fdf5f7;
  --color-tag-bg: #fdf5f7;
  --color-tag-text: #c2a0ad;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Lora', Georgia, serif;
  --max-width: 800px;
  --header-height: 64px;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

img { max-width: 100%; height: auto; }

/* ===== Typography ===== */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-accent-hover);
}

h1 { font-size: 2.25rem; margin-bottom: 1rem; }
h2 { font-size: 1.5rem; margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1.25rem; }

p strong,
p b {
  font-weight: inherit;
}

ul, ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
li { margin-bottom: 0.35rem; }

blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--color-text-muted);
  font-style: italic;
}

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2rem 0;
}

/* ===== Header ===== */
.site-header {
  height: var(--header-height);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-accent-hover);
}
.site-title:hover { color: var(--color-accent); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-accent-hover);
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  padding: 4rem 0;
  background: var(--color-hero-bg);
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.75rem; margin-bottom: 0.5rem; color: var(--color-accent-hover); }
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-accent);
  font-weight: 400;
  margin-bottom: 1.25rem;
}

.hero-description {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.hero-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-image { flex-shrink: 0; }

.profile-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s;
  background: var(--color-accent);
  color: white;
}
.btn:hover { background: var(--color-accent-hover); color: white; }

.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: white;
}

/* ===== Home Sections ===== */
.home-section {
  padding: 3rem 0;
}

.home-section h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
}

/* ===== Page Content ===== */
.page-content {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-content h1 {
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
}

/* ===== Blog Posts ===== */
.post-preview {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.post-preview time {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.post-preview h3 {
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.post-preview h3 a { color: var(--color-accent-hover); }
.post-preview h3 a:hover { color: var(--color-accent); }

.post-preview p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.read-more {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ===== Blog Single ===== */
.post-header { margin-bottom: 2rem; }
.post-header time { color: var(--color-text-muted); font-size: 0.9rem; }
.post-tags { margin-top: 0.75rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  background: var(--color-tag-bg);
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  color: var(--color-tag-text);
  font-weight: 500;
}

.post-body { font-family: var(--font-serif); font-size: 1.05rem; }
.post-body h2, .post-body h3 { font-family: var(--font-serif); }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-accent);
  font-size: 0.9rem;
}

/* ===== CV ===== */
.cv-section { margin-bottom: 2.5rem; }
.cv-section h2 { border-bottom: 2px solid var(--color-accent); padding-bottom: 0.35rem; }

.cv-entry { margin-bottom: 1.25rem; }
.cv-entry .cv-title { font-weight: 600; }
.cv-entry .cv-meta { color: var(--color-text-muted); font-size: 0.9rem; }

/* ===== Contact ===== */
.contact-links { list-style: none; padding: 0; }
.contact-links li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-accent);
  font-size: 1.05rem;
}

/* ===== Footer ===== */
.site-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--color-accent);
  background: var(--color-hero-bg);
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 1rem 1.5rem;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 0.65rem 0; }

  .hero-inner { flex-direction: column-reverse; text-align: center; }
  .hero-text h1 { font-size: 2rem; }
  .hero-links { justify-content: center; }
  .profile-photo { width: 160px; height: 160px; }

  h1 { font-size: 1.75rem; }
}
