@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;500;600;700&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap');

/* =========================================================
   Jonas Hertz — complete site styling
   Designed to work with the theme stylesheet disabled.
   ========================================================= */

:root {
  --jh-ink: #15181c;
  --jh-text: #252a31;
  --jh-muted: #4d5661;
  --jh-subtle: #66707c;
  --jh-line: #dfe3e8;
  --jh-surface: #ffffff;
  --jh-soft: #f5f6f7;
  --jh-soft-blue: #f3f7fb;
  --jh-blue: #0051ba;
  --jh-green: #009b48;
  --jh-yellow: #ffd500;
  --jh-orange: #f58220;
  --jh-red: #d01c1f;
  --jh-linkedin: #0a66c2;
  --jh-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jh-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --jh-width: 1120px;
  --jh-radius: 14px;
  --jh-shadow: 0 14px 38px rgba(22, 29, 37, 0.07);
}

/* ---------- Base ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--jh-surface);
  color: var(--jh-text);
  font-family: var(--jh-sans);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--jh-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--jh-blue);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 81, 186, 0.3);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--jh-ink);
  font-family: var(--jh-serif);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

p,
ul,
ol,
figure {
  margin-top: 0;
}

p:last-child,
ul:last-child,
ol:last-child,
figure:last-child {
  margin-bottom: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

/* ---------- WordPress/theme shell ---------- */

#page,
.site,
.site-content,
.content-area,
.site-main,
article,
.entry-content {
  width: 100%;
  max-width: none;
}

#page,
.site {
  min-height: 100vh;
  margin: 0;
  background: var(--jh-surface);
}

.site-content,
.content-area,
.site-main,
.entry-content {
  margin: 0;
  padding: 0;
}

body.home .site-header,
body.home #masthead,
body.home .entry-header,
body.home .entry-footer,
body.home .comments-area,
body.home .comment-respond,
body.home .site-footer {
  display: none !important;
}

