:root {
  --bg: #ffffff;
  --bg-panel: #f4f4f4;
  --text-main: #161616;
  --text-muted: #525252;
  --accent: #0f62fe;
  --border: #e0e0e0;
  --font-main: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text-main);
  line-height: 1.5;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { 
  color: var(--accent);
  text-decoration: none; 
}
a:hover {
  text-decoration: underline;
}

img { max-width: 100%; display: block; }

.shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}

/* Sidebar / Masthead */
.masthead {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 40px;
  align-self: start;
}

.brand {
  margin-bottom: 40px;
}
.brand strong {
  font-weight: 600;
  font-size: 1.25rem;
  display: block;
}
.brand small {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  margin-top: 4px;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.nav a {
  color: var(--text-main);
  font-size: 0.9rem;
  padding: 8px 12px;
  border-left: 2px solid var(--border);
  transition: all 0.2s;
}
.nav a:hover, .nav a.active {
  border-left-color: var(--accent);
  background: var(--bg-panel);
  text-decoration: none;
}

/* Main Content */
.content-area {
  min-width: 0;
}

/* Hero */
.hero {
  margin-bottom: 64px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}
.hero h1 {
  font-size: 2.5rem;
  font-weight: 400;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}
.hero .lede {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: inline-block;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 24px;
}

.route-row {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.button, .pill {
  display: inline-block;
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 10px 16px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.button:hover, .pill:hover {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}
.button.primary {
  background: var(--accent);
  color: #fff;
}
.button.primary:hover {
  background: #0353e9;
  border-color: #0353e9;
}

.socials {
  display: flex;
  gap: 12px;
}
.socials .pill {
  padding: 6px 12px;
  font-size: 0.85rem;
  border-color: var(--border);
  color: var(--text-main);
}
.socials .pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

/* Sections */
.panel {
  margin-bottom: 64px;
}
.panel h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 24px 0;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.entry {
  background: var(--bg-panel);
  padding: 24px;
  border-left: 4px solid var(--border);
  transition: border-color 0.2s;
}
.entry:hover {
  border-left-color: var(--accent);
}
.entry h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 8px 0;
}
.entry .meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 16px;
}
.entry p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 800px) {
  .shell {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .masthead {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
  }
  .nav {
    flex-direction: row;
  }
  .nav a {
    border-left: none;
    border-bottom: 2px solid transparent;
  }
  .nav a:hover, .nav a.active {
    border-bottom-color: var(--accent);
  }
}