/* Re:soma — coming soon
   Palette, type and motion taken from the "Motion 1 · Rising embers" design board
   (Ember forge palette). */

:root {
  --ink:       #efe9e2;
  --dim:       #a39a92;
  --accent:    #e8914a;
  --base:      #110f0e;
  --plate:     #1a1411;
  --plate-edge:#7a4a2a;
  --edge:      #5a4a3f;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans:  system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --gutter: clamp(20px, 4.4vw, 64px);
  --rise:   clamp(320px, 70vh, 620px);
}

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

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

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--sans);
  color: var(--ink);
  background-color: var(--base);
  background-image: radial-gradient(
    ellipse 48% 34% at 50% 47%,
    #2a211b 0%,
    #1b1613 45%,
    #141110 78%,
    var(--base) 100%
  );
  background-attachment: fixed;
}

img { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---- background layers ---- */

.bg-texture,
.bg-glow,
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-texture {
  background-image: url("assets/embers-bg.svg");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0.55;
}

.bg-glow {
  background: radial-gradient(
    ellipse 40% 30% at 50% 47%,
    rgba(232, 145, 74, 0.14),
    rgba(232, 145, 74, 0) 70%
  );
  animation: rs-breathe 6s ease-in-out infinite;
}

.embers { overflow: hidden; }

.ember {
  position: absolute;
  left: var(--x);
  bottom: var(--b);
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: var(--c);
  box-shadow: 0 0 var(--g) var(--c);
  opacity: 0;
  animation: rs-rise var(--t) linear var(--d) infinite;
  will-change: transform, opacity;
}

@keyframes rs-rise {
  0%   { transform: translate(0, 0); opacity: 0; }
  12%  { opacity: var(--o); }
  80%  { opacity: calc(var(--o) * 0.6); }
  100% { transform: translate(var(--dx), calc(var(--rise) * -1)); opacity: 0; }
}

@keyframes rs-breathe {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}

/* ---- stage ---- */

.stage {
  position: relative;
  z-index: 1;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 4.4vw, 40px);
  padding: clamp(48px, 8vw, 72px) var(--gutter) clamp(32px, 5vw, 40px);
  text-align: center;
}

.eyebrow {
  margin: 0;
  font-size: 13px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--accent);
}

/* ---- lockup ---- */

.lockup {
  display: flex;
  align-items: center;
  gap: clamp(24px, 4.4vw, 56px);
}

.emblem {
  width: clamp(104px, 12.2vw, 176px);
  height: auto;
  flex-shrink: 0;
}

.wordmark {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(64px, 9.2vw, 132px);
  line-height: 0.95;
}

.title-accent { color: var(--accent); }

.tagline {
  margin: 0;
  padding-left: 6px;
  font-family: var(--serif);
  font-size: clamp(14px, 1.53vw, 22px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--dim);
}

/* ---- teaser ---- */

.teaser {
  margin: 0;
  max-width: min(560px, 100%);
  font-size: clamp(16px, 1.32vw, 19px);
  line-height: 1.55;
  color: var(--dim);
}

/* ---- actions ---- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.button--plate {
  background: var(--plate);
  border: 1px solid var(--plate-edge);
  color: var(--accent);
  font-weight: 700;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 10px 24px rgba(0, 0, 0, 0.5);
}

.button--plate:hover {
  border-color: var(--accent);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -2px 0 rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(232, 145, 74, 0.35),
    0 0 28px rgba(232, 145, 74, 0.28);
}

.button--engraved {
  padding: 0 30px;
  background: transparent;
  border: 1px solid var(--edge);
  color: var(--dim);
}

.button--engraved:hover { border-color: var(--dim); color: var(--ink); }

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

.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  align-items: center;
  min-height: 88px;
  padding: 16px var(--gutter);
  font-size: 14px;
  color: var(--dim);
}

.footer-note { margin: 0; }

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--dim);
}

.footer-nav a:hover { color: var(--ink); }

/* ---- narrow ---- */

@media (max-width: 860px) {
  .lockup { flex-direction: column; gap: 20px; }
  .wordmark { text-align: center; align-items: center; }
  .tagline { padding-left: 0; letter-spacing: 0.28em; }
  .footer { justify-content: center; text-align: center; }
}

@media (max-width: 480px) {
  .actions { width: 100%; flex-direction: column; }
  .button { width: 100%; }
  .tagline { letter-spacing: 0.2em; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-glow,
  .ember { animation: none; }
  .button { transition: none; }
}
