/* ===== Google Sites-ish minimal (clean + lab-style Home) ===== */
:root{
  --bg: #f1f3f4;        /* page background */
  --card: #ffffff;      /* content card */
  --text: #202124;      /* primary text */
  --muted: #5f6368;     /* secondary text */
  --link: #1a73e8;      /* Google blue */
  --border: #e0e0e0;    /* dividers */
}

*{ box-sizing: border-box; }

html{ background: var(--bg); }

body{
  max-width: 980px;
  margin: 36px auto;
  padding: 42px 46px;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.7;

  /* anchor jump 시 sticky nav에 가리지 않게 */
  scroll-padding-top: 72px;
}

/* ===== Top nav: Rounded Tabs (sticky, real tab UI) ===== */
nav{
  position: sticky;          /* 엑셀 틀고정 */
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;

  margin: 0 0 26px 0;
  padding: 10px 12px;

  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

/* 각 탭 */
nav a{
  color: var(--muted);
  text-decoration: none;

  padding: 8px 14px;
  border-radius: 999px;          /* pill 형태 */
  border: 1px solid transparent;

  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;

  transition:
    background 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

/* hover 효과 */
nav a:hover{
  background: #f8f9fa;
  border-color: var(--border);
  color: var(--text);
  transform: translateY(-1px);
}

/* 현재 페이지 탭 */
nav a[aria-current="page"]{
  background: rgba(26,115,232,0.12);
  border-color: rgba(26,115,232,0.28);
  color: var(--text);
}

/* 현재 탭 hover */
nav a[aria-current="page"]:hover{
  background: rgba(26,115,232,0.16);
  border-color: rgba(26,115,232,0.35);
}

/* ===== Typography ===== */
h1{
  font-size: 2.15rem;
  font-weight: 700;
  letter-spacing: -0.2px;
  margin: 0 0 10px 0;
}

h2{
  font-size: 1.35rem;
  font-weight: 650;
  margin: 34px 0 10px 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

p{ margin: 12px 0; }

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

ul{ margin: 12px 0 18px 22px; }
li{ margin: 10px 0; }

/* ===== Blockquote (motto용) ===== */
blockquote{
  margin: 14px 0 0 0;
  padding: 14px 16px;
  border-left: 4px solid var(--link);
  background: #f8f9fa;
  color: var(--text);
  border-radius: 10px;
}

/* -------------------------------------------------
   HOME LANDING (lab-style Home)
   Recommended structure:

   <section class="hero">
     <div class="hero-text">
       <p class="hero-brand">Independent Research</p>
       <h1>JinGyu</h1>
       <p class="subtitle">...</p>
     </div>
   </section>
------------------------------------------------- */

/* Hero with background image */
.hero{
  margin: 22px 0 28px 0;
  border-radius: 14px;
  border: 1px solid var(--border);
  overflow: hidden;

  background:
    linear-gradient(0deg, rgba(255,255,255,0.86), rgba(255,255,255,0.86)),
    url("/assets/hero.jpg");
  background-size: cover;
  background-position: center;

  min-height: 320px;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* Text block inside hero */
.hero-text{
  padding: 56px 40px;
  max-width: 820px;
}

/* Optional: 작은 라벨 */
.hero-brand{
  margin: 0 0 10px 0;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.2px;
}

/* Subtitle line under name/title */
.subtitle{
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Sections spacing (Home content blocks) */
.section{
  margin: 40px 0;
}

.section.small{
  margin-top: 24px;
}

/* ===== Research Program Map (Home main figure) ===== */
.program-map{
  display: block;
  width: 100%;
  max-width: 860px;

  margin: 22px auto 12px auto;
  padding: 10px;

  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;

  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

/* 작은 설명(방어 문구) */
.footnote{
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  text-align: center;
}

/* -------------------------------------------------
   Mobile
------------------------------------------------- */
@media (max-width: 720px){
  body{
    margin: 18px 10px;
    padding: 26px 18px;
    scroll-padding-top: 86px; /* 모바일에선 nav가 두 줄일 수 있음 */
  }
  nav{
    gap: 12px;
    flex-wrap: wrap;
    padding: 12px 0 10px 0;
  }
  .hero{
    min-height: 240px;
  }
  .hero-text{
    padding: 34px 18px;
  }
  h1{
    font-size: 1.8rem;
  }
}
