/* Moon Eye Collective — mooneyecollective.com
   Tokens mirror the Shamanda app design system (references/brand-context.md). */

:root {
  --ink: #0d0b09;
  --ink-2: #1a1412;
  --gold: #c4953a;
  --gold-light: #e8c87a;
  --gold-dark: #a67c2e;
  --paper: #f5ede3;
  --muted: rgba(245, 237, 227, 0.45);
  --faint: rgba(245, 237, 227, 0.25);
  --card: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.07);
  --glow: rgba(196, 149, 58, 0.15);

  --display: "Cormorant Garamond", Georgia, serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;

  --measure: 34rem;
  --gutter: clamp(1.5rem, 6vw, 5rem);
}

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

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.75;
  font-weight: 400;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* --- atmosphere ---------------------------------------------------------- */

/* Two soft gold fields, offset from centre so the page never reads symmetrical. */
.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60rem 45rem at 72% -8%, var(--glow), transparent 62%),
    radial-gradient(48rem 40rem at 8% 108%, rgba(196, 149, 58, 0.09), transparent 60%),
    linear-gradient(178deg, var(--ink-2) 0%, var(--ink) 55%);
}

/* Film grain — keeps large flat darks from banding on OLED phones. */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 2;
}

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

.shell {
  max-width: 62rem;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 2.25rem 0 0;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--paper);
  text-decoration: none;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mark:hover {
  color: var(--gold-light);
}

.mark svg {
  width: 1.4rem;
  height: 1.4rem;
  flex: none;
}

.masthead nav {
  display: flex;
  gap: 1.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.masthead nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--gold-light);
}

/* --- the moon eye -------------------------------------------------------- */

.hero {
  padding: clamp(4rem, 14vh, 9rem) 0 clamp(3rem, 9vh, 6rem);
  border-top: none;
}

.eye {
  width: clamp(7rem, 17vw, 10.5rem);
  height: clamp(7rem, 17vw, 10.5rem);
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
  animation: breathe 11s ease-in-out infinite;
}

.eye .iris {
  transform-box: fill-box;
  transform-origin: center;
  animation: dilate 11s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { opacity: 0.82; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.035); }
}

@keyframes dilate {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(0.9); }
}

.hero h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.9rem, 9.5vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin: 0 0 clamp(1.75rem, 4vw, 2.5rem);
  max-width: 12ch;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.lede {
  font-size: clamp(1.1rem, 2.4vw, 1.4rem);
  line-height: 1.65;
  color: rgba(245, 237, 227, 0.78);
  max-width: var(--measure);
  margin: 0;
  font-weight: 400;
}

/* --- sections ------------------------------------------------------------ */

section {
  padding: clamp(3.5rem, 9vw, 6.5rem) 0;
  border-top: 1px solid var(--line);
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.5rem;
  font-weight: 500;
}

h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 1.5rem;
  max-width: 16ch;
}

section p {
  max-width: var(--measure);
  color: rgba(245, 237, 227, 0.74);
  margin: 0 0 1.25rem;
}

section p:last-child {
  margin-bottom: 0;
}

/* Offset column — breaks the centred-stack rhythm without a heavy grid. */
.offset {
  padding-left: clamp(0rem, 12vw, 9rem);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0.5rem 1.1rem 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.status::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(196, 149, 58, 0.6);
  animation: pulse 3.2s ease-out infinite;
}

@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(196, 149, 58, 0.55); }
  70%  { box-shadow: 0 0 0 0.55rem rgba(196, 149, 58, 0); }
  100% { box-shadow: 0 0 0 0 rgba(196, 149, 58, 0); }
}

/* --- values ---------------------------------------------------------------*/

.values {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
}

@media (min-width: 40rem) {
  .values {
    grid-template-columns: repeat(2, 1fr);
  }
  .values li:first-child {
    grid-column: 1 / -1;
  }
}

