/* =====================================================================
   HOME-NOTES.CSS — homepage sections below the hero (index.html)
   The sticky-note look for "A little about me" and "Experience", the
   photo-booth strip, and the "Three of my favorites" polaroids.
   Loaded after styles.css and hero.css.

   Colours used: blue #376399, yellow #f7e59a, cream #f5ebd2,
   sage #e6ecdf, blush #eee1d5.
   Each note's tilt is set with --note-tilt (e.g. --note-tilt: -1deg;).
   ===================================================================== */
body.home-notes-draft #pixel-paper .paper-journey {
  max-width: 1720px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

body.home-notes-draft #pixel-paper .paper-chapter {
  min-height: 0;
  padding-block: clamp(44px, 5vw, 80px);
}

body.home-notes-draft #pixel-paper .paper-sheet {
  box-shadow: 5px 0 0 #d2c6a4, 0 5px 0 #d2c6a4, 9px 9px 0 #39434a1c;
  border: 0;
}

/* Both sticky notes stay a comfortable reading size (up to 960px and
   1000px wide) and scale down with the screen. */
body.home-notes-draft #pixel-paper .paper-about {
  background: #f7e59a;
  transform: rotate(-.8deg);
  width: min(94%, 960px);
  max-width: none;
  padding: clamp(24px, 4vw, 56px);
}

body.home-notes-draft #pixel-paper .paper-about-layout {
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
}

body.home-notes-draft #pixel-paper .paper-about-layout p {
  max-width: 60ch;
}

body.home-notes-draft #pixel-paper .paper-about-layout h2 {
  font-size: clamp(32px, 3.6vw, 52px);
}

body.home-notes-draft #pixel-paper .paper-sheet .paper-lead {
  font-size: clamp(18px, 1.7vw, 23px);
}

/* Photo-booth strip: three photos stacked on a white strip, tilted and
   poking out of the sticky note a little. */
body.home-notes-draft #pixel-paper .paper-photostrip {
  justify-self: center;
  display: grid;
  gap: clamp(8px, 0.9vw, 12px);
  width: clamp(150px, 15vw, 210px);
  margin: -48px 0;
  padding: clamp(10px, 1vw, 14px) clamp(10px, 1vw, 14px) 0;
  background: #fffdf6;
  transform: rotate(4deg);
  box-shadow: 5px 6px 0 #39434a24;
}

body.home-notes-draft #pixel-paper .photostrip-frame {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;          /* for real <img> photos */
  background: #dfdfd9;
  color: var(--ink);
  font-size: 13px;
}

body.home-notes-draft #pixel-paper .paper-photostrip figcaption {
  padding: 4px 0 12px;
  font-family: salted, Gabarito, sans-serif;
  color: var(--blue);
  font-size: clamp(18px, 1.6vw, 24px);
  text-align: center;
}

body.home-notes-draft #pixel-paper .paper-tape {
  left: 50%;
  width: 100px;
  height: 28px;
  top: -14px;
  background: #d0b87a99;
  transform: translateX(-50%) rotate(-4deg);
  border: 0;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 97% 30%, 97% 60%, 100% 60%, 100% 100%, 0 100%, 0 65%, 3% 65%, 3% 35%, 0 35%);
}

body.home-notes-draft #pixel-paper .paper-experience {
  width: min(100%, 1000px);
  max-width: none;
  padding: clamp(24px, 4vw, 56px);
  background: #e6ecdf;
  transform: rotate(.6deg);
}

body.home-notes-draft #pixel-paper .paper-experience h2 {
  font-size: clamp(32px, 3.6vw, 52px);
}

body.home-notes-draft #pixel-paper .resume-groups {
  display: grid;
  gap: 32px;
}

body.home-notes-draft #pixel-paper .resume-group {
  border-top: 1px solid #39434a40;
  padding-top: 24px;
}

body.home-notes-draft #pixel-paper .resume-group h3 {
  font: 400 clamp(22px, 2vw, 28px)/1.2 salted, Gabarito, sans-serif;
  color: var(--blue);
  margin: 0 0 20px;
}

body.home-notes-draft #pixel-paper .resume-entry {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 24px;
}

body.home-notes-draft #pixel-paper .resume-entry h4 {
  font-size: 19px;
  margin: 0 0 8px;
}

body.home-notes-draft #pixel-paper .resume-entry p {
  margin: 0 0 8px;
  max-width: 65ch;
}

