/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg:        #0e0b08;
  --color-bg-alt:    #13100c;
  --color-surface:   #1c1610;
  --color-border:    #3a2e1e;
  --color-gold:      #c9923a;
  --color-gold-light:#e8b96a;
  --color-cream:     #e8dfc8;
  --color-muted:     #9a8c73;
  --color-red:       #7a1e1e;
  --font-heading:    'Cinzel', serif;
  --font-body:       'Crimson Text', serif;
  --max-width:       720px;
  --section-pad:     clamp(3rem, 8vw, 6rem);
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg);
  color: var(--color-cream);
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  line-height: 1.75;
}

/* === TYPOGRAPHY === */
h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-gold-light);
  line-height: 1.2;
}

p + p { margin-top: 0.9em; }

strong {
  color: var(--color-gold-light);
  font-weight: 600;
}

em {
  font-style: italic;
  color: var(--color-gold);
}

/* === SCROLL ANIMATIONS === */
@keyframes fromRight {
  from { opacity: 0; transform: translateX(70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fromLeft {
  from { opacity: 0; transform: translateX(-70px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fromDown {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fromUp {
  from { opacity: 0; transform: translateY(60px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.fade-in,
.fade-up,
.fade-left,
.fade-right {
  opacity: 0;
}

.fade-in.visible  { animation: fromDown  0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-up.visible  { animation: fromUp    0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-left.visible  { animation: fromLeft  0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }
.fade-right.visible { animation: fromRight 0.75s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* staggered delay for card siblings */
.cards .card:nth-child(2).visible,
.feast-grid .feast-item:nth-child(2).visible,
.cards--two .card:nth-child(2).visible {
  animation-delay: 0.1s;
}
.cards .card:nth-child(3).visible,
.feast-grid .feast-item:nth-child(3).visible,
.cards--two .card:nth-child(3).visible {
  animation-delay: 0.2s;
}

/* === HERO === */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 5rem;
  background:
    radial-gradient(ellipse at center top, #2a1a0a 0%, transparent 60%),
    radial-gradient(ellipse at center bottom, #1a0a0a 0%, transparent 60%),
    var(--color-bg);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  width: 100%;
  max-width: 960px;
  padding: 0 1.25rem;
}

@media (min-width: 700px) {
  .hero {
    text-align: left;
  }
  .hero__inner {
    flex-direction: row;
    align-items: center;
    gap: 3.5rem;
  }
  .hero__content {
    flex: 1;
  }
  .hero__divider {
    justify-content: flex-start;
  }
}

/* Photo */
.hero__photo {
  flex-shrink: 0;
  width: min(280px, 80vw);
}

@media (min-width: 700px) {
  .hero__photo {
    width: 320px;
  }
}

.hero__photo-frame {
  position: relative;
}

.hero__photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: center top;
  filter: sepia(20%) brightness(0.9);
}

/* gold corner ornaments */
.hero__photo-frame::before,
.hero__photo-frame::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--color-gold);
  border-style: solid;
  opacity: 0.7;
  z-index: 2;
}
.hero__photo-frame::before {
  top: -6px; left: -6px;
  border-width: 2px 0 0 2px;
}
.hero__photo-frame::after {
  bottom: -6px; right: -6px;
  border-width: 0 2px 2px 0;
}

/* inner corner ornaments via wrapper pseudo */
.hero__photo::before,
.hero__photo::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--color-gold);
  border-style: solid;
  opacity: 0.7;
  z-index: 2;
}
.hero__photo {
  position: relative;
}
.hero__photo::before {
  top: -6px; right: -6px;
  border-width: 2px 2px 0 0;
}
.hero__photo::after {
  bottom: -6px; left: -6px;
  border-width: 0 0 2px 2px;
}

/* mobile: fade bottom edge into background */
@media (max-width: 699px) {
  .hero__photo-frame::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--color-bg));
    border: none;
    width: 100%;
    z-index: 3;
  }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 60px,
      rgba(201,146,58,0.03) 60px,
      rgba(201,146,58,0.03) 61px
    ),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 60px,
      rgba(201,146,58,0.03) 60px,
      rgba(201,146,58,0.03) 61px
    );
  pointer-events: none;
}

.hero__runes {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  font-size: clamp(0.6rem, 2vw, 0.85rem);
  color: rgba(201, 146, 58, 0.15);
  letter-spacing: 0.4em;
  text-align: center;
  word-spacing: 0.6em;
  pointer-events: none;
  user-select: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero__eyebrow {
  font-family: var(--font-heading);
  font-size: clamp(0.75rem, 2.5vw, 0.95rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 7vw, 3.8rem);
  font-weight: 900;
  color: var(--color-cream);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 40px rgba(201, 146, 58, 0.3);
}

.hero__title em {
  display: block;
  color: var(--color-gold);
  font-style: italic;
}

.hero__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--color-gold);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.hero__rune {
  font-size: 1.8rem;
  line-height: 1;
}

.hero__subtitle {
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  letter-spacing: 0.25em;
  color: var(--color-muted);
  text-transform: uppercase;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-gold);
  font-size: 2.2rem;
  opacity: 1;
  text-shadow: 0 0 18px rgba(201, 146, 58, 0.8), 0 0 40px rgba(201, 146, 58, 0.4);
  animation: bounce 2.4s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* === SECTIONS === */
.section {
  padding: var(--section-pad) 1.25rem;
}

.section--dark {
  background-color: var(--color-bg-alt);
}

.section--texture {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle at 20% 50%, rgba(122,30,30,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,146,58,0.04) 0%, transparent 50%);
}

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

.section__title {
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  text-align: center;
  margin-bottom: 0.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.section__subtitle {
  text-align: center;
  color: var(--color-muted);
  margin-bottom: 2.5rem;
  font-style: italic;
}

/* === TEXT BLOCK === */
.text-block {
  max-width: 580px;
  margin: 0 auto;
}

.text-block--center {
  text-align: center;
}

.text-block__lead {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  color: var(--color-gold-light);
  margin-bottom: 1.25rem !important;
}

/* === CARDS === */
.cards {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
}

.cards--two {
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .cards--two {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
  position: relative;
  transition: border-color 0.3s;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-border), transparent);
}

.card--featured {
  border-color: var(--color-gold);
  background: linear-gradient(135deg, #1c1610 0%, #221a0e 100%);
}

.card--featured::before {
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}

.card__rune {
  font-size: 2.2rem;
  color: var(--color-gold);
  opacity: 0.6;
  margin-bottom: 0.75rem;
  display: block;
}

.card__title {
  font-size: clamp(0.95rem, 2.5vw, 1.1rem);
  margin-bottom: 0.25rem;
  color: var(--color-gold-light);
}

.card__sub {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
  font-style: italic;
}

/* === FEAST GRID === */
.feast-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .feast-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feast-item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 1.5rem 1.25rem;
}

.feast-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.75rem;
  display: block;
  opacity: 0.85;
}

.feast-item h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--color-gold-light);
}

