/* === ROOT VARIABLES === */
:root {
  --sage: #5f7d63;
  --sage-dark: #4a624d;
  --bg: #ffffff;
  --text: #111111;
}

/* === RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* === BASE === */
body {
  font-family: "Inter", "Nunito Sans", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  opacity: 0;
  animation: pageFade 0.7s ease forwards;
}

@keyframes pageFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

html {
  scroll-behavior: smooth;
}

/* === BRAND LOGO (top-left) === */
.brand {
  position: fixed;
  top: 1.5rem;
  left: 2rem;
  z-index: 10;
}

/* === Brand text color styling === */
/* === BRAND TITLE === */
.brand h4 {
  color: var(--text); /* automatically white or dark depending on theme */
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.5px;
  transition: color 0.3s ease;
}

/* === ACCENT WORD ("news") === */
.brand h4 span {
  color: var(--sage); /* follows theme accent color */
  transition: color 0.3s ease;
}



/* dark theme version (orange) */
body.dark .brand h4 span {
  color: var(--sage); /* this already updates dynamically! */
}

/* optional hover accent animation */
.brand:hover h4 span {
  filter: brightness(1.2);
}


.brand a {
  text-decoration: none;
  color: inherit; /* keeps the same text color (sage/white) */
}

.brand a:hover {
  opacity: 0.8; /* subtle hover feedback */
}

body.moss-mode {
  animation: mossFlash 0.6s ease;
}

@keyframes mossFlash {
  0% { background-color: var(--sage); }
  100% { background-color: var(--bg); }
}

/* === MOSS MODE FLASH EFFECT + TEXT === */
body.moss-mode {
  animation: mossFlash 0.6s ease;
}

@keyframes mossFlash {
  0%   { background-color: var(--sage); }
  100% { background-color: var(--bg); }
}

/* floating secret text */
.moss-secret-text {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: lowercase;
  opacity: 0;
  animation: secretAppear 1s ease forwards;
  z-index: 9999;
}

@keyframes secretAppear {
  0% { opacity: 0; transform: translate(-50%, -55%); }
  30% { opacity: 1; transform: translate(-50%, -50%); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -45%); }
}

.moss-secret-text.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease;
}




/* === HERO SECTION === */
.hero-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 3rem;
  background: var(--bg);
  color: var(--text);
}

.hero-content {
  max-width: 700px;
  margin-bottom: 1rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--sage);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text);
  opacity: 0.8;
}



/* === QUICKBAR === */
.quickbar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 2.5rem;
  border-radius: 2rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  animation: floatUp 0.6s ease forwards;
}

