/* Golden Tai Chi — shared styles
   Apple-style: system type, size-specific tracking, soft materials,
   instant press feedback, reduced-motion / transparency / contrast aware. */

:root {
  --bg: #faf7f1;
  --bg-2: #f3ede2;
  --ink: #1d1b18;
  --ink-2: #4a453d;
  --ink-3: #6f685d;
  --gold: #b8862b;
  --gold-deep: #8f6519;
  --gold-soft: #f1e4c6;
  --card: rgba(255, 255, 255, 0.72);
  --hairline: rgba(29, 27, 24, 0.09);
  --radius-l: 28px;
  --radius-m: 16px;
  --shadow-card: 0 1px 2px rgba(60, 45, 15, 0.05), 0 12px 40px -12px rgba(60, 45, 15, 0.18);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  font: 112.5%/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 50% -10%, #fff 0%, rgba(255, 255, 255, 0) 70%),
    radial-gradient(900px 500px at 100% 100%, var(--gold-soft) 0%, rgba(241, 228, 198, 0) 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold-deep); }

/* ---------- Top bar (translucent material) ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.25rem;
  background: rgba(250, 247, 241, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-mask-image: linear-gradient(#000 80%, transparent);
  mask-image: linear-gradient(#000 80%, transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark { width: 26px; height: 26px; flex: none; }

/* ---------- Layout ---------- */
main {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--ink); font-optical-sizing: auto; }

.display {
  margin: 0 0 1rem;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

.display .accent {
  background: linear-gradient(100deg, var(--gold-deep), var(--gold) 55%, #d4a752);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--ink-2);
}

h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.2vw, 2.1rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.018em;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1rem; }

.muted { color: var(--ink-3); }

/* ---------- Card (material) ---------- */
.card {
  position: relative;
  background: var(--card);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-card);
}

/* ---------- Buttons ---------- */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 60px;
  padding: 0 2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #c9973a, var(--gold-deep));
  color: #fff;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset, 0 8px 22px -8px rgba(143, 101, 25, 0.65);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), filter 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(0.97); transition-duration: 80ms; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset, 0 4px 12px -6px rgba(143, 101, 25, 0.6); }
.btn:focus-visible { outline: 3px solid rgba(184, 134, 43, 0.45); outline-offset: 3px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- Entrance (staggered, transform + opacity only) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 700ms var(--ease-out) forwards;
  animation-delay: calc(var(--i, 0) * 90ms + 80ms);
}

@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Footer ---------- */
footer {
  padding: 2rem 1.25rem 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-3);
}

/* ---------- Accessibility preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { transform: none; animation: fade 300ms ease forwards; animation-delay: 0ms; }
  .btn, .btn:active { transition: none; transform: none; }
  @keyframes fade { to { opacity: 1; } }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --ink-2: #1d1b18; --ink-3: #3a362f; --gold-deep: #6e4c0f; }
  .card { background: #fff; border: 2px solid var(--ink); }
}
