@import url('https://fonts.googleapis.com/css2?family=IM+Fell+DW+Pica:ital@0;1&display=swap');

:root {
  --black: #111111;
  --white: #ffffff;
  --gray: #999999;
  --light: #f5f5f5;
  --rule: #d8d8d8;
  --accent: #e8400a;
  --font-serif: 'IM Fell DW Pica', Georgia, serif;
  --font-sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-w: 160px;
  --pad: 40px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 13px; }
body {
  font-family: var(--font-sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── HEADER ── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--white);
  padding: 14px var(--pad);
  display: flex; justify-content: space-between; align-items: flex-start;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-color: var(--rule); }
.site-wordmark { font-size: 13px; font-weight: 400; }
.site-wordmark a:hover { text-decoration: none; color: var(--accent); }
.header-right { font-size: 13px; cursor: pointer; }
.header-right:hover { text-decoration: underline; }

.top-rule { display: none; }

/* ── SIDEBAR ── */
.sidebar {
  position: fixed; top: 44px; left: 0;
  width: var(--nav-w); padding: var(--pad); z-index: 99;
}
.sidebar nav { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; }
.sidebar nav a { font-size: 13px; color: var(--black); line-height: 1.7; }
.sidebar nav a.active { font-weight: 600; }
.sidebar nav a:hover { text-decoration: none; color: var(--accent); }

