/* ============================================================
   rune.css — rune.sifr.space
   Page-specific styles for Project Rune website.
   Shared variables and reset live in ../shared/base.css
   ============================================================ */


/* ── Navigation ─────────────────────────────────────────── */

:root {
  --nav-h: clamp(5rem, 3.75rem + 5.5556vw, 8.75rem);
}

/* ── Scroll snapping — each section becomes a mandatory stop ── */
/* html {
  scroll-snap-type: y mandatory;
}

section[id] {
  scroll-snap-align: start;
  scroll-snap-stop: always;
} */

/* Scroll-reveal — cards start hidden, animate in when observed */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  transition-delay: var(--reveal-delay, 0s);   /* defaults to 0s if not set */
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

#navbar {
  position: fixed;            /* stays locked to top of viewport while scrolling */
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;               /* floats above all page content */
  display: grid;              /* three columns: left links | logo | right links */
  grid-template-columns: 1fr auto 1fr;
  align-items: center;        /* all three columns sit at the vertical midpoint */
  height: var(--nav-h);
  padding: 0 clamp(24px, 2.78vw, 56px);

  --logo-h: clamp(36px, 6.17vw, 200px);
}

/* ── Nav left link list ── */

.nav-left {
  display: flex;
  gap: clamp(20px, 3.10vw, 134px);
  list-style: none;
  margin: 0;
  padding: 0;
  padding-right: clamp(12px, 1.00vw, 67px);
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1;
}


/* ── Nav right link list ── */

.nav-right {
  display: flex;
  gap: clamp(18px, 2.50vw, 100px);
  list-style: none;
  margin: 0;
  padding: 0;
  padding-left: clamp(12px, 1.00vw, 67px);
  justify-content: flex-start;
  align-items: center;
  position: relative;
  z-index: 1;
}


/* ── Nav link text ── */

#navbar ul a {
  font-family: 'Cinzel', serif;
  font-size: clamp(12px, 1.45vw, 42px);
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: capitalize;
  transition: color 0.3s;
}

