/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  color: #1a1a2e;
  background: #fff;
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.container { max-width: 900px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }
section:nth-child(even) { background: #f7f8fa; }

/* === Typography === */
h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; color: #0f0f1a; }
h2 {
  font-size: 1.6rem; font-weight: 600; margin-bottom: 28px;
  letter-spacing: -0.01em; color: #0f0f1a;
  padding-bottom: 12px;
  border-bottom: 2px solid #e5e7eb;
  display: inline-block;
}
h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; color: #0f0f1a; }
p { margin-bottom: 18px; color: #3a3a4a; }
a { color: #2563a0; text-decoration: none; transition: color 0.15s; }
a:hover { color: #1a4670; }
strong { color: #0f0f1a; font-weight: 600; }

/* === Nav === */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 100;
  padding: 18px 0;
}
nav .container { display: flex; justify-content: space-between; align-items: center; }
nav .name { font-weight: 700; font-size: 1.05rem; color: #0f0f1a; letter-spacing: -0.01em; }
nav .links { display: flex; gap: 32px; }
nav .links a { color: #666; font-size: 0.88rem; font-weight: 500; letter-spacing: 0.01em; }
nav .links a:hover { color: #0f0f1a; }
.mobile-toggle { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: #333; padding: 4px; }

/* === Hero === */
.hero {
  padding: 180px 0 110px;
  background: #fff;
}
.hero .subtitle {
  font-size: 0.95rem;
  color: #2563a0;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}
.hero__text { flex: 1; }
.hero__photo img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e5e7eb;
  flex-shrink: 0;
}
.hero p.intro {
  font-size: 1.2rem;
  color: #4a4a5a;
  max-width: 620px;
  margin-top: 20px;
  margin-bottom: 36px;
  line-height: 1.8;
}
.btn {
  display: inline-block;
  padding: 14px 32px;
  background: #0f0f1a;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.1s;
}
.btn:hover { background: #2563a0; color: #fff; transform: translateY(-1px); }

/* === About === */
.about p { max-width: 700px; }
.highlight-stats {
  display: flex; gap: 48px; margin: 40px 0 0;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat .number { font-size: 2.2rem; font-weight: 700; color: #0f0f1a; display: block; line-height: 1.2; }
.stat .label { font-size: 0.82rem; color: #888; letter-spacing: 0.02em; }

/* === Services === */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 28px 22px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.service-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.05);
  border-color: #d0d3d9;
}
.service-card h3 { color: #0f0f1a; font-size: 1.05rem; }
.service-card p { color: #555; font-size: 0.92rem; margin-bottom: 0; line-height: 1.7; }

/* === Writing === */
.writing-list { display: flex; flex-direction: column; gap: 0; }
.writing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px solid #ecedf0;
  color: inherit;
  transition: background 0.15s;
}
.writing-item:first-child { border-top: 1px solid #ecedf0; }
.writing-item:hover { background: rgba(37, 99, 160, 0.03); }
.writing-item .title { font-weight: 600; color: #0f0f1a; font-size: 1.02rem; }
.writing-item .desc { color: #666; font-size: 0.88rem; margin-top: 4px; line-height: 1.6; }
.writing-item .meta { color: #999; font-size: 0.82rem; white-space: nowrap; margin-left: 32px; font-weight: 500; }

/* === Contact === */
.contact-links { display: flex; gap: 40px; margin-top: 20px; }
.contact-links a {
  font-size: 1.05rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}
.contact-links a:hover { border-bottom-color: #2563a0; }

/* === Writing Upcoming === */
.writing-upcoming {
  padding: 28px 0 8px;
}
.writing-upcoming h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #999;
  font-weight: 600;
  margin-bottom: 0;
}
.writing-item--upcoming {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid #ecedf0;
  opacity: 0.7;
}
.writing-item--upcoming .title { font-weight: 600; color: #0f0f1a; font-size: 1.02rem; }
.writing-item--upcoming .desc { color: #666; font-size: 0.88rem; margin-top: 4px; line-height: 1.6; }
.writing-item--upcoming .meta { color: #bbb; font-size: 0.82rem; white-space: nowrap; margin-left: 32px; font-weight: 500; }

/* === Writing Note === */
.writing-note {
  margin-top: 16px;
  color: #777;
  font-size: 0.9rem;
}
.writing-note:first-of-type {
  margin-top: 24px;
}

/* === Footer === */
footer {
  padding: 36px 0;
  text-align: center;
  color: #aaa;
  font-size: 0.82rem;
  border-top: 1px solid #ecedf0;
}

/* === Mobile === */
@media (max-width: 768px) {
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.3rem; }
  .hero { padding: 130px 0 70px; }
  .hero__inner { flex-direction: column; text-align: center; }
  .hero__photo img { width: 200px; height: 200px; }
  .hero__text .subtitle, .hero__text .intro { text-align: center; }
  .hero__text .intro { max-width: 100%; }
  .hero p.intro { font-size: 1.05rem; }
  .services-grid { grid-template-columns: 1fr; }
  .highlight-stats { gap: 32px; }
  .stat .number { font-size: 1.8rem; }
  .writing-item { flex-direction: column; }
  .writing-item .meta { margin-left: 0; margin-top: 6px; }
  .contact-links { flex-direction: column; gap: 16px; }
  nav .links { display: none; }
  nav .links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 20px 28px;
    gap: 18px;
  }
  .mobile-toggle { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 20px; }
  h1 { font-size: 1.9rem; }
  .highlight-stats { flex-direction: column; gap: 20px; }
}