body.home .entry-content > *,
body.home .wp-site-blocks > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.alignfull,
.wp-block-group.alignfull {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

.wp-block-query ul,
.wp-block-post-template {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Basic header styling for article and other non-home pages. */
body:not(.home) .site-header,
body:not(.home) #masthead {
  padding: 18px max(20px, calc((100vw - var(--jh-width)) / 2));
  border-bottom: 1px solid var(--jh-line);
  background: var(--jh-surface);
}

body:not(.home) .site-title {
  margin: 0;
  font-family: var(--jh-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

body:not(.home) .site-title a {
  color: var(--jh-ink);
  text-decoration: none;
}

body:not(.home) .site-description {
  margin: 2px 0 0;
  color: var(--jh-muted);
  font-size: 14px;
}

body:not(.home) .main-navigation ul,
body:not(.home) .menu {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

body:not(.home) .main-navigation a,
body:not(.home) .menu a {
  color: var(--jh-ink);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Shared homepage components ---------- */

.jh-home {
  overflow: hidden;
  background: var(--jh-surface);
}

.jh-shell {
  width: min(var(--jh-width), calc(100% - 40px));
  margin-inline: auto;
}

.jh-section {
  padding: clamp(58px, 7vw, 92px) 0;
}

.jh-section--soft {
  background: var(--jh-soft);
}

.jh-section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.jh-section-heading h2 {
  font-size: clamp(38px, 5vw, 58px);
}

.jh-section-heading p {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--jh-muted);
  font-size: 18px;
  line-height: 1.6;
}

.jh-eyebrow {
  margin: 0 0 10px;
  color: var(--jh-text);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.jh-accent {
  width: 58px;
  height: 8px;
  margin-bottom: 22px;
  border-radius: 1px;
}

.jh-accent--blue { background: var(--jh-blue); }
.jh-accent--green { background: var(--jh-green); }
.jh-accent--yellow { background: var(--jh-yellow); }
.jh-accent--orange { background: var(--jh-orange); }
.jh-accent--red { background: var(--jh-red); }

.jh-rubik-bar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  width: min(250px, 72vw);
  margin: 0 0 28px;
}

.jh-rubik-bar span {
  display: block;
  height: 9px;
  border-radius: 1px;
}

.jh-rubik-bar span:nth-child(1) { background: var(--jh-blue); }
.jh-rubik-bar span:nth-child(2) { background: var(--jh-green); }
.jh-rubik-bar span:nth-child(3) { background: var(--jh-yellow); }
.jh-rubik-bar span:nth-child(4) { background: var(--jh-orange); }
.jh-rubik-bar span:nth-child(5) { background: var(--jh-red); }

/* ---------- Hero ---------- */

.jh-hero {
  padding: clamp(44px, 6vw, 76px) 0 clamp(62px, 7vw, 96px);
  background: var(--jh-surface);
}

.jh-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
}

.jh-hero__copy {
  max-width: 760px;
}

.jh-hero h1 {
  max-width: 780px;
  margin-bottom: 8px;
  font-size: clamp(58px, 7vw, 88px);
}

.jh-hero__role {
  margin: 0 0 22px;
  color: var(--jh-text);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.jh-hero__lead {
  max-width: 720px;
  margin: 0 0 14px;
  color: var(--jh-text);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.55;
}

.jh-hero__sub {
  max-width: 690px;
  margin: 0 0 26px;
  color: var(--jh-muted);
  font-size: 18px;
  line-height: 1.62;
}

.jh-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 4px;
}

#latest-articles,
#projects,
#about,
#connect {
  scroll-margin-top: 18px;
}

.jh-hero__portrait {
  justify-self: end;
  margin: 0;
}

.jh-hero__portrait img {
  width: 270px;
  height: 270px;
  max-width: none;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(27, 34, 43, 0.12);
}

/* ---------- Latest articles ---------- */

.jh-articles {
  background: var(--jh-surface);
  border-top: 1px solid var(--jh-line);
}

.jh-article-query {
  margin: 0;
}

.jh-article-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.jh-article-grid > li {
  min-width: 0;
  margin: 0 !important;
}

.jh-article-grid > li:first-child {
  grid-column: 1 / -1;
}

.jh-article-card {
  position: relative;
  height: 100%;
  margin: 0;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius);
  background: var(--jh-surface);
  box-shadow: 0 8px 24px rgba(22, 29, 37, 0.04);
}

.jh-article-card::before {
  content: "";
  display: block;
  width: 56px;
  height: 7px;
  margin-bottom: 22px;
  background: var(--jh-green);
  border-radius: 0;
}

.jh-article-grid > li:first-child .jh-article-card {
  padding: clamp(34px, 5vw, 52px);
  background: var(--jh-soft-blue);
  box-shadow: var(--jh-shadow);
}

.jh-article-grid > li:first-child .jh-article-card::before {
  width: 56px;
  background: var(--jh-green);
  border-radius: 0;
}

.jh-article-date,
.jh-article-date time,
.jh-article-date a {
  margin: 0 0 9px;
  color: #3d4650 !important;
  font-family: var(--jh-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}

.jh-article-title {
  margin: 0 0 14px;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.12;
}

.jh-article-grid > li:first-child .jh-article-title {
  max-width: 850px;
  font-size: clamp(36px, 5vw, 58px);
}

.jh-article-title a {
  color: var(--jh-ink) !important;
  text-decoration: none;
}

.jh-article-title a:hover {
  color: var(--jh-green) !important;
}

.jh-article-excerpt,
.jh-article-excerpt p,
.jh-article-excerpt .wp-block-post-excerpt__excerpt {
  color: #262c33 !important;
  font-family: var(--jh-sans);
  font-size: 17px !important;
  line-height: 1.65 !important;
  opacity: 1 !important;
}

.jh-article-excerpt p {
  margin-bottom: 14px;
}

.jh-article-excerpt .wp-block-post-excerpt__more-link {
  display: inline-block;
  color: var(--jh-ink) !important;
  font-weight: 700;
  text-decoration-color: var(--jh-green);
  text-decoration-thickness: 2px;
}

/* ---------- Projects ---------- */

.jh-project-grid,
.jh-info-grid,
.jh-experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.jh-card {
  height: 100%;
  padding: clamp(26px, 4vw, 36px);
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius);
  background: var(--jh-surface);
}

.jh-card--shadow {
  box-shadow: var(--jh-shadow);
}

.jh-card h3 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.2vw, 38px);
}

