:root {
  --ink: #392B58;
  --deep: #393A10;
  --white: #FFFFFF;
  --sage: #F2F3AE;
  --sage2: #A4B0F5;
  --line: #D9D9C8;
  --muted: #466995;
  --periwinkle: #A4B0F5;
  --blue: #466995;
  --olive: #393A10;
  --lemon: #F2F3AE;
  --purple: #392B58;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* --- Star Field Background Container --- */
.star-field {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* Individual Star Styling */
.star {
  position: absolute;
  color: #FFD166; /* Warm golden star color */
  font-size: 20px;
  user-select: none;
  animation: soft-twinkle 4s ease-in-out infinite alternate;
}

/* Use the actual sparkle/star character */
.star::before {
  content: "✦";
}

/* Randomize positions, sizes, colors, and animation delays for each star */
.star:nth-child(1)  { top: 10%; left: 15%; font-size: 16px; color: #FFD166; animation-delay: 0s; }
.star:nth-child(2)  { top: 25% ; left: 80%; font-size: 24px; color: #FF7896; animation-delay: 1.2s; }
.star:nth-child(3)  { top: 40% ; left: 45%; font-size: 18px; color: #A4B0F5; animation-delay: 0.5s; }
.star:nth-child(4)  { top: 60% ; left: 10%; font-size: 22px; color: #FFD166; animation-delay: 2.1s; }
.star:nth-child(5)  { top: 75% ; left: 70%; font-size: 15px; color: #B464F0; animation-delay: 1.8s; }
.star:nth-child(6)  { top: 15% ; left: 50%; font-size: 20px; color: #FF7896; animation-delay: 0.9s; }
.star:nth-child(7)  { top: 85% ; left: 30%; font-size: 26px; color: #FFD166; animation-delay: 2.5s; }
.star:nth-child(8)  { top: 50% ; left: 90%; font-size: 14px; color: #A4B0F5; animation-delay: 1.5s; }
.star:nth-child(9)  { top: 30% ; left: 30%; font-size: 19px; color: #5AF0F0; animation-delay: 0.3s; }
.star:nth-child(10) { top: 90% ; left: 85%; font-size: 22px; color: #FF7896; animation-delay: 2.8s; }

/* Soft Twinkle Animation */
@keyframes soft-twinkle {
  0% {
    opacity: 0.25;
    transform: scale(0.8) rotate(0deg);
  }
  50% {
    opacity: 0.75;
    transform: scale(1.15) rotate(15deg);
  }
  100% {
    opacity: 0.25;
    transform: scale(0.8) rotate(30deg);
  }
}

/* Ensure your site content layers safely above the background */
header, main, footer {
  max-width: 1180px;
  margin: auto;
  position: relative;
  z-index: 2;
}

header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

nav {
  padding: 19px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.4px;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 22px;
}

.nav-links a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.hero {
  padding: 40px 28px 90px;
  background: transparent;
}

.eyebrow, .sectionhead p {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 2px;
  color: var(--muted);
}

.hero h1 {
  font-size: clamp(56px, 10vw, 122px);
  line-height: .9;
  letter-spacing: -3px;
  font-weight: 900;
  margin: 22px 0 35px;
  max-width: 1070px;
  color: var(--ink);
}

.hero h1 span {
  color: var(--blue);
}

.intro {
  font-size: clamp(20px, 3vw, 29px);
  line-height: 1.4;
  max-width: 780px;
  color: var(--ink);
}

.button {
  display: inline-block;
  margin-top: 24px;
  background: var(--ink);
  color: var(--white);
  padding: 15px 22px;
  border-radius: 100px;
  font-weight: 800;
  transition: .2s;
  text-decoration: none;
}

.button:hover {
  background: var(--deep);
  transform: translateY(-2px);
}

section:not(.hero) {
  padding: 80px 28px;
  border-top: 1px solid var(--line);
}

.sectionhead h2, .writing > h2, .about h2, .contact h2 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
  letter-spacing: -2px;
  font-weight: 800;
  margin: 10px 0 35px;
  color: var(--ink);
}

.section-intro {
  max-width: 700px;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: 35px;
  color: var(--muted);
}

.articles-grid, .video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.article-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  transition: .25s;
  text-decoration: none;
  color: inherit;
}

.article-card:hover {
  background: rgba(242, 243, 174, 0.95);
  border-color: var(--ink);
  transform: translateY(-4px);
}

.article-card span, .video-info span, .showcase-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  font-weight: 900;
  color: var(--muted);
}

.article-card h3 {
  font-size: 27px;
  line-height: 1.15;
  margin: 14px 0;
  letter-spacing: -.7px;
  color: var(--ink);
}

.article-card p {
  color: var(--muted);
  margin-top: auto;
  margin-bottom: 18px;
}

.article-card strong, .video-info strong {
  font-size: 14px;
  color: var(--ink);
}

.selected-photography {
  background: rgba(242, 243, 174, 0.70); /* Semi-transparent so sparkles shine through */
}

.photography-work {
  background: rgba(255, 255, 255, 0.75);
}

.photo-project-copy {
  max-width: 800px;
  margin-bottom: 28px;
}

.photo-project-copy h3 {
  font-size: clamp(30px, 4vw, 45px);
  letter-spacing: -1.2px;
  margin: 10px 0;
  color: var(--ink);
}

.photo-project-copy p {
  font-size: 18px;
  line-height: 1.55;
  color: var(--muted);
}

.canva-embed {
  position: relative;
  width: 100%;
  height: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-init: 0 8px 24px rgba(57, 43, 88, .10);
}

.canva-embed iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 0;
  padding: 0;
  margin: 0;
}

.canva-desktop {
  padding-top: 56.25%;
}

.canva-mobile {
  padding-top: 177.7778%;
}

.sapl-showcases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 35px;
  align-items: start;
}

.sapl-showcase {
  min-width: 0;
}

.showcase-label {
  margin: 0 0 12px;
  color: var(--ink);
}

.video-work {
  background: rgba(164, 176, 245, 0.70); /* Semi-transparent periwinkle */
}

.video-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  transition: .25s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
}

.video-preview {
  height: 350px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  display: grid;
  place-items: center;
}

.play-button {
  height: 78px;
  width: 78px;
  border-radius: 50%;
  background: var(--white);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 28px;
  padding-left: 5px;
  transition: .2s;
}

.video-card:hover .play-button {
  transform: scale(1.08);
}

.video-info {
  padding: 26px;
}

.video-info h3 {
  font-size: 28px;
  margin: 10px 0;
  color: var(--ink);
}

.video-info p {
  line-height: 1.55;
  color: var(--muted);
}

.about {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  background: rgba(255, 255, 255, 0.75);
}

.about-copy p {
  font-size: 19px;
  line-height: 1.65;
  margin-top: 0;
  margin-bottom: 19px;
  color: var(--ink);
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.skills span {
  padding: 9px 13px;
  background: var(--lemon);
  color: var(--ink);
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
}

.contact {
  background: var(--purple);
  color: var(--white);
  border-radius: 22px;
  margin: 40px 28px 70px;
  padding: 60px;
}

.contact h2 {
  color: var(--white);
}

.contact p:not(.eyebrow) {
  font-size: 20px;
  line-height: 1.5;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.9);
}

.contact .eyebrow {
  color: rgba(255, 255, 255, 0.7);
}

.contact .button {
  background: var(--lemon);
  color: var(--ink);
}

.contact .button:hover {
  background: var(--periwinkle);
}

footer {
  padding: 25px 28px 45px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
  color: var(--ink);
}

@media(max-width: 700px) {
  nav {
    align-items: flex-start;
    gap: 14px;
    flex-direction: column;
  }
  .nav-links {
    width: 100%;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 3px;
  }
  .hero {
    padding-top: 40px;
  }
  .hero h1 {
    letter-spacing: -2px;
  }
  .articles-grid, .video-grid, .about, .sapl-showcases {
    grid-template-columns: 1fr;
  }
  .about {
    gap: 20px;
  }
  .video-preview {
    height: 280px;
  }
  .contact {
    margin-left: 14px;
    margin-right: 14px;
    padding: 30px;
  }
  footer {
    gap: 12px;
    flex-direction: column;
  }
}
