@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;600;700&display=swap');

:root{
  --accent:#c4a0a0;
  --accent-light:#d4b5b5;
  --accent-pale:#f7eded;
  --accent-softer:#faf5f5;
  --bg:#ffffff;
  --fg:#3a2e2e;
  --muted:#8c7070;
  --card-bg:#ffffff;
  --border:#e8d6d6;
  --table-header:#c4a0a0;
  --table-header-fg:#fff;
  --table-row-even:#faf5f5;
  --table-row-odd:#fff;
  --link:#a0756e;
}

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

html,body{
  background:var(--bg);
  color:var(--fg);
  font:16px/1.6 'Noto Sans KR',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing:antialiased;
}

a{color:var(--link);text-decoration:none;transition:color .2s}
a:hover{color:var(--accent);text-decoration:underline}

/* ---------- top bar ---------- */
.topbar{
  background:var(--accent);
  color:#fff;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 32px;
  font-size:13px;
  font-weight:500;
  letter-spacing:.03em;
}
.topbar a{color:#fff}

/* ---------- hero / cover ---------- */
.hero{
  text-align:center;
  padding:60px 24px 48px;
  background:linear-gradient(180deg,var(--accent-pale) 0%,var(--bg) 100%);
}
.hero .logo{
  width:180px;
  margin:0 auto 12px;
}
.hero .logo img{
  width:100%;
  height:auto;
  display:block;
}
.hero .brand-divider{
  width:120px;
  height:2px;
  background:var(--accent-light);
  margin:0 auto 32px;
}
.hero h1{
  font-size:32px;
  font-weight:700;
  margin-bottom:4px;
  color:var(--fg);
}
.hero .subtitle{
  font-size:48px;
  font-weight:700;
  color:var(--fg);
  margin-bottom:24px;
}
.hero .tagline{
  color:var(--muted);
  font-size:15px;
  margin-bottom:6px;
}
.hero .tagline-en{
  color:var(--accent);
  font-size:14px;
  font-weight:600;
  font-style:italic;
  margin-bottom:32px;
}

/* ---------- main content ---------- */
main{
  max-width:860px;
  margin:0 auto;
  padding:32px 24px 48px;
}

/* ---------- planner grid (home page) ---------- */
.section-label{
  font-size:13px;
  color:var(--muted);
  margin-bottom:12px;
  font-weight:500;
}
.planner-grid{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
  gap:20px;
  margin-top:8px;
}
.planner-card{
  background:var(--card-bg);
  border:1px solid var(--border);
  border-radius:14px;
  padding:22px 24px;
  transition:transform .2s,box-shadow .2s;
  display:flex;
  flex-direction:column;
  gap:6px;
  color:var(--fg);
  text-decoration:none;
}
.planner-card:hover{
  transform:translateY(-3px);
  box-shadow:0 8px 24px rgba(196,160,160,.15);
  text-decoration:none;
  color:var(--fg);
}
.planner-card .card-name{
  font-size:17px;
  font-weight:600;
  color:var(--fg);
}
.planner-card .card-meta{
  font-size:12px;
  color:var(--muted);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:10px 20px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--accent-pale);
  color:var(--fg);
  font-size:14px;
  font-weight:500;
  cursor:pointer;
  transition:all .2s;
  text-decoration:none;
}
.btn:hover{
  background:var(--accent-light);
  color:#fff;
  text-decoration:none;
  border-color:var(--accent-light);
}
.btn-primary{
  background:var(--accent);
  color:#fff;
  border-color:var(--accent);
}
.btn-primary:hover{
  background:var(--accent-light);
  border-color:var(--accent-light);
  color:#fff;
}

/* ---------- section headings (chapter style) ---------- */
.section-heading{
  display:flex;
  align-items:center;
  gap:12px;
  margin:36px 0 18px;
  font-size:19px;
  font-weight:600;
}
.section-heading:first-of-type{
  margin-top:0;
}
.section-heading .dot{
  width:22px;
  height:22px;
  border-radius:50%;
  background:var(--accent);
  flex-shrink:0;
}

