/* ============================================================
   Sathvani — digital visiting card
   Tokens mirror www.sathvani.com: near-black ground, teal
   accent, Cormorant Garamond display over Inter UI.
   ============================================================ */

:root {
  --bg:        #050508;
  --surface:   rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .03);
  --line:      rgba(255, 255, 255, .09);
  --line-soft: rgba(255, 255, 255, .06);

  --text:      #ffffff;
  --muted:     #a0a8b8;
  --muted-dim: rgba(160, 168, 184, .7);

  --accent:      #00e5cc;
  --accent-soft: rgba(0, 229, 204, .5);
  --accent-wash: rgba(0, 229, 204, .06);

  --display: "Cormorant Garamond", Georgia, serif;
  --sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --gutter: 20px;
  --pill: 999px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* soft teal bloom behind the masthead, echoing the site's hero */
body::before {
  content: "";
  position: fixed;
  top: -280px;
  left: 50%;
  width: 900px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 229, 204, .10), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #04120f;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 13px;
  z-index: 10;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- page shell ---------- */

.page {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  padding: clamp(52px, 9vw, 104px) var(--gutter) 56px;
}

/* ---------- masthead ---------- */

.masthead { text-align: center; }

/* logo-mark.png is the supplied logo with its black ground
   converted to transparency (see README). */
.logo {
  display: block;
  width: 76px;
  height: 76px;
  margin: 0 auto 26px;
}

.company {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(38px, 6.5vw, 58px);
  letter-spacing: -.02em;
  line-height: 1.1;
}

.legal-name {
  margin: 14px 0 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.legal-name:empty { display: none; }

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 36px auto 0;
  max-width: 200px;
}
.rule-line {
  height: 1px;
  flex: 1;
  background: linear-gradient(to right, transparent, var(--line), transparent);
}
.rule-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 10px rgba(0, 229, 204, .6);
}

/* ---------- cards ---------- */

.cards {
  margin: clamp(44px, 6vw, 64px) 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2.6vw, 24px);
}

@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: clamp(26px, 4vw, 34px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* teal hairline along the top edge */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--accent-soft), transparent);
}

.card-name {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(25px, 3.4vw, 31px);
  letter-spacing: -.01em;
  line-height: 1.2;
}

.card-title {
  margin: 10px 0 0;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-divider {
  height: 1px;
  background: var(--line-soft);
  margin: 26px 0 24px;
}

/* ---------- contact rows ---------- */

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 16px;
}

.contact-row {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.contact-row svg {
  width: 15px;
  height: 15px;
  margin-top: 4px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .9;
}

.contact-label {
  display: block;
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 3px;
}

.contact-value {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  word-break: break-word;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.contact-value:hover {
  color: var(--text);
  border-bottom-color: var(--accent-soft);
}

/* ---------- actions ---------- */

.card-actions {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn {
  flex: 1 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid var(--accent-soft);
  background: var(--accent-wash);
  color: var(--text);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease;
}
.btn:hover {
  background: rgba(0, 229, 204, .13);
  border-color: var(--accent);
}

/* brand dot, as on the site's pill buttons */
.btn-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
  box-shadow: 0 0 8px rgba(0, 229, 204, .7);
}

.btn-secondary {
  background: var(--surface-2);
  border-color: rgba(255, 255, 255, .16);
  color: var(--muted);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .3);
  color: var(--text);
}

.btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- colophon ---------- */

.colophon {
  margin-top: clamp(52px, 7vw, 76px);
  border-top: 1px solid var(--line-soft);
  padding-top: 34px;
}

.colophon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.colophon-label {
  margin: 0 0 10px;
  font-size: 9px;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
}

.colophon-body {
  margin: 0;
  font-style: normal;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.colophon-body a {
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: border-color .16s ease, color .16s ease;
}
.colophon-body a:hover {
  color: var(--text);
  border-bottom-color: var(--accent-soft);
}

.fineprint {
  margin: 34px 0 0;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted-dim);
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 16px);
  background: rgba(10, 14, 18, .96);
  border: 1px solid var(--accent-soft);
  color: var(--text);
  padding: 11px 20px;
  border-radius: var(--pill);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* ---------- print (ink-friendly inversion) ---------- */

@media print {
  body { background: #fff; color: #000; }
  body::before { display: none; }
  .page { padding: 24px; max-width: none; }
  .logo { filter: brightness(0); }
  .company, .card-name { color: #000; }
  .card {
    background: #fff;
    border: 1px solid #bbb;
    break-inside: avoid;
  }
  .card::before { display: none; }
  .card-title, .colophon-label { color: #007a6d; }
  .contact-value, .colophon-body { color: #222; }
  .legal-name, .contact-label, .fineprint { color: #555; }
  .card-actions, .skip-link, .toast { display: none !important; }
}
