@import url('https://use.typekit.net/pur8tye.css');

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

:root {
  --n100: #F2F0ED; --n200: #DDDAD6; --n300: #B0ACA7;
  --n400: #7A7672; --n500: #3F3D3A; --n600: #1E1C1A; --n700: #100F0D;
  --font: 'artifex-hand-cf', Georgia, serif;
}

html { font-size: 16px; }

body {
  background: var(--n100);
  color: var(--n700);
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 40px 52px;
  border-bottom: 1px solid var(--n200);
}

.nav-left { display: flex; flex-direction: column; gap: 4px; }

.nav-brand {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n700);
  text-decoration: none;
  opacity: 0.9;
}

.nav-location {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--n400);
}

.back-link {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--n400);
  text-decoration: none;
  padding-top: 4px;
  transition: color 0.2s;
}

.back-link:hover { color: var(--n700); }

/* Two-column layout */
.writing-layout {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

/* Left — 3 cols */
.entry-list {
  grid-column: 1 / 4;
  border-right: 1px solid var(--n200);
  padding: 48px 0;
}

.entry {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--n200);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.entry:first-child { border-top: 1px solid var(--n200); }
.entry:hover { background: var(--n200); }
.entry.active { background: var(--n200); }
.entry .entry-date { font-size: 10px; color: var(--n300); letter-spacing: 0.08em; text-transform: uppercase; }
.entry .entry-title { font-size: 13px; font-weight: 600; color: var(--n700); line-height: 1.3; letter-spacing: 0.01em; }

/* Right — 9 cols */
.entry-panel {
  grid-column: 4 / 13;
  padding: 72px 80px 80px;
  display: flex;
  flex-direction: column;
}

.panel-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--n300);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  min-height: 300px;
}

/* Standalone entry body */
.entry-body {
  flex: 1;
  padding: 72px 52px 100px;
  max-width: 640px;
}

.entry-meta { margin-bottom: 20px; }
.entry-meta .entry-date { font-size: 10px; color: var(--n300); letter-spacing: 0.1em; text-transform: uppercase; }

.entry-heading {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--n700);
  margin-bottom: 40px;
}

.entry-content { flex: 1; max-width: 560px; }
.entry-content p { font-size: 17px; font-weight: 400; line-height: 1.75; color: var(--n600); margin-bottom: 1.4em; }
.entry-content p:last-child { margin-bottom: 0; }

/* Prev/Next */
.entry-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 80px;
  padding-top: 32px;
  border-top: 1px solid var(--n200);
  max-width: 560px;
}

.entry-nav a {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--n400);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.entry-nav a:hover { color: var(--n700); }
.entry-nav a.disabled { color: var(--n200); pointer-events: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--n200);
  padding: 24px 52px;
  font-size: 11px;
  color: var(--n400);
  letter-spacing: 0.04em;
}

.site-footer a { color: var(--n500); text-decoration: none; border-bottom: 1px solid var(--n300); }
.site-footer a:hover { color: var(--n700); border-color: var(--n500); }

/* Mobile back bar */
.mobile-back {
  display: none;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid var(--n200);
  cursor: pointer;
}

.mobile-back span { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--n400); }

/* Mobile */
@media (max-width: 767px) {
  .site-header { padding: 28px 24px; }
  .writing-layout { grid-template-columns: 1fr; }
  .entry-list { grid-column: 1 / -1; border-right: none; padding: 32px 0; }
  .entry-list.hidden { display: none; }
  .entry { padding: 14px 24px; }
  .entry-panel { grid-column: 1 / -1; padding: 40px 24px 80px; }
  .entry-panel.hidden { display: none; }
  .entry-content { max-width: 100%; }
  .entry-nav { max-width: 100%; }
  .mobile-back { display: flex; }
  .entry-body { padding: 48px 24px 80px; max-width: 100%; }
  .site-footer { padding: 20px 24px; }
}
