/* Ethan J. Hulbert — Homepage 2026 */

body.page-template-template-homepage-2026 {
  background: #fff !important;
}

.ejh-home-2026 {
  --ejh-home-ink: #111;
  --ejh-home-muted: #666;
  --ejh-home-green: #294f38;
  --ejh-home-green-dark: #173524;
  --ejh-home-paper: #fff;
  --ejh-home-card: #fff;
  --ejh-home-line: #d8d8d8;
  --ejh-home-blue: #24558a;
  --ejh-home-link-blue: #174f8c;
  --ejh-home-purple: #7d266f;
  --ejh-home-citrus: #ff8a00;

  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
  color: var(--ejh-home-ink);
  background: #fff;
  font-family: Lato, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  letter-spacing: normal !important;
}

/* The legacy parent theme sets global letter-spacing on body/p. Reset it hard here. */
.ejh-home-2026,
.ejh-home-2026 p,
.ejh-home-2026 h1,
.ejh-home-2026 h2,
.ejh-home-2026 h3,
.ejh-home-2026 a,
.ejh-home-2026 span,
.ejh-home-2026 strong {
  letter-spacing: normal !important;
}

.ejh-home-2026 *,
.ejh-home-2026 *::before,
.ejh-home-2026 *::after {
  box-sizing: border-box;
}

.ejh-home-2026 a {
  color: var(--ejh-home-blue);
}

.ejh-home-2026 a:hover,
.ejh-home-2026 a:focus-visible {
  color: #7d266f;
}

.ejh-home-2026 a:focus-visible {
  outline: 3px solid var(--ejh-home-green);
  outline-offset: 3px;
}

.ejh-home-hero-2026 {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
  padding: 8px 0 36px;
}

.ejh-home-hero-2026:not(:has(.ejh-home-portrait-2026)) {
  grid-template-columns: minmax(0, 820px);
}

.ejh-home-hero-copy-2026 {
  min-width: 0;
}

.ejh-home-hero-2026 h1 {
  margin: 0 0 16px;
  color: #111;
  font-family: Lora, Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.04;
  text-align: left !important;
}

.ejh-home-editor-intro-2026 > :first-child {
  margin-top: 0;
}

.ejh-home-editor-intro-2026 > :last-child {
  margin-bottom: 0;
}

.ejh-home-editor-intro-2026 p {
  margin: 0 0 12px;
  color: #111;
  font-family: Lato, Arial, sans-serif;
  font-size: clamp(18px, 1.8vw, 20px);
  line-height: 1.48;
}

.ejh-home-editor-intro-2026 sup {
  position: relative;
  top: -.15em;
  font-size: .62em;
  line-height: 0;
}

.ejh-home-editor-intro-2026 sup a {
  text-decoration: none;
  opacity: .72;
}

.ejh-home-editor-intro-2026 sup a:hover,
.ejh-home-editor-intro-2026 sup a:focus-visible {
  opacity: 1;
}

.ejh-home-editor-intro-2026 sup a:active {
  color: var(--ejh-home-citrus);
  opacity: 1;
}

.ejh-location-strip-2026 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  row-gap: 6px;
  column-gap: 24px;
  margin-top: 18px;
  padding: 10px 0 0;
  border-top: 1px solid #d6d6d6;
  color: #111;
  font-family: Lato, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  word-spacing: 0;
}

.ejh-location-strip-2026 span {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0;
}

.ejh-location-strip-2026 span + span {
  margin-left: 0;
}

.ejh-location-strip-2026 strong {
  color: #111;
  font-size: inherit;
  font-weight: 800;
  line-height: inherit;
  text-transform: uppercase;
  margin-right: 0;
}

.ejh-home-portrait-2026 {
  margin: 0;
  padding: 0;
}

.ejh-home-portrait-2026 a {
  display: block;
  line-height: 0;
}

.ejh-home-portrait-2026 img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  margin: 0 !important;
  max-height: none !important;
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  box-shadow: 0 7px 22px rgba(0, 0, 0, .09);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ejh-home-portrait-2026 a:hover img,
.ejh-home-portrait-2026 a:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 11px 28px rgba(0, 0, 0, .14);
}

.ejh-projects-section-2026 {
  margin-top: 26px;
}

.ejh-section-heading-2026 {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding-bottom: 9px;
  border-bottom: 5px solid var(--ejh-home-green);
}

