:root{
  /* Light (default) */
  --bg: var(--site-bg, #ffffff);
  --panel: var(--site-panel, #f6f7f9);
  --panel2: var(--site-panel2, #fbfbfc);
  --text: var(--site-text, #0f172a);
  --muted: var(--site-muted, #6b7280);
  --line: var(--site-line, rgba(15, 23, 42, .10));
  --accent: var(--site-accent, #111827);
  --code-bg: var(--site-code-bg, #f3f5f9);
  --code-text: var(--site-code-text, #182033);
  --code-muted: var(--site-code-muted, #64748b);
  --code-line: var(--site-code-line, rgba(15, 23, 42, .12));
  --inline-code-bg: var(--site-inline-code-bg, #eef2f7);
  --inline-code-text: var(--site-inline-code-text, #182033);
  --syntax-comment: var(--site-syntax-comment, #64748b);
  --syntax-punctuation: var(--site-syntax-punctuation, #475569);
  --syntax-property: var(--site-syntax-property, #0f766e);
  --syntax-string: var(--site-syntax-string, #047857);
  --syntax-function: var(--site-syntax-function, #2563eb);
  --syntax-keyword: var(--site-syntax-keyword, #7c3aed);
  --syntax-number: var(--site-syntax-number, #c2410c);
  --syntax-operator: var(--site-syntax-operator, #334155);

  --radius: var(--site-radius, 12px);
  --shadow: var(--site-shadow, none);
  --max: 980px;
}

/* Dark gray sits between the white default and the near-black dark theme. */
:root[data-theme="dark-gray"]{
  --bg: var(--site-bg, #202124);
  --panel: var(--site-panel, #2a2c30);
  --panel2: var(--site-panel2, #24262a);
  --text: var(--site-text, #f1f3f5);
  --muted: var(--site-muted, #c1c7d0);
  --line: var(--site-line, rgba(255,255,255,.13));
  --accent: var(--site-accent, #ffffff);
  --code-bg: var(--site-code-bg, #181a1e);
  --code-text: var(--site-code-text, #eef2f8);
  --code-muted: var(--site-code-muted, #a8b0bd);
  --code-line: var(--site-code-line, rgba(255,255,255,.14));
  --inline-code-bg: var(--site-inline-code-bg, #30343a);
  --inline-code-text: var(--site-inline-code-text, #f3f6fb);
  --syntax-comment: var(--site-syntax-comment, #9aa4b2);
  --syntax-punctuation: var(--site-syntax-punctuation, #d4d9e1);
  --syntax-property: var(--site-syntax-property, #5eead4);
  --syntax-string: var(--site-syntax-string, #86efac);
  --syntax-function: var(--site-syntax-function, #93c5fd);
  --syntax-keyword: var(--site-syntax-keyword, #c4b5fd);
  --syntax-number: var(--site-syntax-number, #fdba74);
  --syntax-operator: var(--site-syntax-operator, #e5e7eb);
  --shadow: var(--site-shadow, none);
}

/* Optional dark theme (kept minimal) */
:root[data-theme="dark"]{
  --bg: var(--site-bg, #0b0c0f);
  --panel: var(--site-panel, #12141a);
  --panel2: var(--site-panel2, #0f1116);
  --text: var(--site-text, #e8eaf0);
  --muted: var(--site-muted, #a8afc0);
  --line: var(--site-line, rgba(255,255,255,.10));
  --accent: var(--site-accent, #ffffff);
  --code-bg: var(--site-code-bg, #10131a);
  --code-text: var(--site-code-text, #edf2ff);
  --code-muted: var(--site-code-muted, #98a2b3);
  --code-line: var(--site-code-line, rgba(255,255,255,.13));
  --inline-code-bg: var(--site-inline-code-bg, #1b2029);
  --inline-code-text: var(--site-inline-code-text, #f4f7ff);
  --syntax-comment: var(--site-syntax-comment, #98a2b3);
  --syntax-punctuation: var(--site-syntax-punctuation, #d7dce5);
  --syntax-property: var(--site-syntax-property, #5eead4);
  --syntax-string: var(--site-syntax-string, #86efac);
  --syntax-function: var(--site-syntax-function, #93c5fd);
  --syntax-keyword: var(--site-syntax-keyword, #c4b5fd);
  --syntax-number: var(--site-syntax-number, #fdba74);
  --syntax-operator: var(--site-syntax-operator, #e5e7eb);
  --shadow: var(--site-shadow, none);
}

*{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  /* font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Apple SD Gothic Neo", "Noto Sans KR", Arial; */
  /* font-family: 'Inter', 'Noto Sans KR', 'Spoqa Han Sans', 'Apple SD Gothic Neo', 'Segoe UI', Roboto, Arial, sans-serif; */
  font-family: 'Manrope', 'Pretendard', 'Noto Sans KR', 'Apple SD Gothic Neo', 'Segoe UI', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

::selection{
  background: rgba(37, 99, 235, .24);
  color: var(--text);
}

a{ color: inherit; text-decoration: none; }
a:hover{ opacity: .9; }

.container{ width:min(var(--max), calc(100% - 44px)); margin: 0 auto; }

.skip{ position:absolute; left:-9999px; top:auto; }
.skip:focus{
  left: 16px; top: 16px; z-index: 999;
  background: var(--panel2);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

/* Layout */
.layout{
  display:grid;
  grid-template-columns: 320px 1fr;
  min-height: 100vh;
}
.layout > *{
  min-width: 0;
}

.sidebar{
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel2) 54%, var(--bg));
  padding: 18px;
}

.sidebar-card{
  position: sticky;
  top: 18px;
  display:flex;
  flex-direction:column;
  min-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 16px;
}

.avatar-wrap{
  display:flex;
  justify-content:flex-start;
  margin-bottom: 12px;
}
.avatar{
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--panel);
}

.who{ margin-bottom: 12px; }
.name{ font-weight: 800; letter-spacing: -0.01em; }
.profile-line{
  margin: 4px 0 0;
  color: color-mix(in srgb, var(--muted) 86%, var(--text));
  font-size: 12px;
  line-height: 1.35;
}

.info{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  margin: 12px 0;
}
.info-row{
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 6px 0;
  font-size: 13px;
}
.label{ color: var(--muted); }
.value a{
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--text);
}

.visit-card{
  margin: 12px 0;
  padding: 12px 0 2px;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 14px;
  border-left: 0;
  border-right: 0;
  border-radius: 0;
  background: transparent;
}

.visit-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
  font-size:13px;
}

.visit-grid{
  display:grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap:12px;
}

.visit-stat{
  min-width:0;
  padding:0;
  border:0;
  border-radius:0;
  background: transparent;
}

.visit-stat:first-child{
  background: transparent;
  border-color: transparent;
  transform: translateX(8px);
}

.visit-stat:nth-child(2){
  opacity:.58;
  background: transparent;
}

.visit-label{
  display:block;
  color: var(--muted);
  font-size:11px;
  line-height:1.2;
}

.visit-stat strong{
  display:block;
  margin-top:3px;
  font-size:19px;
  line-height:1.05;
  letter-spacing:-0.01em;
}

.visit-stat:first-child strong{
  font-size:25px;
}

.visit-stat:nth-child(2) strong{
  font-size:15px;
  font-weight:700;
}


.sidebar-bottom{
  margin-top:auto;
  display:grid;
  gap:10px;
  padding-top:12px;
}


/* Content */
.content{
  background: var(--bg);
}

.topbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 0;
}
.topbar-inner{
  width:min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 14px 0;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
}
.brandline{ display:flex; align-items:center; gap: 10px; }
.insight-mark{
  position: relative;
  top: -1px;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.insight-mark::before,
.insight-mark::after,
.insight-core::before,
.insight-core::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.insight-mark{
  color: #D19A00;
  filter: drop-shadow(0 0 10px rgba(209, 154, 0, .42));
  transform-origin: center;
  animation: insightPulse 1.9s ease-in-out infinite;
}
.insight-mark::before{
  width: 2px;
  height: 17px;
  border-radius: 999px;
}
.insight-mark::after{
  width: 17px;
  height: 2px;
  border-radius: 999px;
}
.insight-core::before{
  width: 12px;
  height: 2px;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(45deg);
}
.insight-core::after{
  width: 12px;
  height: 2px;
  border-radius: 999px;
  transform: translate(-50%, -50%) rotate(-45deg);
}
@keyframes insightPulse{
  0%{
    opacity: .78;
    filter:
      drop-shadow(0 0 4px rgba(209, 154, 0, .24))
      drop-shadow(0 0 9px rgba(209, 154, 0, .16));
    transform: scale(.98);
  }
  35%{
    opacity: 1;
    filter:
      drop-shadow(0 0 10px rgba(209, 154, 0, .58))
      drop-shadow(0 0 22px rgba(209, 154, 0, .34));
    transform: scale(1.06);
  }
  65%{
    opacity: .9;
    filter:
      drop-shadow(0 0 7px rgba(209, 154, 0, .38))
      drop-shadow(0 0 15px rgba(209, 154, 0, .22));
    transform: scale(1.01);
  }
  100%{
    opacity: .78;
    filter:
      drop-shadow(0 0 4px rgba(209, 154, 0, .24))
      drop-shadow(0 0 9px rgba(209, 154, 0, .16));
    transform: scale(.98);
  }
}
@media (prefers-reduced-motion: reduce){
  .insight-mark{
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.brandtext{ font-weight: 750; color: var(--text); }

.icon-btn{
  width: 40px;              /* 고정 */
  height: 40px;             /* 고정 */
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  border-radius: 12px;
  padding: 0;               /* 패딩 제거(크기 흔들림 방지) */
  cursor: pointer;

  display: inline-flex;     /* 중앙정렬 */
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;           /* 레이아웃 변화 방지 */
  line-height: 1;           /* 텍스트 흔들림 방지 */
}

/* 아이콘 자체도 고정 */
#themeIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;              /* 고정 */
  height: 18px;             /* 고정 */
  font-size: 18px;          /* 고정 */
  line-height: 1;           /* 고정 */
  transform: translateY(-0.5px); /* 선택: 시각적으로 딱 중앙 맞추기 */
}

.hero{ padding: 34px 0 16px; }
.kicker{ color: var(--muted); margin:0 0 10px; }
.hero h1{
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sub{ margin: 0 0 14px; color: var(--muted); }

.meta{ display:flex; gap: 10px; flex-wrap:wrap; margin-top: 10px; }
.pill{
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 8px 10px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
}

/* Sections */
.section{ padding: 34px 0; border-top: 1px solid var(--line); }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap: 12px; margin-bottom: 14px; }
.section h2{ margin:0; font-size: 20px; letter-spacing: -0.01em; }
.muted{ color: var(--muted); }
.tiny{ font-size: 12px; }

/* Cards */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card{
  background: color-mix(in srgb, var(--panel2) 88%, var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: none;
  transition: transform .15s ease, opacity .15s ease;
}
.card:hover{
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--line) 62%, var(--text) 24%);
  background: color-mix(in srgb, var(--panel2) 72%, var(--bg));
}

/* Responsive */
@media (max-width: 980px){
  .layout{ display: block; }
  .sidebar{ border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-card{ position: relative; top: 0; min-height: auto !important; }
  .sidebar-bottom{ margin-top: 16px; }
  .grid{ grid-template-columns: 1fr; }
}

.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 12px;
  padding: 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel2);
  box-shadow: none;
}

.row-title{ font-weight: 700; }
.row-sub{ font-size: 13px; margin-top: 2px; }
.arrow{ color: var(--muted); }

/* Archive navigation */
.topnav{
  display:flex;
  align-items:center;
  gap:4px;
  margin-left:auto;
}
.topnav a,
.topnav-btn{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font:inherit;
  font-size:12px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.topnav a:hover,
.topnav a.is-active,
.topnav-btn:hover,
.topnav-btn.is-active{
  color:var(--text);
  background:color-mix(in srgb, var(--panel) 58%, transparent);
  opacity:1;
}
.section-link{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:5px 0;
  color:var(--muted);
  font-size:12px;
  font-weight:720;
  line-height:1;
  transition:color .15s ease;
}
.section-link:hover{
  color:var(--text);
  opacity:1;
}

/* Paper / project archive cards */
.paper-groups{
  display:flex;
  flex-wrap:nowrap;
  gap:2px;
  width:100%;
  margin:0 0 18px;
  padding:0 18px 8px 0;
  overflow-x:auto;
  border-bottom:1px solid var(--line);
  scrollbar-width:none;
  -webkit-mask-image:linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
  mask-image:linear-gradient(90deg, #000 0, #000 calc(100% - 30px), transparent 100%);
}
.paper-groups::-webkit-scrollbar{ display:none; }
.paper-group-btn{
  display:inline-flex;
  align-items:center;
  gap:7px;
  flex:0 0 auto;
  min-height:28px;
  padding:5px 9px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:680;
  line-height:1.1;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.paper-group-btn span:first-child{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.paper-group-btn:hover{
  color:var(--text);
  background:color-mix(in srgb, var(--panel) 70%, transparent);
}
.paper-group-btn.is-active{
  color:var(--text);
  background:color-mix(in srgb, var(--panel) 74%, transparent);
  box-shadow:inset 0 -1px 0 color-mix(in srgb, var(--text) 34%, transparent);
}
.paper-group-count{
  color:color-mix(in srgb, var(--muted) 80%, var(--text));
  font-size:10.5px;
  font-weight:760;
  letter-spacing:.02em;
}
.paper-frame{
  display:grid;
  gap:0;
  min-height:calc(5 * 148px);
  border-bottom:0;
  align-content:start;
  grid-auto-rows:148px;
}
.paper-card{
  height:148px;
  min-height:148px;
  display:grid;
  grid-template-columns:174px minmax(0, 1fr);
  align-items:start;
  gap:14px;
  padding:18px 2px;
  border-top:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  transition:background .15s ease;
}
.paper-card:hover{
  background:color-mix(in srgb, var(--panel) 35%, transparent);
  opacity:1;
}
.paper-thumb{
  width:174px;
  aspect-ratio:16 / 10;
  border-radius:4px;
  border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background:transparent;
  overflow:hidden;
}
.paper-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.9;
  filter:saturate(.82) contrast(.98);
  transition:opacity .15s ease, filter .15s ease;
}
.paper-body{
  height:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:1px 0 2px;
}
.paper-card .row-title{
  color:var(--text);
  font-size:16.5px;
  font-weight:760;
  line-height:1.28;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.paper-card .row-sub{
  color:color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size:13.5px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.paper-date{
  margin-top:auto;
  color:var(--muted);
  font-size:11px;
  line-height:1.15;
  letter-spacing:.01em;
  opacity:.56;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.paper-card:hover .paper-thumb img,
.card:hover .work-thumb img{
  opacity:.98;
  filter:saturate(.96) contrast(1);
}
.pager{
  display:inline-flex;
  align-items:center;
  gap:8px;
  user-select:none;
  white-space:nowrap;
}
.pager .page-indicator{
  min-width:52px;
  color:var(--muted);
  font-size:12px;
  text-align:center;
}
.pager-btn{
  width:32px;
  height:32px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  border-radius:9px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.pager-btn[disabled]{
  opacity:.45;
  cursor:not-allowed;
}
.paper-bottom-pager,
.project-bottom-pager{
  justify-content:center;
  width:100%;
  margin-top:18px;
  padding-top:4px;
}
.pager-pages{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
}
.pager-page-btn{
  width:30px;
  height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--muted);
  font-size:12px;
  font-weight:720;
  line-height:1;
  cursor:pointer;
  transition:background .15s ease, color .15s ease;
}
.pager-page-btn:hover{
  color:var(--text);
  background:color-mix(in srgb, var(--panel) 60%, transparent);
}
.pager-page-btn.is-active{
  color:var(--text);
  background:color-mix(in srgb, var(--panel) 78%, transparent);
  box-shadow:inset 0 -1px 0 color-mix(in srgb, var(--text) 32%, transparent);
}
.paper-bottom-pager .pager-btn,
.project-bottom-pager .pager-btn{
  border-color:transparent;
  color:color-mix(in srgb, var(--muted) 78%, transparent);
  background:transparent;
}
.paper-bottom-pager .pager-btn:not([disabled]):hover,
.project-bottom-pager .pager-btn:not([disabled]):hover{
  color:var(--text);
  background:color-mix(in srgb, var(--panel) 54%, transparent);
}
.work-frame{
  min-height:0;
}
.grid.fixed-rows{
  grid-template-columns:1fr;
  grid-auto-rows:auto;
  column-gap:18px;
  row-gap:0;
  border-bottom:0;
}
#workGrid[data-work-list]{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  min-height:calc(5 * 148px);
  align-content:start;
  grid-auto-rows:148px;
  border-bottom:0;
}
#workGrid .card{
  height:172px;
  padding:14px 2px 13px;
  border:0;
  border-top:1px solid var(--line);
  border-radius:0;
  background:transparent;
  color:inherit;
}
#workGrid .card:hover{
  transform:none;
  background:color-mix(in srgb, var(--panel) 35%, transparent);
}
.work-card{
  height:145px;
  display:flex;
  flex-direction:column;
  gap:9px;
}
.work-thumb{
  height:82px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  border:1px solid color-mix(in srgb, var(--line) 84%, transparent);
  border-radius:4px;
  background:transparent;
}
.work-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.9;
  filter:saturate(.82) contrast(.98);
  transition:opacity .15s ease, filter .15s ease;
}
.work-body{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-height:0;
}
.work-title{
  color:var(--text);
  font-weight:750;
  letter-spacing:-0.01em;
  line-height:1.2;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.work-desc{
  color:color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size:13px;
  line-height:1.25;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.work-meta{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding-top:2px;
  color:var(--muted);
  font-size:12px;
}
.project-card{
  height:148px;
  min-height:148px;
  display:grid;
  grid-template-columns:174px minmax(0, 1fr);
  align-items:start;
  gap:14px;
  padding:18px 2px;
  border-top:1px solid var(--line);
  color:inherit;
  text-decoration:none;
  transition:background .15s ease;
}
.project-card:hover{
  background:color-mix(in srgb, var(--panel) 35%, transparent);
  opacity:1;
}
.project-thumb{
  width:174px;
  aspect-ratio:16 / 10;
  display:block;
  overflow:hidden;
  border:1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius:4px;
  background:transparent;
}
.project-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  opacity:.9;
  filter:saturate(.82) contrast(.98);
  transition:opacity .15s ease, filter .15s ease;
}
.project-body{
  height:100%;
  min-width:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:1px 0 2px;
}
.project-card .row-title{
  color:var(--text);
  font-size:16.5px;
  font-weight:760;
  line-height:1.28;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-card .row-sub{
  color:color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size:13.5px;
  line-height:1.5;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.project-date{
  margin-top:auto;
  color:var(--muted);
  font-size:11px;
  line-height:1.15;
  letter-spacing:.01em;
  opacity:.56;
  white-space:nowrap;
  font-variant-numeric:tabular-nums;
}
.project-card:hover .project-thumb img{
  opacity:.98;
  filter:saturate(.96) contrast(1);
}

/* Full archive pages */
.archive-body{
  min-height:100vh;
}
.archive-container{
  padding-bottom:56px;
}
.archive-hero{
  padding:42px 0 18px;
}
.archive-hero h1{
  margin:0 0 10px;
  font-size:clamp(30px, 4vw, 44px);
  line-height:1.15;
  letter-spacing:-0.025em;
}
.archive-section{
  padding-top:28px;
}
.archive-list{
  min-height:calc(12 * 105px);
}
.archive-project-grid{
  grid-auto-rows:172px;
}

@media (max-width: 720px){
  .topbar-inner{
    align-items:flex-start;
    flex-direction:column;
  }
  .topnav{
    width:100%;
    overflow-x:auto;
    padding-bottom:2px;
  }
  .section-head.row{
    align-items:flex-start;
    flex-direction:column;
  }
  .paper-card{
    height:172px;
    min-height:172px;
    grid-template-columns:128px minmax(0, 1fr);
    padding:18px 0;
  }
  #workGrid[data-work-list]{
    min-height:calc(5 * 172px);
    grid-auto-rows:172px;
  }
  .paper-thumb{
    width:128px;
  }
  .project-card{
    height:172px;
    min-height:172px;
    grid-template-columns:128px minmax(0, 1fr);
    padding:18px 0;
  }
  .project-thumb{
    width:128px;
  }
  .grid.fixed-rows{
    grid-template-columns:1fr;
    grid-auto-rows:172px;
  }
  .archive-list{
    min-height:0;
  }
}