/* ---------- pdf section ---------- */
.pdf-section{
  margin-bottom:36px;
}
.pdf-preview-wrap{
  margin-bottom:16px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  max-width:260px;
}
.pdf-preview-link{
  display:block;
  position:relative;
  line-height:0;
}
.pdf-preview-img{
  width:100%;
  height:auto;
  display:block;
  transition:transform .3s;
}
.pdf-preview-link:hover .pdf-preview-img{
  transform:scale(1.02);
}
.pdf-preview-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(196,160,160,.0);
  color:#fff;
  font-size:18px;
  font-weight:600;
  letter-spacing:.03em;
  opacity:0;
  transition:all .3s;
}
.pdf-preview-link:hover .pdf-preview-overlay{
  opacity:1;
  background:rgba(196,160,160,.45);
}
.pdf-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

/* ---------- lecture table ---------- */
.lecture-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  border-radius:12px;
  overflow:hidden;
  border:1px solid var(--border);
  font-size:14px;
}
.lecture-table thead th{
  background:var(--table-header);
  color:var(--table-header-fg);
  font-weight:600;
  font-size:13px;
  padding:12px 14px;
  text-align:left;
  border:none;
}
.lecture-table tbody tr:nth-child(even){
  background:var(--table-row-even);
}
.lecture-table tbody tr:nth-child(odd){
  background:var(--table-row-odd);
}
.lecture-table tbody td{
  padding:11px 14px;
  border-bottom:1px solid var(--border);
  vertical-align:middle;
}
.lecture-table tbody tr:last-child td{
  border-bottom:none;
}
.lecture-table .col-num{
  width:50px;
  text-align:center;
  color:var(--muted);
  font-weight:500;
}
.lecture-table .col-title{
  font-weight:400;
}
.lecture-table .col-duration{
  width:80px;
  text-align:center;
  color:var(--muted);
  font-variant-numeric:tabular-nums;
}
.lecture-table .col-check{
  width:50px;
  text-align:center;
}
.lecture-table .col-check input[type="checkbox"]{
  width:16px;
  height:16px;
  accent-color:var(--accent);
  cursor:pointer;
}

/* ---------- footer ---------- */
footer{
  text-align:center;
  padding:24px;
  color:var(--muted);
  font-size:12px;
  border-top:2px solid var(--accent);
  margin-top:48px;
}

/* ---------- back link ---------- */
.back-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:13px;
  color:var(--muted);
  margin-bottom:8px;
}
.back-link:hover{color:var(--accent)}

/* ---------- page header for planner pages ---------- */
.page-header{
  margin-bottom:24px;
}
.page-header h1{
  font-size:26px;
  font-weight:700;
  color:var(--fg);
}

/* ---------- info fields (like PDF cover fields) ---------- */
.info-fields{
  display:flex;
  flex-direction:column;
  gap:12px;
  max-width:520px;
  margin:0 auto;
}
.info-field{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  background:var(--accent-pale);
  border-left:4px solid var(--accent);
  border-radius:0 8px 8px 0;
  font-size:14px;
  color:var(--fg);
}
.info-field span{
  color:var(--muted);
  font-size:13px;
}

/* ---------- empty state ---------- */
.empty-msg{
  color:var(--muted);
  font-size:13px;
  padding:16px 0;
}

/* ---------- responsive ---------- */
@media(max-width:600px){
  .topbar{padding:8px 16px;font-size:12px}
  .hero{padding:40px 16px 32px}
  .hero h1{font-size:24px}
  .hero .subtitle{font-size:36px}
  main{padding:20px 16px 40px}
  .planner-grid{grid-template-columns:1fr}
  .lecture-table{font-size:13px}
  .lecture-table thead th{padding:10px 10px;font-size:12px}
  .lecture-table tbody td{padding:9px 10px}
  .section-heading{font-size:17px}
}
