:root {
  /* Update the card color here if you want a warmer or cooler tone. */
  --page-bg: #f2ebdf;
  --card-bg: #f7f1e6;
  --text-color: #101010;
  --muted-color: #4d463f;
  --border-color: #c9bda9;
  --shadow-color: rgba(17, 16, 12, 0.1);

  /* Update the font stack here if you want a different serif look. */
  --font-body: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, "Times New Roman", serif;

  /* Adjust the card dimensions and spacing here. */
  --card-width: min(90vw, 640px);
  --card-padding: 2.3rem 2.4rem;
  --spacing: 1.4rem;

  /* Adjust the perspective depth, maximum tilt, and transition speed. */
  --perspective-depth: 900px;
  --max-tilt: 6deg;
  --transition-speed: 260ms;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  background: var(--page-bg);
  color: var(--text-color);
  display: grid;
  place-items: center;
  padding: 1.2rem;
}

.page-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.card-scene {
  width: var(--card-width);
  perspective: var(--perspective-depth);
}

.business-card {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: var(--card-padding);
  box-shadow: 0 10px 24px var(--shadow-color);
  transform-style: preserve-3d;
  transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
  will-change: transform, box-shadow;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3rem;
}

.contact-link,
.site-name,
.tagline,
.card-footer a {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-link {
  color: var(--text-color);
  text-decoration: none;
  font-size: 0.74rem;
}

.site-meta {
  text-align: right;
}

.site-name {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 700;
}

.tagline {
  margin: 0;
  font-size: 0.74rem;
  color: var(--muted-color);
}

.card-main {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0.04em;
}

.title {
  margin: 0.7rem 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-color);
}

.description {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted-color);
}

.card-footer {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  font-size: 0.74rem;
}

.card-footer a {
  color: var(--text-color);
  text-decoration: none;
}

.card-footer a:hover,
.card-footer a:focus {
  text-decoration: underline;
}

.separator {
  color: var(--muted-color);
}

@media (max-width: 700px) {
  /* Reduce the spacing a little on smaller screens. */
  body {
    padding: 1rem;
  }

  .card-top {
    display: block;
    margin-bottom: 2rem;
  }

  .site-meta {
    text-align: left;
    margin-top: 1rem;
  }

  .card-main {
    max-width: none;
  }

  .description {
    font-size: 0.96rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  /* Disable the 3D effect if motion is reduced. */
  .business-card {
    transition: none;
  }

  .card-scene {
    perspective: none;
  }
}
