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

body {
  font-family: 'Georgia', serif;
  background-color: #fafafa;
  color: #222;
}

nav {
  background-color: rgb(248, 244, 237);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 56px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

nav a {
  color: #888;
  text-decoration: none;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 2rem;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: #222;
}

/* ── Homepage ── */
.home-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
}

.home-container img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  object-position: center 15%;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.home-container h1 {
  margin-top: 1.2rem;
  font-size: 1.6rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: #444;
}

/* ── CV Page ── */
.cv-export {
  max-width: 860px;
  margin: 2rem auto 0;
  padding: 0 2rem;
  display: flex;
  justify-content: flex-end;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.4rem;
  background-color: #f97316;
  border: none;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-family: 'Helvetica Neue', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.35);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.export-btn:hover {
  background-color: #ea6c0a;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.45);
  transform: translateY(-1px);
}

.cv-container {
  max-width: 860px;
  margin: 2rem auto;
  padding: 0 2rem 4rem;
}

.cv-header {
  margin-top: 1rem;
  text-align: center;
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid #222;
}

.cv-header h1 {
  font-size: 2rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.cv-header .subtitle {
  font-size: 1rem;
  color: #555;
  font-style: italic;
  margin-bottom: 0.8rem;
}

.cv-header .contact {
  font-size: 0.88rem;
  color: #666;
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.cv-header .contact a {
  color: #555;
  text-decoration: none;
}

.cv-header .contact a:hover {
  color: #222;
}

.cv-section {
  margin-bottom: 2.4rem;
}

.cv-section h2 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.4rem;
  margin-bottom: 1.2rem;
}

.cv-section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 0.8rem;
}

.cv-section ul {
  list-style: none;
  padding: 0;
}

.cv-section ul li {
  font-size: 0.93rem;
  line-height: 1.6;
  color: #333;
  padding-left: 1.2rem;
  position: relative;
  margin-bottom: 0.3rem;
}

.cv-section ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #aaa;
  font-size: 1.2rem;
  line-height: 1.4;
}

.job {
  margin-bottom: 2rem;
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
}

.job-header h3 {
  font-size: 1rem;
  font-weight: 600;
}

.job-header .period {
  font-size: 0.82rem;
  color: #888;
  white-space: nowrap;
}

.job-company {
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 0.7rem;
}

.job-tech {
  font-size: 0.82rem;
  color: #777;
  margin-top: 0.6rem;
  font-style: italic;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem 2rem;
}

@media (max-width: 600px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }

  .job-header {
    flex-direction: column;
  }
}
