
:root {
  --panel: #6661aa;
  --muted: #1a1a1aff;
  --link: #604386ff;
  --glass: rgba(255,255,255,0.09);
}

/* fonts */

@font-face {
  font-family: 'SpaceGrotesk';
  src: url('../fonts/SpaceGrotesk-Bold.woff') format('woff');
  font-style: normal;
}

p {
  font-family: 'SpaceGrotesk', sans-serif;
}

body {
  margin: 0;
  color: var(--ink);
}

.writing-banner {
  padding: 32px 20px;
  text-align: center;
  border-bottom: none; /* or make it neon? */
}

.writing-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
}

.writing-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 100px;
  margin: 32px auto;
  padding: 0 20px;
}

@media (max-width: 900px) {
  .writing-layout {
    grid-template-columns: 1fr;
  }
}

.writing-intro {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}

.profile-pic img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 2px solid var(--line);
  display: flex;
}

.intro-text p {
  background-color: rgba(226, 141, 218, 0.3);
  color: var(--ink);
  font-size: 20px;
  text-align: center;
  padding: 12px;
  border-radius: 12px;
  max-width: 400px;
}


.graphic-circle {
  width: 160px;
  height: 160px;
  background-color: pink;
  color: red;
  font-weight: bold;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hud-display {
  background: rgba(104, 120, 201, 0.2);
  clip-path: polygon(0 5%, 5% 0, 95% 0, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0 95%);
  text-align: center;
  padding: 30px 30px;
  margin: 0 auto;
  max-width: 95vw;
  width: fit-content;
  overflow: visible;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}



.hud-display h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.hud-module {
  background: var(--glass);
  border: none;
  padding: 20px 24px;
  margin-bottom: 20px;
  transition: transform 0.2s;
  border-radius: 12px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}


.hud-module:hover {
  transform: scale(1.02);
}

.hud-module h3 {
  margin: 0 0 8px 0;
  font-size: 1.2rem;
  color: var(--link);  /* now uses your purple tone! */
}

.hud-module p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.hud-module a {
  color: var(--ink);
  text-decoration: none;
}

.hud-module a:hover {
  text-decoration: underline;
}

.left-col-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding-top: 40px;
  text-align: center;
}

/* === WRITING PAGE: hard reset (TEMP, template-scoped) === */
body.page-template-writing-page-php main.writing-page,
body.page-template-writing-page-php main.writing-page * {
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
  will-change: auto !important;
}

/* ensure the document is the scroller and content starts below the header */
:root { --header-offset: 140px; }  /* match your header height */
body.page-template-writing-page-php main.writing-page {
  padding-top: var(--header-offset);
}

/* If a theme wrapper is the clamp, free it (still template-scoped) */
body.page-template-writing-page-php #page,
body.page-template-writing-page-php .site,
body.page-template-writing-page-php .site-content,
body.page-template-writing-page-php #primary,
body.page-template-writing-page-php .content-area {
  position: static !important;
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  transform: none !important;
}

/* the badge */
.stella-gon{
  display:block;
  margin-inline:auto;
  width:min(140px, 22vw);   /* scales down on small screens */
  aspect-ratio:1/1;
  pointer-events:none;       /* purely decorative */
  filter: drop-shadow(0 8px 18px rgba(96,67,134,.35));
}

@media (max-width: 680px){
  .stella-gon{ width:min(110px, 28vw); }
}

.writing-intro {
  text-align: center;
  margin: 2rem auto;
  max-width: 800px;
}

.content-grid {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.grid-title {
  text-align: center;
  margin-bottom: 2rem;
  color: #ffc9f0;
}

.content-grid > div:not(.grid-title) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  justify-items: center; /* Centers items when they wrap */
}

.content-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 2rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
}

.content-card h3 {
  margin-top: 0;
  color: #ffc9f0;
  border-bottom: 2px solid rgba(255, 201, 240, 0.3);
  padding-bottom: 0.5rem;
}

/* Preview item styles */
.preview-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 8px;
  border-left: 3px solid #87ceeb;
}

.preview-item h4 {
  margin: 0 0 0.5rem 0;
  color: #87ceeb;
}

