/* Fields of Renown — medieval game marketing page */

:root {
  --for-ink: #0c0a09;
  --for-stone: #1c1917;
  --for-fog: #f5f0e8;
  --for-muted: #a8a29e;
  --for-line: rgba(245, 240, 232, 0.12);
  --for-accent: #e8590c;
  --for-accent-soft: #fdba74;
  --for-discord: #5865f2;
  --for-font: "DM Sans", system-ui, sans-serif;
  --for-display: "Cinzel", Georgia, serif;
  --for-max: 720px;
  --for-wide: 1100px;
  --for-header: 91px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body.for {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--for-ink);
  color: var(--for-fog);
  font-family: var(--for-font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.for a:hover {
  text-decoration: underline;
}

.for-skip {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.5rem 0.75rem;
  background: var(--for-accent);
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
}

.for-skip:focus {
  top: 1rem;
}

/* Header — match existing bar sizing */
.for-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1030;
  padding: 0.5rem 0;
  background: rgba(28, 25, 23, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--for-line);
}

.for-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  min-height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.for-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--for-fog);
  text-decoration: none;
  font-family: var(--for-display);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}

.for-brand:hover {
  text-decoration: none;
  color: var(--for-accent-soft);
}

.for-brand__logo {
  height: 75px;
  width: auto;
  object-fit: contain;
}

.for-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--for-line);
  color: var(--for-fog);
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  border-radius: 6px;
  cursor: pointer;
}

.for-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.15rem;
}

.for-nav a {
  color: var(--for-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.for-nav a:hover,
.for-nav a.active,
.for-nav a[aria-current="page"] {
  color: var(--for-accent-soft);
  text-decoration: none;
}

/* Hero */
.for-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--for-header) + 2rem) 1.5rem 4rem;
  overflow: hidden;
}

.for-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.35) 0%, rgba(12, 10, 9, 0.55) 45%, rgba(12, 10, 9, 0.92) 100%),
    url("Assets/img/mountains-6157049.jpg") center 35% / cover no-repeat;
  animation: for-drift 28s ease-in-out infinite alternate;
}

.for-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 50% at 30% 60%, rgba(232, 89, 12, 0.18), transparent 55%);
  animation: for-glow 12s ease-in-out infinite alternate;
}

@keyframes for-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.08) translate3d(-1%, 1%, 0); }
}

@keyframes for-glow {
  from { opacity: 0.7; }
  to { opacity: 1; }
}

.for-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--for-wide);
  margin: 0 auto;
  animation: for-rise 0.9s ease-out both;
}

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

.for-hero__brand {
  font-family: var(--for-display);
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--for-fog);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
  margin-bottom: 0.65rem;
}

.for-hero__lede {
  max-width: 34rem;
  font-size: 1.1rem;
  color: #d6d3d1;
  margin-bottom: 1.75rem;
}

.for-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.for-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.for-cta--discord {
  background: var(--for-discord);
  color: #fff !important;
}

.for-cta--discord:hover {
  background: #4752c4;
}

.for-cta--ghost {
  background: transparent;
  border: 1px solid var(--for-line);
  color: var(--for-fog) !important;
}

.for-cta--ghost:hover {
  border-color: var(--for-accent);
  color: var(--for-accent-soft) !important;
}

.for-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--for-muted);
}

/* Sections */
.for-section {
  padding: 4rem 1.5rem;
  border-top: 1px solid var(--for-line);
}

.for-section__inner {
  max-width: var(--for-max);
  margin: 0 auto;
}

.for-section--wide .for-section__inner {
  max-width: var(--for-wide);
}

.for-section--world {
  position: relative;
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.88), rgba(12, 10, 9, 0.94)),
    url("Assets/img/cwm-idwal-6014820.jpg") center / cover no-repeat;
}

.for-section--dev {
  background:
    linear-gradient(180deg, rgba(12, 10, 9, 0.9), rgba(12, 10, 9, 0.95)),
    url("Assets/img/CaernavonCastleBackground.jpg") center / cover no-repeat;
}

.for-section h2 {
  font-family: var(--for-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 500;
  color: var(--for-accent-soft);
  margin-bottom: 0.65rem;
}

.for-section .lead {
  color: var(--for-muted);
  margin-bottom: 1.75rem;
  font-size: 1.05rem;
}

.for-section p {
  color: #d6d3d1;
  margin-bottom: 1rem;
}

.for-pillars {
  list-style: none;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--for-line);
}

.for-pillars li {
  display: grid;
  grid-template-columns: minmax(7rem, 9rem) 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--for-line);
}

.for-pillars strong {
  font-family: var(--for-display);
  font-weight: 500;
  color: var(--for-fog);
  font-size: 1.05rem;
}

