/*-----------------------------------*\
  #pages.css
  additions on top of style.css: standalone pages (/about, /projects, ...),
  homepage intro + footer, and accessibility helpers.
  reuses the custom properties defined in style.css.
\*-----------------------------------*/



/* width/height attributes reserve space (no layout shift); style.css resizes by width */
.avatar-box img { height: auto; }

/* circular profile photo: the frame is a circle the photo fills, with a thin
   accent ring (replaces the template's grey rounded-square tile) */
.avatar-box {
  flex-shrink: 0;
  padding: 3px;
  border-radius: 50%;
  background: var(--text-gradient-yellow);
  box-shadow: var(--shadow-2);
}

.avatar-box img {
  border-radius: 50%;
  background: var(--eerie-black-2);
}



/**
 * accessibility helpers
 */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 50;
}

.skip-link:focus { top: 12px; }

:is(a, button, input, textarea):focus-visible {
  outline: 2px solid var(--orange-yellow-crayola);
  outline-offset: 3px;
  border-radius: 6px;
}

.text-link {
  display: inline;
  color: var(--orange-yellow-crayola);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.text-link:hover { color: var(--white-2); }



/**
 * homepage intro + call-to-action row
 */

.intro-lead {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-400);
  line-height: 1.6;
  margin-bottom: 18px;
}

.cta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.cta-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--border-gradient-onyx);
  color: var(--light-gray);
  font-size: var(--fs-7);
  padding: 9px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow-2);
  z-index: 1;
  transition: var(--transition-1);
}

.cta-link::before {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
  transition: var(--transition-1);
}

.cta-link ion-icon { font-size: 16px; }

.cta-link:hover,
.cta-link.primary { color: var(--orange-yellow-crayola); }

.cta-link:hover { background: var(--bg-gradient-yellow-1); }

.cta-link:hover::before { background: var(--bg-gradient-yellow-2); }



/**
 * standalone page content
 */

.breadcrumb { margin-bottom: 18px; }

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.breadcrumb li { display: flex; gap: 6px; }

.breadcrumb li:not(:last-child)::after { content: "/"; }

.breadcrumb a { color: var(--light-gray); display: inline; }

.breadcrumb a:hover { color: var(--orange-yellow-crayola); }

.content-section { margin-bottom: 35px; }

.content-section > h2,
.content-section > .section-title { margin-bottom: 15px; }

.content-section :is(p, li) {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

.content-section p:not(:last-child) { margin-bottom: 12px; }

.content-section strong { color: var(--white-2); font-weight: var(--fw-500); }

.bullet-list li {
  position: relative;
  padding-left: 20px;
}

.bullet-list li:not(:last-child) { margin-bottom: 8px; }

.bullet-list li::before {
  content: "";
  position: absolute;
  top: 0.65em;
  left: 2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-gradient-yellow);
}

.fact-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.fact-list div {
  display: grid;
  gap: 2px;
}

.fact-list dt {
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
}

.fact-list dd {
  color: var(--white-2);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  overflow-wrap: anywhere;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.content-section .tag-list li,
.tag-list li {
  background: var(--onyx);
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  line-height: 1.4;
  padding: 5px 12px;
  border-radius: 8px;
}

.skill-group:not(:last-child) { margin-bottom: 25px; }

.skill-group h3 { margin-bottom: 12px; }

.skill-note {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin-top: 10px;
}

.project-hero {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--jet);
  margin-bottom: 25px;
}

.project-hero img {
  width: 100%;
  height: auto;
}

/* same fixed-size project thumbnails as the homepage grid */
.project-img {
  aspect-ratio: 16 / 10;
  height: auto;
}

.project-img img { object-position: top center; }

.project-img-placeholder {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 20px;
  background: var(--bg-gradient-onyx);
  color: var(--light-gray);
  font-size: var(--fs-5);
  text-align: center;
}

.project-summary {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
  margin: 8px 10px 0;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 10px 10px 0;
}

.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-7);
}

.project-links a:hover { color: var(--white-2); }

.link-list li:not(:last-child) { margin-bottom: 8px; }

.link-list a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--orange-yellow-crayola);
  font-size: var(--fs-6);
}

.link-list a:hover { color: var(--white-2); }

.form-label {
  display: block;
  color: var(--light-gray-70);
  font-size: var(--fs-8);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.print-btn {
  font: inherit;
  cursor: pointer;
  border: none;
}



/**
 * blog articles (/blog/<slug>)
 */

/* the template capitalizes every heading word; article titles are sentences
   ("vs", "v11"), so they keep their own casing */
article:has(.post-body) .article-title,
.blog-item-title { text-transform: none; }

/* blog cards: even heights, excerpt clipped to three lines */
.blog-post-item .blog-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta { flex-wrap: wrap; }

.post-meta {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
  margin-bottom: 20px;
}

.post-meta time { display: inline; }

.post-cover {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--jet);
  margin-bottom: 30px;
}

