/* Typography overrides for better readability (site-wide) */
html {
  font-family: "Fira Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  margin-block-start: 1.75em;
  margin-block-end: 0.75em;
  line-height: 1.25;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.7rem;
}

h3 {
  font-size: 1.4rem;
}

h4,
h5,
h6 {
  font-size: 1.1rem;
}

/* Remove leading # markers before headings */
h1::before,
h2::before,
h3::before,
h4::before,
h5::before,
h6::before {
  content: none;
}

/* Softer, more standard link styles */
a {
  color: var(--color-primary, #dc143c);
  border-bottom: 1px solid rgba(220, 20, 60, 0.4);
  border-block-end: 1px solid rgba(220, 20, 60, 0.4);
  text-decoration: none;
}

a:hover,
a:focus {
  background: none;
  color: #b91c3c;
  border-bottom-color: #b91c3c;
  border-block-end-color: #b91c3c;
  outline: none;
}

/* Standard bullets instead of custom * markers */
ul {
  list-style: disc;
  padding-inline-start: 1.25rem;
  text-indent: 0;
}

ul > li::before {
  content: none;
}

ul li {
  text-indent: 0ch;
}

/* Footer border more subtle */
footer {
  border-block-start: 1px solid rgba(0, 0, 0, 0.08);
}

/* Homepage layout */
main.home {
  margin-top: 2rem;
}

.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: flex-start;
  margin-bottom: 3rem;
}

.home-intro-text h1 {
  margin-block-start: 0;
}

.home-tagline {
  font-size: 1.05rem;
  color: var(--color-text-muted, #737373);
  margin-block-start: 0.25rem;
  margin-block-end: 1rem;
}

.home-intro-body p {
  margin-block: 0.4rem;
}

.home-intro-photo {
  justify-self: center;
  align-self: flex-start;
  margin-top: 4.25rem;
}

.home-photo img {
  max-width: 358px;
  max-height: 253px;
  border-radius: 13px;
  border: 2px solid var(--color-border, #663399);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Bullet list in intro section */
.home-intro-body ul {
  list-style: disc !important;
  padding-inline-start: 1.5rem;
  margin-block: 0.75rem;
  text-indent: 0;
}

.home-intro-body li {
  margin-block: 0.25rem;
}

.home-intro-body ul > li::before {
  content: none !important;
}

.home-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.home-social-link {
  border-block-end: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background-color: #ffffff;
  font-size: 0.9rem;
}

.home-social-link:hover,
.home-social-link:focus {
  background-color: rgba(220, 20, 60, 0.04);
  border-color: rgba(220, 20, 60, 0.6);
}

.home-social-label {
  margin-top: 0;
}

.home-social-link svg {
  inline-size: 1rem;
  block-size: 1rem;
}

.home-social-link .si {
  font-size: 1.05rem;
}

.home-section-title {
  margin-block-start: 0;
  margin-block-end: 0.75rem;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.home-all-posts-inline {
  font-size: 0.9rem;
  border-bottom-width: 0;
}

.home-all-posts-inline:hover,
.home-all-posts-inline:focus {
  border-bottom-width: 0;
}

/* Currently working on / highlights */
.home-current {
  margin-top: 2.5rem;
  margin-bottom: 2.5rem;
}

.home-current-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.home-current-card {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
}

.home-current-tag {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background-color: rgba(220, 20, 60, 0.06);
  color: var(--color-primary, #dc143c);
  margin-bottom: 0.5rem;
}

.home-current-title {
  margin-block-start: 0.4rem;
  margin-block-end: 0.35rem;
  font-size: 1.05rem;
}

.home-current-title a {
  border-bottom-width: 0;
}

.home-current-title a:hover,
.home-current-title a:focus {
  border-bottom-width: 0;
}

.home-current-description {
  margin: 0;
  font-size: 0.95rem;
  color: var(--color-text-muted, #737373);
}

@media (max-width: 768px) {
  .home-current-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.home-posts .posts {
  padding: 0;
  list-style: none;
}

.home-posts .post {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-block: 0.35rem;
}

.home-posts .post::before {
  content: "•";
  margin-right: 0.5rem;
  color: var(--color-primary, #dc143c);
}

.home-posts .post a {
  flex: 1 1 auto;
}

.home-posts .post a {
  border-block-end: none;
}

.home-posts .post a:hover,
.home-posts .post a:focus {
  border-block-end: 2px solid var(--color-primary, #dc143c);
  background: none;
  color: inherit;
}

.home-posts .meta {
  font-size: 0.9rem;
  color: var(--color-text-meta, #999999);
}

.home-all-posts-link {
  margin-top: 1rem;
}

.home-all-posts-link a {
  font-weight: 500;
}

@media screen and (max-width: 768px) {
  .home-intro {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-intro-photo {
    order: -1;
  }

  .home-photo img {
    max-width: 200px;
  }
}