.ejh-section-heading-2026 h2,
.ejh-changelog-head-2026 h2 {
  margin: 0;
  color: #111;
  font-family: Lora, Georgia, serif;
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.08;
  text-align: left !important;
}

.ejh-project-grid-2026 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 16px;
  row-gap: 24px;
  grid-auto-flow: row;
}

.ejh-card-third-2026 {
  grid-column: span 4;
}

.ejh-card-half-2026 {
  grid-column: span 6;
}

.ejh-card-quarter-2026 {
  grid-column: span 3;
}

.ejh-project-card-2026 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 8px;
  color: #111 !important;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ejh-project-card-2026:hover,
.ejh-project-card-2026:focus-visible {
  color: #111 !important;
  transform: translateY(-5px);
  border-color: #c8c8c8;
  box-shadow: 0 11px 25px rgba(0, 0, 0, .12);
}

.ejh-card-visual-2026 {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: #f3f3f3;
  border-bottom: 1px solid #e1e1e1;
}

.ejh-card-visual-2026 img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  max-height: none !important;
  object-fit: cover;
  transition: transform .24s ease;
}

.ejh-project-card-2026.has-image:hover .ejh-card-visual-2026 img,
.ejh-project-card-2026.has-image:focus-visible .ejh-card-visual-2026 img {
  transform: scale(1.035);
}

.ejh-project-card-2026.has-type-visual .ejh-card-visual-2026 {
  padding: 16px;
  background: #f4f4f2;
}

.ejh-project-card-2026.has-type-visual .ejh-card-visual-2026 span {
  display: block;
  max-width: 95%;
  color: #111;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: clamp(14px, 2.1vw, 22px);
  font-weight: 800;
  line-height: 1.12;
  text-align: center;
  overflow-wrap: anywhere;
}

.ejh-card-copy-2026 {
  padding: 15px 16px 17px;
  background: #fff;
}

.ejh-card-copy-2026 h3 {
  margin: 0 0 7px;
  color: #111;
  font-family: Lora, Georgia, serif;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.12;
  text-align: left !important;
}

.ejh-card-copy-2026 p {
  margin: 0;
  color: #111;
  font-family: Lato, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: .2px !important;
}

.ejh-external-mark-2026 {
  display: inline-block;
  margin-left: 5px;
  font-family: Lato, Arial, sans-serif;
  font-size: .72em;
  vertical-align: .12em;
}

.ejh-changelog-wrap-2026 {
  margin: 54px 0 58px;
  overflow: hidden;
  background: #f1f1f1;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
}

.ejh-changelog-head-2026 {
  padding: 13px 18px 12px;
  background: #d5d5d5;
  border-bottom: 1px solid #c7c7c7;
}

.ejh-changelog-head-2026 h2 {
  color: #111;
  font-size: 23px;
}

.ejh-changelog-scroll-2026 {
  height: 195px;
  overflow-y: auto;
  padding: 14px 18px 17px;
  background: #f1f1f1;
  color: #111;
  scrollbar-width: thin;
  scrollbar-color: #777 #dedede;
}

.ejh-changelog-scroll-2026:focus-visible {
  outline: 3px solid var(--ejh-home-green);
  outline-offset: -3px;
}

.ejh-changelog-scroll-2026 p {
  margin: 0 0 11px;
  color: #111;
  font-family: Lato, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.46;
  letter-spacing: .2px !important;
}

.ejh-changelog-scroll-2026 p:last-child {
  margin-bottom: 0;
}

.ejh-changelog-scroll-2026 a {
  color: var(--ejh-home-link-blue);
}

.ejh-changelog-scroll-2026 a:hover,
.ejh-changelog-scroll-2026 a:focus-visible {
  color: var(--ejh-home-purple);
}

.ejh-changelog-scroll-2026 a:active {
  color: var(--ejh-home-citrus);
}

.ejh-more-section-2026 {
  margin-top: 0;
}

.ejh-home-utility-2026 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-top: 42px;
  padding: 22px 0 0;
  border-top: 1px solid #d8d8d8;
}

.ejh-home-utility-2026 a {
  display: inline-block;
  padding: 7px 11px;
  border: 1px solid #d7e0e9;
  border-radius: 6px;
  background: #f7f9fb;
  color: var(--ejh-home-link-blue);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: color .14s ease, background-color .14s ease, border-color .14s ease;
}

