/* -------------------------------------------------------------
   1. DESIGN TOKENS (Variables)
   ------------------------------------------------------------- */
:root {
  --color-dark-bg: #3d4340;
  --color-dark-text: #eeeeee;
  --color-dark-text-dim: #717d78;
  --color-light-bg: #eeeeee;
  --color-light-text: #2f3432;
  --color-light-text-dim: #828b87;
  --color-light-border: #d0d6d4;

  --font-base: 14px;
  --font-sm: 13px;
  --spacing-col: 36rem;
}

/* -------------------------------------------------------------
   2. BASE RESET & BODY
   ------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-dark-bg);
  color: var(--color-dark-text);
  font-family: ui-monospace, Menlo, Monaco, "Courier New", monospace;
  font-size: var(--font-base);
  line-height: 1.5;
}

/* -------------------------------------------------------------
   3. LEFT PANE (Header & Navigation)
   ------------------------------------------------------------- */
body > header {
  padding: 1.5rem;
}

.brand h1 {
  font-size: var(--font-sm);
  font-weight: normal;
  margin: 0;
}

.brand h1 span {
  display: block;
  font-weight: bold;
  font-size: var(--font-base);
  color: var(--color-dark-text);
}

/* ==========================================
   BRAND — WIND GUST ANIMATION
   ========================================== */

.brand a .brand-name span {
  display: inline-block;
  transform-origin: bottom center;
}

.brand a:hover .brand-name span {
  animation: wind-gust 1.1s ease-in-out both;
}

.brand a:hover .brand-name span:nth-child(1) {
  animation-delay: 0s;
}

.brand a:hover .brand-name span:nth-child(2) {
  animation-delay: 0.1s;
}

.brand a:hover .brand-name span:nth-child(3) {
  animation-delay: 0.2s;
}

.brand a:hover .brand-name span:nth-child(4) {
  animation-delay: 0.3s;
}

.brand a:hover .brand-name span:nth-child(5) {
  animation-delay: 0.4s;
}

@keyframes wind-gust {
  0%,
  100% {
    transform: rotate(0deg) scale(1) translateX(0);
    margin-right: 0;
  }

  50% {
    transform: rotate(18deg) scale(1.15) translateX(3px);
    margin-right: 0.08em;
  }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .brand a:hover .brand-name span {
    animation: none;
  }
}

/* ==========================================
   HEADER — NAVIGATION LINKS
   ========================================== */

header a {
  text-decoration: none;
  color: var(--color-dark-text-dim);
  font-size: var(--font-sm);
  display: block;
}

header a span {
  display: block;
  color: var(--color-dark-text);
  transition: color 0.2s ease;
  font-size: var(--font-base);
}

header a:hover span {
  color: var(--color-dark-text-dim);
}

nav div {
  margin-bottom: 1rem;
}

/* -------------------------------------------------------------
   4. RIGHT PANE (Light Content)
   ------------------------------------------------------------- */
.work-wrapper {
  background-color: var(--color-light-bg);
  color: var(--color-light-text);
  width: 100%;
  min-height: 100dvh;
}

article {
  max-width: var(--spacing-col);
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.article-header {
  text-align: center;
  margin-bottom: 5rem;
  padding: 0;
}

.article-header h2 {
  font-size: var(--font-base);
  font-weight: bold;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
}

.article-header h3 {
  font-size: var(--font-sm);
  font-weight: normal;
  color: var(--color-light-text-dim);
  margin: 0;
  line-height: 1.6;
}

.article-header .date {
  display: inline-block;
  margin-top: 0.5rem;
}

figure {
  margin: 2rem 0;
}

figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--color-light-border);
}

.article-body figcaption {
  text-align: center;
  font-size: 12px;
  color: var(--color-light-text-dim);
  margin-top: 0.75rem;
}

footer {
  text-align: center;
  font-size: 12px;
  color: var(--color-light-text-dim);
  border-top: 1px solid var(--color-light-border);
  padding-top: 3rem;
  margin-top: 3rem;
  padding-bottom: 3rem;
}

