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

:root {
  --primary-blue: #000083;
  --text-black: #000000;
  --background: #EDF4FE7A;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Gowun Batang', serif;
  font-weight: 400;
  color: var(--text-black);
  background-color: var(--background);
  letter-spacing: 2px;
  line-height: 1.5;
}

/* Header */
header {
  text-align: center;
  padding: 60px 20px 40px;
}

header h1 {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 12px;
  letter-spacing: 3px;
}

nav {
  font-size: 16px;
  color: var(--primary-blue);
}

nav a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 400;
}

nav a:hover {
  text-decoration: underline;
}

.nav-dot {
  margin: 0 8px;
  color: var(--primary-blue);
}

/* Hero Image */
.hero-image {
  width: 100%;
}

.hero-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

/* Main Content */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 20px;
}

/* Sections */
section {
  margin-bottom: 80px;
  padding-top: 20px;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 30px;
  letter-spacing: 2px;
}

/* Writing Section */
#writing .writing-entry {
  margin-bottom: 24px;
  font-size: 20px;
  line-height: 1.75;
}

#writing .title {
  font-weight: 700;
  color: var(--text-black);
}

#writing .publication {
  font-weight: 400;
  color: var(--text-black);
}

#writing a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
}

#writing a:hover {
  text-decoration: underline;
}

#writing .award {
  display: block;
  color: var(--text-black);
  font-weight: 400;
}

/* About Section */
.about-content {
  display: flex;
  gap: 60px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-text p {
  font-size: 20px;
  line-height: 1.4;
  margin-bottom: 20px;
}

.about-photo {
  flex-shrink: 0;
  width: 300px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}

/* Contact Section */
#contact p {
  font-size: 20px;
  line-height: 1.75;
}

#contact a {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 700;
}

#contact a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  margin-top: 0px;
}

.footer-image {
  width: 100%;
}

.footer-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  header {
    padding: 40px 20px 30px;
  }

  header h1 {
    font-size: 32px;
  }

  nav {
    font-size: 14px;
  }

  h2 {
    font-size: 28px;
  }

  main {
    padding: 40px 20px;
  }

  section {
    margin-bottom: 60px;
  }

  #writing .writing-entry {
    font-size: 18px;
  }

  .about-content {
    flex-direction: column;
    gap: 40px;
  }

  .about-photo {
    width: 100%;
    max-width: 300px;
    order: -1;
    margin: 0 auto;
  }

  .about-text p {
    font-size: 18px;
  }

  #contact p {
    font-size: 18px;
  }

  .footer-image img {
    height: 120px;
    object-fit: cover;
  }
}

@media (max-width: 480px) {
  header h1 {
    font-size: 26px;
    letter-spacing: 2px;
  }

  nav {
    font-size: 12px;
  }

  .nav-dot {
    margin: 0 4px;
  }

  h2 {
    font-size: 24px;
  }

  #writing .writing-entry {
    font-size: 16px;
  }

  .about-text p,
  #contact p {
    font-size: 16px;
  }
}
