/* =============================================================
   seyoonk.com — Global Stylesheet

   Structure:
   1. Reset & base
   2. Typography
   3. Layout
   4. Navigation
   5. Page-specific: Home, About, Projects
   6. Footer
   7. Responsive
   ============================================================= */


/* -------------------------------------------------------------
   CSS Custom Properties (Variables)
   Define colors once here. To change the accent color across
   the entire site, just update --blue below.
   ------------------------------------------------------------- */
:root {
  --blue: #1B4F8A;        /* Van Gogh cobalt — Starry Night primary blue */
  --blue-light: #EBF1F9;  /* Very light tint of --blue, used for tags */
  --bg: #F4F7FB;          /* Page background: barely-blue off-white */
  --text: #1a1a1a;
  --muted: #777;
  --border: #e8edf3;
}


/* -------------------------------------------------------------
   1. Reset & Base
   A browser reset removes the default margins, padding, and
   styles that different browsers apply inconsistently.
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px; /* 1rem = 16px throughout the site */
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}


/* -------------------------------------------------------------
   2. Typography
   ------------------------------------------------------------- */
h1 {
  font-size: 2.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 1.5rem;
}

p {
  color: #444;
  max-width: 56ch; /* ch = width of the "0" character — limits line length for readability */
}

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, border-color 0.2s ease;
}

a:hover {
  color: var(--blue);
  border-color: var(--blue);
}


/* -------------------------------------------------------------
   3. Layout
   A centered container with a max-width keeps content readable
   on wide screens.
   ------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

main {
  flex: 1; /* pushes footer to bottom */
  padding: 5rem 0 4rem;
}


/* -------------------------------------------------------------
   4. Navigation
   ------------------------------------------------------------- */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-name {
  font-weight: 500;
  font-size: 0.95rem;
  border-bottom: none;
  letter-spacing: 0.01em;
}

.nav-name:hover {
  opacity: 0.6;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: none;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-links a.active {
  color: var(--blue);
  font-weight: 500;
}


/* -------------------------------------------------------------
   5a. Home Page
   ------------------------------------------------------------- */
.hero {
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.welcome {
  font-size: 1rem;
  color: var(--muted);
  max-width: none;
}

.hero-image {
  width: 100%;
  max-height: 520px;
  object-fit: cover;       /* crops to fill without stretching */
  object-position: center; /* keeps the center of the photo in frame */
  border-radius: 4px;
  display: block;
}


/* -------------------------------------------------------------
   5b. About Page
   ------------------------------------------------------------- */
.about-content {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-content p {
  font-size: 1rem;
  line-height: 1.8;
}

.about-content p + p {
  margin-top: -1rem; /* tighten stacked paragraphs */
}

.about-meta {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.about-meta a {
  font-size: 0.9rem;
  color: var(--muted);
}


/* -------------------------------------------------------------
   5c. Projects Page
   ------------------------------------------------------------- */
.projects-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.project-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.project-item:first-child {
  border-top: 1px solid var(--border);
}


.projects-empty {
  font-size: 1rem;
  color: var(--muted);
  padding: 2rem 0;
  max-width: none;
}

.project-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.project-name {
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  border-bottom: none;
}

.project-name:hover {
  opacity: 0.6;
}

.project-year {
  font-size: 0.8rem;
  color: #bbb;
  white-space: nowrap;
}

.project-desc {
  font-size: 0.9rem;
  color: #777;
  max-width: 52ch;
}

.project-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.2rem;
}

.tag {
  font-size: 0.75rem;
  color: var(--blue);
  background: var(--blue-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}


/* -------------------------------------------------------------
   6. Footer
   ------------------------------------------------------------- */
footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
}

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

footer p {
  font-size: 0.8rem;
  color: #bbb;
  max-width: none;
}

footer a {
  font-size: 0.8rem;
  color: #bbb;
  border-bottom: none;
}

footer a:hover {
  color: #1a1a1a;
}


/* -------------------------------------------------------------
   7. Responsive
   On small screens, simplify spacing and font sizes.
   ------------------------------------------------------------- */
@media (max-width: 600px) {
  h1 {
    font-size: 1.8rem;
  }

  .hero {
    padding-top: 3rem;
  }

  .hero-links {
    flex-direction: column;
    gap: 1rem;
  }

  .project-header {
    flex-direction: column;
    gap: 0.2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
