/* Public card depth and readable white / forest / green surfaces. */
:root {
  --depth-ink: #142018;
  --depth-muted: #536157;
  --depth-green: #a8e84d;
  --depth-green-dark: #176c37;
  --depth-border: #d9e4da;
  --depth-shadow: 0 2px 5px rgba(13, 30, 17, .05), 0 12px 28px rgba(13, 30, 17, .09), 0 28px 54px rgba(13, 30, 17, .045);
  --depth-shadow-hover: 0 5px 12px rgba(13, 30, 17, .08), 0 20px 42px rgba(13, 30, 17, .15), 0 38px 70px rgba(13, 30, 17, .07);
}

body.site-typography main {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.site-typography main :is(h1, h2, h3, h4) {
  font-family: var(--font-family-heading, "Space Grotesk", "Inter", sans-serif);
  text-wrap: pretty;
}

body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
  .product-card, .service-project-card, .reference-card, .hpc-app-card,
  .hpc-category-card, .book-card, .labs-card) {
  position: relative;
  border: 1px solid var(--depth-border);
  border-radius: 12px;
  box-shadow: var(--depth-shadow);
  transform: perspective(1100px) translateY(0) rotateX(0);
  transform-style: preserve-3d;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
  .product-card, .service-project-card, .reference-card, .hpc-app-card,
  .hpc-category-card, .book-card, .labs-card):hover,
body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
  .product-card, .service-project-card, .reference-card, .hpc-app-card,
  .hpc-category-card, .book-card, .labs-card):focus-within {
  z-index: 1;
  border-color: #a8cfa9;
  box-shadow: var(--depth-shadow-hover);
  transform: perspective(1100px) translateY(-5px) rotateX(.6deg);
}

body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
  .product-card, .service-project-card, .reference-card, .hpc-app-card,
  .hpc-category-card, .book-card, .labs-card) :is(h2, h3) {
  color: var(--depth-ink);
  letter-spacing: -.025em;
}

body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
  .product-card, .service-project-card, .reference-card, .hpc-app-card,
  .hpc-category-card, .book-card, .labs-card) a {
  text-underline-offset: .2em;
}