.for-pillars span {
  color: var(--for-muted);
  font-size: 0.98rem;
}

.for-status {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(232, 89, 12, 0.35);
  border-radius: 10px;
  background: rgba(28, 16, 10, 0.55);
  margin-bottom: 2rem;
}

.for-status strong {
  display: block;
  font-family: var(--for-display);
  color: var(--for-accent-soft);
  margin-bottom: 0.35rem;
}

.for-status p {
  margin: 0;
  color: #d6d3d1;
  font-size: 0.98rem;
}

.for-roadmap {
  list-style: none;
  display: grid;
  gap: 0;
  border-left: 2px solid rgba(232, 89, 12, 0.35);
  padding-left: 1.25rem;
}

.for-roadmap li {
  position: relative;
  padding: 0 0 1.5rem 0.25rem;
}

.for-roadmap li:last-child {
  padding-bottom: 0;
}

.for-roadmap li::before {
  content: "";
  position: absolute;
  left: -1.45rem;
  top: 0.35rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--for-stone);
  border: 2px solid var(--for-accent);
}

.for-roadmap li.current::before {
  background: var(--for-accent);
  box-shadow: 0 0 0 4px rgba(232, 89, 12, 0.2);
}

.for-roadmap h3 {
  font-family: var(--for-display);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--for-fog);
  margin-bottom: 0.25rem;
}

.for-roadmap p {
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.for-roadmap time {
  font-size: 0.8rem;
  color: var(--for-accent);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.for-video {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--for-line);
  background: var(--for-stone);
}

.for-video iframe,
.for-video > div {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.for-video > div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 1.5rem;
  color: var(--for-muted);
  text-align: center;
}

.for-video.loading-shimmer {
  min-height: 280px;
}

.for-logs {
  list-style: none;
  display: grid;
  gap: 1rem;
}

.for-log {
  display: block;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--for-line);
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.for-log:hover {
  text-decoration: none;
}

.for-log:hover .for-log__title {
  color: var(--for-accent-soft);
}

.for-log__date {
  font-size: 0.8rem;
  color: var(--for-muted);
  margin-bottom: 0.25rem;
}

.for-log__title {
  font-family: var(--for-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--for-fog);
  margin-bottom: 0.35rem;
  transition: color 0.2s ease;
}

.for-log__excerpt {
  color: var(--for-muted);
  font-size: 0.95rem;
  margin: 0;
}

.for-supporters {
  list-style: none;
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .for-supporters {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .for-pillars li {
    grid-template-columns: 10rem 1fr;
  }
}

.for-supporter {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.for-supporter img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 8px;
}

.for-supporter h3 {
  font-family: var(--for-display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--for-fog);
}

.for-supporter p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--for-muted);
}

.for-supporter a {
  font-weight: 600;
  text-decoration: none;
  color: var(--for-accent);
}

.for-supporter a:hover {
  color: var(--for-accent-soft);
  text-decoration: underline;
}

.for-community-cta {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--for-line);
  text-align: center;
}

/* Footer */
.for-footer {
  border-top: 1px solid var(--for-line);
  padding: 1.75rem 1.5rem 2.25rem;
  text-align: center;
}

.for-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.85rem;
}

.for-footer__links a {
  color: var(--for-muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.for-footer__links a:hover {
  color: var(--for-accent-soft);
}

.for-footer p {
  color: var(--for-muted);
  font-size: 0.85rem;
}

/* Back to top */
.for-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1020;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--for-line);
  border-radius: 8px;
  background: rgba(28, 25, 23, 0.9);
  color: var(--for-fog);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, border-color 0.2s ease;
}

.for-top.visible {
  opacity: 1;
  visibility: visible;
}

.for-top:hover {
  border-color: var(--for-accent);
  color: var(--for-accent-soft);
}

@media (max-width: 900px) {
  .for-hamburger {
    display: block;
  }

  .for-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(28, 25, 23, 0.98);
    border-bottom: 1px solid var(--for-line);
    padding: 1rem 1.5rem 1.25rem;
  }

  .for-nav.active {
    display: block;
  }

  .for-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }
}

@media (max-width: 600px) {
  .for-header__inner {
    padding: 0 1rem;
    min-height: 60px;
  }

  .for-brand {
    font-size: 1.05rem;
  }

  .for-brand__logo {
    height: 60px;
  }

  .for-hero {
    padding-top: calc(76px + 1.5rem);
  }

  .for-pillars li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .for-hero__bg,
  .for-hero__bg::after,
  .for-hero__inner,
  .for-cta {
    animation: none !important;
    transition: none !important;
  }
}
