/* Small navigation cues and restrained title/button refinements. */
.site-header #site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.site-header #site-nav a::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: .75;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.site-header #site-nav a:hover::after,
.site-header #site-nav a:focus-visible::after {
  transform: translateY(0) rotate(45deg);
}

.hero h1 {
  font-size: clamp(35px, 2.85vw, 46px);
}
.hero-title-line {
  display: block;
  white-space: nowrap;
}
.portfolio-page-intro h1 {
  font-size: 35px;
}

.hero-actions {
  gap: 14px;
}
.hero-actions .button {
  min-width: 176px;
}
.button-outline {
  border: 1px solid var(--coral-dark);
  background: transparent;
  color: var(--ink);
}
.button-outline:hover,
.button-outline:focus-visible {
  background: #fffaf8;
  color: var(--coral-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 26px #8c5f5b25;
}
.hero-actions .button:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 3px;
}
.hero-actions .button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px #8c5f5b20;
}

/* Compact the contact footer and keep only the floating GO TOP control. */
.contact-section {
  padding-block: 50px;
  background: #b66e70;
}
.contact-section h2 { font-size: clamp(28px, 3.2vw, 48px); }
#work-title,
#data-title,
#archive-preview-title { font-size: clamp(24px, 2.2vw, 33px); }
.feature-body h3,
.data-feature-card h3 { font-size: clamp(18px, 1.7vw, 24px); }
.contact-section .eyebrow { color: #fff0ee; }
.contact-section em { text-decoration-color: #eed2d3; }
.contact-email:hover { color: #fff0ee; }
.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: 58px;
  padding-block: 11px;
  font-size: 13px;
  letter-spacing: .06em;
}
.site-footer span:last-child {
  text-align: center;
}

@media (max-width: 1100px) {
  .hero h1 { font-size: clamp(30px, 3.2vw, 38px); }
}
@media (max-width: 850px) {
  .hero-title-line { white-space: normal; }
}
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(33px, 6.5vw, 40px); }
  .portfolio-page-intro h1 { font-size: 35px; }
  .contact-section { padding-block: 38px; }
  .site-footer { grid-template-columns: 1fr; gap: 3px; padding-block: 13px; }
  .site-footer span:last-child { text-align: left; }
}