/* ==========================================
   FOOTER — SECRET PUMPKIN
   ========================================== */

.secret-pumpkin {
  display: inline-block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

footer:hover .secret-pumpkin {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .secret-pumpkin {
    transition: none;
  }
}

/* Faq's */
.faq-intro {
  margin-bottom: 2.5rem;
}

.faq-item h3 {
  font-size: var(--font-base);
  font-weight: bold;
  margin: 0 0 0.75rem;
}

.faq-divider {
  display: flex;
  justify-content: center;
  color: var(--color-light-text-dim);
  margin-block: 2rem;
}

/* / faq's */

/* ==========================================================================
   Project Artifact Frame & Grayscale Hover
   ========================================================================== */
/* At rest: Warm Archival Sepia & Grayscale */
.photo-toned {
  filter: grayscale(85%) sepia(20%) contrast(96%);
  transition: filter 0.4s ease;
  cursor: pointer;
}

/* On hover: Full, untouched natural color */
.framed-artifact:hover .photo-toned {
  filter: none;
}

/* The clean gallery border matching the original collage */
.image-frame {
  border: 1px solid var(--color-light-border);
  border-radius: 2px;
  box-shadow: 0 4px 16px -2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background-color: transparent;
}

.image-frame img {
  width: 100%;
  height: auto;
  display: block;
}

/* Full color reveal on hover */
.framed-artifact:hover .photo-toned {
  filter: none;
}

/* ==========================================================================
   Project Artifact External Links & Arrow
   ========================================================================== */

/* Make the image link behave cleanly as a block */
.artifact-image-link {
  display: block;
  text-decoration: none;
}

/* Caption link styling */
.external-caption-link {
  color: var(--color-light-text-dim);
  text-decoration: underline;
  text-decoration-color: var(--color-light-border);
  text-underline-offset: 3px;
  transition:
    color 0.2s ease,
    text-decoration-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* On hover: caption darkens to readable text color */
.external-caption-link:hover,
.framed-artifact:hover .external-caption-link {
  color: var(--color-light-text);
  text-decoration-color: var(--color-light-text);
}

/* The neat little directional arrow ↗ */
.external-arrow {
  font-family: inherit;
  font-size: 0.9em;
  display: inline-block;
  transition: transform 0.2s ease;
}

/* Delightful micro-interaction: arrow lifts slightly up & right on hover! */
.framed-artifact:hover .external-arrow,
.external-caption-link:hover .external-arrow {
  transform: translate(2px, -2px);
}

/* equation */
.equation {
  margin: 2rem 0;
  text-align: center;
}

/* -------------------------------------------------------------
   5. RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------- */

/* Tablet (650px to 999px): Nav items split into 2 columns */
@media (min-width: 650px) and (max-width: 999px) {
  nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding-top: 1rem;
  }
}

/* Desktop (1000px and up): The 50/50 Screen Split */
@media (min-width: 1000px) {
  body {
    display: flex;
  }

  /* Left 50%: Stays sticky, splits into Brand | Nav */
  body > header {
    width: 50%;
    height: 100dvh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-content: start;
  }

  /* Right 50%: Scrolls smoothly */
  .work-wrapper {
    width: 50%;
    height: 100dvh;
    overflow-y: scroll;
  }
}

/* about page */
/* Section Sub-headings inside Article */
.section-title {
  margin-top: 3rem;
  margin-bottom: 0.75rem;
  font-size: var(--font-base);
  font-weight: bold;
}

/* Two-column Flex List */
.about-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-light-border);
}

.about-list li {
  font-size: var(--font-sm);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-light-border);
}

.about-list a {
  color: var(--color-light-text);
  text-decoration: underline;
  text-decoration-color: var(--color-light-text-dim);
  text-underline-offset: 0.2em;
}

.about-list a:hover {
  color: var(--color-light-text-dim);
}

.block {
  display: block;
}
/* end of about page */
