/* ── Reset & Base ─────────────────────────────────── */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #ececea;
  --color-card: #ffffff;
  --color-text: #2c2c2c;
  --color-muted: #6b6b6b;
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.04),
                 0 4px 16px rgba(0, 0, 0, 0.06),
                 0 12px 40px rgba(0, 0, 0, 0.04);
  --radius-card: 2px;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* ── Page layout ─────────────────────────────────── */

.page {
  width: 100%;
  max-width: 960px;
}

/* ── Card ─────────────────────────────────────────── */

.card {
  background: var(--color-card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  display: flex;
  overflow: hidden;
  min-height: 480px;
}

/* ── Photo side ───────────────────────────────────── */

.card__photo {
  flex: 0 0 40%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(8%) contrast(1.02);
  transition: filter 0.4s ease;
}

/* ── Text side ────────────────────────────────────── */

.card__text {
  flex: 1;
  padding: 3rem 3rem 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.card__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.75rem;
}

.card__body {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  line-height: 1.75;
  color: #444;
  opacity: 0.92;
}

.card__body p {
  margin-bottom: 1rem;
  
}

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

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 680px) {
  body {
    padding: 1.25rem 0.75rem;
    align-items: flex-start;
  }

  .card {
    flex-direction: column;
    min-height: auto;
    border-radius: 3px;
  }

  .card__photo {
    flex: none;
    width: 100%;
    padding: 1.5rem 1.5rem 0;
  }

  .card__photo img {
    max-width: 180px;
    margin: 0 auto;
    filter: grayscale(6%) contrast(1.01);
  }

  .card__text {
    padding: 1.75rem 1.5rem 2.25rem;
  }

  .card__subtitle {
    margin-bottom: 1.25rem;
  }

  .card__body {
    font-size: 1rem;
    text-align: left;
  }
}
