/* Shared homepage section, reveal, button, and static-section layout styles. */

.hdc-home-page {
  display: block;
  max-width: 100vw;
  position: relative;
  width: 100vw;
}

.wp-block-post-content > .hdc-home-page.alignfull {
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

.hdc-home-page__shell {
  box-sizing: border-box;
  isolation: isolate;
  margin: 0;
  max-width: none;
  padding: 0 0 clamp(2.75rem, 6vw, 4rem);
  position: relative;
  width: 100%;
}

.hdc-home-page__shell > * {
  position: relative;
  z-index: 1;
}

.hdc-home-page__shell::before {
  background:
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(var(--surface-1)) 16%, hsl(var(--surface-1)) 84%, hsl(var(--background)) 100%),
    radial-gradient(48% 32% at 14% 18%, hsl(var(--warning) / 0.14), transparent 68%),
    radial-gradient(40% 28% at 86% 42%, hsl(var(--accent) / 0.12), transparent 72%),
    url("../images/backgrounds/theme-surface-learning-paper.webp");
  background-blend-mode: normal, multiply, screen, normal;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: auto, auto, auto, cover;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

[data-theme="dark"] .hdc-home-page__shell::before {
  opacity: 0;
}

.hdc-home-page__status,
.hdc-home-page__copy,
.hdc-home-page__empty {
  color: hsl(var(--text-body));
  line-height: 1.7;
  margin: 0;
}

.hdc-home-page__status {
  box-sizing: border-box;
  margin: 0 auto;
  max-width: 1400px;
  padding-inline: 2rem;
}

.hdc-home-page__section {
  box-sizing: border-box;
  display: grid;
  gap: 1rem;
  margin: 0 auto;
  max-width: 1400px;
  padding-inline: 2rem;
  padding-top: 3rem;
}

.wp-block-post-content.has-global-padding > .hdc-home-page__section {
  margin-left: calc(50% - min(50vw, 700px)) !important;
  margin-right: calc(50% - min(50vw, 700px)) !important;
  width: min(100vw, 1400px);
}

.hdc-home-page__section.has-global-padding > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  margin-left: 0 !important;
  margin-right: 0 !important;
  max-width: none;
}

.hdc-home-page__section:not(:first-child) {
  border-top: 1px solid hsl(var(--border));
}

.hdc-home-page__section-header {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.hdc-home-page__section-link,
.hdc-home-page__text-link,
.hdc-home-page__card-cta {
  align-items: center;
  color: hsl(var(--text-accent));
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.35rem;
}

.hdc-home-page__eyebrow {
  color: hsl(var(--text-meta));
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

/* Source renders the resume + contact-cta eyebrows in the higher-contrast
   body tone (text-text-body) rather than the default meta tone. */
.hdc-home-page__eyebrow--body {
  color: hsl(var(--text-body));
}

.hdc-home-page__section-title {
  color: hsl(var(--foreground));
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.75rem, 3vw, 2.2rem);
  line-height: 1.12;
  margin: 0;
}

.hdc-home-page__action-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.hdc-home-page__action-icon-svg {
  display: block;
}

.hdc-home-page__button {
  align-items: center;
  background: hsl(var(--primary));
  border: 1px solid hsl(var(--primary));
  border-radius: var(--radius-control);
  color: hsl(var(--primary-foreground));
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 0.4rem;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.15rem;
  text-decoration: none;
  transition:
    background-color var(--motion-duration-hover) var(--motion-ease-standard),
    border-color var(--motion-duration-hover) var(--motion-ease-standard),
    box-shadow var(--motion-duration-hover) var(--motion-ease-standard),
    color var(--motion-duration-hover) var(--motion-ease-standard),
    transform var(--motion-duration-hover) var(--motion-ease-standard);
}

.hdc-home-page__button:hover {
  background: hsl(var(--primary) / 0.9);
  border-color: hsl(var(--primary) / 0.9);
  transform: translateY(-1px);
}

.hdc-home-page__button--secondary {
  background: transparent;
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
}

.hdc-home-page__button--secondary:hover {
  background: hsl(var(--interactive-surface-hover));
  border-color: hsl(var(--interactive-border-hover));
  color: hsl(var(--foreground));
}

.hdc-home-page__section-title--intro {
  max-width: 24ch;
}

.hdc-home-page__throughline-grid {
  display: grid;
  gap: 1.5rem;
}

.hdc-home-page__throughline-story {
  border: 1px solid hsl(var(--border-emphasis));
  border-radius: var(--radius-surface);
  padding: clamp(1.5rem, 3vw, 2rem);
}

.hdc-home-page__throughline-narrative {
  display: grid;
  gap: 1.25rem;
}

.hdc-home-page__throughline-paragraph {
  color: hsl(var(--text-body));
  line-height: 1.7;
  margin: 0;
}

.hdc-home-page__throughline-quote-card {
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-surface);
  display: grid;
  gap: 1rem;
  height: fit-content;
  padding: 2rem;
}

