:root {
  --font-display: "Tinos", Georgia, serif;
  --page-background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.24), transparent 28%),
    linear-gradient(180deg, hsl(190 25% 78%) 0%, hsl(186 30% 86%) 100%);
  --card-background: linear-gradient(135deg, hsl(195 38% 32%) 0%, hsl(185 32% 48%) 55%, hsl(180 30% 62%) 100%);
  --header-background: hsl(195 38% 30% / 0.55);
  --shadow-card: 0 30px 60px -20px rgba(22, 62, 73, 0.32);
  --shadow-text-strong: 1px 1px 3px rgba(38, 38, 38, 0.6);
  --shadow-text-soft: 0 1px 2px rgba(0, 0, 0, 0.2);
  --footer-stripe: linear-gradient(90deg, hsl(28 90% 55%) 0%, hsl(40 30% 95%) 50%, hsl(130 55% 35%) 100%);
  --footer-background: hsl(195 42% 22%);
  --text-white-soft: rgba(255, 255, 255, 0.95);
  --text-white-muted: rgba(255, 255, 255, 0.85);
  --saffron: hsl(28 90% 55%);
  --india-green: hsl(130 55% 35%);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body.page-body {
  min-height: 100vh;
  padding: 0;
  font-family: var(--font-display);
  color: white;
  background: var(--page-background);
}

.page-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  justify-content: center;
}

.business-card {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  max-width: 720px;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.card-background {
  position: absolute;
  inset: 0;
  background: var(--card-background);
}

.card-header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.75rem;
  padding: 1rem 1rem 0;
  background: var(--header-background);
}

.header-label,
.header-date {
  margin: 0;
  align-self: start;
  font-size: 0.75rem;
  line-height: 1;
  color: var(--text-white-muted);
}

.header-label {
  min-width: 0;
  margin-top: 5px;
  font-weight: 300;
  letter-spacing: 0.2em;
  white-space: nowrap;
  text-transform: uppercase;
}

.header-label span {
  display: inline;
}

.header-label span + span::before,
.header-date span + span::before {
  content: " ";
}

.header-event,
.header-role {
  margin: 0;
  align-self: start;
  white-space: nowrap;
  line-height: 1;
  color: white;
  text-shadow: var(--shadow-text-strong);
  text-transform: uppercase;
}

.header-event {
  font-family: "Anton", Impact, sans-serif;
  justify-self: end;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0.085em;
  text-align: right;
}

.header-role {
  min-width: 0;
  font-family: "Bebas Neue", "Arial Narrow", Arial, sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.header-date {
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  margin-top: 10px;
  font-weight: 300;
  justify-self: end;
  letter-spacing: 0.08em;
  text-align: right;
}

.header-date span {
  display: inline;
}

.arc-pattern {
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.arc-pattern-left {
  bottom: -2.5rem;
  left: -2.5rem;
  height: 85%;
  width: 85%;
  opacity: 0.25;
}

.arc-pattern-right {
  top: -2.5rem;
  right: -5rem;
  height: 70%;
  width: 70%;
  opacity: 0.15;
}

.candidate-portrait {
  position: absolute;
  right: -5rem;
  bottom: 0;
  z-index: 10;
  height: 88%;
  width: auto;
  object-fit: contain;
  object-position: bottom;
  user-select: none;
}

.card-content {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 6rem 1.25rem 4rem;
}

.identity-block {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.candidate-name {
  margin: 0;
  font-family: "Oswald", "Arial Narrow", Arial, sans-serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
  color: white;
  text-shadow: var(--shadow-text-soft);
}

.candidate-id {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: white;
}

.support-group {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.support-copy {
  max-width: 56%;
}

.support-text {
  margin: 0;
  font-size: 1.16rem;
  line-height: 1.625;
  color: var(--text-white-soft);
}

.contact-wrap {
  max-width: 62%;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(15, 23, 42, 0.22)),
    rgba(255, 255, 255, 0.08);
  padding: 0.75rem 1.5rem;
  color: rgba(248, 250, 252, 0.94);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 12px 30px -16px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  transition:
    background 200ms ease,
    border-color 200ms ease,
    color 200ms ease;
}

.contact-button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.28)),
    rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.98);
}

.contact-icon {
  height: 1.3rem;
  width: 1.3rem;
  flex-shrink: 0;
}

.family-block {
  color: white;
}