@keyframes floatUp {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.quicklink {
  color: var(--sage);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: lowercase;
  transition: color 0.2s ease, transform 0.2s ease;
}

.quicklink:hover {
  transform: translateY(-1px);
}

/* === THEME SWITCH (Quickbar integrated) === */
.theme-menu-wrapper {
  position: relative;
}

.theme-btn {
  background: none;
  border: none;
  color: var(--sage);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: 50%;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

.theme-menu {
  position: absolute;
  bottom: 3.2rem;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-menu.hidden {
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.theme-option {
  background: none;
  border: none;
  color: var(--sage);
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  padding: 0.3rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

.theme-option:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* === FOOTER === */
footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.9rem;
  margin-top: 4rem;
  padding-bottom: 6rem; /* 👈 creates space so quickbar doesn't overlap */
}


/* === DARK MODE === */
body.dark {
  --sage: #ff7b00;
  --sage-dark: #e46d00;
  --bg: #0d0d0d;
  --text: #ffffff;
  background: var(--bg);
  color: var(--text);
}

body.dark h1, body.dark h2, body.dark h3 {
  color: var(--sage) !important;
}

body.dark p, body.dark a, body.dark footer {
  color: var(--text) !important;
}

body.dark .post-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

body.dark .post-card:hover {
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.08);
}

body.dark .quickbar {
  background: rgba(20, 20, 20, 0.85);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

body.dark .quicklink { color: #ff8c00; }
body.dark .quicklink:hover { color: #ffffff; }

body.dark .theme-btn, 
body.dark .theme-option { color: #ff8c00; }

body.dark .theme-menu { background: rgba(20, 20, 20, 0.85); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-column {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .post-card {
    flex: 1 1 45%;
  }

  .hero-grid {
    padding: 4rem 1.5rem 2rem;
  }

  .brand h4 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
  }
}

/* Fade + slide up when entering view */
.post-card {
  opacity: 0;
  transform: translateY(40px);
}

.post-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* === SINGLE COLUMN POST FEED === */
.posts-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  max-width: 750px;
  margin: 4rem auto 6rem;
  padding: 0 1.5rem;
}

.post-card {
  width: 100%;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  padding: 2rem 2.5rem;
  transition: all 0.35s ease;
  cursor: pointer;
  text-align: left;
}

.post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.08);
}

.post-card h2 {
  color: var(--sage);
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
  text-transform: lowercase;
}

.post-card p {
  color: #333;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.post-date {
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.3s ease, opacity 0.3s ease;
}

/* subtle hover accent */
.post-card:hover .post-date {
  color: var(--sage);
  opacity: 0.9;
}

/* dark mode compatibility */
body.dark .post-card {
  background: #1a1a1a;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.1);
}

body.dark .post-card:hover {
  box-shadow: 0 14px 36px rgba(255,255,255,0.08);
}

body.dark .post-date {
  color: rgba(255,255,255,0.6);
}
body.dark .post-card:hover .post-date {
  color: var(--sage);
}

/* === PORTFOLIO HERO === */
.portfolio-hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem 2rem;
  background: var(--bg);
  color: var(--text);
}

.portfolio-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--sage);
  margin-bottom: 1rem;
  text-transform: lowercase;
}

.portfolio-hero p {
  max-width: 700px;
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 2.5rem;
}

/* === PORTFOLIO NOTE SECTION === */
.portfolio-note {
  text-align: center;
  padding: 3rem 2rem 6rem;
  color: var(--text);
  background: color-mix(in srgb, var(--sage) 7%, var(--bg));
}

.portfolio-note p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

/*  USED FOR PORTFOLIO PAGE!!!!!! */
/* === CTA BUTTON VARIANTS === */
.cta {
  display: inline-block;
  background: var(--sage);
  color: #fff;
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease, transform 0.15s ease;
}

.cta:hover {
  background: var(--sage-dark);
  transform: translateY(-3px) scale(1.03);
}

/* === ILLUSTRATION FOOTER === */
.portfolio-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--bg);
  padding: 4rem 0 8rem;
  overflow: visible; /* 👈 ensures SVG parts aren’t clipped */
}

.portfolio-illustration object,
.portfolio-illustration svg {
  width: 100%;
  max-width: 1000px;
  height: auto;
  overflow: visible; /* 👈 ensures walkers can float outside the frame */
}


@keyframes gentleFloat {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* === DARK MODE ADAPTATION === */
body.dark .portfolio-note {
  background: color-mix(in srgb, var(--sage-dark) 12%, var(--bg));
}
body.dark .portfolio-hero p,
body.dark .portfolio-note p {
  color: #ccc;
}
body.dark .cta.secondary {
  color: #ff8c00;
  border-color: #ff8c00;
}
body.dark .cta.secondary:hover {
  background: #ff8c00;
  color: #fff;
}

/* Space at the bottom so footer clears the fixed quickbar */
:root {
  --quickbar-gap: 10px;            /* extra breathing room under the bubble */
}

body {
  padding-bottom: calc(var(--quickbar-height, 64px) + var(--quickbar-gap));
}

/* ANNOUNCEMENT BANNER — static, full-width, visible text */
.announcement-banner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--sage);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  text-align: center;
  padding: 0.9rem 1.2rem;
  border-radius: 0.75rem;
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: background 0.3s ease, color 0.3s ease;
  line-height: 1.4;
  
}



.announcement-banner a {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}

body.dark .announcement-banner {
  background: var(--sage-dark);
  color: #fff;
}