.ejh-home-utility-2026 a:hover,
.ejh-home-utility-2026 a:focus-visible {
  color: var(--ejh-home-purple);
  background: #faf7fb;
  border-color: #d9c9d6;
  text-decoration: none;
}

.ejh-home-utility-2026 a:active {
  color: var(--ejh-home-citrus);
  background: #fff8ef;
  border-color: #f0c38f;
}

@media (max-width: 799px) {
  .ejh-home-2026 {
    width: min(100% - 24px, 720px);
    padding: 26px 0 50px;
    font-size: 17px;
  }

  .ejh-home-hero-2026,
  .ejh-home-hero-2026:not(:has(.ejh-home-portrait-2026)) {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 4px 0 28px;
  }

  .ejh-home-hero-2026 h1 {
    margin-bottom: 13px;
    font-size: clamp(32px, 9.5vw, 40px);
  }

  .ejh-home-editor-intro-2026 p {
    font-size: 17px;
    line-height: 1.48;
  }

  .ejh-location-strip-2026 {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
    margin-top: 16px;
    padding-top: 10px;
    font-size: 14px;
  }

  .ejh-location-strip-2026 span,
  .ejh-location-strip-2026 span + span {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    white-space: nowrap;
  }

  .ejh-location-strip-2026 strong {
    display: inline;
    margin-right: 0;
    white-space: nowrap;
  }

  .ejh-home-portrait-2026 {
    width: min(100%, 500px);
  }

  .ejh-home-portrait-2026 img {
    aspect-ratio: 16 / 11;
  }

  .ejh-projects-section-2026 {
    margin-top: 22px;
  }

  .ejh-section-heading-2026 {
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .ejh-section-heading-2026 h2 {
    font-size: 27px;
  }

  .ejh-project-grid-2026 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 10px;
    row-gap: 18px;
  }

  /* Mobile deliberately stays two cards wide regardless of desktop row pattern. */
  .ejh-card-third-2026,
  .ejh-card-half-2026,
  .ejh-card-quarter-2026 {
    grid-column: span 1;
  }

  .ejh-card-visual-2026 {
    aspect-ratio: 4 / 3;
  }

  .ejh-card-copy-2026 {
    padding: 12px 11px 14px;
  }

  .ejh-card-copy-2026 h3 {
    margin-bottom: 6px;
    font-size: clamp(17px, 4.8vw, 20px);
  }

  .ejh-card-copy-2026 p {
    font-size: 13.5px;
    line-height: 1.38;
    letter-spacing: .2px !important;
  }

  .ejh-project-card-2026.has-type-visual .ejh-card-visual-2026 {
    padding: 10px;
  }

  .ejh-project-card-2026.has-type-visual .ejh-card-visual-2026 span {
    font-size: clamp(12px, 3.5vw, 17px);
  }

  .ejh-project-card-2026:hover,
  .ejh-project-card-2026:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .12);
  }

  .ejh-changelog-wrap-2026 {
    margin: 42px 0 48px;
  }

  .ejh-changelog-head-2026 {
    padding: 11px 13px 10px;
  }

  .ejh-changelog-head-2026 h2 {
    font-size: 21px;
  }

  .ejh-changelog-scroll-2026 {
    height: 180px;
    padding: 12px 13px 15px;
  }

  .ejh-changelog-scroll-2026 p {
    font-size: 15px;
    line-height: 1.43;
    letter-spacing: .2px !important;
  }

  .ejh-home-utility-2026 {
    justify-content: center;
    margin-top: 36px;
    gap: 10px 19px;
    text-align: center;
  }

  .ejh-home-utility-2026 a {
    font-size: 17px;
  }
}

@media (max-width: 360px) {
  .ejh-home-2026 {
    width: calc(100% - 18px);
  }

  .ejh-project-grid-2026 {
    column-gap: 7px;
    row-gap: 14px;
  }

  .ejh-card-copy-2026 {
    padding: 10px 9px 12px;
  }

  .ejh-card-copy-2026 h3 {
    font-size: 16px;
  }

  .ejh-card-copy-2026 p {
    font-size: 12.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ejh-project-card-2026,
  .ejh-card-visual-2026 img,
  .ejh-home-portrait-2026 img {
    transition: none;
  }
}
