/* Sail-CV website — black font, plain hero, simple-technological */
:root {
  --text: #111;
  --bg: #fafafa;
  --muted: #444;
  --hero-text: #fff;
}

* {
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Hero: plain dark background (no motion) */
.hero {
  position: relative;
  min-height: 28vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.hero--plain {
  background: #0a0a0a;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.hero__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

/* Raster pixel art: scale up with nearest-neighbor (no blur) */
.site-logo {
  display: block;
  width: auto;
  height: clamp(76px, 22vw, 120px);
  max-width: min(95vw, 320px);
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  border-radius: 4px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.hero__brand h1 {
  margin: 0;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--hero-text);
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.0625rem;
}

/* Main content: black font on light background */
.main {
  max-width: 52rem;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.main h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 600;
  color: var(--text);
}

.main h2:first-child {
  margin-top: 0;
}

.main h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.75rem 0 0.5rem;
}

.main h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.35rem;
}

.main h4 + p {
  margin-top: 0;
  font-size: 0.9375rem;
  color: var(--muted);
}

.main p {
  margin: 0 0 1rem;
  color: var(--text);
}

.main a {
  color: #0d47a1;
  text-decoration: none;
}

.main a:hover {
  text-decoration: underline;
}

/* Default article figures on solid/light background */
.main > p img,
.main li img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem 0;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Inline brand icons in “Get the project” (override list img block layout) */
.main li img.inline-brand-icon {
  display: inline-block;
  max-width: none;
  width: 18px;
  height: 18px;
  margin: 0 0.4rem 0 0;
  vertical-align: -0.28em;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

/* 3D reconstruction showcase */
.showcase {
  margin: 1.5rem 0 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.showcase-heading {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

.showcase-heading:first-child {
  margin-top: 0;
}

.showcase-intro {
  font-size: 0.9375rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
}

/* Combined + front only: two matched frames (object-fit) for different GIF aspect ratios */
.showcase-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .showcase-pair {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: stretch;
  }
}

.showcase-figure {
  margin: 0;
  background: #0a0a0a;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid #222;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.showcase-media {
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.showcase-figure img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

.showcase-figure figcaption {
  font-size: 0.8125rem;
  color: #ccc;
  background: #111;
  padding: 0.5rem 0.65rem;
  margin: 0;
  line-height: 1.35;
}

/* Hugging Face / dataset gallery */
.hf-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.25rem 0 0;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (min-width: 640px) {
  .hf-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.hf-gallery__item {
  margin: 0;
}

.hf-gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 0 0.5rem;
  border-radius: 4px;
  background: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.hf-gallery__item figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}

.hf-gallery__item figcaption a {
  color: #0d47a1;
}

/* Wing / other-industries example (single figure, below Other industries copy) */
.other-industries-figure {
  margin: 1rem 0 0;
  max-width: 36rem;
}

.other-industries-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  background: #f5f5f5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.other-industries-figure figcaption {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0.5rem 0 0;
}

.main ul {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}

.main li {
  margin: 0.25rem 0;
}

/* About the author — portrait as section “mark” */
.about-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.35rem;
  text-align: center;
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

@media (min-width: 560px) {
  .about-author {
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 1.35rem;
  }
}

.about-author__photo {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

.about-author__body {
  min-width: 0;
}

.about-author__body p {
  margin: 0 0 0.4rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.about-author__body p:last-child {
  margin-bottom: 0;
}

.about-author__name {
  font-size: 1.0625rem;
  margin-bottom: 0.35rem !important;
}

.about-author__bio {
  color: var(--muted);
}

/* Footer */
.footer {
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.875rem;
  border-top: 1px solid #e8e8e8;
  background: #fff;
}

.footer p {
  margin: 0;
}

.footer__meta {
  margin-top: 0.75rem !important;
  font-size: 0.8125rem;
  line-height: 1.45;
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (min-width: 640px) {
  .hero {
    min-height: 32vh;
  }
}