.preview-item h4 a {
  color: #87ceeb;
  text-decoration: none;
}

.preview-item h4 a:hover {
  color: #add8e6;
  text-decoration: underline;
}

.preview-excerpt {
  font-style: italic;
  opacity: 0.9;
  margin: 0.5rem 0;
}



.browse-link:hover {
  background: rgba(255, 201, 240, 0.3);
  transform: translateY(-2px);
}

.content-note, .support-note {
  background: rgba(255, 255, 0, 0.1);
  border: 1px solid rgba(255, 255, 0, 0.3);
  padding: 1rem;
  border-radius: 8px;
  margin: 1rem 0;
  font-size: 0.9rem;
}

.support-note {
  background: rgba(255, 201, 240, 0.1);
  border: 1px solid rgba(255, 201, 240, 0.3);
}

/* Remove original layout styles when using grid */
.writing-layout {
  display: none;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .content-grid > div:not(.grid-title) {
    grid-template-columns: 1fr;
  }
  
  .content-grid {
    padding: 0 1rem;
  }
}

h3 {

  text-align: center;
}

.writing-bio {
  text-align: center !important; 
}

.browse-link {
  display: block;
  background: rgba(255, 201, 240, 0.2);
  border: 1px solid rgba(255, 201, 240, 0.4);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-top: auto;
  transition: all 0.3s ease;
}

/* Analytical Essays Page Spacing Fixes */

/* Grid Layout for Essays Page */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  padding: 2rem 1rem;
  max-width: 1400px;
  margin: 0 auto;
}

/* Ensure all cards have equal height and proper spacing */
.content-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 2rem;
  margin: 0; /* Remove any inherited margins */
}

/* Make sure content distributes evenly within cards */
.content-card h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  text-align: center;
}

.content-card > p {
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Essay excerpt styling with proper spacing */
.essay-excerpt {
  background: rgba(255, 255, 255, 0.03);
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 3px solid #87ceeb;
  font-style: italic;
  margin: 1.5rem 0;
  flex-grow: 1; /* Allow excerpt to expand */
  max-height: 250px; /* Limit height to prevent overflow */
  overflow-y: auto; /* Add scroll if needed */
}

.essay-excerpt p {
  margin: 0.75rem 0;
  text-align: left; /* Left align excerpt text */
  font-size: 0.9rem;
  line-height: 1.4;
}

.essay-excerpt p:first-child {
  margin-top: 0;
}

.essay-excerpt p:last-child {
  margin-bottom: 0;
}

/* Support section improvements */
.support-links {
  margin: 1.5rem 0;
  flex-grow: 1; /* Fill available space */
}

.support-item {
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
  border-left: 2px solid rgba(255, 201, 240, 0.3);
}

.support-item h4 {
  margin: 0 0 0.5rem 0;
  color: #87ceeb;
}

.support-item p {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
  text-align: left;
}

/* Upcoming work section */
.upcoming-work {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  flex-grow: 1;
}

.upcoming-work h4 {
  margin: 0 0 0.75rem 0;
  color: #ffc9f0;
}

.upcoming-work p {
  margin: 0.5rem 0;
  text-align: left;
}

.upcoming-work small {
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
}

/* Browse links at bottom of cards */
.browse-link {
  display: block;
  background: rgba(255, 201, 240, 0.2);
  border: 1px solid rgba(255, 201, 240, 0.4);
  padding: 1rem 1.5rem;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  text-align: center;
  margin-top: auto; /* Push to bottom of card */
  transition: all 0.3s ease;
  font-weight: 500;
}

.browse-link:hover {
  background: rgba(255, 201, 240, 0.3);
  border-color: rgba(255, 201, 240, 0.6);
  transform: translateY(-2px);
}

/* Small text styling */
small {
  display: block;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.8);
  font-style: italic;
  text-align: center;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .content-card {
    padding: 1.5rem;
  }
  
  .essay-excerpt {
    padding: 1rem;
    max-height: 200px;
  }
  
  .essay-excerpt p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .content-grid {
    padding: 0.5rem;
  }
  
  .content-card {
    padding: 1rem;
  }
  
  .essay-excerpt {
    padding: 0.75rem;
    max-height: 150px;
  }
}