/* GEC Fonts - keeping exact same font stack */
@font-face {
  font-family: 'League Spartan';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/LeagueSpartan-VariableFont_wght.woff2') format('woff2'),
       url('/fonts/LeagueSpartan-VariableFont_wght.ttf') format('truetype');
}

/* Paul Graham essay style with GEC fonts and colors */
:root {
  --max-width: 44rem;  /* Narrow column for essay style */
  --text-color: #000000;  /* GEC black */
  --muted-color: #666666;
  --border-color: #000000;  /* GEC border black */
  --rule-color: #e5e5e5;
  --bg-color: #ffffff;
  --font-primary: 'League Spartan', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'Monument', serif;  /* For special headings if needed */
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-primary);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  color: var(--text-color);
  background: var(--bg-color);
}

/* Container - narrow for essay style */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 1.25rem;
}

/* Navigation - simple, understated */
nav {
  font-size: 0.85rem;
  margin-top: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule-color);
}

nav a {
  color: var(--text-color);
  text-decoration: none;
  margin: 0 0.5rem;
}

nav a:first-child {
  margin-left: 0;
}

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

/* Typography - Paul Graham style */
h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 2.4rem 0 0.75rem;
  line-height: 1.2;
}

h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  line-height: 1.3;
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  line-height: 1.4;
}

p {
  margin: 0 0 1.2rem;
  line-height: 1.6;
}

/* Links - default browser blue for essay feel */
a {
  color: #0000EE;  /* Classic web blue */
}

a:visited {
  color: #551A8B;  /* Classic visited purple */
}

main a:hover {
  text-decoration: underline;
}

/* Meta information */
.meta {
  color: var(--muted-color);
  font-size: 0.9rem;
  margin: 0.5rem 0 2rem;
}

/* Lists */
ul, ol {
  margin: 0 0 1.2rem;
  padding-left: 2rem;
}

li {
  margin: 0.25rem 0;
}

/* Blog list - simple, no cards */
.post-list {
  list-style: none;
  padding: 0;
}

.post-list li {
  margin: 1rem 0;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule-color);
}

.post-list li:last-child {
  border-bottom: none;
}

.post-list .meta {
  margin: 0;
  margin-left: 0.5rem;
}

/* Horizontal rules */
hr {
  border: 0;
  border-top: 1px solid var(--rule-color);
  margin: 2rem 0;
}

/* Blockquotes */
blockquote {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  border-left: 3px solid var(--rule-color);
  font-style: italic;
}

/* Code */
code {
  font-family: 'Courier New', monospace;
  font-size: 0.9em;
  background: #f5f5f5;
  padding: 0.1em 0.3em;
  border-radius: 3px;
}

pre {
  background: #f5f5f5;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 3px;
}

pre code {
  background: none;
  padding: 0;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem auto;
}

/* Center align images in posts */
main img,
article img,
.content img,
figure img {
  margin-left: auto;
  margin-right: auto;
}

/* WordPress compatibility - center aligned figures */
figure.aligncenter,
.aligncenter {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

figure.aligncenter img,
.aligncenter img {
  margin: 0 auto;
}

/* Figure captions */
figcaption {
  text-align: center;
  font-size: 0.9em;
  color: #666;
  margin-top: 0.5rem;
}

/* Social links - inline, simple */
.social-links {
  margin: 2rem 0;
}

.social-links a {
  margin-right: 1rem;
}

/* Service blocks - for home page, rendered as simple sections */
.service-block {
  margin: 2rem 0;
}

.service-block h3 {
  margin-top: 0;
}

/* Newsletter form - minimal */
.newsletter-form {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f9f9f9;
  border: 1px solid var(--rule-color);
}

.newsletter-form input[type="email"] {
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  width: 250px;
  margin-right: 0.5rem;
}

.newsletter-form button {
  font-family: var(--font-primary);
  font-size: 1rem;
  padding: 0.5rem 1rem;
  background: var(--text-color);
  color: white;
  border: none;
  cursor: pointer;
}

.newsletter-form button:hover {
  opacity: 0.8;
}

/* Footer */
footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule-color);
  font-size: 0.85rem;
  color: var(--muted-color);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  nav {
    font-size: 0.8rem;
  }

  nav a {
    margin: 0 0.25rem;
  }

  .newsletter-form input[type="email"] {
    width: 100%;
    margin-bottom: 0.5rem;
  }
}