/* hewlab.ca — Twenty Twenty-Four inspired with Inter + Cardo */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
}

/* Base Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  background: #fff;
  color: #1a1a1a;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Site container */
.site {
  margin: 0 auto;
  max-width: 960px;
  padding: 0 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

/* Paragraphs */
p {
  font-size: 1rem;
  margin: 0 0 1.5em 0;
  line-height: 1.7;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cardo', Georgia, serif;
  font-weight: 400;
  line-height: 1.3;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #1a1a1a;
}

h1 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.25rem;
}

h4, h5, h6 {
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
}

/* Links */
a {
  color: #1a1a1a;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover,
a:focus {
  color: #0073aa;
}

/* Site Header */
.site-header {
  padding: 2rem 0;
  margin-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  margin: 0;
}

.site-title a {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}

.site-title a:hover {
  color: #0073aa;
}

/* Navigation */
.main-navigation {
  display: inline-block;
}

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

.main-navigation li {
  display: inline-block;
  margin-left: 2rem;
  position: relative;
}

.main-navigation a {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  color: #1a1a1a;
  letter-spacing: 0.02em;
}

.main-navigation a:hover,
.main-navigation a:focus {
  color: #0073aa;
}

/* Sub-menus */
.main-navigation .sub-menu {
  display: none;
  position: absolute;
  background: #fff;
  padding: 0.75rem 0;
  min-width: 200px;
  z-index: 99;
  list-style: none;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  top: 100%;
  left: 0;
}

.main-navigation li:hover > .sub-menu {
  display: block;
}

.main-navigation .sub-menu li {
  display: block;
  margin: 0;
  padding: 0.25rem 1.25rem;
}

.main-navigation .sub-menu a {
  text-transform: none;
  font-size: 0.875rem;
  font-weight: 400;
}

/* Entry / Article */
.hentry {
  margin-bottom: 3rem;
}

/* Entry header */
.entry-header {
  margin-bottom: 0.5rem;
}

h1.entry-title {
  font-family: 'Cardo', Georgia, serif;
  font-size: 2.25rem;
  font-weight: 400;
  margin: 0 0 0.25rem 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h2.entry-title {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.25rem 0;
  line-height: 1.3;
}

/* Entry content */
.entry-content {
  margin: 0 0 1.5em;
}

.entry-content a {
  color: #0073aa;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-content a:hover {
  color: #005177;
}

/* Entry meta (date) */
.entry-meta {
  font-size: 0.875rem;
  margin: 0 0 2rem;
  color: #767676;
}

.entry-date {
  display: inline;
  font-size: 0.875rem;
  color: #767676;
}

.entry-category {
  font-size: 0.875rem;
  color: #767676;
  margin-left: 0.75rem;
}

.entry-category::before {
  content: "\2022";
  margin-right: 0.75rem;
}

/* Blockquotes */
blockquote {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.125rem;
  margin: 1.5em 0;
  padding: 0 0 0 1.5em;
  border-left: 3px solid #1a1a1a;
  color: #444;
  font-style: italic;
  line-height: 1.6;
}

/* Lists */
ul, ol {
  margin-left: 0;
  padding-left: 1.5em;
}

li {
  font-size: 1rem;
  padding-bottom: 0.5em;
  line-height: 1.6;
}

/* Images */
img {
  height: auto;
  max-width: 100%;
  border-radius: 4px;
}

figure {
  margin: 1.5em 0;
}

figcaption {
  font-size: 0.875rem;
  color: #767676;
  margin-top: 0.5em;
  font-style: italic;
}

/* Tables */
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
  margin-bottom: 1.5em;
}

th, td {
  text-align: left;
  padding: 0.75em 1em;
  border-bottom: 1px solid #e0e0e0;
}

th {
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Code */
pre, code {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.875rem;
}

pre {
  background: #f7f7f7;
  padding: 1.25em;
  overflow-x: auto;
  margin-bottom: 1.5em;
  border-radius: 4px;
}

/* Horizontal rules */
hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 2rem 0;
}

/* Post list (archive / listing pages) */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.post-list li {
  margin-bottom: 1.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #f0f0f0;
}

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

.post-list .entry-date {
  color: #767676;
  font-size: 0.875rem;
  display: block;
  margin-bottom: 0.25em;
}

.post-list a {
  text-decoration: none;
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.25rem;
  color: #1a1a1a;
}

.post-list a:hover {
  color: #0073aa;
}

.post-list .post-excerpt {
  font-size: 0.9375rem;
  color: #555;
  margin-top: 0.5em;
  line-height: 1.6;
}

/* People grid */
.people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.person-card {
  text-align: center;
}

.person-card img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 1rem;
}

.person-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
}

.person-card h3 a {
  text-decoration: none;
  color: #1a1a1a;
}

.person-card h3 a:hover {
  color: #0073aa;
}

.person-card .person-role {
  font-size: 0.875rem;
  color: #767676;
  font-style: italic;
}

