:root {
  --cream: #FFEDBA;
  --pink: #FFE8E8;
  --thumb-glow: #FFDBDB;
  --glyph-hover: #FFA6A6;
  --ink: #141414;
  --link: #06B209;
  --sidebar-width: 25%;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
 

  font-family: system-ui, Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
}

a { color: inherit; }

.layout {
  display: flex; 
  height: 100vh;
  overflow: hidden; 
}

/* ---------- Sidebar (left column, 1/4 width) ---------- */

.sidebar {
  flex: 0 0 var(--sidebar-width);
  max-width: var(--sidebar-width);
  background: var(--cream);
  height: 100%;
  overflow-y: auto;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

/* "Stephanie Marie Cedeño" on project pages — same type & position as the
   start of the bio on the home page, so it reads as one anchored element. */
.bio .home-link {
  text-decoration: none;
  transition: filter 0.25s ease, opacity 0.25s ease;
}
/* blurs & fades on hover, matching the project links (.proj-link.is-dim) */
.bio .home-link:hover,
.bio .home-link:focus-visible {
  filter: blur(3px);
  opacity: 0.55;
}

.bio {
  margin: 0 0 16px;
}

.bio a, .bio .accent {
  text-decoration: underline;
}

/* On project pages the rest of the bio is invisible but still takes up
   space, so the ☀ below sits exactly where it does on the home page.
   Keep this text in project.html matching the bio in index.html. */
.bio-rest { visibility: hidden; }

/* "☀ Info" link under the bio / name */
.info-nav {
  margin-top: 8px;
}
.info-nav .proj-link { width: fit-content; }

/* On project pages only the ☀ shows. The word "Info" is hidden visually
   but still read out by screen readers. */
.info-nav.is-glyph-only .label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.sidebar-spacer { flex: 1 1 auto; min-height: 32px; }

.project-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.proj-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.proj-link .icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 18px;
  transform: translateY(-1px); 
  /* line-height: 1;
  text-align: center;
  font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", sans-serif;
  font-weight: normal; */
}

.proj-link.is-dim {
  filter: blur(3px);
  opacity: 0.55;
}

/* On project pages, the project you're currently viewing is bold */
.proj-link.is-current {
  cursor: default;
  font-weight: 700;
}

.other-section {
  margin-top: 40px;
}

.other-section .other-title { margin-bottom: 8px; }

.other-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.other-section a { text-decoration: none; }
.other-section a:hover { text-decoration: underline; }

/* ---------- Stage (right column, 3/4 width, home page) ---------- */

.stage {
  flex: 1 1 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* min-height: 100vh; */
  padding: 32px;
  overflow: hidden;
  background: #fff;
}

.oval-svg {
  width: 100%;
  height: 100%;
  max-height: 92vh;
}

.oval-outline {
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.5;
}

.glyph { cursor: crosshair; }

.glyph .glyph-icon {
  fill: var(--ink);
  font-size: 32px;
   /* font-family: "Apple Symbols", "Segoe UI Symbol", "Noto Sans Symbols", sans-serif; */
  transition: filter 0.25s ease, fill 0.25s ease;
}

/* the hovered glyph turns pink (and softly blurs) */
.glyph.is-dim .glyph-icon {
  fill: var(--glyph-hover);
  filter: blur(2.5px);
}

.glyph:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

/* width / height / position are set in script.js based on the image's
   proportions (portrait = 345px wide, landscape = 345px tall) */
.thumb {
  position: absolute;
  width: 345px;
  height: 460px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 0 40px 24px var(--thumb-glow);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -50%);
}

.thumb.is-placeholder { background-color: var(--pink); }

.thumb.is-visible { opacity: 1; }

/* ---------- Project page main content ---------- */

.project-main {
  flex: 1 1 auto;
  padding: 56px 64px;
  /* max-width: 1100px; */
  overflow-y: auto;
  height: 100%;
}

/* cap its children */
.project-main > * {
  max-width: 972px; /* 1100px minus the 64px padding on each side */
}


.project-title {
  font-size: 24px;
  margin: 0 0 18px;
}

.project-desc {
  max-width: 62ch;
  margin: 0 0 40px;
}

/* captions & secondary info — smaller type */
.project-caption {
  max-width: 62ch;
  font-size: 14px;
  line-height: 1.45;
  margin: 0 0 40px;
  /* softer text color (instead of opacity, so links inside stay full green) */
  color: rgba(20, 20, 20, 0.75);
}

/* a caption placed right after an image or video tucks up under it */
.image-block + .project-caption { margin-top: -18px; }
.image-row + .project-caption { margin-top: 10px; }
.embed-block + .project-caption { margin-top: -30px; }

/* links in project text & captions: green, underlined, with an external-link arrow */
.project-desc a,
.project-caption a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.25em;
}
.project-desc a::after,
.project-caption a::after {
  content: "\00a0\2197"; /* non-breaking space + ↗ */
}

.image-block {
  background: var(--pink);
  width: 100%;
  height: 460px;
  margin-bottom: 28px;
}

.image-row {
  display: flex;
  gap: 28px;
}

.image-row .image-block {
  flex: 1 1 0;
  height: 360px;
  margin-bottom: 0;
}

/* ensures that the real images have natural proportions vs. the placeholders who have a fixed height */
img.image-block { height: auto; background: none; display: block; }
.image-row { align-items: flex-start; }
.image-row img.image-block { height: auto; }

/* pasted embed code (Vimeo, YouTube, etc.) */
.embed-block { margin-bottom: 40px; }

/* embeds pasted as a bare <iframe> (e.g. YouTube) fill the column at 16:9 */
.embed-block > iframe {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border: 0;
}




/* ---------- Accessibility & motion ---------- */

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .proj-link, .glyph .glyph-icon, .thumb {
    transition: none !important;
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .layout { 
    flex-direction: column; 
    height: auto;
    overflow: visible;
  }

  .sidebar {
    flex: 0 0 auto;
    max-width: 100%;
    width: 100%;
    height: auto;
    overflow-y: visible;
    padding: 28px 24px;
  }


  .sidebar-spacer { min-height: 24px; }

  .stage {
    padding: 16px;
    min-height: 70vh;
  }

  .project-main {
    height: auto;
    overflow-y: visible;
    padding: 32px 24px;
  }

  .image-row {
    flex-direction: column;
  }

  .image-row .image-block { height: 300px; }
}