.family-line {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.family-isc {
  display: flex;
  align-items: baseline;
}

.family-text-white {
  color: white;
}

.family-text-saffron {
  color: var(--saffron);
}

.family-text-green {
  color: var(--india-green);
}

.family-subline {
  margin: 0.5rem 0 0 3.5rem;
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: white;
}

.card-footer {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 30;
}

.footer-stripe {
  height: 0.375rem;
  width: 100%;
  background: var(--footer-stripe);
}

.footer-panel {
  background: var(--footer-background);
  padding: 0.625rem 1rem;
  text-align: center;
}

.footer-copy {
  margin: 0;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: var(--text-white-soft);
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .card-header {
    gap: 0.25rem 1.25rem;
    padding: 1.25rem 1.75rem 0;
  }

  .header-label,
  .header-date,
  .header-event {
    font-size: 1.3rem;
  }

  .header-event {
    letter-spacing: 0.18em;
  }

  .header-role {
    font-size: 2.2rem;
    letter-spacing: 0.16em;
  }

  .candidate-portrait {
    height: 90%;
  }

  .card-content {
    padding: 7rem 1.75rem 5rem;
  }

  .candidate-name {
    font-size: 3.8rem;
  }

  .candidate-id {
    font-size: 1.875rem;
  }

  .support-group {
    gap: 4.25rem;
  }

  .support-copy {
    max-width: 50%;
  }

  .support-text {
    font-size: 1.28rem;
  }

  .contact-button {
    padding: 0.875rem 1.75rem;
    font-size: 1.08rem;
  }

  .family-line {
    font-size: 3rem;
  }

  .family-subline {
    margin-left: 4rem;
    font-size: 2.25rem;
  }

  .footer-panel {
    padding-block: 0.75rem;
  }

  .footer-copy {
    font-size: 0.75rem;
  }
}

@media (min-width: 665px) {
  .header-event {
    font-family: "Montserrat", Arial, sans-serif;
    font-size: 1.65rem;
    font-weight: 700;
  }

  .header-role {
    font-size: 2.8rem;
  }

  .identity-block {
    transform: translateY(-30px);
  }

  .card-content {
    padding: 8rem 2.25rem 5rem;
  }

  .candidate-name {
    font-size: 4.5rem;
  }

  .candidate-id {
    font-size: 2.25rem;
  }

  .support-group {
    gap: 5rem;
  }

  .support-text {
    font-size: 1.45rem;
  }

  .family-line {
    font-size: 3.75rem;
  }

  .family-subline {
    margin-left: 5rem;
    font-size: 3rem;
  }

  .footer-copy {
    font-size: 0.875rem;
  }
}

@media (min-width: 1024px) {
  .identity-block {
    transform: none;
  }

  body.page-body {
    padding: 1.5rem;
  }

.business-card {
    min-height: calc(100vh - 3rem);
  }

  .candidate-name {
    font-size: 4.8rem;
  }
}

@media (width: 1024px) {
  .identity-block {
    transform: translateY(-30px);
  }
}

@media (max-width: 640px) {
  .candidate-portrait {
    height: 82%;
  }

  .candidate-name {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .candidate-portrait {
    height: 80%;
  }

  .candidate-name {
    max-width: none;
    font-size: 3.1rem;
  }

  .contact-button {
    padding-inline: 0.9rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 390px) {
  .candidate-portrait {
    right: -5.4rem;
    height: 77%;
  }

  .candidate-name {
    max-width: none;
    font-size: 2.7rem;
  }

  .contact-button {
    gap: 0.4rem;
    padding-inline: 0.8rem;
    padding-block: 0.55rem;
    font-size: 0.68rem;
    letter-spacing: 0.1em;
  }

  .header-label,
  .footer-copy {
    letter-spacing: 0.14em;
  }

  .family-subline {
    margin-left: 2.25rem;
  }
}

@media (max-width: 360px) {
  .candidate-portrait {
    right: -5.8rem;
    height: 74%;
  }

  .candidate-name {
    max-width: none;
    font-size: 2.4rem;
  }

  .contact-button {
    max-width: 10rem;
    justify-content: center;
  }
}

@media (max-width: 380px) and (min-width: 320px) {
  .header-label {
    margin-top: 0;
    white-space: normal;
  }

  .header-label span {
    display: block;
  }

  .header-label span:first-child,
  .header-date span:first-child {
    margin-bottom: 3px;
  }

  .header-date span {
    display: block;
  }

  .header-label span + span::before,
  .header-date span + span::before {
    content: "";
  }

  .header-date {
    margin-top: 5px;
  }
}


@media (min-width: 320px) and (max-width: 350px) {
  .header-label {
    transform: translateX(-10px);
  }

  .header-event {
    transform: translateX(10px);
  }

  .header-role {
    transform: translateX(-10px);
  }

  .header-date {
    font-size: 0.68rem;
    transform: translateX(10px);
  }
}