.values li {
  background: rgba(13, 11, 9, 0.72);
  padding: 1.6rem 1.5rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(245, 237, 227, 0.9);
  transition: background 0.4s ease, color 0.4s ease;
}

.values li:hover {
  background: rgba(196, 149, 58, 0.07);
  color: var(--gold-light);
}

/* --- giving streams ------------------------------------------------------ */

.streams {
  list-style: none;
  padding: 0;
  margin: 2rem 0 0;
  max-width: var(--measure);
}

.streams li {
  position: relative;
  padding: 1.15rem 0 1.15rem 2.25rem;
  border-bottom: 1px solid var(--line);
  color: rgba(245, 237, 227, 0.82);
}

.streams li:first-child {
  border-top: 1px solid var(--line);
}

.streams li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 1.85rem;
  width: 0.75rem;
  height: 1px;
  background: var(--gold);
}

/* --- legal / prose pages ------------------------------------------------- */

.doc {
  max-width: 44rem;
  padding: clamp(3rem, 8vw, 5rem) 0 clamp(4rem, 10vw, 7rem);
}

.doc h1 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 1rem;
}

.stamp {
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}

.doc h2 {
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--gold-light);
  margin: 3rem 0 1rem;
  max-width: none;
  display: flex;
  gap: 0.85rem;
  align-items: baseline;
}

.doc h2 .n {
  font-size: 0.85rem;
  font-family: var(--body);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gold-dark);
  flex: none;
  padding-top: 0.15rem;
}

.doc h3 {
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--paper);
  margin: 2rem 0 0.65rem;
}

.doc p,
.doc li {
  color: rgba(245, 237, 227, 0.76);
  max-width: none;
}

.doc p {
  margin: 0 0 1.15rem;
}

.doc ul {
  margin: 0 0 1.15rem;
  padding-left: 1.15rem;
}

.doc li {
  margin-bottom: 0.6rem;
  padding-left: 0.35rem;
}

.doc li::marker {
  color: var(--gold-dark);
}

.doc strong {
  color: var(--paper);
  font-weight: 600;
}

.doc a,
.inline-link {
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(232, 200, 122, 0.32);
  transition: border-color 0.3s ease;
}

.doc a:hover,
.inline-link:hover {
  border-bottom-color: var(--gold-light);
}

/* Callout for the disclaimers that must not be skimmed past. */
.note {
  margin: 2rem 0;
  padding: 1.4rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 2px solid var(--gold);
  border-radius: 0.6rem;
}

.note p:last-child {
  margin-bottom: 0;
}

.toc {
  margin: 0 0 3rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: var(--card);
}

.toc ol {
  margin: 0;
  padding-left: 1.3rem;
  columns: 2;
  column-gap: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 34rem) {
  .toc ol { columns: 1; }
}

.toc li {
  margin-bottom: 0.35rem;
  break-inside: avoid;
}

.toc a {
  color: var(--muted);
  border-bottom: none;
}

.toc a:hover {
  color: var(--gold-light);
}

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

.rows {
  margin: 2.5rem 0 0;
  border-top: 1px solid var(--line);
}

.rows a,
.rows div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--paper);
  text-decoration: none;
  transition: padding-left 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.35s ease;
}

.rows a:hover {
  padding-left: 0.75rem;
  color: var(--gold-light);
}

.rows .label {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 400;
}

.rows .value {
  font-size: 0.85rem;
  color: var(--muted);
  text-align: right;
}

/* --- footer -------------------------------------------------------------- */

footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: baseline;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--faint);
}

footer nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: var(--gold-light);
}

/* --- entrance ------------------------------------------------------------ */

.reveal {
  opacity: 0;
  transform: translateY(1.15rem);
  animation: rise 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.reveal:nth-child(1) { animation-delay: 0.05s; }
.reveal:nth-child(2) { animation-delay: 0.18s; }
.reveal:nth-child(3) { animation-delay: 0.31s; }
.reveal:nth-child(4) { animation-delay: 0.44s; }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* Keyboard focus must stay visible against the dark field. */
a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 2px;
}
