/* static/css/hugo-min-econ.css */
/* Minimal baseline for hugo-min-econ, mobile-first, typography-focused */

/* 1. Page baseline */
html,
body {
  background-color: #F0EFEE;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  line-height: 1.6;
  font-size: 16px;
  margin: 0;
  padding: 0;
}

/* 2. Layout rhythm */
main,
.header-inner,
footer {
  max-width: 65ch;
  /* ~800px max width for optimal reading */
  margin: 0 auto;
  padding: 1rem 1.5rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #111827;
  line-height: 1.2;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

p,
ul,
ol,
dl,
blockquote,
pre,
table {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

/* 3. Links */
a {
  color: #1F4E79;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: #163A5A;
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid #1F4E79;
  outline-offset: 2px;
}

/* 4. Lists */
ul,
ol {
  padding-left: 1.5rem;
}

li {
  margin-bottom: 0.5rem;
}

.research-item { margin-bottom: 1rem; }
.research-line-1 { font-weight: 600; }
.research-status { margin-left: 0.5rem; font-weight: 400; color: #374151; }
.research-line-2, .research-line-3 { margin-top: 0.25rem; }
.research-links { margin-left: 0.5rem; }
.research-schedule { color: #374151; font-size: 0.95em; }

details {
    margin-bottom: 1em; /* Adjust this number to increase/decrease the space */
}

/* 5. Code */
code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9em;
}

code {
  background-color: #F8FAFC;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  border: 1px solid #D1D5DB;
}

pre {
  background-color: #F8FAFC;
  padding: 1rem;
  overflow-x: auto;
  border-radius: 4px;
  border: 1px solid #D1D5DB;
}

pre code {
  background-color: transparent;
  padding: 0;
  border: none;
}

/* 6. Images */
img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  /* Optional slight rounding */
}

/* 7. Blockquotes */
blockquote {
  border-left: 4px solid #D1D5DB;
  padding-left: 1rem;
  margin-left: 0;
  color: #374151;
  /* Muted text */
  font-style: italic;
}

/* 8. Tables (Minimal) */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

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

th {
  font-weight: 600;
}

/* 9. Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: #F0EFEE;
  margin-bottom: 2rem;
}

.site-nav {
  display: flex;
  flex-direction: column;
}

@media (min-width: 600px) {
  .site-nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.site-title {
  text-decoration: none;
  font-size: 1.5rem;
  color: #111827;
  font-weight: 700;
}

.site-title-block {
  margin-bottom: 1rem;
}

/* Home/header visibility */
.is-home .site-title-block {
  visibility: hidden;
}

@media (max-width: 719px) {
  .is-home .site-title-block {
    visibility: visible;
  }
}

@media (min-width: 600px) {
  .site-title-block {
    margin-bottom: 0;
  }
}

.site-subtitle {
  font-size: 0.875rem;
  color: #374151;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 600px) {
  .nav-list {
    flex-direction: row;
    gap: 1.5rem;
  }
}

.nav-list a {
  text-decoration: none;
  color: #374151;
  font-weight: bold;
}

.nav-list a:hover {
  text-decoration: underline;
  color: #1F4E79;
}

/* 10. Home Hero */
.home-hero {
  margin-bottom: 3rem;
}

.hero-title {
  margin-top: 0;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: #374151;
}

/* Home/hero title visibility */
@media (max-width: 719px) {

  .is-home .hero-title,
  .is-home .hero-subtitle {
    display: none;
  }
}

.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 720px) {
  .hero-split {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}

@media (min-width: 1024px) {
  .hero-split {
    grid-template-columns: 260px 1fr;
  }
}

.hero-image {
  flex-shrink: 0;
}

.headshot {
  width: 100%;
  max-width: 220px;
  height: auto;
  border-radius: 50%;
  margin: 0 auto;
  display: block;
}

@media (min-width: 1024px) {
  .headshot {
    max-width: 260px;
  }
}

@media (min-width: 720px) {
  .headshot {
    margin: 0;
  }
}

.hero-content {
  flex-grow: 1;
}

.hero-bio {
  margin-bottom: 2rem;
}

.hero-actions {
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  justify-content: center;
}

.btn-primary {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: transparent;
  color: #1F4E79;
  border: 2px solid #1F4E79;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #1F4E79;
  color: #FFF;
  text-decoration: none;
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  align-items: center;
}

.social-group {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  align-items: center;
}

.social-icon svg {
  width: 32px;
  height: 32px;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  color: #374151;
}

.social-icon:hover {
  color: #1F4E79;
}

.social-icon:focus-visible {
  outline: 2px solid #1F4E79;
  outline-offset: 2px;
}

.social-divider {
  color: #D1D5DB;
  font-size: 1.25rem;
  line-height: 1;
  user-select: none;
}

/* 11. Footer */
.footer-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-sep {
  opacity: 0.6;
}

/* 12. Accessibility */
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link:focus {
  position: static;
  width: auto;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
  padding: 0.5rem 1rem;
  background-color: #111827;
  color: #FFF;
  text-decoration: none;
}