/* left items: solid white on right edge, fading to transparent on left */
.odd-nav {
  background: linear-gradient(to left, #FFFFFF 50%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* right items: solid white on left edge, fading to transparent on right */
.even-nav {
  background: linear-gradient(to right, #FFFFFF 50%, rgba(255,255,255,0.55) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* left items: solid white on right edge, fading to transparent on left */
.nav-hover:hover {
  background: linear-gradient(180deg, #FFF8C0 0%, #FFE066 18%, #D4A012 50%, #A06808 85%, #7A4E04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ── Logo ── */

.nav-logo-link {
  display: block;
  position: relative;
  z-index: 1;
  justify-self: center;
  margin-bottom: calc(var(--logo-h) * -0.225);
}

.nav-logo {
  height: var(--logo-h);
  width: var(--logo-h);
  display: block;
}

/* .rune-logo:hover {
  scale: 1.1;
  
} */


/* ── Divider SVG — drawn and positioned by JS ── */

#nav-divider-svg {
  position: absolute;   /* relative to navbar now, not the viewport */
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;    /* add this — allows the SVG to draw below its own height */
}

/* ── Section anchor offset — clears fixed navbar on jump links ── */

section[id] {
  scroll-margin-top: var(--nav-h);
}


/* ── Mobile Navigation Drawer ───────────────────────────── */

@media (max-width: 1023.98px) {
  .nav-left,
  .nav-right,
  .nav-logo-link,
  #nav-divider-svg {
    display: none;
  }
}

#drawer-toggle {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 110;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: none;
  transition: opacity 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#drawer-toggle .drawer-glyph {
  width: 44px;
  height: auto;
  display: block;
}

#drawer-toggle.is-hidden {
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
}

#drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

#drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

#nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: clamp(230px, 62vw, 300px);
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: linear-gradient(180deg, #0F0F12, #000000);
  border-right: 1px solid rgba(218, 160, 32, 0.35);
  border-top-right-radius: 32px;
  border-bottom-right-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 108;
}

#nav-drawer.is-open {
  transform: translateX(0);
}

.nav-drawer-icon {
  width: 40px;
  height: auto;
  margin-top: 52px;
  flex-shrink: 0;
  display: block;
}

.nav-drawer-icon-link {
  display: block;
}

.drawer-divider {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 44px;
  position: relative;
  z-index: 1;
}

.drawer-link {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  letter-spacing: 0.08em;
  color: #EFBF04;
  padding: 7px;
  transition: color 0.2s;
}

.drawer-link:hover {
  color: #FFE066;
}

html.drawer-locked {
  overflow: hidden;
}



/* ── Hero ───────────────────────────────────────────────── */

/* Gold gradient on the RUNE wordmark — background-clip:text, Tailwind can't express this */
.title-color {
  background: linear-gradient(180deg, #FFF8C0 0%, #FFE066 18%, #D4A012 50%, #A06808 85%, #7A4E04 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Soft radial bloom sitting behind the title */
.hero-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(212,160,18,0.10) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

/* Horizontal divider — transparent → gold → transparent */
.hero-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    rgba(218, 160, 32, 0) 0%,
    rgba(218, 160, 32, 0.8) 20%,
    rgba(218, 160, 32, 0.8) 80%,
    rgba(218, 160, 32, 0) 100%
  );
}

.hero-body {
  background: linear-gradient(
    to right,
    rgba(255,255,255, 1) 0%,
    rgba(255,255,255, 0.75) 25%,
    rgba(255,255,255, 1) 75%,
    rgba(255,255,255, 0.75) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Download text color - needs work */
.download-text-color {
  background: linear-gradient(180deg, #3C352E 0%, #1F1A16 18%, #0D0B09 50%, #050403 85%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* button border golden wavy color - needs work */
/* Gradient border for hero buttons — padding-box/border-box trick */
.download-button-border {
  border: 1px solid transparent;
  border-radius: 0 1.5rem 0 1.5rem;   /* match your rounded-bl-3xl rounded-tr-3xl */
  background:
    linear-gradient(270deg, #d4a0125e 0%, #d4a01288 18%, #D4A012 50%, #d4a012b6 85%, #d4a01252 100%) padding-box,
    linear-gradient(to right, #d4a012 50%, rgba(212,160,18,0.5) 100%) border-box;
}

/* Gradient border for hero buttons — padding-box/border-box trick */
.tutorial-button-border {
  border: 1px solid transparent;
  border-radius: 0 1.5rem 0 1.5rem;   /* match your rounded-bl-3xl rounded-tr-3xl */
  background:
    linear-gradient(#0d0b09, #0d0b09) padding-box,
    linear-gradient(to right, #d4a012 50%, rgba(212,160,18,0.5) 100%) border-box;
}

/* ── Scroll cue ─────────────────────────────────────────── */

.scroll-cue {
  transition: opacity 0.5s ease, transform 0.5s ease;   /* smooth fade when we toggle the hidden class */
}

.scroll-cue.is-hidden {
  opacity: 0;
  transform: scale(0.5);   /* shrinks to half size as it fades */
  pointer-events: none;   /* once faded, it can't be clicked */
}

.scroll-arrow {
  display: inline-block;          /* transform only applies to block/inline-block */
  animation: bob 2s ease-in-out infinite;
}

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

/* ── About ───────────────────────────────────────────────── */

.about-body {
  background: linear-gradient(to right, #FFFFFF 50%, rgba(255,255,255,0.75) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Philosophy ───────────────────────────────────────────────── */

.philosophy-quote p strong {
  font-weight: 700;
}

.phil-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 4;
}

.phil-body {
  background: linear-gradient(
    to right,
    rgba(255,255,255, 1) 0%,
    rgba(255,255,255, 0.75) 25%,
    rgba(255,255,255, 1) 75%,
    rgba(255,255,255, 0.75) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Components ───────────────────────────────────────────────── */

.comp-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 6;
}

.comp-body {
  background: linear-gradient(
    to right,
    rgba(255,255,255, 1) 0%,
    rgba(255,255,255, 0.75) 25%,
    rgba(255,255,255, 1) 75%,
    rgba(255,255,255, 0.75) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Downloads ───────────────────────────────────────────────── */

.down-card {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
}

/* ── Open-Source ───────────────────────────────────────────────── */

.github-card {
  display: grid;
  /* grid-template-rows: subgrid;
  grid-row: span 5; */
}

/* .code-card {
  
} */


/* ── Footer ───────────────────────────────────────────────── */

.footer-divider-container {
  width: 100%;
  /* height: 36px; */
}