.hdc-home-page__throughline-quote-header {
  align-items: center;
  color: hsl(var(--text-subtle));
  display: flex;
  gap: 0.75rem;
}

.hdc-home-page__throughline-blockquote {
  display: grid;
  gap: 1rem;
  margin: 0;
}

.hdc-home-page__throughline-quote-text {
  color: hsl(var(--text-accent));
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.hdc-home-page__throughline-quote-footer {
  color: hsl(var(--text-subtle));
  font-size: 0.875rem;
  margin: 0;
}

.hdc-home-page__resume-grid {
  display: grid;
  gap: 1.5rem;
}

.hdc-home-page__resume-card {
  background: transparent;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-surface);
  box-shadow: var(--shadow-surface-1);
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
}

.hdc-home-page__resume-card--accent {
  border-color: hsl(var(--border-emphasis));
  box-shadow: var(--shadow-surface-strong);
}

.hdc-home-page__resume-stack {
  display: grid;
  gap: 0.85rem;
}

.hdc-home-page__resume-snapshot {
  display: grid;
  gap: 0.2rem;
}

.hdc-home-page__resume-snapshot-label {
  color: hsl(var(--text-accent));
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
}

.hdc-home-page__resume-snapshot-items {
  align-items: center;
  color: hsl(var(--text-subtle));
  display: inline-flex;
  flex-wrap: wrap;
  font-size: 0.78rem;
  gap: 0.35rem;
  line-height: 1.6;
  margin: 0;
}

.hdc-home-page__inline-dot {
  color: hsl(var(--text-meta));
  font-size: 0.85em;
}

.hdc-home-page__badges,
.hdc-home-page__inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hdc-home-page__badge {
  align-items: center;
  background: hsl(var(--surface-tint-soft));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius-pill);
  color: hsl(var(--text-meta));
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  min-height: 1.75rem;
  padding: 0.25rem 0.55rem;
}

.hdc-home-page__list {
  display: grid;
  gap: 0.95rem;
  list-style: disc;
  margin: 0;
  padding-left: 1.2rem;
}

.hdc-home-page__list li {
  color: hsl(var(--text-body));
  line-height: 1.65;
}

.hdc-home-page__list li::marker {
  color: hsl(var(--text-accent));
}

.hdc-home-page__card-title {
  color: hsl(var(--foreground));
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.25rem;
  line-height: 1.12;
  margin: 0;
}

.hdc-home-page__card-copy {
  color: hsl(var(--text-body));
  line-height: 1.6;
  margin: 0;
}

.hdc-home-page__cta-card {
  border: 1px solid hsl(var(--border-emphasis));
  border-radius: var(--radius-surface);
  overflow: hidden;
  padding: clamp(1.5rem, 4vw, 2rem);
}

.hdc-home-page__cta-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hdc-home-page__cta-body {
  display: grid;
  gap: 0.85rem;
  max-width: 42rem;
}

.hdc-home-page__cta-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
}

@keyframes hdc-home-reveal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes hdc-home-reveal-fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hdc-home-reveal-slide-left {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes hdc-home-pulse {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 0.4; }
}

.hdc-reveal {
  opacity: 0;
}

.hdc-reveal.is-visible {
  animation: hdc-home-reveal-fade-up var(--motion-duration-medium, 260ms) cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--reveal-index, 0) * var(--motion-duration-fast, 160ms));
}

.hdc-reveal.hdc-reveal--fade-in.is-visible {
  animation-name: hdc-home-reveal-fade-in;
  animation-duration: var(--motion-duration-slow, 420ms);
}

.hdc-reveal.hdc-reveal--slide-left.is-visible {
  animation-name: hdc-home-reveal-slide-left;
}

@media (min-width: 640px) {
  .hdc-home-page__cta-actions {
    align-items: center;
    flex-direction: row;
    width: auto;
  }
}

@media (min-width: 960px) {
  .hdc-home-page__resume-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .hdc-home-page__cta-layout {
    align-items: flex-end;
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1024px) {
  .hdc-home-page__throughline-grid {
    grid-template-columns: minmax(0, 1fr) 20rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hdc-home-page__button,
  .hdc-home-page__work-card,
  .hdc-home-page__post-card {
    transition: none;
  }

  .hdc-reveal {
    opacity: 1;
  }

  .hdc-reveal.is-visible {
    animation: none;
  }

  .hdc-home-page__work-card--skeleton {
    animation: none;
  }
}
