:root{
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #dddddd;
  --link: #1a5cff;
  --maxw: 820px;

  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

*{ box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.65;
}

.container{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 18px;
}

/* Header */
.site-header{
  border-bottom: 1px solid var(--line);
}

.top{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.name{
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
}

.subtitle{
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.nav{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.nav a{
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover{
  text-decoration: underline;
  text-underline-offset: 3px;
}

.nav a.active{
  color: var(--text);
  font-weight: 600;
}

.links{
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.links a{
  color: var(--muted);
  text-decoration: none;
}

.links a:hover{
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sep{ padding: 0 6px; }

/* Content */
h1{
  font-size: 26px;
  margin: 18px 0 8px;
}

h2{
  font-size: 16px;
  margin: 0 0 8px;
}

p{ margin: 10px 0; }

a{
  color: var(--link);
}

hr{
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

.muted{ color: var(--muted); }

.list{
  margin: 0;
  padding-left: 18px;
}

.list li{
  margin: 10px 0;
}

.row{
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.what{
  font-weight: 600;
}

.when{
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.detail{
  margin-top: 4px;
  font-size: 13px;
}

/* Footer */
.footer{
  margin: 22px 0 10px;
  font-size: 12px;
}

/* Responsive: date wraps nicely */
@media (max-width: 560px){
  .row{
    flex-direction: column;
    align-items: flex-start;
  }
  .when{
    white-space: normal;
  }
}

/* Print */
@media print{
  .site-header{ border-bottom: 0; }
  .nav{ display: none; }
  a{ color: var(--text); text-decoration: none; }
  hr{ border-top: 1px solid #bbb; }
}