/* Section headings on listing pages */
.section-heading {
  font-family: 'Cardo', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  color: #1a1a1a;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
}

/* Page intro text */
.page-intro {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 2rem;
}

/* Homepage hero */
.hero {
  margin-bottom: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}

.hero h1 {
  font-family: 'Cardo', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1.125rem;
  line-height: 1.7;
  color: #444;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-caption {
  font-size: 0.875rem;
  color: #767676;
  font-style: italic;
  margin-top: 0.75rem;
  text-align: center;
}

.about-button {
  display: inline-block;
  background: #1a1a1a;
  color: #fff !important;
  padding: 0.6rem 1.5rem;
  text-decoration: none !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 4px;
  transition: background 0.2s ease;
  margin-top: 0.5rem;
}

.about-button:hover {
  background: #333;
  color: #fff !important;
}

/* Homepage hero image */
.hero-image {
  width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 4px;
}

/* Quote block (dark background) */
.quote-block {
  background: #1a1a1a;
  color: #fff;
  margin: 0 calc(-50vw + 50%);
  padding: 5rem 2rem;
  text-align: center;
}

.quote-text {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.75rem;
  line-height: 1.5;
  max-width: 720px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

.quote-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.quote-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(100%);
}

.quote-name {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.quote-role {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: #999;
}

/* Research and Practice section */
.research-section {
  text-align: center;
  margin: 4rem 0 3rem;
}

.research-title {
  font-family: 'Cardo', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1rem;
  color: #1a1a1a;
}

.research-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #444;
  max-width: 680px;
  margin: 0 auto;
}

/* Project feature (two-column) */
.project-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin: 3rem 0;
}

.project-feature-text h3 {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  margin: 0 0 0.75rem;
}

.project-feature-text h3 a {
  color: #1a1a1a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.project-feature-text h3 a:hover {
  color: #0073aa;
}

.project-feature-text p {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
}

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

/* Updates list (horizontal layout) */
.updates-list {
  margin: 0 0 3rem;
}

.update-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid #f0f0f0;
  gap: 2rem;
}

.update-item:first-child {
  border-top: 1px solid #e0e0e0;
}

.update-title {
  font-family: 'Cardo', Georgia, serif;
  font-size: 1.125rem;
  color: #1a1a1a;
  text-decoration: none;
  flex: 1;
}

.update-title:hover {
  color: #0073aa;
}

.update-meta {
  font-size: 0.875rem;
  color: #767676;
  white-space: nowrap;
  display: flex;
  gap: 0.75rem;
}

.update-category {
  color: #767676;
}

/* Decorative star */
.decorative-star {
  display: block;
  font-size: 1.5rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
}

/* Incubator section (centered heading above features) */
.incubator-section {
  text-align: center;
  margin: 4rem 0 3rem;
}

.incubator-title {
  font-family: 'Cardo', Georgia, serif;
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  margin: 0 0 1rem;
  color: #1a1a1a;
}

.incubator-section p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #444;
  max-width: 680px;
  margin: 0 auto;
}

/* Homepage features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin: 2rem 0 3rem;
}

.feature {
  padding: 0;
}

.feature h3 {
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #1a1a1a;
}

.feature p {
  font-size: 0.9375rem;
  color: #555;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.875rem;
  color: #767676;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 3rem;
  margin-bottom: 2rem;
}

.footer-description {
  flex: 1;
  max-width: 480px;
}

.footer-description p {
  font-size: 0.875rem;
  color: #767676;
  line-height: 1.6;
}

.footer-support {
  font-size: 0.8125rem !important;
}

.footer-nav {
  display: flex;
  gap: 3rem;
}

.footer-col strong {
  display: block;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  padding-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.875rem;
  color: #767676;
  text-decoration: none;
}

.footer-col a:hover {
  color: #0073aa;
}

/* Footer logos */
.footer-logos {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 1.5rem;
}

.footer-logos img {
  max-height: 50px;
  width: auto;
  border-radius: 0;
}

.copyright {
  font-size: 0.8125rem;
  color: #999;
  padding-bottom: 2rem;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .site {
    padding: 0 1.25rem;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem 0;
    margin-bottom: 2rem;
  }

  .main-navigation {
    margin-top: 1rem;
  }

  .main-navigation li {
    margin-left: 0;
    margin-right: 1.5rem;
  }

  .main-navigation .sub-menu {
    position: static;
    border: none;
    box-shadow: none;
    padding: 0.25rem 0 0 1rem;
  }

  h1.entry-title {
    font-size: 1.75rem;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .people-grid {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .quote-text {
    font-size: 1.25rem;
  }

  .project-feature {
    grid-template-columns: 1fr;
  }

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

/* Print styles */
@media print {
  .main-navigation,
  .site-footer {
    display: none;
  }
  .site {
    margin: 0;
    padding: 0;
  }
}
