/* ========================================
   the-eco.art — Luxury Card Styles
   ======================================== */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #000000;
  --card-bg: #050505;
  --accent: #ffffff;
  --accent-dim: #999999;
  --accent-dark: #555555;
  --text: #cccccc;
  --text-muted: #666666;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.25);
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --card-max: 640px;
  --card-pad: 3rem;
}

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

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.015) 0%, transparent 50%);
  font-family: var(--font-sans);
  color: var(--text);
  padding: 1.5rem;
  line-height: 1.7;
}

/* ---------- Card ---------- */
.card {
  width: 100%;
  max-width: var(--card-max);
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--border-strong);
  border-bottom: 2px solid var(--border-strong);
  position: relative;
  opacity: 0;
  transform: translateY(20px);
  animation: cardFadeIn 1.2s ease-out forwards;
}

.card::before,
.card::after {
  content: '';
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 20%,
    var(--accent) 80%,
    transparent
  );
  opacity: 0.3;
}

.card::before {
  top: 0.75rem;
}

.card::after {
  bottom: 0.75rem;
}

@keyframes cardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card__inner {
  padding: var(--card-pad);
  position: relative;
}

/* ---------- Ornament ---------- */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-size: 0.5rem;
  opacity: 0.3;
}

.ornament--small {
  margin-bottom: 1rem;
  font-size: 0.4rem;
}

.ornament__line {
  display: block;
  width: 3rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ornament__diamond {
  display: block;
  line-height: 1;
}

/* ---------- Emblem ---------- */
.emblem {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.emblem__svg {
  width: 3rem;
  height: 3rem;
  color: var(--accent);
  opacity: 0.4;
  animation: emblemPulse 4s ease-in-out infinite;
}

@keyframes emblemPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.9; transform: scale(1.04); }
}

/* ---------- Tagline ---------- */
.card__tagline {
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 1.75rem;
}

/* ---------- Title ---------- */
.card__title {
  text-align: center;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text);
}

.card__title--block {
  display: block;
}

.card__title--thin {
  font-weight: 300;
}

.card__title--alt {
  display: block;
  font-style: italic;
  margin-top: 0.25rem;
}

.card__title em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Double Wire ---------- */
.double-wire {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  margin: 2rem 0;
}

.double-wire__top,
.double-wire__bottom {
  display: block;
  width: 60%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent) 15%,
    var(--accent) 85%,
    transparent
  );
  opacity: 0.35;
}

.double-wire__bottom {
  width: 40%;
  opacity: 0.2;
}

/* ---------- Body ---------- */
.card__body {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
}

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

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

.card__body strong {
  color: var(--accent);
  font-weight: 500;
}

.card__body em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- Invitation ---------- */
.card__invitation {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.85;
}

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

.card__invitation strong {
  color: var(--accent);
  font-weight: 500;
}

.card__gentleman {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--accent);
  margin-top: 0.5rem;
}

/* ---------- Signature ---------- */
.card__signature {
  text-align: center;
  margin-top: 2.5rem;
}

.card__name {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.15em;
  color: var(--accent);
  margin-bottom: 0.2rem;
}

.card__domain {
  font-family: var(--font-sans);
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  :root {
    --card-pad: 2rem;
  }

  .card__title {
    font-size: 1.1rem;
  }

  .card__body,
  .card__invitation {
    font-size: 0.85rem;
  }

  .ornament__line {
    width: 2rem;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