body.site-typography main .home-content-section.tone-dark .home-card {
  border-color: #35473a;
  background: linear-gradient(145deg, #1d2a20, #141d17 76%);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .18), 0 14px 32px rgba(0, 0, 0, .27), inset 0 1px rgba(255, 255, 255, .055);
}

body.site-typography main .home-content-section.tone-dark .home-card:hover,
body.site-typography main .home-content-section.tone-dark .home-card:focus-within {
  border-color: #78a74d;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .22), 0 22px 42px rgba(0, 0, 0, .35), inset 0 1px rgba(255, 255, 255, .08);
}

body.site-typography main .home-content-section.tone-dark .home-card h3,
body.site-typography main .home-content-section.tone-dark .home-card h3 a { color: #f6fbf4; }
body.site-typography main .home-content-section.tone-dark .home-card p:not(.home-card-kicker),
body.site-typography main .home-content-section.tone-dark .home-card .home-verified { color: #c1cec1; }
body.site-typography main .home-content-section.tone-dark .home-card-link,
body.site-typography main .home-content-section.tone-dark .home-section-link { color: #c9f096; }
body.site-typography main .home-content-section.tone-dark .home-card-link:hover,
body.site-typography main .home-content-section.tone-dark .home-section-link:hover { color: #fff; }
body.site-typography main .home-content-section.tone-dark .home-gpu-specs div { border-color: #3a493d; }
body.site-typography main .home-content-section.tone-dark .home-gpu-specs dt { color: #c0ccbf; }
body.site-typography main .home-content-section.tone-dark .home-gpu-specs dd { color: #f0f7ee; }
body.site-typography main .home-content-section.tone-dark .home-price { color: #d7f3b4; }

body.site-typography main .home-card-kicker {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  color: #315f31;
  letter-spacing: .105em;
}

body.site-typography main .home-card-kicker::before {
  display: inline-block;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  border: 1px solid rgba(49, 95, 49, .32);
  border-radius: 5px;
  background-color: #f0f8e9;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23315f31' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5 12 4l7 3.5-7 3.5-7-3.5Z'/%3E%3Cpath d='m5 12 7 3.5 7-3.5M5 16.5 12 20l7-3.5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px;
}

body.site-typography main .home-content-section.tone-dark .home-card-kicker {
  color: #c5eb9b;
}
body.site-typography main .home-content-section.tone-dark .home-card-kicker::before {
  border-color: rgba(197, 235, 155, .48);
  background-color: #263a29;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c5eb9b' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 7.5 12 4l7 3.5-7 3.5-7-3.5Z'/%3E%3Cpath d='m5 12 7 3.5 7-3.5M5 16.5 12 20l7-3.5'/%3E%3C/svg%3E");
}

body.site-typography main .home-card-visual,
body.site-typography main .home-gpu-mark {
  box-shadow: inset 0 1px rgba(255,255,255,.16), 0 12px 22px rgba(7, 16, 9, .24);
}

body.site-typography main .home-solution-visual,
body.site-typography main .home-industry-visual {
  transform: perspective(900px) rotateX(1.2deg) translateZ(5px);
  transform-origin: center bottom;
}

body.site-typography main .home-solution-visual > b { text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
body.site-typography main .home-gpu-mark { min-height: 120px; border: 1px solid #344b38; border-radius: 8px; }

body.site-typography main .home-factory-grid { perspective: 1400px; border-color: #415447; box-shadow: 0 28px 70px rgba(0,0,0,.3), inset 0 1px rgba(255,255,255,.08); }
body.site-typography main .home-factory-stage { box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
body.site-typography main .home-factory-details { position: relative; z-index: 1; box-shadow: -18px 0 42px rgba(0,0,0,.17), inset 1px 0 rgba(255,255,255,.06); }
body.site-typography main .home-layer-list li { transition: background-color .18s ease, padding-inline .18s ease; }
body.site-typography main .home-layer-list li:hover { padding-inline: 8px; background: rgba(185,243,91,.055); }

body.site-typography main .home-button,
body.site-typography main .home-contact-actions a {
  border-radius: 5px;
  box-shadow: 0 4px 0 rgba(0,0,0,.17), 0 8px 20px rgba(0,0,0,.12);
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}
body.site-typography main .home-button:hover,
body.site-typography main .home-contact-actions a:hover { transform: translateY(-2px); box-shadow: 0 6px 0 rgba(0,0,0,.14), 0 13px 25px rgba(0,0,0,.18); }
body.site-typography main .home-button:active,
body.site-typography main .home-contact-actions a:active { transform: translateY(1px); box-shadow: 0 2px 0 rgba(0,0,0,.16), 0 4px 10px rgba(0,0,0,.12); }

body.site-typography main :is(.reference-card, .architecture-figure, .gpu-spec-panel, .gpu-detail-aside) {
  border-radius: 10px;
  box-shadow: var(--depth-shadow);
}

@media (max-width: 640px) {
  body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
    .product-card, .service-project-card, .reference-card, .hpc-app-card,
    .hpc-category-card, .book-card, .labs-card):hover,
  body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
    .product-card, .service-project-card, .reference-card, .hpc-app-card,
    .hpc-category-card, .book-card, .labs-card):focus-within {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
    .product-card, .service-project-card, .reference-card, .hpc-app-card,
    .hpc-category-card, .book-card, .labs-card, .home-button, .home-layer-list li) {
    transition: none;
  }
  body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
    .product-card, .service-project-card, .reference-card, .hpc-app-card,
    .hpc-category-card, .book-card, .labs-card):hover,
  body.site-typography main :is(.home-card, .course-card, .blog-card, .service-card,
    .product-card, .service-project-card, .reference-card, .hpc-app-card,
    .hpc-category-card, .book-card, .labs-card):focus-within { transform: none; }
}