.feast-item ul {
  list-style: none;
  padding: 0;
}

.feast-item ul li {
  padding: 0.2rem 0;
  padding-left: 1.2rem;
  position: relative;
  color: var(--color-cream);
  font-size: 0.95rem;
}

.feast-item ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 14px;
  height: 14px;
  background-image: url('diamond.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* === SHIELD ROW === */
.shield-row {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  font-size: 2rem;
  margin-top: 2rem;
  opacity: 0.4;
}

/* === RUNE FOOTER === */
.rune-footer {
  text-align: center;
  font-size: clamp(1.2rem, 4vw, 1.6rem);
  color: var(--color-gold);
  opacity: 0.3;
  letter-spacing: 0.6em;
  margin-top: 2.5rem;
}

/* === ACCORDION === */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 2rem;
}

.accordion__item {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion__item[open] {
  border-color: var(--color-gold);
}

.accordion__summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 0.2s;
}

.accordion__summary::-webkit-details-marker { display: none; }

.accordion__summary:hover {
  background: rgba(201, 146, 58, 0.06);
}

.accordion__rune {
  font-size: 1.4rem;
  color: var(--color-gold);
  min-width: 2.5rem;
  line-height: 1;
  letter-spacing: 0.15em;
}

.accordion__name {
  flex: 1;
  font-family: var(--font-heading);
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  color: var(--color-gold-light);
}

.accordion__chevron {
  color: var(--color-gold);
  font-size: 1.4rem;
  line-height: 1;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  display: inline-block;
}

.accordion__item[open] .accordion__chevron {
  transform: rotate(90deg);
}

.accordion__body {
  padding: 0 1.25rem 1.25rem 1.25rem;
  padding-left: calc(1.25rem + 2.5rem + 1rem);
  border-top: 1px solid var(--color-border);
  animation: accordionOpen 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes accordionOpen {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.accordion__body p {
  color: var(--color-cream);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1rem;
}

/* === PAGE WRAP === */
.page-wrap {
  overflow-x: hidden;
}

/* === FOOTER === */
.footer {
  background-color: #080604;
  padding: 3rem 1.25rem;
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.footer__rune {
  font-size: 3rem;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: 0.5rem;
}

.footer__text {
  font-family: var(--font-heading);
  letter-spacing: 0.2em;
  color: var(--color-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
}

.text-link {
  color: var(--color-gold-light);
  text-decoration: underline;
  text-decoration-color: rgba(201, 146, 58, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}

.text-link:hover {
  color: var(--color-gold);
  text-decoration-color: var(--color-gold);
}

.footer__tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-gold);
  margin-top: 0.5rem;
  font-style: italic;
}

/* === SCROLL REVEAL FAST for hero === */
.hero .fade-in {
  animation: heroFadeIn 1.2s ease 0.3s forwards;
  opacity: 0;
}

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