/* Shared inner-page headers and section navigation. */
.portfolio-page-intro { padding: 39px 0 31px; }
.portfolio-page-intro h1 {
  font-family: var(--sans);
  font-size: 35px;
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -.04em;
  color: var(--ink);
  margin: 0;
}
.portfolio-page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid #d9c8c5;
  padding-top: 13px;
  margin: 21px 0 0;
}
.portfolio-page-links a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8c6c5;
  border-radius: 6px;
  background: #fffaf8;
  color: #765d63;
  padding: 8px 13px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.75;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.portfolio-page-links a::after {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: .75;
  transform: translateY(-2px) rotate(45deg);
}
.portfolio-page-links a:hover,
.portfolio-page-links a:focus-visible {
  background: var(--coral-dark);
  color: #fff;
  text-decoration: none;
}
.portfolio-page-links a:focus-visible {
  outline: 2px solid var(--coral-dark);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .portfolio-page-intro { padding: 28px 0 24px; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: clamp(31px, 8vw, 37px); }
  .hero-actions { gap: 10px; }
  .hero-actions .button { flex: 1; min-width: 0; gap: 10px; padding: 13px 11px; font-size: 13px; }
  .site-footer span:nth-child(2) { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header #site-nav a::after,
  .hero-actions .button { transition: none; }
}

/* Warm navigation and a slightly richer rose gradient on page introductions. */
.site-header {
  background: #fcf7f4;
  border-bottom-color: #e5d4d0;
}
.hero,
.portfolio-page-intro {
  background: linear-gradient(120deg, #f9f3ee 0%, #f4e8e4 60%, #efdada 100%);
}
.portfolio-page-intro { border-bottom-color: #dfcac6; }
.hero-aside .hero-halo { background: #e8c9c5; }
@media (max-width: 760px) {
  .site-header #site-nav { background: #fcf7f4; }
}

/* Homepage link readability and a closer transition into selected work. */
.hero-bio a,
.about-page .contact-links a { font-size: 13px; }
.hero-bio > div { column-gap: 28px; row-gap: 12px; }
.hero-grid { min-height: 390px; }
.selected { padding-block: 42px; }
.data-section { padding-top: 42px; }

/* One shared panel keeps the career entries together. */
.about-page .timeline {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 10px 30px;
  column-gap: 30px;
}
.about-page .timeline article {
  min-width: 0;
  padding-block: 22px;
  border-bottom-color: var(--line);
}
.about-page .timeline article:nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 760px) {
  .about-page .timeline { padding: 6px 22px; }
  .about-page .timeline article { padding-block: 20px; }
  .about-page .timeline article:nth-last-child(2) { border-bottom: 1px solid var(--line); }
}

/* Matching chapter headings in the archive and About pages. */
.archive-chapter-head h2,
.about-page .section-heading h2,
.project-phase h2 {
  font: 700 25px/1.5 var(--serif);
  letter-spacing: .03em;
  color: var(--ink);
  margin: 0;
}
.about-page .section-heading {
  border-top: 1px solid #b98787;
  padding: 15px 0 22px;
  margin-bottom: 12px;
}
.about-page .section-heading > div {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.about-page .section-heading .eyebrow {
  display: block;
  font: 700 10px/1.5 var(--sans);
  letter-spacing: .16em;
  margin: 0;
}
.about-page .section-heading .eyebrow::before { content: none; }
.about-page .section-heading > p {
  max-width: 730px;
  margin: 7px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
@media (max-width: 760px) {
  .archive-chapter-head h2,
  .about-page .section-heading h2,
  .project-phase h2 { font-size: 22px; margin-top: 3px; }
  .about-page .section-heading > div { display: block; }
  .about-page .section-heading > p { font-size: 13px; }
}

/* The same chapter labels, spacing and alignment across all three inner pages. */
.archive-chapter-head > div,
.about-page .section-heading > div,
.project-phase {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.archive-chapter-head > div > span,
.about-page .section-heading .eyebrow,
.project-phase > span {
  font: 700 10px/1.5 var(--sans);
  letter-spacing: .16em;
  color: var(--coral-dark);
  margin: 0;
}
.project-entry h3 { font-size: clamp(18px, 1.7vw, 24px); }
@media (max-width: 760px) {
  .archive-chapter-head > div,
  .about-page .section-heading > div,
  .project-phase { display: block; }
}

.printing-section { padding-block: 42px; }
.printing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.printing-grid figure { margin: 0; min-width: 0; border: 1px solid #e2c9ce; background: #fffaf8; }
.printing-grid figure > a { display: block; background: #f3e7e8; padding: 16px; }
.printing-grid img { width: 100%; height: 390px; object-fit: contain; }
.printing-grid figcaption { padding: 20px 24px; }
.printing-grid figcaption > span { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: var(--coral-dark); }
.printing-grid h3 { font: 600 clamp(18px, 1.7vw, 24px)/1.4 var(--serif); margin: 8px 0; }
.about-page .learning-grid h3 { font: 600 clamp(18px, 1.7vw, 24px)/1.4 var(--serif); }
.printing-grid p { font-size: 14px; color: var(--muted); margin: 0; }
@media (max-width: 760px) {
  .printing-section { padding-block: 30px; }
  .printing-grid { grid-template-columns: 1fr; gap: 18px; }
  .printing-grid img { height: 330px; }
}

/* Featured projects: rose, blush and pale pink with coordinated artwork. */
.data-section { background: #f6e9ed; }
.data-feature-card { border-color: #e2bbc6; }
.data-feature-line {
  background: #b4536b;
  border-color: #b4536b;
  color: #fff;
}
.data-feature-flow { background: #f0cbd5; }
.data-feature-dashboard { background: #fff2f5; }
.data-feature-card p { color: #69515b; }
.data-feature-meta { color: #9a3f58; }
.data-feature-card a { border-top-color: #cc99a9; }
.data-feature-line .data-feature-meta,
.data-feature-line p,
.data-feature-line a { color: #fff; }
.data-feature-line a { border-top-color: #e6a6b8; }
.data-feature-line .data-feature-symbol {
  background: #a1445c;
  border-color: #efb5c5;
}
.data-feature-line .data-feature-symbol i { color: #ffd5df; }
.data-flow-symbol::before { background: #be7189; }
.data-flow-symbol i { background: #fff7f9; border-color: #b75d78; }
.data-flow-symbol i:nth-child(2) { background: #d28da3; }
.data-flow-symbol i:nth-child(3) { background: #fff7f9; }
.data-flow-symbol i:nth-child(4) { background: #ae5270; }
.data-chart-symbol i { background: #d3849d; }
.data-chart-symbol i:nth-child(2) { background: #e8a6b8; }
.data-chart-symbol i:nth-child(4) { background: #b75d78; }
@media (max-width: 760px) {
  .hero-grid { min-height: 0; }
  .hero-aside { padding-bottom: 16px; }
  .selected { padding-block: 30px; }
  .data-section { padding-top: 30px; }
}
