/* Base styles */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}

body {
font-family: system-ui, sans-serif;
line-height: 1.4;
color: #000;
background-color: #fff;
font-size: 0.875rem;
letter-spacing: -0.025em;
}

/* Patrick Collison Layout */
.patrick-layout {
display: flex;
max-width: 1200px;
margin: 0 auto;
padding: 50px;
min-height: 100vh;
}

.main-content {
flex: 1;
max-width: 700px;
}

.navigation {
text-align: right;
min-width: 180px;
flex-shrink: 0;
position: absolute;
right: 50px;
top: 50px;
}

.nav-header {
font-family: system-ui, sans-serif;
font-size: 1em;
font-weight: normal;
margin-bottom: 4px;
color: #000;
}

.nav-links {
list-style: none;
margin: 0;
padding: 0;
}

.nav-links li {
margin-bottom: 1px;
line-height: 1.3;
}

.nav-links a {
color: #0066cc !important;
text-decoration: underline;
font-size: 1em;
cursor: pointer;
font-family: system-ui, sans-serif;
display: block;
}

.nav-links a:hover {
text-decoration: underline;
}

/* Mobile navigation improvements - no hamburger needed */

/* Profile image */
.profile-image {
width: 130px;
height: 130px;
object-fit: cover;
display: block;
margin-bottom: 20px;
}

/* Original container for other pages */
.container {
max-width: 48rem;
margin: 0 auto;
padding: 3rem 1.5rem;
}

.section-divider {
height: 1px;
background-color: #e5e5e5;
margin: 1rem 0;
}

.section-divider + * {
margin-top: 0.5rem !important;
}

/* Navigation */
.breadcrumb {
display: flex;
align-items: center;
gap: 0.5rem;
font-size: 1em;
color: #666;
margin-bottom: 1.5rem;
white-space: nowrap;
overflow-x: auto;
font-family: system-ui, sans-serif;
}

.breadcrumb a {
color: #666;
text-decoration: none;
transition: color 0.2s;
}

.breadcrumb a:hover {
color: #000;
}

/* CONSISTENT SPACING RULES FOR ALL CONTENT */
/* Standard paragraph spacing */
p {
margin-bottom: 1.5rem;
font-family: system-ui, sans-serif;
}

/* Standard list spacing - consistent with paragraph spacing */
ul, ol {
margin: 1.5rem 0;
padding-left: 1.5rem;
}

/* List items consistent spacing */
li {
margin-bottom: 0.5rem;
}

/* Lists - RESTORED BULLET POINTS */
.bullet-list {
list-style: none;
margin: 1.5rem 0;
padding-left: 0;
font-family: system-ui, sans-serif;
}

.bullet-list li {
margin-bottom: 0.5rem;
position: relative;
padding-left: 1.25rem;
}

.bullet-list li::before {
content: '•';
color: #000;
font-weight: bold;
position: absolute;
left: 0;
top: 0;
font-size: 1em;
}

/* Article styles - now consistent with base styles */
.article-header h1 {
font-family: system-ui, sans-serif;
font-size: 1.85em;
font-weight: 600;
margin-bottom: 1rem;
}

.article-meta {
display: flex;
align-items: center;
gap: 1rem;
color: #666;
font-size: 1em;
margin-bottom: 2rem;
font-family: system-ui, sans-serif;
}

.article-content {
font-size: 1em;
line-height: 1.5;
font-family: system-ui, sans-serif;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4,
.article-content h5,
.article-content h6 {
font-family: system-ui, sans-serif;
font-weight: 600;
margin-top: 2rem;
margin-bottom: 1.5rem;
}

.article-content h1 {
font-size: 1.7em;
}

.article-content h2 {
font-size: 1.4em;
}

.article-content h3 {
font-size: 1.2em;
}

.article-content h4 {
font-size: 1.1em;
}

.article-content h5 {
font-size: 1em;
}

.article-content h6 {
font-size: 0.9em;
}

/* Article content inherits consistent spacing */
.article-content p {
margin-bottom: 1.5rem;
font-family: system-ui, sans-serif;
}

.article-content ul,
.article-content ol {
margin: 1.5rem 0;
padding-left: 1.5rem;
}

.article-content li {
margin-bottom: 0.5rem;
}

.article-content hr {
border: none;
height: 1px;
background-color: #e5e5e5;
margin: 2rem 0;
}

.article-content hr + p {
margin-top: 0;
}

/* Links */
a {
color: #0000EE !important;
text-decoration: underline;
transition: text-decoration 0.2s;
}

a:hover {
text-decoration: underline;
}

/* Headings - All use em for consistent scaling */
h1, h2, h3, h4, h5, h6 {
font-family: system-ui, sans-serif;
}

h1 {
font-size: 1.85em;
font-weight: 600;
margin-bottom: 3rem;
}

h2 {
font-size: 1.4em;
font-weight: 600;
margin-bottom: 1rem;
}

h3 {
font-size: 1.2em;
font-weight: 600;
}

h4 {
font-size: 1.15em;
font-weight: 600;
}

h5 {
font-size: 1em;
font-weight: 600;
}

h6 {
font-size: 0.9em;
}

/* Bio text */
.bio p {
margin-bottom: 1rem;
line-height: 1.4;
font-family: system-ui, sans-serif;
}

.bio p:last-child {
margin-bottom: 0;
}

/* Ensure all text elements use system font and consistent sizing */
p, span, div, li, td, th, label, input, textarea, select, button {
font-family: system-ui, sans-serif;
font-size: 1em;
}

/* Responsive design */
@media (max-width: 768px) {
body {
font-size: 0.875rem;
}

.patrick-layout {
flex-direction: column;
padding: 30px 20px;
gap: 30px;
}

.main-content {
max-width: 100%;
order: 2;
}

/* Move navigation to top on mobile with improved styling */
.navigation {
order: 1;
text-align: center;
min-width: auto;
margin-bottom: 0;
position: relative;
right: auto;
top: auto;
}

/* Hide the nav header on mobile */
.navigation .nav-header {
display: none;
}

.navigation .nav-links {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
margin: 0;
width: 100%;
}

.navigation .nav-links li {
margin-bottom: 0;
flex: 1;
text-align: center;
}

.navigation .nav-links a {
font-size: 0.95em;
padding: 4px 8px;
white-space: nowrap;
display: block;
}

.profile-image {
width: 100px;
height: 100px;
margin-bottom: 15px;
}

/* Container spacing for mobile */
.container {
padding: 2rem 1rem;
}

/* Improved spacing */
h1 {
margin-bottom: 2rem;
}
}

/* Very small screens */
@media (max-width: 480px) {
body {
font-size: 0.8125rem;
}

.patrick-layout {
padding: 20px 15px;
gap: 25px;
}

.container {
padding: 1.5rem 1rem;
}
}
