/* Rightlyd — rightlyd.one */
:root {
  --ink: #0e1a24;
  --ink-soft: #243442;
  --foam: #f3f0e8;
  --foam-dim: #d9d4c8;
  --sea: #1a4a52;
  --sea-deep: #0f2f35;
  --ember: #c4a35a;
  --ember-hot: #e0bf6a;
  --mist: rgba(243, 240, 232, 0.12);
  --font-display: "Fraunces", "Palatino Linotype", Palatino, serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  background:
    radial-gradient(120% 80% at 10% -10%, rgba(196, 163, 90, 0.18), transparent 55%),
    radial-gradient(90% 70% at 100% 0%, rgba(26, 74, 82, 0.55), transparent 50%),
    linear-gradient(165deg, var(--ink) 0%, var(--sea-deep) 48%, #071016 100%);
  background-attachment: fixed;
}

a {
  color: var(--ember-hot);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--foam);
}

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(14, 26, 36, 0.72);
  border-bottom: 1px solid var(--mist);
}

.site-header__inner,
.site-footer__inner,
.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--foam);
  text-decoration: none;
}

.brand span {
  color: var(--ember);
}

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

.nav a {
  color: var(--foam-dim);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
}

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

.hero {
  position: relative;
  min-height: min(88vh, 52rem);
  display: grid;
  align-items: end;
  padding: 4rem 0 5rem;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: auto -20% 10% -10%;
  height: 55%;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(196, 163, 90, 0.22), transparent 55%),
    radial-gradient(ellipse at 70% 60%, rgba(26, 74, 82, 0.45), transparent 60%);
  filter: blur(8px);
  pointer-events: none;
  animation: drift 14s var(--ease) infinite alternate;
}

@keyframes drift {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(3%, -4%, 0) scale(1.05);
  }
}

.hero__content {
  position: relative;
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--foam);
  opacity: 0;
  transform: translateY(1.25rem);
  animation: rise 0.9s var(--ease) 0.1s forwards;
}

.hero__brand em {
  font-style: italic;
  color: var(--ember);
}

.hero__lead {
  max-width: 28rem;
  margin: 0 0 1.75rem;
  font-size: 1.1rem;
  color: var(--foam-dim);
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.28s forwards;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  transform: translateY(1rem);
  animation: rise 0.9s var(--ease) 0.42s forwards;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.2rem;
  border-radius: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px);
}

.button--primary {
  background: var(--ember);
  color: var(--ink);
}

.button--primary:hover {
  background: var(--ember-hot);
  color: var(--ink);
}

.button--ghost {
  border-color: rgba(243, 240, 232, 0.35);
  color: var(--foam);
  background: transparent;
}

.button--ghost:hover {
  background: rgba(243, 240, 232, 0.08);
  color: var(--foam);
}

.section {
  padding: 4.5rem 0;
}

.section--tight {
  padding-top: 3rem;
}

.section__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
}

.section__text {
  max-width: 38rem;
  margin: 0;
  color: var(--foam-dim);
}

.prose {
  max-width: 42rem;
}

.prose h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.prose p,
.prose li {
  color: var(--foam-dim);
}

.prose ul {
  padding-left: 1.2rem;
}

.note {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--ember);
  background: rgba(243, 240, 232, 0.06);
  color: var(--foam-dim);
  font-size: 0.95rem;
}

.site-footer {
  margin-top: 2rem;
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--mist);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  color: var(--foam-dim);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--foam-dim);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ember-hot);
}

@media (prefers-reduced-motion: reduce) {
  .hero__glow,
  .hero__brand,
  .hero__lead,
  .cta-row {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
