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

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

body {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(17px, 1.2vw + 14px, 18px);
  line-height: 1.6;
  color: #333333;
  background-color: #f8f5e4;
}

html {
  scroll-behavior: smooth;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background-color: #f8f5e4;
}

nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

nav a {
  text-decoration: none;
  color: #333333;
  font-weight: 500;
  font-size: 18px;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #b68b00;
}

section {
  padding: 64px 32px;
  max-width: 1000px;
  margin: 0 auto;
}

section h2 {
  font-size: clamp(32px, 3.5vw + 18px, 42px);
  margin-bottom: 20px;
}

section p {
  font-size: clamp(18px, 1.3vw + 14px, 20px);
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90vh;
  color: #f8f5e4;
  text-align: center;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 80px 24px;
}

.hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('assets/hero.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: brightness(0.55) saturate(1.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: 0 16px;
}

.hero-title {
  font-size: clamp(46px, 9vw, 72px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.hero-title span {
  color: #ffd86f;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 24px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 28px;
}

.hero-text {
  font-size: clamp(18px, 1.2vw + 15px, 20px);
  max-width: 720px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
}

.hero-btn {
  display: inline-block;
  padding: 14px 36px;
  font-size: 18px;
  text-decoration: none;
  color: #3a3326;
  background-color: #ffd86f;
  border-radius: 6px;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.hero-btn:hover {
  background-color: #f1c146;
  transform: translateY(-2px);
}

#bio .bio-content {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}

#bio img {
  flex: 0 0 280px;
  width: 280px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

#bio .bio-text {
  flex: 1 1 420px;
  min-width: min(420px, 100%);
}

#bio .bio-text p + p {
  margin-top: 18px;
}

#bio .bio-text p:first-of-type::first-letter {
  font-size: 64px;
  line-height: 0.9;
  font-weight: 600;
  color: #b68b00;
  float: left;
  margin-right: 8px;
}

#gallery {
  max-width: 1320px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.gallery figure {
  position: relative;
  width: 100%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  background-color: #fff3c1;
}

.gallery figure::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: linear-gradient(180deg, rgba(15, 12, 0, 0.25), rgba(15, 12, 0, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.gallery figure:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.18);
}

.gallery figure:hover::after {
  opacity: 1;
}

.gallery img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

blockquote {
  font-size: 24px;
  font-style: italic;
  margin: 24px 0;
  color: #666666;
  border-left: 4px solid #b68b00;
  padding-left: 16px;
}

#legacy .legacy-list {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

#legacy .legacy-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
  padding: 24px 0;
  border-top: 1px solid rgba(64, 55, 40, 0.12);
}

#legacy .legacy-item:first-child {
  border-top: none;
  padding-top: 0;
}

#legacy .legacy-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

#legacy .legacy-index {
  font-size: 32px;
  font-weight: 600;
  color: #b68b00;
  font-variant-numeric: tabular-nums;
}

#legacy .legacy-heading h3 {
  font-size: clamp(22px, 1.2vw + 18px, 26px);
  color: #503c1c;
}

#legacy .legacy-item p {
  font-size: 20px;
  line-height: 1.7;
  color: #403728;
}

footer {
  text-align: center;
  padding: 32px 0;
  font-size: clamp(16px, 1vw + 14px, 18px);
  color: #555555;
  background-color: #f8f5e4;
  border-top: 1px solid #cccccc;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding: 20px;
  }

  nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    gap: 16px 20px;
  }

  section {
    padding: 40px 20px;
  }

  .hero {
    min-height: 80vh;
    padding: 60px 16px;
  }

  .hero-title {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 18px;
  }

  .hero-text {
    font-size: 18px;
  }

  #bio .bio-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  #bio img {
    width: min(88vw, 300px);
    margin-bottom: 24px;
  }

  #bio .bio-text p:first-of-type::first-letter {
    float: none;
    display: inline-block;
    margin-right: 6px;
  }

  .gallery {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gallery figure {
    max-width: 280px;
    width: min(84vw, 280px);
  }

  #legacy .legacy-list {
    gap: 24px;
  }

  #legacy .legacy-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(64, 55, 40, 0.12);
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  #legacy .legacy-item:first-child {
    border-top: none;
  }

  #legacy .legacy-heading {
    justify-content: center;
  }
}
