/* ========================================
   bosungbaik.com - Global Styles
   Colors: Black, Gray, White only
   Fonts: Inter (EN), Pretendard (KR)
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@200;300;400;500;600&display=swap');
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000;
  background-color: #fff;
  line-height: 1.6;
  font-weight: 300;
}

/* Container */
.container {
  max-width: clamp(720px, 85vw, 960px);
  margin: 0 auto;
  padding: 0 clamp(20px, 8vw, 120px);
}

/* Links */
a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #616161;
}

/* Inline links within paragraphs - subtle underline */
p a {
  text-decoration: underline;
  text-decoration-color: #c0c0c0;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

p a:hover {
  text-decoration-color: #616161;
}

/* Nav */
nav {
  padding: 36px 0 0;
}

nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-name a {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  font-weight: 300;
  color: #616161;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #000;
}

.nav-links a.active {
  color: #000;
}

/* Main content */
main {
  padding: clamp(48px, 8vw, 80px) 0 clamp(70px, 10vw, 100px);
}

/* Headings */
h1 {
  font-size: clamp(26px, 3vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: clamp(24px, 3vw, 32px);
}

h2 {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  color: #616161;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 16px;
}

/* Paragraph */
p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.65;
  margin-bottom: 10px;
  color: #000;
}

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

/* Section spacing */
section {
  margin-bottom: clamp(56px, 7vw, 70px);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

section:nth-child(1) {
  animation-delay: 0.1s;
}

section:nth-child(2) {
  animation-delay: 0.2s;
}

section:nth-child(3) {
  animation-delay: 0.3s;
}

section:nth-child(4) {
  animation-delay: 0.4s;
}

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

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inverted section */
.inverted {
  background-color: #000;
  color: #fff;
  padding: 35px 0;
}

.inverted a {
  color: #fff;
}

.inverted a:hover {
  color: #a0a0a0;
}

.inverted h2 {
  color: #a0a0a0;
}

.inverted p {
  color: #fff;
}

/* Link list */
.link-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.link-list li {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.3s ease;
}

.link-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 1px;
  background-color: #000;
  transition: width 0.3s ease;
}

.link-list li:hover {
  padding-left: 24px;
}

.link-list li:hover::before {
  width: 16px;
}

.link-list a {
  font-size: 15px;
  font-weight: 300;
  display: inline-block;
  transition: color 0.3s ease;
}

.link-list a::after {
  content: ' \2197';
  font-size: 11px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  display: inline-block;
  transform: translate(-4px, -2px);
}

.link-list a:hover::after {
  opacity: 0.7;
  transform: translate(0, -2px);
}

/* Internal link (no arrow) */
.link-list a.internal::after {
  content: '';
}

/* Separator */
.separator {
  width: 0%;
  height: 1px;
  background-color: #e0e0e0;
  margin: 45px 0;
  animation: expandLine 1.2s ease-out forwards;
}

@keyframes expandLine {
  to {
    width: 100%;
  }
}

.inverted .separator {
  background-color: #333;
}

/* Decorative lines */
.line-accent {
  width: 40px;
  height: 1px;
  background-color: #000;
  margin-bottom: 24px;
  animation: slideInLine 0.8s ease-out;
}

@keyframes slideInLine {
  from {
    width: 0;
    opacity: 0;
  }
  to {
    width: 40px;
    opacity: 1;
  }
}

/* Footer */
footer {
  padding: 24px 0;
  border-top: 1px solid #e0e0e0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 12px;
  color: #616161;
  font-weight: 300;
}

footer .footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

footer .footer-links a {
  font-size: 12px;
  color: #616161;
}

footer .footer-links a:hover {
  color: #000;
}

/* Essay / Long-form */
.essay {
  margin-bottom: 70px;
}

.essay h3 {
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 24px;
}

.essay p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.essay .sign-off {
  margin-top: 32px;
  font-style: italic;
  color: #999;
  font-size: 14px;
}

/* Quarterly report */
.report {
  margin-bottom: 70px;
}

.report h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.report .report-subtitle {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  font-weight: 300;
}

.report h4 {
  font-size: 16px;
  font-weight: 500;
  margin-top: 32px;
  margin-bottom: 12px;
}

.report p {
  font-size: 15px;
  line-height: 1.7;
}

/* Back link */
.back-link {
  display: inline-block;
  font-size: 13px;
  color: #999;
  margin-bottom: 36px;
  transition: color 0.3s ease;
  font-weight: 300;
}

.back-link:hover {
  color: #616161;
}

.back-link::before {
  content: '\2190 ';
  margin-right: 4px;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: #000;
  margin: 4px 0;
  transition: all 0.3s ease;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 640px) {
  nav {
    padding: 24px 0 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid #e0e0e0;
    z-index: 999;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  }

  .nav-links.open {
    display: flex;
  }

  nav .container {
    position: relative;
  }

  .essay h3 {
    font-size: 20px;
  }

  footer .container {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* ========================================
   Dynamic Elements
   ======================================== */

/* Hover line effect for h2 */
h2 {
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #616161;
  transition: width 0.4s ease;
}

h2:hover::after {
  width: 100%;
}

/* Scroll reveal for main content */
main {
  animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Subtle nav animation */
nav {
  animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Inverted section with line accent */
.inverted {
  position: relative;
}

.inverted::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background-color: #333;
  animation: expandFromCenter 1s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes expandFromCenter {
  to {
    width: 100%;
  }
}

/* Footer line animation */
footer {
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #e0e0e0;
  animation: expandLine 1s ease-out forwards;
  animation-delay: 0.6s;
}

@keyframes expandLine {
  to {
    width: 100%;
  }
}

/* ========================================
   Additional Minimal Dynamic Elements
   ======================================== */

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 1px;
  background: #000;
  z-index: 1000;
  transition: width 0.1s ease-out;
}

/* Nav link animated underline */
.nav-links a {
  position: relative;
}

.nav-links a::before {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-links a:hover::before,
.nav-links a.active::before {
  width: 100%;
}

/* Section vertical line */
main section {
  position: relative;
  padding-left: 16px;
}

main section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 0;
  background: #e0e0e0;
  transition: height 0.8s ease-out 0.2s;
}

main section.in-view::before {
  height: 100%;
}

/* Link list with subtle grid */
.link-list {
  border-left: 1px solid #f5f5f5;
  padding-left: 20px;
}

.link-list li {
  padding: 6px 0;
  border-bottom: 1px solid #fafafa;
}

.link-list li:last-child {
  border-bottom: none;
}

/* Contact section - no lines, no hover effects */
.inverted .link-list {
  border-left: none !important;
  padding-left: 0 !important;
}

.inverted .link-list li {
  padding: 6px 0 !important;
  border-bottom: none !important;
  position: static !important;
  transition: none !important;
}

.inverted .link-list li::before {
  display: none !important;
}

.inverted .link-list li:hover {
  padding-left: 0 !important;
}

.inverted .link-list li:hover::before {
  width: 0 !important;
}
