/* Hide Casper's default chrome on the landing page */
body.home-template .gh-head,
body.home-template .gh-foot,
body.home-template .site-footer,
body.home-template .gh-outer,
body.home-template .gh-navigation {
  display: none !important;
}

body.home-template {
  margin: 0;
  padding: 0;
}

:root {
  --landing-navy: #1a2744;
  --landing-navy-light: #243356;
  --landing-white: #ffffff;
  --landing-off-white: #f5f5f5;
  --landing-bistre: #2e2218;
  --landing-teal: #4a9ead;
  --landing-gray: #666666;
  --landing-light-gray: #e0e0e0;
  --landing-max-width: 960px;
  --landing-spacing: 12px;
}

.gh-landing-wrap {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--landing-bistre);
  line-height: 1.5;
  font-size: 18px;
  margin: 0;
  padding: 0;
}

/* ---- Header ---- */
.gh-landing-header {
  background-color: var(--landing-navy);
  color: var(--landing-white);
  text-align: center;
  margin: 0;
  padding: 0;
}

.gh-landing-header__content {
  max-width: var(--landing-max-width);
  margin: 0 auto;
  padding: 48px 24px;
}

.gh-landing-header__image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.2);
}

.gh-landing-header__title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.1;
  color: var(--landing-white);
  margin: 16px 0 0;
}

.gh-landing-header__dek {
  font-size: 22px;
  color: rgba(255, 255, 255, 0.8);
  margin: 8px 0 20px;
  line-height: 1.4;
}

/* ---- Icon nav ---- */
.gh-landing-header__icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 28px;
}

.gh-landing-header__icons a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.gh-landing-header__icons a:hover {
  color: var(--landing-white);
}

.gh-landing-header__icons svg {
  width: 28px;
  height: 28px;
}

.gh-landing-header__icons span {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.2s;
}

.gh-landing-header__icons a:hover span {
  opacity: 1;
}

/* Desktop: photo left, text right */
@media (min-width: 768px) {
  .gh-landing-header {
    text-align: left;
  }

  .gh-landing-header__content {
    display: grid;
    gap: 18px;
    grid-template-columns: 230px 1fr;
    grid-template-areas:
      "image title"
      "image dek"
      "image links";
    padding: 48px 24px;
  }

  .gh-landing-header__image {
    grid-area: image;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .gh-landing-header__image img {
    width: 200px;
    height: 200px;
  }

  .gh-landing-header__title {
    grid-area: title;
    align-self: end;
    margin: 0;
  }

  .gh-landing-header__dek {
    grid-area: dek;
    margin: 0;
  }

  .gh-landing-header__icons {
    grid-area: links;
    justify-content: flex-start;
  }
}

/* ---- Content ---- */
.gh-landing-content {
  background-color: var(--landing-white);
  padding: 40px 24px;
  font-size: 19px;
}

.gh-landing-content section {
  max-width: var(--landing-max-width);
  margin: 0 auto 40px;
}

.gh-landing-content a {
  color: var(--landing-navy);
  text-decoration: underline;
  text-decoration-color: var(--landing-light-gray);
  text-underline-offset: 2px;
}

.gh-landing-content a:hover {
  text-decoration-color: var(--landing-navy);
}

.gh-landing-content h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: var(--landing-bistre);
  margin: 40px 0 12px;
}

.gh-landing-content h2:first-child {
  margin-top: 0;
}

/* ---- Recent posts ---- */
.gh-landing-recent ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.gh-landing-recent li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--landing-light-gray);
}

.gh-landing-recent li:first-child {
  border-top: 1px solid var(--landing-light-gray);
}

.gh-landing-recent li a {
  color: var(--landing-navy);
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-weight: 500;
}

.gh-landing-recent li a:hover {
  text-decoration: underline;
}

.gh-landing-recent time {
  font-size: 14px;
  color: var(--landing-gray);
  white-space: nowrap;
  margin-left: 16px;
}

.gh-landing-recent > p a {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 15px;
  color: var(--landing-navy);
}

/* ---- Footer ---- */
.gh-landing-footer {
  background-color: var(--landing-navy);
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  padding: 32px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 14px;
}

.gh-landing-footer a {
  color: var(--landing-teal);
}

/* ---- All posts listing (custom-posts template) ---- */
.gh-container {
  max-width: var(--landing-max-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.gh-container-header h1 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: var(--landing-bistre);
  margin: 0 0 24px;
}

.gh-container .post-card {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--landing-light-gray);
}

.gh-container .post-card:first-of-type {
  border-top: 1px solid var(--landing-light-gray);
}

.gh-container .post-card h2 {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
  font-size: 18px;
  font-weight: 500;
  margin: 0;
}

.gh-container .post-card h2 a {
  color: var(--landing-navy);
  text-decoration: none;
}

.gh-container .post-card h2 a:hover {
  text-decoration: underline;
}

.gh-container .post-card time {
  font-size: 14px;
  color: var(--landing-gray);
  white-space: nowrap;
  margin-left: 16px;
}