.jh-card h3 a {
  color: var(--jh-ink);
  text-decoration: none;
}

.jh-section--projects .jh-card h3 a:hover {
  color: #8a7100;
}

.jh-card p {
  margin: 0;
  color: var(--jh-text);
  font-size: 17px;
  line-height: 1.65;
}

.jh-project-link {
  display: inline-block;
  margin-top: 20px;
  color: var(--jh-ink);
  font-weight: 700;
  text-decoration-color: var(--jh-yellow);
  text-decoration-thickness: 3px;
}

/* ---------- About ---------- */

.jh-about-intro {
  max-width: 900px;
  margin-bottom: 38px;
}

.jh-about-intro h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5vw, 62px);
}

.jh-about-intro .jh-about-lead {
  margin-bottom: 14px;
  color: var(--jh-text);
  font-size: clamp(21px, 2.4vw, 26px);
  line-height: 1.55;
}

.jh-about-intro p {
  color: var(--jh-text);
  font-size: 18px;
  line-height: 1.68;
}

.jh-info-panel {
  padding: 32px;
  border-top: 7px solid var(--jh-blue);
  border-radius: 0 0 var(--jh-radius) var(--jh-radius);
  background: var(--jh-soft);
}

.jh-info-panel h3 {
  margin-bottom: 18px;
  font-size: 32px;
}

.jh-info-panel ul {
  margin: 0;
  padding-left: 1.2em;
  color: var(--jh-text);
}

.jh-info-panel li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.jh-info-panel li:last-child {
  margin-bottom: 0;
}

.jh-tool-line {
  margin: 0 0 14px;
  color: var(--jh-text);
  font-size: 17px;
  line-height: 1.65;
}

.jh-tool-line:last-child {
  margin-bottom: 0;
}

/* ---------- Experience ---------- */

.jh-experience-grid {
  align-items: stretch;
}

.jh-experience-card {
  padding: 30px;
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius);
  background: var(--jh-surface);
}

.jh-experience-card h3 {
  margin-bottom: 6px;
  font-size: 29px;
}

.jh-experience-card__meta {
  margin: 0 0 13px;
  color: #3f4852;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.025em;
}

.jh-experience-card p:last-child {
  color: var(--jh-text);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- LinkedIn CTA and footer ---------- */

.jh-connect {
  background: var(--jh-surface);
}

.jh-connect__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: clamp(30px, 5vw, 48px);
  border: 1px solid var(--jh-line);
  border-radius: var(--jh-radius);
  background: var(--jh-soft-blue);
}

.jh-connect__box h2 {
  margin-bottom: 10px;
  font-size: clamp(34px, 4vw, 48px);
}

.jh-connect__box p {
  max-width: 650px;
  margin: 0;
  color: var(--jh-text);
  font-size: 18px;
}

.jh-linkedin-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 50px;
  padding: 13px 20px;
  border-radius: 7px;
  background: var(--jh-linkedin);
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(10, 102, 194, 0.2);
}

.jh-linkedin-button:hover {
  background: #084f96;
  color: #ffffff !important;
}

.jh-linkedin-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 3px;
  background: #ffffff;
  color: var(--jh-linkedin);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.jh-footer {
  padding: 28px 0;
  border-top: 1px solid var(--jh-line);
  background: var(--jh-surface);
}

.jh-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--jh-muted);
  font-size: 14px;
}

.jh-footer a {
  color: var(--jh-text);
  font-weight: 600;
}

/* ---------- Individual blog posts ---------- */

body.single .site-main,
body.page:not(.home) .site-main {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(54px, 8vw, 90px) 0;
}

body.single .entry-header,
body.page:not(.home) .entry-header {
  margin-bottom: 34px;
}

body.single .entry-title,
body.page:not(.home) .entry-title {
  font-size: clamp(42px, 6vw, 68px);
}

body.single .entry-meta,
body.single .posted-on,
body.single .byline {
  color: var(--jh-muted);
  font-size: 15px;
}

