/* Sixteen Ventures - Static Site Styles */

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

:root {
  --text: #1a1a1a;
  --text-secondary: #555;
  --bg: #fafafa;
  --bg-card: #fff;
  --accent: #1a1a1a;
  --accent-light: #333;
  --border: #e0e0e0;
  --max-width: 720px;
  --nav-height: 64px;
}

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--accent);
  border-bottom: 1px solid #000;
}

.site-nav .wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.site-nav .wordmark {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.03em;
}

.site-nav .wordmark:hover {
  opacity: 0.85;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.25rem;
}

/* Main content */
.site-main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* Homepage hero */
.hero {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.hero-photo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.hero-text h1 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.4rem;
  line-height: 1.2;
}

.hero-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-text em {
  font-style: italic;
}

/* Section headings */
.section-heading {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}

.section-heading:first-of-type {
  margin-top: 0;
}

/* Post / Page */
.post-header {
  margin-bottom: 2rem;
}

.post-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.post-meta a {
  color: var(--text-secondary);
  text-decoration: none;
}

.post-meta a:hover {
  color: var(--text);
}

.post-content {
  font-size: 1rem;
  line-height: 1.75;
}

.post-content p {
  margin-bottom: 1.25rem;
}

.post-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2.25rem 0 0.75rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.post-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  line-height: 1.3;
}

.post-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.5rem;
}

.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  margin: 1rem 0;
}

.post-content a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
  transition: text-decoration-color 0.15s;
}

.post-content a:hover {
  text-decoration-color: var(--text);
}

.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.5rem 0 0.5rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text-secondary);
  font-style: italic;
}

.post-content ul,
.post-content ol {
  margin: 1rem 0 1.25rem 1.5rem;
}

.post-content li {
  margin-bottom: 0.4rem;
}

.post-content pre {
  background: #f0f0f0;
  padding: 1rem 1.25rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

.post-content code {
  background: #f0f0f0;
  padding: 0.15rem 0.35rem;
  border-radius: 3px;
  font-size: 0.88em;
}

.post-content pre code {
  background: none;
  padding: 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.post-content th,
.post-content td {
  border: 1px solid var(--border);
  padding: 0.5rem 0.75rem;
  text-align: left;
}

.post-content th {
  background: #f5f5f5;
  font-weight: 600;
}

.post-content iframe {
  max-width: 100%;
  margin: 1.5rem 0;
}

.post-content .alignright {
  float: right;
  margin: 0.25rem 0 1rem 1.5rem;
  max-width: 45%;
}

.post-content .alignleft {
  float: left;
  margin: 0.25rem 1.5rem 1rem 0;
  max-width: 45%;
}

.post-content .aligncenter {
  display: block;
  margin: 1rem auto;
}

/* Featured image */
.featured-image {
  margin-bottom: 2rem;
}

.featured-image img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Author card (end of post) */
.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.author-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.15rem;
}

.author-name a {
  color: var(--text);
  text-decoration: none;
}

.author-name a:hover {
  text-decoration: underline;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Homepage post list */
.post-list {
  list-style: none;
}

.post-list-item {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.post-list-item:first-child {
  padding-top: 0;
}

.post-list-item a {
  text-decoration: none;
  color: var(--text);
}

.post-list-item .item-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.post-list-item .item-title:hover {
  opacity: 0.7;
}

.post-list-item .item-date {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.post-list-item .item-excerpt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Featured posts */
.post-list-item.featured .item-title {
  font-size: 1.3rem;
}

/* Compact list (older posts) */
.post-list-compact .post-list-item {
  padding: 0.75rem 0;
}

.post-list-compact .item-title {
  font-size: 1rem;
  font-weight: 600;
}

.post-list-compact .item-date {
  display: inline;
  margin-left: 0.5rem;
  font-size: 0.75rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Newsletter signup */
.post-signup {
  margin-top: 1.5rem;
  padding: 2rem;
  background: #f5f5f5;
  border-radius: 6px;
  text-align: center;
}

.post-signup h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.post-signup form {
  display: flex;
  gap: 0.5rem;
  max-width: 420px;
  margin: 0 auto;
}

.post-signup input[type="email"] {
  flex: 1;
  padding: 0.6rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 0.9rem;
  font-family: inherit;
}

.post-signup button {
  padding: 0.6rem 1.25rem;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}

.post-signup button:hover {
  opacity: 0.85;
}

.post-signup .signup-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.6rem;
}

.post-signup p {
  margin: 0;
}

.post-signup a {
  color: var(--text);
  font-weight: 600;
}

/* 404 */
.not-found {
  text-align: center;
  padding: 4rem 1.5rem;
}

.not-found h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.not-found p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.not-found a {
  color: var(--text);
}

/* Responsive */
@media (max-width: 600px) {
  html {
    font-size: 16px;
  }

  .post-title {
    font-size: 1.6rem;
  }

  .hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .hero-photo {
    width: 80px;
    height: 80px;
  }

  .post-content .alignright,
  .post-content .alignleft {
    float: none;
    max-width: 100%;
    margin: 1rem 0;
  }

  .post-signup form {
    flex-direction: column;
  }

  .post-list-compact .item-date {
    display: block;
    margin-left: 0;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--accent);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 0.75rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav .wrap {
    position: relative;
  }

  .event-item {
    flex-direction: column;
    gap: 0.25rem;
  }

  .event-date {
    min-width: auto;
  }
}

/* Events page */
.events-list {
  margin: 1.5rem 0 2rem;
}

.event-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--border);
}

.event-item:first-child {
  border-top: 1px solid var(--border);
}

.event-date {
  min-width: 140px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  padding-top: 0.15rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.event-details {
  flex: 1;
}

.event-details h3 {
  font-size: 1.15rem;
  margin: 0 0 0.25rem;
}

.event-details p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin: 0;
}
