/* GraviTalk — holding site
   Palette: deep "ink" with warm porcelain type and a single restrained brass accent.
   Signature: quiet "resonance" rings behind the wordmark — presence emanating from stillness. */

:root {
  --ink:        #12191f;
  --ink-edge:   #0c1116;
  --surface:    #19222a;
  --line:       #27323c;
  --porcelain:  #ece7de;
  --muted:      #93a0a8;
  --muted-dim:  #6f7c85;
  --brass:      #c2a46b;
  --brass-soft: rgba(194, 164, 107, 0.16);
  --brass-line: rgba(194, 164, 107, 0.32);

  --measure: 66ch;
  --pad-x: clamp(1.25rem, 5vw, 4rem);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  color: var(--porcelain);
  background:
    radial-gradient(120% 80% at 50% -10%, rgba(194,164,107,0.07), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, var(--ink-edge) 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- shared structure ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--pad-x);
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: 1.4rem;
  letter-spacing: 0.01em;
  color: var(--porcelain);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.05em;
}
.wordmark .dot { color: var(--brass); }

.nav {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--porcelain); }

main { flex: 1 0 auto; }

.site-footer {
  padding: 2rem var(--pad-x) 2.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  color: var(--muted-dim);
  font-size: 0.8rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--porcelain); }
.site-footer .foot-links { display: flex; gap: 1.5rem; }

/* ---------- home / hero ---------- */

.hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(3rem, 12vh, 8rem) var(--pad-x) clamp(4rem, 14vh, 9rem);
  overflow: hidden;
}

.resonance {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 0;
}
.resonance .ring {
  position: absolute;
  border: 1px solid var(--brass-soft);
  border-radius: 50%;
  aspect-ratio: 1;
  animation: breathe 7s ease-in-out infinite;
}
.resonance .ring.r1 { width: min(46vw, 340px); animation-delay: 0s; }
.resonance .ring.r2 { width: min(66vw, 540px); animation-delay: 0.6s; opacity: 0.7; }
.resonance .ring.r3 { width: min(88vw, 760px); animation-delay: 1.2s; opacity: 0.45; }

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

.hero-inner { position: relative; z-index: 1; max-width: 40rem; }

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 1.5rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
}

.hero p.lede {
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  color: var(--muted);
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--porcelain);
  border: 1px solid var(--brass-line);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
}
.status .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 0 0 var(--brass-soft);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(194,164,107,0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(194,164,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(194,164,107,0); }
}

/* ---------- content pages (privacy / contact) ---------- */

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vh, 5rem) var(--pad-x) clamp(3rem, 8vh, 5rem);
}

.page-head { margin-bottom: 3rem; }
.page-head h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 500;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
}
.page-head .meta { color: var(--muted-dim); font-size: 0.85rem; margin: 0; }

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  margin: 2.75rem 0 0.9rem;
  color: var(--porcelain);
}
.prose h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 1.75rem 0 0.5rem;
  color: var(--porcelain);
}
.prose p, .prose li { color: #d7d2c8; }
.prose a { color: var(--brass); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.35rem 0; }
.prose strong { color: var(--porcelain); font-weight: 600; }
.prose hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.prose th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--brass-line);
}
.prose td {
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: #d7d2c8;
  vertical-align: top;
}
.prose tr:last-child td { border-bottom: none; }

/* ---------- contact form ---------- */

.intro { color: var(--muted); max-width: 36rem; margin: 0 0 2.5rem; }

.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--porcelain);
  margin-bottom: 0.5rem;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--porcelain);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dim); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brass-line);
  box-shadow: 0 0 0 3px var(--brass-soft);
}

/* honeypot — hidden from real users */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.btn {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--brass);
  border: 1px solid var(--brass);
  border-radius: 100px;
  padding: 0.75rem 1.8rem;
  transition: transform 0.15s ease, background 0.2s ease;
}
.btn:hover { background: #cdb27b; }
.btn:active { transform: translateY(1px); }

.form-note { color: var(--muted-dim); font-size: 0.8rem; margin-top: 1.25rem; }

/* ---------- links, focus, motion ---------- */

a:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .resonance .ring,
  .status .pulse { animation: none; }
}

@media (max-width: 600px) {
  .masthead { justify-content: center; text-align: center; }
  .nav { gap: 1.25rem; }
  .site-footer { justify-content: center; text-align: center; }
}