body.single .entry-content p,
body.single .entry-content li,
body.page:not(.home) .entry-content p,
body.page:not(.home) .entry-content li {
  color: var(--jh-text);
  font-size: 18px;
  line-height: 1.75;
}

body.single .entry-content h2,
body.page:not(.home) .entry-content h2 {
  margin: 1.6em 0 0.55em;
  font-size: clamp(32px, 4vw, 44px);
}

body.single .entry-content h3,
body.page:not(.home) .entry-content h3 {
  margin: 1.4em 0 0.5em;
  font-size: clamp(26px, 3vw, 34px);
}

body.single .entry-content pre,
body.page:not(.home) .entry-content pre {
  overflow-x: auto;
  padding: 20px;
  border-radius: 8px;
  background: #171b21;
  color: #f5f7fa;
  font-size: 15px;
  line-height: 1.55;
}

body.single .entry-content code,
body.page:not(.home) .entry-content code {
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

body.single .entry-content blockquote,
body.page:not(.home) .entry-content blockquote {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 5px solid var(--jh-blue);
  color: var(--jh-text);
  font-family: var(--jh-serif);
  font-size: 22px;
}

body:not(.home) .site-footer {
  padding: 28px 20px;
  border-top: 1px solid var(--jh-line);
  background: var(--jh-soft);
  color: var(--jh-muted);
  text-align: center;
  font-size: 14px;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .jh-hero__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .jh-hero__portrait {
    grid-row: 1;
    justify-self: center;
  }

  .jh-hero__portrait img {
    width: min(62vw, 250px);
    height: min(62vw, 250px);
  }

  .jh-hero__copy {
    grid-row: 2;
  }

  .jh-project-grid,
  .jh-info-grid,
  .jh-experience-grid,
  .jh-connect__box {
    grid-template-columns: 1fr;
  }

  .jh-connect__box {
    align-items: start;
  }

  .jh-linkedin-button {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 17px;
  }

  .jh-shell {
    width: min(var(--jh-width), calc(100% - 32px));
  }

  .jh-section {
    padding: 54px 0;
  }

  .jh-hero {
    padding: 24px 0 58px;
  }

  .jh-hero__portrait {
    margin-bottom: 2px;
  }

  .jh-hero__portrait img {
    width: min(66vw, 235px);
    height: min(66vw, 235px);
  }

  .jh-hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .jh-hero__role {
    font-size: 22px;
  }

  .jh-hero__lead {
    font-size: 20px;
  }

  .jh-hero__sub {
    font-size: 17px;
  }

  .jh-hero__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
  }

  .jh-article-grid {
    grid-template-columns: 1fr;
  }

  .jh-article-grid > li:first-child {
    grid-column: auto;
  }

  .jh-article-card,
  .jh-article-grid > li:first-child .jh-article-card {
    padding: 26px;
  }

  .jh-article-grid > li:first-child .jh-article-title,
  .jh-article-title {
    font-size: 31px;
  }

  .jh-card,
  .jh-info-panel,
  .jh-experience-card {
    padding: 26px;
  }

  .jh-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* HARMONIZED SECTION COLORS */

/* The bar width follows the rendered heading width exactly.
   Square ends: no border-radius. */
.jh-section-title-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  margin-bottom: 0;
}

.jh-section-title-wrap h2 {
  width: fit-content;
  max-width: 100%;
}

/* Internal accents are short but always inherit their section's one color. */
.jh-section--projects .jh-accent {
  background: var(--jh-yellow) !important;
  border-radius: 0;
}

.jh-section--about .jh-accent,
.jh-section-heading--about + .jh-experience-grid .jh-accent,
.jh-experience-grid .jh-accent {
  background: var(--jh-blue) !important;
  border-radius: 0;
}

.jh-section--connect .jh-accent {
  background: var(--jh-red) !important;
  border-radius: 0;
}

/* Articles: every article accent and interactive emphasis is green. */
.jh-articles .jh-article-card::before,
.jh-articles .jh-article-grid > li:first-child .jh-article-card::before {
  background: var(--jh-green) !important;
  border-radius: 0;
}

