:root {
  --ink: #4a3728;
  --muted: #8a7869;
  --paper: #fffdf9;
  --canvas: #f2ede6;
  --line: rgba(74, 55, 40, 0.14);
  --soft: #eee4d8;
  --shadow: 0 28px 80px rgba(74, 55, 40, 0.13);
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/CormorantGaramond-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-Medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/Manrope-SemiBold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: var(--canvas); }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(195, 157, 116, 0.24), transparent 31rem),
    radial-gradient(circle at 96% 100%, rgba(141, 105, 78, 0.16), transparent 26rem),
    var(--canvas);
  font-family: "Manrope", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.page-shell {
  min-height: 100svh;
  padding: max(26px, env(safe-area-inset-top)) 18px max(26px, env(safe-area-inset-bottom));
  display: grid;
  place-content: center;
}

.card {
  position: relative;
  width: min(100%, 440px);
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card::before {
  content: "";
  position: absolute;
  top: -92px;
  right: -72px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(74, 55, 40, 0.08);
  border-radius: 50%;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 54px;
}

.logo {
  display: block;
  width: 126px;
  height: auto;
}

.brand-tagline {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.4;
  text-transform: uppercase;
}

.identity { margin-bottom: 30px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 340px;
  font-size: clamp(40px, 12vw, 56px);
  line-height: 0.94;
}

.role {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.brand-name {
  color: var(--ink);
  letter-spacing: 0.08em;
}

.primary-action {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  border-radius: 999px;
  color: #fffdf9;
  background: var(--ink);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-action:hover { background: #38281d; transform: translateY(-1px); }
.primary-action:active { transform: translateY(0); }
.primary-action svg { width: 18px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.contact-list {
  border-top: 1px solid var(--line);
}

.contact-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.contact-row:hover .arrow { transform: translate(2px, -2px); }

.icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
}

.icon svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-row small, .contact-row strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-row small {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-row strong { font-size: 15px; font-weight: 500; }
.arrow { color: var(--muted); transition: transform 160ms ease; }

.share-section {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  margin-top: 30px;
  padding: 22px;
  border-radius: 22px;
  background: #f5efe7;
}

.share-copy .eyebrow { margin-bottom: 7px; }
.share-copy h2 { font-size: 25px; }
.share-copy > p:not(.eyebrow) { margin: 6px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.share-button {
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.qr-frame {
  display: grid;
  padding: 9px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(74, 55, 40, 0.08);
}

.qr-frame img { display: block; width: 116px; height: 116px; }

.footer {
  margin: 17px 0 0;
  color: rgba(74, 55, 40, 0.56);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: max(22px, env(safe-area-inset-bottom));
  z-index: 5;
  padding: 10px 16px;
  border-radius: 999px;
  opacity: 0;
  color: #fff;
  background: var(--ink);
  font-size: 12px;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible { opacity: 1; transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid #9b7558; outline-offset: 3px; }

@media (max-width: 420px) {
  .page-shell { padding-inline: 10px; }
  .card { padding: 27px 22px; border-radius: 25px; }
  .brand { margin-bottom: 44px; }
  .share-section { gap: 15px; padding: 18px; }
  .qr-frame { padding: 7px; }
  .qr-frame img { width: 92px; height: 92px; }
}

@media (max-width: 350px) {
  .share-section { grid-template-columns: 1fr; }
  .qr-frame { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
