:root {
  --bg-deep: #1a2420;
  --bg-mid: #24332c;
  --fog: rgba(232, 220, 198, 0.08);
  --ink: #f4efe6;
  --ink-soft: #c9c0b2;
  --accent: #d9845f;
  --accent-soft: #e8b089;
  --line: rgba(244, 239, 230, 0.14);
  --glow: rgba(217, 132, 95, 0.22);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
  --max: 720px;
  --wide: 980px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--bg-deep);
}

body {
  position: relative;
  line-height: 1.65;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 55% at 15% 10%, rgba(232, 176, 137, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(120, 156, 140, 0.16), transparent 50%),
    linear-gradient(165deg, #1a2420 0%, #24332c 45%, #1e2a33 100%);
  animation: drift 18s ease-in-out infinite alternate;
}

@keyframes drift {
  from { filter: saturate(1) brightness(1); }
  to { filter: saturate(1.08) brightness(1.05); }
}

.site-header {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1.25rem 1.25rem 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, var(--accent-soft), transparent 45%),
    radial-gradient(circle at 70% 70%, rgba(120, 156, 140, 0.7), transparent 50%),
    linear-gradient(145deg, #3a4a42, #1f2a26);
  box-shadow: 0 0 0 1px var(--line), 0 0 28px var(--glow);
  animation: pulse 5.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

.brand-text { display: flex; flex-direction: column; gap: 0.1rem; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  letter-spacing: 0.02em;
}
.brand-tag {
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.1rem;
}

.nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  border-color: var(--accent);
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

.page-home {
  max-width: none;
  min-height: calc(100vh - 10rem);
  display: grid;
  align-items: center;
}

.hero {
  max-width: 40rem;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  animation: rise 1.1s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  line-height: 0.9;
  margin: 0 0 1.25rem;
  letter-spacing: 0.02em;
  background: linear-gradient(120deg, var(--ink) 20%, var(--accent-soft) 70%, var(--ink) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero h1,
.prose h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 0.75rem;
  line-height: 1.15;
}

.lede {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--ink);
  margin: 0 0 1rem;
}

.support {
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.98rem;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: linear-gradient(135deg, #c56d49, #d9845f 55%, #e8b089);
  border-color: transparent;
  color: #1a1a18;
  font-weight: 600;
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  background: var(--fog);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 2rem 0 0.6rem;
}

.prose ul { padding-left: 1.2rem; }
.prose a { color: var(--accent-soft); }
.meta { color: var(--ink-soft); font-size: 0.92rem; }
.optional { color: var(--ink-soft); font-size: 0.85em; }
.notice {
  border-left: 3px solid var(--accent);
  padding: 0.6rem 0.9rem;
  background: var(--fog);
}

.post-list,
.voice-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.post-list li,
.voice-list li {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0;
}

.post-list a {
  color: inherit;
  text-decoration: none;
}

.post-list h2,
.voice-list h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin: 0 0 0.35rem;
}

.signoff {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  margin-top: 2rem;
}

.voice-form,
.name-row,
.chat-form {
  display: grid;
  gap: 0.85rem;
}

.voice-form label,
.name-row label {
  display: grid;
  gap: 0.35rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.18);
  color: var(--ink);
  font: inherit;
  padding: 0.7rem 0.8rem;
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 1px solid var(--accent-soft);
  border-color: var(--accent-soft);
}

.checkbox {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
}

.checkbox input { width: auto; }

.page-chat { max-width: 780px; }

.chat-shell {
  display: grid;
  gap: 1rem;
  min-height: calc(100vh - 12rem);
  grid-template-rows: auto auto 1fr auto;
}

.chat-header h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 2.4rem;
  margin: 0 0 0.35rem;
}

.chat-header p,
.name-row {
  color: var(--ink-soft);
}

.name-controls {
  display: flex;
  gap: 0.5rem;
}

.chat-log {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 1rem 0;
  overflow-y: auto;
  max-height: min(55vh, 560px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.bubble {
  max-width: 92%;
  white-space: pre-wrap;
  animation: fadein 0.35s ease both;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.bubble.aura {
  align-self: flex-start;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
}

.bubble.user {
  align-self: flex-end;
  color: var(--ink-soft);
  border-left: 2px solid var(--accent);
  padding-left: 0.75rem;
}

.chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: space-between;
}

.site-footer {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 1rem 1.25rem 2.5rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
  border-top: 1px solid var(--line);
}

.site-footer a { color: var(--accent-soft); }

.company-credit {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.1rem 0 0;
  opacity: 0.55;
}

.company-logo {
  width: 6.2rem;
  height: auto;
  display: block;
  object-fit: contain;
  opacity: 0.72;
  filter: saturate(0.9) brightness(1.05);
}

.company-credit-text {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .name-controls { flex-direction: column; }
  .chat-log { max-height: 48vh; }
}