.post-cover img { width: 100%; height: auto; }

.post-body {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.75;
  max-width: 760px;
}

.post-body > * + * { margin-top: 16px; }

.post-body h2 {
  color: var(--white-2);
  font-size: var(--fs-2);
  font-weight: var(--fw-500);
  line-height: 1.3;
  margin-top: 36px;
}

.post-body h3 {
  color: var(--white-2);
  font-size: var(--fs-4);
  font-weight: var(--fw-500);
  margin-top: 26px;
}

.post-body strong { color: var(--white-2); font-weight: var(--fw-500); }

.post-body a {
  display: inline;
  color: var(--orange-yellow-crayola);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-body ul,
.post-body ol { padding-left: 22px; }

.post-body ul li { list-style: disc; }

.post-body ol li { list-style: decimal; }

.post-body li + li { margin-top: 8px; }

.post-body li::marker { color: var(--orange-yellow-crayola); }

.post-body :not(pre) > code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
  color: var(--white-2);
  background: var(--onyx);
  padding: 2px 6px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.post-body pre {
  background: hsl(240, 2%, 9%);
  border: 1px solid var(--jet);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  line-height: 1.6;
}

.post-body pre code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  color: hsl(45, 60%, 85%);
  white-space: pre;
}

.post-footer {
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid var(--jet);
}

.post-footer > * + * { margin-top: 14px; }



/**
 * footer (homepage + standalone pages)
 * a card like .sidebar / article:  brand | social
 *                                  ------+-------
 *                                  links | copyright
 */

.site-footer {
  margin-top: 15px;
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 20px;
  padding: 20px 15px;
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-areas: "brand" "social" "links" "copy";
  gap: 16px;
  color: var(--light-gray-70);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}

.site-footer-brand { grid-area: brand; }

.site-footer-name {
  color: var(--white-2);
  font-size: var(--fs-5);
  font-weight: var(--fw-500);
  margin-bottom: 2px;
}

.site-footer-nav { grid-area: links; }

.site-footer-social { grid-area: social; }

.site-footer-links,
.site-footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
}

.site-footer a { color: var(--light-gray); }

.site-footer a:hover { color: var(--orange-yellow-crayola); }

.site-footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-footer-copy {
  grid-area: copy;
  padding-top: 16px;
  border-top: 1px solid var(--jet);
}

/* style.css makes every span block-level */
.site-footer-copy span { display: inline; }



/**
 * responsive
 */

@media (min-width: 580px) {

  .fact-list { grid-template-columns: 1fr 1fr; }

  /* same widths as .sidebar / article */
  .site-footer {
    width: 520px;
    margin-inline: auto;
    margin-top: 30px;
    padding: 25px 30px;
  }

}

@media (min-width: 768px) {

  .site-footer {
    width: 700px;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "brand social"
      "links copy";
    align-items: center;
    row-gap: 0;
  }

  .site-footer-brand,
  .site-footer-social { padding-bottom: 20px; }

  .site-footer-social { justify-content: flex-end; }

  .site-footer-nav,
  .site-footer-copy {
    padding-top: 20px;
    border-top: 1px solid var(--jet);
  }

  .site-footer-copy { text-align: right; }

}

@media (min-width: 1024px) {

  .site-footer { width: 950px; }

  /* the menu bar sits in the card's top-right corner from here up (65px tall);
     start the breadcrumb below it so long page names are never hidden */
  article > .breadcrumb { margin-top: 50px; }

}

@media (min-width: 1250px) {

  .site-footer {
    width: auto;
    margin-top: 25px;
  }

  /* style.css stretches the article to the full column height, which now
     includes the footer; let it size to its content instead */
  article { min-height: auto; }

}



/**
 * print (resume page "save as PDF")
 */

@media print {

  body { background: #fff; }

  .sidebar, .navbar, .site-footer, .breadcrumb, .no-print, .skip-link { display: none !important; }

  main { margin: 0; }

  .main-content { width: 100% !important; min-width: 0 !important; }

  article {
    display: block !important;
    width: auto !important;
    border: none;
    box-shadow: none;
    background: #fff;
    padding: 0;
    animation: none;
  }

  article *, .h2, .h3, .h4, .h5 { color: #111 !important; }

  .article-title::after, .timeline-item::before, .timeline-item::after { display: none; }

  .timeline-list { margin-left: 0; }

  a { color: #111 !important; }

}