/* ── MAIN ── */
main { margin-left: var(--nav-w); padding-top: 62px; min-height: 100vh; }
.page-content { padding: var(--pad); animation: fadeIn 0.25s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── PAGE LABEL ── */
.page-label {
  font-size: 13px; margin-bottom: 28px;
  padding-bottom: 10px; border-bottom: 1px solid var(--rule);
}
.breadcrumb { color: var(--gray); }
.breadcrumb a { color: var(--gray); }
.breadcrumb a:hover { color: var(--black); text-decoration: none; }

.block-header {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 18px;
}

/* ── SEARCH ── */
.search-overlay {
  position: fixed; inset: 0; background: var(--white);
  z-index: 200; padding: var(--pad); display: none; flex-direction: column;
}
.search-overlay.open { display: flex; }
.search-close { align-self: flex-end; font-size: 13px; cursor: pointer; margin-bottom: 20px; }
.search-close:hover { text-decoration: underline; }
.search-input-wrap {
  border-bottom: 1px solid var(--black);
  display: flex; align-items: center; gap: 10px; padding-bottom: 6px; max-width: 500px;
}
.search-input-wrap label { font-size: 13px; color: var(--gray); }
.search-input { border: none; outline: none; font-family: var(--font-sans); font-size: 13px; flex: 1; background: transparent; }

/* ── MOBILE ── */
@media (max-width: 700px) {
  :root { --nav-w: 0px; --pad: 18px; }
  .sidebar { display: none; }
  .mobile-nav { display: flex !important; }
  main { margin-left: 0; }
  .about-3col { grid-template-columns: 1fr !important; }
  .work-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .skills-list { grid-template-columns: repeat(2, 1fr) !important; }
  .focus-item { flex-direction: column; gap: 4px; }
  .fi-label { width: auto !important; }
  .learn-item, .journal-item { flex-direction: column; gap: 4px; }
  .learn-date, .ji-date { width: auto !important; }
  .single-layout { flex-direction: column !important; gap: 28px !important; }
  .single-sidebar-col { width: auto !important; }
  .preview-row-item { flex-direction: column; gap: 3px; }
  .preview-row-date { width: auto !important; }
}
.mobile-nav {
  display: none; flex-wrap: wrap; gap: 12px 20px;
  font-size: 13px; margin-bottom: 28px;
  padding-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.mobile-nav a.active { font-weight: 600; }

/* ════════════════════════════════
   HOME
════════════════════════════════ */
.home-intro-block { margin-bottom: 52px; max-width: 480px; }
.home-intro-block .tagline {
  font-family: var(--font-serif); font-style: italic;
  font-size: 17px; line-height: 1.55; margin-bottom: 20px;
}
.home-intro-block .location { font-size: 12px; color: var(--gray); margin-bottom: 18px; }
.home-intro-block p { font-size: 13px; line-height: 1.75; margin-bottom: 13px; }

.skills-block { margin-bottom: 50px; }
.skills-list {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--rule); max-width: 560px;
}
.skill-item { padding: 11px 20px 11px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.skill-item span { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }

.focus-block { max-width: 560px; margin-bottom: 50px; }
.focus-list { border-top: 1px solid var(--rule); }
.focus-item { display: flex; gap: 40px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.fi-label { width: 100px; flex-shrink: 0; color: var(--gray); font-size: 12px; }

.preview-list { border-top: 1px solid var(--rule); max-width: 560px; margin-bottom: 50px; }
.preview-row-item {
  display: flex; gap: 40px;
  padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: 13px;
}
.preview-row-item:hover .preview-row-title { text-decoration: underline; }
.preview-row-date { width: 80px; flex-shrink: 0; font-size: 12px; color: var(--gray); padding-top: 1px; }
.preview-row-meta { font-size: 12px; color: var(--gray); }
.preview-row-title { font-size: 13px; }

.cta-block { margin-top: 40px; max-width: 400px; margin-bottom: 60px; }
.cta-block p { font-size: 13px; line-height: 1.7; margin-bottom: 18px; }
.cta-link {
  font-size: 13px; border-bottom: 1px solid var(--black);
  padding-bottom: 1px; transition: color 0.15s, border-color 0.15s;
}
.cta-link:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

.section-divider { border: none; border-top: 1px solid var(--rule); margin: 0 0 36px 0; }

/* ════════════════════════════════
   ABOUT / CONTACT — 3 COLUMN
════════════════════════════════ */
.about-3col {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 60px;
}
.about-portrait img { width: 100%; display: block; filter: grayscale(15%); }

.about-quote {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; line-height: 1.6; margin-bottom: 4px;
}
.about-quote-attr { font-size: 12px; color: var(--gray); margin-bottom: 24px; }
.about-col p { font-size: 13px; line-height: 1.75; margin-bottom: 13px; }
.about-col a { text-decoration: underline; }
.about-col hr { border: none; border-top: 1px solid var(--rule); margin: 20px 0; }
.about-sub-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 12px;
}
.ed-item { font-size: 13px; margin-bottom: 10px; }
.ed-item span { display: block; font-size: 12px; color: var(--gray); }

.contact-col p { font-size: 13px; line-height: 1.7; margin-bottom: 20px; }
.contact-block { margin-bottom: 24px; }
.contact-block strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.contact-block a { display: block; font-size: 13px; line-height: 1.9; text-decoration: underline; }
.contact-block span { display: block; font-size: 13px; line-height: 1.9; }

/* ════════════════════════════════
   WORK INDEX
════════════════════════════════ */
.work-intro { max-width: 480px; font-size: 13px; line-height: 1.75; margin-bottom: 36px; }
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.work-item { padding: 0 20px 36px 0; }
.work-item a { display: block; }
.work-item a:hover .work-title { text-decoration: underline; }
.work-item a:hover .work-thumb-inner { transform: scale(1.04); }
.work-thumb { aspect-ratio: 4/3; margin-bottom: 9px; overflow: hidden; }
.work-thumb-inner {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; font-weight: 700; letter-spacing: -0.03em;
  transition: transform 0.3s ease; user-select: none;
}
.work-title { font-size: 13px; line-height: 1.4; }
.work-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }
.wt-1 { background: #f0ebe3; color: #2a1a0a; }
.wt-2 { background: #e8f0f7; color: #1a3a5c; }
.wt-3 { background: #f7f0e8; color: #4a2800; }
.wt-4 { background: #edf7ee; color: #1a3a1e; }
.wt-5 { background: #f5edf7; color: #3a1a4a; }
.wt-6 { background: #f7eded; color: #c0200a; }
.wt-7 { background: #f0f0f0; color: #333; }
.wt-8 { background: #111; color: #fff; }

/* ════════════════════════════════
   LEARN INDEX
════════════════════════════════ */
.learn-intro { max-width: 480px; font-size: 13px; line-height: 1.75; margin-bottom: 36px; }
.learn-list { border-top: 1px solid var(--rule); max-width: 720px; }
.learn-item { display: flex; gap: 40px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.learn-item:hover .learn-title { text-decoration: underline; }
.learn-date { width: 100px; flex-shrink: 0; font-size: 12px; color: var(--gray); padding-top: 1px; }
.learn-title { font-size: 13px; margin-bottom: 3px; }
.learn-desc { font-size: 12px; color: var(--gray); line-height: 1.55; margin-bottom: 5px; }
.learn-tag {
  display: inline-block; font-size: 10px;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 1px 6px;
  color: var(--gray); border-radius: 2px; margin-top: 2px;
}

/* ════════════════════════════════
   JOURNAL INDEX
════════════════════════════════ */
.journal-intro { max-width: 480px; font-size: 13px; line-height: 1.75; margin-bottom: 36px; }
.journal-list { border-top: 1px solid var(--rule); max-width: 720px; }
.journal-item { display: flex; gap: 40px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.journal-item:hover .ji-title { text-decoration: underline; }
.ji-date { width: 100px; flex-shrink: 0; font-size: 12px; color: var(--gray); padding-top: 1px; }
.ji-title { font-size: 13px; margin-bottom: 4px; }
.ji-excerpt { font-size: 12px; color: var(--gray); line-height: 1.6; }

/* ════════════════════════════════
   SINGLE PAGES
════════════════════════════════ */
.single-layout { display: flex; gap: 60px; align-items: flex-start; }

.single-body { flex: 1; max-width: 540px; }
.single-title {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 6px; line-height: 1.3;
}
.single-date { font-size: 12px; color: var(--gray); margin-bottom: 28px; }
.single-lede {
  font-family: var(--font-serif); font-style: italic;
  font-size: 15px; line-height: 1.65;
  margin-bottom: 24px; color: #333;
}
.single-body p { font-size: 13px; line-height: 1.85; margin-bottom: 16px; }
.single-body h2 { font-size: 13px; font-weight: 600; margin: 32px 0 10px; }
.single-body hr { border: none; border-top: 1px solid var(--rule); margin: 28px 0; }
.single-body a { text-decoration: underline; }
.single-body blockquote {
  border-left: 2px solid var(--rule); padding-left: 18px;
  font-family: var(--font-serif); font-style: italic;
  font-size: 14px; line-height: 1.65; color: #555; margin: 24px 0;
}
.single-body ul { padding-left: 18px; margin-bottom: 16px; }
.single-body ul li { font-size: 13px; line-height: 1.85; margin-bottom: 4px; }

.img-placeholder {
  width: 100%; aspect-ratio: 16/9;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.img-placeholder-sq {
  width: 100%; aspect-ratio: 4/3;
  background: var(--light);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; color: var(--gray); letter-spacing: 0.06em; text-transform: uppercase;
  margin-bottom: 6px;
}
.img-caption { font-size: 11px; color: var(--gray); margin-bottom: 24px; }

/* Sidebar col */
.single-sidebar-col { width: 200px; flex-shrink: 0; padding-top: 2px; }
.single-meta-block { margin-bottom: 26px; }
.single-meta-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--gray); margin-bottom: 8px;
}
.single-meta-value { font-size: 13px; line-height: 1.75; }
.single-meta-value a { text-decoration: underline; }
.single-tag {
  display: inline-block; font-size: 10px;
  letter-spacing: 0.07em; text-transform: uppercase;
  border: 1px solid var(--rule); padding: 2px 7px;
  color: var(--gray); border-radius: 2px; margin: 2px 2px 2px 0;
}

/* Prev/next */
.single-nav {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 20px; margin-top: 48px; max-width: 540px;
}
.single-nav a { font-size: 13px; color: var(--gray); }
.single-nav a:hover { color: var(--black); text-decoration: none; }

/* Image grid (work single) */
.work-img-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 24px 0;
}
