@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:ital,wght@0,400;0,700;1,400&family=Special+Elite&family=Space+Mono:wght@400;700&display=swap');

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: #131313; font-family: 'Courier Prime', monospace; }
a { color: #f5722a; text-decoration: none; }
a:hover { color: #ff8c4a; text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { font-family: 'Courier Prime', monospace; }
p { margin: 0; }

/* ── Layout ── */
.site-wrapper { display: flex; height: 100vh; background: #131313; overflow: hidden; }

/* ── Sidebar ── */
.site-aside {
  width: 200px; flex-shrink: 0; background: #0c0c0c;
  border-right: 1px solid #1e1e1e; padding: 36px 24px;
  display: flex; flex-direction: column; height: 100vh; overflow-y: auto;
}
.site-logo {
  font-family: 'Courier Prime', monospace; font-size: 1.1rem; font-weight: 700;
  color: #f5722a; margin-bottom: 52px; line-height: 1.45;
  letter-spacing: 0.02em; display: block; text-decoration: none;
}
.site-logo:hover { color: #ff8c4a; text-decoration: none; }
.site-nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item {
  font-family: 'Courier Prime', monospace; font-size: 0.65rem;
  padding: 8px 12px; letter-spacing: 0.1em; cursor: pointer;
  user-select: none; text-decoration: none; display: block;
  color: #3a3a3a; border-left: 2px solid transparent;
}
.nav-item:hover { color: #666; text-decoration: none; }
.nav-item.active { color: #f5722a; background: rgba(245,114,42,0.1); border-left: 2px solid #f5722a; }

/* ── Main ── */
.site-main { flex: 1; min-width: 0; height: 100vh; overflow-y: auto; padding: 52px 60px 80px; }
.page-content { max-width: 860px; }
.page-content--wide { max-width: 800px; }
.page-title { font-family: 'Courier Prime', monospace; font-size: 1.6rem; font-weight: 700; color: #e8e8e8; margin: 0 0 28px; letter-spacing: 0.01em; }
.disclaimer { font-size: 0.6rem; color: #282828; border-top: 1px solid #1c1c1c; padding-top: 20px; letter-spacing: 0.12em; margin: 0; }

/* ── Section labels ── */
.section-label { font-size: 0.62rem; color: #f5722a; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 16px; font-family: 'Courier Prime', monospace; }

/* ── CV ── */
.cv-section { margin-bottom: 36px; }
.cv-row { display: flex; gap: 20px; border-top: 1px solid #1e1e1e; padding: 14px 0; }
.cv-row--last { border-bottom: 1px solid #1e1e1e; }
.cv-row--goethe { border-top: 1px solid #1e1e1e; padding: 14px 0; }
.cv-row--goethe-last { border-bottom: 1px solid #1e1e1e; }
.cv-row-sub { display: flex; gap: 20px; }
.cv-date { font-size: 0.65rem; color: #f5722a; width: 130px; flex-shrink: 0; font-family: 'Courier Prime', monospace; padding-top: 2px; line-height: 1.7; }
.cv-date--mini { font-size: 0.58rem; color: rgba(245,114,42,0.38); width: 130px; flex-shrink: 0; font-family: 'Courier Prime', monospace; line-height: 1.8; }
.cv-body { font-size: 0.74rem; color: #888; line-height: 1.8; min-width: 0; flex: 1; overflow-wrap: break-word; word-break: break-word; }
.cv-institution { display: block; color: #ccc; margin-bottom: 2px; }
.cv-location { display: block; color: #555; font-size: 0.74rem; font-family: 'Courier Prime', monospace; }
.cv-location--spaced { margin-bottom: 4px; }

/* Skills */
.skills-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; border-top: 1px solid #1e1e1e; padding-top: 16px; }
.skills-cat { font-size: 0.58rem; color: #555; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 10px; }
.skills-list { font-size: 0.74rem; color: #888; line-height: 1.9; margin: 0; }

/* ── Research ── */
details.section-acc { margin-bottom: 40px; }
details.section-acc > summary { list-style: none; padding-bottom: 16px; display: flex; align-items: center; cursor: pointer; user-select: none; }
details.section-acc > summary::-webkit-details-marker { display: none; }
details.section-acc > summary::after { content: ' ▸'; color: #555; font-size: 0.6rem; }
details.section-acc[open] > summary::after { content: ' ▾'; color: #f5722a; font-size: 0.6rem; }
.paper-entry { border-top: 1px solid #1e1e1e; padding: 20px 0; }
.paper-entry--last { border-bottom: 1px solid #1e1e1e; }
.paper-title { font-family: 'Courier Prime', monospace; font-size: 1rem; color: #ccc; display: block; margin-bottom: 6px; line-height: 1.4; }
.paper-meta { font-size: 0.68rem; color: #555; margin: 0 0 12px; line-height: 1.7; }
.paper-meta--last { margin-bottom: 0; }
.paper-abstract { font-size: 0.71rem; color: #666; line-height: 1.85; margin: 0; }
.paper-badge { display: inline-block; font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; color: #f5722a; border: 1px solid rgba(245,114,42,0.4); padding: 2px 8px; margin-bottom: 12px; }
.ssrn-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.65rem; color: #555; border: 1px solid #2a2a2a; padding: 6px 14px; letter-spacing: 0.08em; text-decoration: none; margin-bottom: 32px; }
.ssrn-link:hover { color: #888; text-decoration: none; }

/* ── Contact ── */
.contact-row { display: flex; gap: 20px; border-top: 1px solid #1e1e1e; padding: 18px 0; }
.contact-row--last { border-bottom: 1px solid #1e1e1e; }
.contact-label { font-size: 0.62rem; color: #f5722a; width: 100px; flex-shrink: 0; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; font-family: 'Courier Prime', monospace; }
.contact-value { font-size: 0.74rem; color: #888; line-height: 1.9; }

/* ── Hobby ── */
details.yr-acc > summary { list-style: none; cursor: pointer; padding: 13px 0; border-top: 1px solid #252525; display: flex; justify-content: space-between; align-items: center; user-select: none; }
details.yr-acc > summary::-webkit-details-marker { display: none; }
details.yr-acc > summary::after { content: ' ▸'; color: #555; font-size: 0.6rem; }
details.yr-acc[open] > summary::after { content: ' ▾'; color: #f5722a; font-size: 0.6rem; }
.yr-label { font-family: 'Courier Prime', monospace; font-size: 1.1rem; font-weight: 700; letter-spacing: 0.04em; }
.yr-count { font-size: 0.58rem; letter-spacing: 0.1em; }
.lesson-list { margin: 0; padding: 4px 0 20px; list-style: none; display: flex; flex-direction: column; gap: 0; }
.lesson-item { display: flex; gap: 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #1a1a1a; }
.lesson-num { font-size: 0.6rem; color: #f5722a; width: 22px; flex-shrink: 0; text-align: right; }
.lesson-link { font-size: 0.74rem; color: #999; flex: 1; line-height: 1.5; text-decoration: none; cursor: pointer; }
.lesson-link:hover { color: #ccc; }
.lesson-date-col { font-size: 0.58rem; color: #333; flex-shrink: 0; }

/* Lesson view */
.lesson-view { display: none; }
.back-btn { background: none; border: none; cursor: pointer; font-size: 0.62rem; color: #555; letter-spacing: 0.1em; margin-bottom: 40px; display: inline-flex; align-items: center; gap: 8px; font-family: 'Courier Prime', monospace; padding: 0; }
.back-btn:hover { color: #888; }
.lesson-num-label { font-size: 0.62rem; color: #f5722a; letter-spacing: 0.12em; margin-bottom: 14px; font-family: 'Courier Prime', monospace; }
.lesson-quote { font-family: 'Courier Prime', monospace; font-size: 1.4rem; color: #e8e8e8; margin: 0 0 14px; line-height: 1.4; font-style: normal; font-weight: 700; padding: 0; }
.lesson-date-disp { font-size: 0.6rem; color: #444; margin-bottom: 40px; letter-spacing: 0.08em; font-family: 'Courier Prime', monospace; }
.lesson-body p { margin: 0 0 1.6em; font-size: 0.78rem; line-height: 2.1; color: #888; }
.lesson-body p:last-child { margin-bottom: 0; }
.art-slot { margin-bottom: 28px; }
.art-slot img { max-width: 100%; height: auto; display: block; border-radius: 2px; }

/* ── Home ── */
.home-hero { display: flex; gap: 32px; align-items: flex-start; margin-bottom: 40px; max-width: 760px; }
.home-avatar { width: 120px; height: 120px; flex-shrink: 0; object-fit: cover; border-radius: 2px; filter: brightness(0.88) saturate(0.9); }
.home-bio p { font-size: 0.78rem; line-height: 2.1; color: #888; margin: 0 0 18px; }
.home-bio p:last-child { margin-bottom: 0; }
.home-disclaimer { font-size: 0.6rem; color: #282828; border-top: 1px solid #1c1c1c; padding-top: 20px; letter-spacing: 0.12em; max-width: 760px; margin: 0; }

/* ── Cooking ── */
.cooking-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cooking-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }

/* ── Hamburger ── */
.hamburger { display: none; align-items: center; justify-content: center; position: fixed; top: 14px; right: 14px; z-index: 200; width: 38px; height: 38px; background: #0c0c0c; border: 1px solid #2a2a2a; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.hamburger span { display: block; width: 18px; height: 1.5px; background: #f5722a; }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 150; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-overlay.open { display: block; }
  .site-aside { position: fixed; left: 0; top: 0; height: 100vh; z-index: 160; transform: translateX(-100%); transition: transform 0.22s ease; }
  .site-aside.open { transform: translateX(0); }
  .site-main { padding: 52px 24px 60px; }
  .home-hero { flex-direction: column; }
  .home-avatar { width: 80px; height: 80px; }
  .cooking-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: 1fr; }
}