body.home-notes-draft #pixel-paper .resume-entry + .resume-entry {
  margin-top: 28px;
}

body.home-notes-draft #pixel-paper .resume-dates {
  font-size: 14px;
}

body.home-notes-draft #pixel-paper .paper-favorites-heading {
  padding-top: clamp(40px, 5vw, 80px);
}

body.home-notes-draft #pixel-paper .paper-favorites-grid {
  max-width: 1400px;
  gap: clamp(24px, 3vw, 44px);
}

body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-chapter {
  padding: 0;
}

/* "Three of my favorites" as polaroids: an off-white frame with a thin
   border on the sides and top, a deeper strip at the bottom for the title
   and caption, and a pixel pushpin (its colour is --pin-color below). */
body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project {
  --polaroid-edge: clamp(12px, 1.1vw, 16px);
  text-align: center;
  padding: var(--polaroid-edge) var(--polaroid-edge) clamp(24px, 2.4vw, 34px);
  background: #fffefa;
  border: 2px solid #e2dac6;      /* crisp pixel edge instead of a soft shadow */
  transition: none;
  transform: rotate(var(--note-tilt));
}

/* The photo inside the frame */
body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-image {
  background: #e9eef1;
  border: 2px solid #39434a1f;
}

/* Title and caption in the bottom strip */
body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-heading,
body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-caption {
  padding-inline: clamp(6px, 1vw, 14px);
}

body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-heading {
  padding-top: clamp(18px, 1.8vw, 26px);
}

body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-pin {
  color: var(--pin-color);
}

body.home-notes-draft #pixel-paper .paper-project-0 {
  --note-tilt: -1.6deg;
  --pin-color: #2f5fb3;   /* United: blue pushpin */
}

body.home-notes-draft #pixel-paper .paper-project-1 {
  --note-tilt: 1.2deg;
  --pin-color: #4f9a4b;   /* Cura: green pushpin */
}

body.home-notes-draft #pixel-paper .paper-project-2 {
  --note-tilt: -.9deg;
  --pin-color: #e2662f;   /* Scope: orange pushpin */
}

/* Center the layout containers themselves, not a translated text child. */
body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-heading {
  display: block;
  width: 100%;
  min-height: 0;
}

body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-heading > div {
  width: 100%;
}

body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-caption {
  align-items: center;
  width: 100%;
}

body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project-caption > div {
  width: 100%;
}

body.home-notes-draft #pixel-paper .paper-favorites-grid p {
  margin-inline: auto;
}

@media (max-width: 900px) {
  body.home-notes-draft #pixel-paper .paper-about {
    width: 100%;
  }

  body.home-notes-draft #pixel-paper .paper-about-layout {
    grid-template-columns: 1fr;
  }

  /* On tablets and phones the strip turns sideways under the text. */
  body.home-notes-draft #pixel-paper .paper-photostrip {
    grid-template-columns: repeat(3, 1fr);
    width: min(100%, 460px);
    margin: 8px auto -40px;
    padding-bottom: clamp(10px, 1vw, 14px);
    transform: rotate(2deg);
  }

  body.home-notes-draft #pixel-paper .paper-photostrip figcaption {
    grid-column: 1 / -1;
    padding: 0 0 2px;
  }
}

@media (max-width: 768px) {
  body.home-notes-draft #pixel-paper .paper-about {
    transform: rotate(-.2deg);
  }

  body.home-notes-draft #pixel-paper .paper-experience {
    transform: rotate(.2deg);
  }

  body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project {
    --note-tilt: .2deg;
  }

  body.home-notes-draft #pixel-paper .resume-entry {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.home-notes-draft #pixel-paper #main .pp-object {
    gap: 14px;
  }

  body.home-notes-draft #pixel-paper #main .pp-scene {
    row-gap: 24px;
  }
}

@media (max-width: 768px) and (max-height: 740px) {
  body.home-notes-draft #pixel-paper #main .pp-object {
    column-gap: 22px;
  }

  body.home-notes-draft #pixel-paper #main .pp-scene {
    row-gap: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project {
    transform: none !important;
  }
}

/* Favorites match the hero: no resting shadow; lift casts the shadow. */
body.home-notes-draft #pixel-paper .paper-favorites-grid .paper-project {
  box-shadow: none;
  filter: drop-shadow(0px 0px 0px transparent);
}