.jh-articles .jh-article-title a:hover,
.jh-articles .wp-block-post-excerpt__more-link {
  color: var(--jh-green) !important;
  text-decoration-color: var(--jh-green) !important;
}

/* Projects: every project-specific emphasis is yellow. */
.jh-section--projects .jh-project-link {
  text-decoration-color: var(--jh-yellow) !important;
}

.jh-section--projects .jh-card h3 a:hover,
.jh-section--projects .jh-project-link:hover {
  color: #7a6500 !important;
}

/* About + Selected Experience: all accent treatment blue. */
.jh-section--about .jh-info-panel {
  border-top-color: var(--jh-blue) !important;
}

.jh-experience-grid .jh-accent {
  background: var(--jh-blue) !important;
}

/* Connect: red section accent, LinkedIn button remains official LinkedIn blue. */
.jh-section--connect /* Navigation buttons mirror section colors. */
@media (max-width: 640px) {
  }

/* FINAL SECTION COLOR RULES */

/* ARTICLES = GREEN */
.jh-articles .jh-article-card::before,
.jh-articles .jh-article-grid > li:first-child .jh-article-card::before {
  width: 56px;
  background: var(--jh-green) !important;
  border-radius: 0 !important;
}

.jh-articles .jh-article-grid > li:first-child .jh-article-card {
  background: #f3faf6;
}

.jh-articles .jh-article-title a:hover,
.jh-articles .wp-block-post-excerpt__more-link {
  color: var(--jh-green) !important;
  text-decoration-color: var(--jh-green) !important;
}

/* PROJECTS = YELLOW */
.jh-section--projects .jh-accent {
  background: var(--jh-yellow) !important;
  border-radius: 0 !important;
}

.jh-section--projects .jh-project-link {
  text-decoration-color: var(--jh-yellow) !important;
}

.jh-section--projects .jh-card h3 a:hover,
.jh-section--projects .jh-project-link:hover {
  color: #765f00 !important;
}

/* ABOUT + SELECTED EXPERIENCE = BLUE */
.jh-section--about .jh-accent,
.jh-experience-grid .jh-accent {
  background: var(--jh-blue) !important;
  border-radius: 0 !important;
}

.jh-section--about .jh-info-panel {
  border-top-color: var(--jh-blue) !important;
}

/* CONNECT = RED.
   LinkedIn CTA stays LinkedIn blue because it is a branded action, not a section accent. */
.jh-section--connect .jh-connect__box {
  background: #fff6f6;
}

.jh-section--connect /* Hero in-page navigation mirrors the same section colors. */
@media (max-width: 640px) {
  }


/* Selected Experience is a subsection under About */
.jh-subsection-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.jh-subsection-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1.15;
}

.jh-subsection-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--jh-muted);
  font-size: 17px;
  line-height: 1.6;
}


/* Keep Selected Experience visually inside the About section */
.jh-experience-section {
  background: var(--jh-surface);
  padding-top: 18px;
}

.jh-experience-section .jh-subsection-heading {
  margin-top: 0;
}

@media (max-width: 640px) {
  .jh-experience-section {
    padding-top: 10px;
  }
}


/* ---------- Flat in-page navigation tabs ---------- */
.jh-hero__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 4px;
}

.jh-nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 2px 9px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--jh-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
}

.jh-nav-link::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 4px;
  background: var(--jh-line);
  transition: height .15s ease, opacity .15s ease;
}

.jh-nav-link--articles::after { background: var(--jh-green); }
.jh-nav-link--projects::after { background: var(--jh-yellow); }
.jh-nav-link--about::after { background: var(--jh-blue); }
.jh-nav-link--connect::after { background: var(--jh-red); }

.jh-nav-link:hover,
.jh-nav-link:focus {
  color: var(--jh-ink);
  background: transparent;
}

.jh-nav-link:hover::after,
.jh-nav-link:focus::after {
  height: 6px;
}

@media (max-width: 640px) {
  .jh-hero__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    width: 100%;
  }

  .jh-nav-link {
    width: 100%;
    padding: 8px 0 10px;
    text-align: left;
  }
}