/* ─── Reset & Base ─────────────────────────────────── */

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

:root {
  --navy:      #0f1f3d;
  --navy-mid:  #1a3260;
  --teal:      #0b7a75;
  --teal-dark: #096b66;
  --teal-light:#e6f4f3;
  --violet:    #5b3fa0;
  --text:      #1c2333;
  --muted:     #5e6e85;
  --border:    #dde3ec;
  --bg:        #ffffff;
  --bg-alt:    #f5f7fb;
  --max-w:     700px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  color: var(--violet);
  text-decoration: underline;
}

/* ─── Navigation ────────────────────────────────────── */

header {
  background: linear-gradient(to right, #1e3f7a 0%, #2a5aaa 100%);
  padding-inline: 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  gap: 1.5rem;
}

.nav-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-name:hover {
  color: #7dd8d4;
  text-decoration: none;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

nav ul a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.875rem;
  transition: color 0.15s;
}

nav ul a:hover,
nav ul a.active {
  color: #ffffff;
  text-decoration: none;
}

/* ─── Hero (full-width dark band) ───────────────────── */

.hero-wrapper {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding-inline: 1.5rem;
  border-bottom: 3px solid var(--teal);
}

.hero {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-block: 4rem;
  border-top: none;
}

.hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(3rem, 7vw, 4.5rem);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero-sub a {
  color: #7dd8d4;
}

.hero-sub a:hover {
  color: #ffffff;
  text-decoration: none;
}

/* ─── Main layout ───────────────────────────────────── */

main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-inline: 1.5rem;
  padding-block: 4rem;
}

section {
  padding-block: 3.5rem;
}

main section:first-child {
  border-top: none;
  padding-top: 0;
}

/* ─── Typography ────────────────────────────────────── */

h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

p {
  margin-bottom: 1rem;
}

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

/* ─── About photo ───────────────────────────────────── */

.about-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
}

.about-photo {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--teal-light);
  box-shadow: 0 2px 12px rgba(15, 31, 61, 0.12);
}

@media (max-width: 480px) {
  .about-header {
    flex-direction: column;
    align-items: center;
  }
}

/* ─── Pull quote ────────────────────────────────────── */

.pullquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid var(--teal);
  background: var(--bg-alt);
  border-radius: 0 6px 6px 0;
}

.pullquote p {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}

.pullquote cite {
  font-size: 0.85rem;
  color: var(--muted);
  font-style: normal;
}

/* ─── Photo carousel ────────────────────────────────── */

.carousel {
  position: relative;
  margin: 2rem 0 0;
}

.carousel-slides {
  position: relative;
}

.carousel-slide {
  display: none;
  margin: 0;
}

.carousel-slide.active {
  display: block;
}

.carousel-img-wrap {
  border-radius: 8px;
  overflow: hidden;
}

.carousel-slide img {
  width: 100%;
  height: 380px;
  display: block;
  object-fit: cover;
  object-position: center 30%;
}

.carousel-slide:nth-child(2) img {
  transform: scale(1.08);
  object-position: 75% center;
}

.carousel-slide figcaption {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.carousel-btn {
  position: absolute;
  top: calc(190px - 1.25rem);
  background: rgba(15, 31, 61, 0.55);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}

.carousel-btn:hover {
  background: var(--teal);
}

.carousel-btn.prev { left:  0.75rem; }
.carousel-btn.next { right: 0.75rem; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s;
}

.carousel-dot.active {
  background: var(--teal);
}

/* ─── Work cards ────────────────────────────────────── */

.project-grid {
  display: grid;
  gap: 1.25rem;
}

.project-card {
  padding: 1.4rem 1.5rem;
  border: 1px solid var(--border);
  border-top: 3px solid var(--teal);
  border-radius: 0 0 8px 8px;
  background: var(--bg);
  transition: box-shadow 0.2s, border-top-color 0.2s;
}

.project-card:hover {
  box-shadow: 0 6px 24px rgba(15, 31, 61, 0.09);
  border-top-color: var(--violet);
}

.project-card h3 {
  transition: color 0.15s;
}

.project-card:hover h3 {
  color: var(--teal);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.project-links {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
}

/* ─── Contact ───────────────────────────────────────── */

.contact-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.contact-list a {
  display: inline-block;
  padding: 0.45rem 1.1rem;
  border: 1.5px solid var(--teal);
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.contact-list a:hover {
  background: var(--teal);
  color: #ffffff;
  text-decoration: none;
}

/* ─── Blog listing ──────────────────────────────────── */

.post-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.post-item {
  display: grid;
  gap: 0.3rem;
}

.post-date {
  font-size: 0.825rem;
  color: var(--muted);
}

.post-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.15s;
}

.post-title:hover {
  color: var(--teal);
  text-decoration: none;
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

/* ─── Footer ────────────────────────────────────────── */

footer {
  background: var(--navy);
  padding-inline: 1.5rem;
}

footer p {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-block: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0;
}

/* ─── Responsive ────────────────────────────────────── */

@media (max-width: 480px) {
  .nav-name {
    display: none;
  }

  nav ul {
    gap: 1rem;
  }

  .hero {
    padding-block: 2rem;
  }
}
