/* Home — Scrapbook: pinned photos, handwritten notes, stitched edges */

.c-nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 28px clamp(20px, 5vw, 64px);
}
.c-wordmark { font-family: var(--serif); font-size: 28px; font-weight: 400; font-style: normal; }
.c-nav nav { display: flex; gap: 28px; font-size: 15px; }

.c-hero { padding: clamp(24px, 5vw, 64px) clamp(20px, 5vw, 64px) 0; text-align: center; }
.c-hero h1 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: 1.04;
  max-width: 14ch;
  margin: 0 auto;
}
.c-hero h1 em { color: var(--clay); font-style: normal; }
.c-scribble {
  font-family: "Caveat", cursive;
  font-size: clamp(26px, 3vw, 38px);
  color: var(--rose);
  transform: rotate(-3deg);
  margin-top: 6px;
}

/* Polaroids */
.c-pinboard {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(12px, 3vw, 40px);
  margin: 48px auto 0;
  padding: 48px 20px;
  max-width: 1200px;
  background: var(--linen);
  border-radius: 8px;
  outline: 2px dashed #cdb998; /* stitched edge */
  outline-offset: -12px;
}
.c-polaroid {
  position: relative;
  width: clamp(150px, 19vw, 230px);
  padding: 12px 12px 0;
  margin: 0;
  background: #fffdf8;
  box-shadow: 0 6px 16px rgba(59, 47, 39, .14);
}
.c-polaroid::before { /* washi tape */
  content: "";
  position: absolute;
  top: -10px;
  left: 50%;
  width: 70px;
  height: 22px;
  transform: translateX(-50%) rotate(-4deg);
  background: rgba(236, 208, 143, .75);
}
.c-polaroid div { aspect-ratio: 1; }
.c-polaroid figcaption, .c-polaroid .c-cap {
  display: block;
  font-family: "Caveat", cursive;
  font-size: 22px;
  text-align: center;
  padding: 8px 0 12px;
  line-height: 1.15;
}
.r1 { transform: rotate(-4deg); }
.r2 { transform: rotate(3deg); margin-top: 24px; }
.r3 { transform: rotate(-2deg); }
.r4 { transform: rotate(5deg); margin-top: 16px; }
.r2::before { background: rgba(169, 198, 194, .75); }
.r4::before { background: rgba(217, 139, 132, .6); }
.c-pinboard .r1::before { background: rgba(158, 178, 112, .7); } /* green tape on the first home polaroid (Anne) */

.c-section { padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 64px) 0; max-width: 1100px; margin: 0 auto; }
.c-section h2 { margin-bottom: 28px; }

/* Diary list, like a notebook */
.c-entries { list-style: none; padding: 0; }
.c-entries li {
  display: grid;
  grid-template-columns: 110px 1fr 140px;
  gap: 28px;
  align-items: center;
  padding: 24px 0;
  border-top: 2px dashed #d8c9b2;
}
.c-entries li:last-child { border-bottom: 2px dashed #d8c9b2; }
.c-date { font-family: "Caveat", cursive; font-size: 30px; color: var(--clay); }
.c-entries h3 { font-family: var(--serif); font-weight: 450; font-size: 24px; margin: 2px 0 6px; }
.c-entries p:last-child { color: var(--muted); }
.c-thumb { aspect-ratio: 1; border-radius: 50%; }

/* Projects as yarn labels */
.c-projects { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.c-project {
  position: relative;
  display: block;
  padding: 120px 28px 28px;
  border-radius: 8px;
  outline: 2px dashed rgba(255, 253, 248, .8);
  outline-offset: -10px;
}
.c-project:hover { text-decoration: none; transform: rotate(-1deg); }
.c-tag {
  position: absolute;
  top: 24px;
  left: 28px;
  font-family: "Caveat", cursive;
  font-size: 22px;
}
.c-project h3 { font-family: var(--serif); font-weight: 450; font-size: 30px; }

.c-about { display: grid; grid-template-columns: auto 1fr; gap: 56px; align-items: center; }
.c-me { width: 220px; margin-top: 0; }
.c-about p { font-size: 18px; max-width: 52ch; }

.c-footer {
  margin-top: clamp(72px, 10vw, 120px);
  padding: 64px 20px 96px;
  text-align: center;
  background: var(--sage);
}
.c-footer .email { font-family: var(--serif); font-size: clamp(24px, 3.6vw, 44px); }

@media (max-width: 760px) {
  .c-nav { flex-direction: column; align-items: center; gap: 10px; }
  .c-pinboard { padding: 36px 14px; gap: 18px 12px; }
  .c-polaroid { width: calc(50% - 10px); padding: 8px 8px 0; }
  .c-polaroid figcaption, .c-polaroid .c-cap { font-size: 18px; line-height: 1.1; padding: 6px 0 10px; }
  .r2, .r4 { margin-top: 12px; }
  .c-entries li { grid-template-columns: 1fr; gap: 4px; }
  .c-date { font-size: 26px; line-height: 1; }
  .c-thumb { display: none; }
  .c-about { grid-template-columns: 1fr; justify-items: center; }
}
.c-more { display: inline-block; margin-top: 14px; color: var(--clay); }
.c-footer .c-scribble { color: #fffaf1; }
@media (max-width: 760px) { .c-nav nav { flex-wrap: wrap; justify-content: center; gap: 6px 20px; } }

/* Real photos in the polaroids and diary thumbs */
.c-polaroid div, .c-thumb { overflow: hidden; background: var(--linen); }
.c-polaroid div img, .c-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* A pinned photo that opens a make's page */
a.c-polaroid { display: block; color: inherit; }
a.c-polaroid:hover { text-decoration: none; box-shadow: 0 10px 22px rgba(59, 47, 39, .22); }

/* Top menu hover: a loop of yarn draws itself above the middle of the word, large and bold, just behind the letters,
   like a single chain stitch (Anne chose "A · One stitch", options/nav-hook.html). nav.js adds the drawing. */
.c-nav nav a { position: relative; isolation: isolate; }
.c-nav nav a:not(.here):hover { text-decoration: none; }
.c-stitch { position: absolute; z-index: -1; left: 50%; bottom: calc(100% + 1px); width: 36px; height: 29px; transform: translateX(-50%); opacity: 1;
  overflow: visible; pointer-events: none; fill: none; stroke: var(--rose); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.c-stitch path { stroke-dasharray: 1; stroke-dashoffset: 1; visibility: hidden; } /* hidden until hover, or its round tip shows as a dot */
.c-nav nav a:hover .c-stitch path, .c-nav nav a:focus-visible .c-stitch path { visibility: visible; animation: c-stitch 2.6s ease-in-out infinite; }
/* Loops for as long as you hover: the yarn draws in from the left, rests, then slips away to the right (Anne) */
@keyframes c-stitch { 0% { stroke-dashoffset: 1; } 45%, 60% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }
/* A different yarn for each word, soft but clearly different (Anne chose "C · Soft but clear", options/nav-stitch-colours-2.html) */
.c-nav nav a:nth-child(1) .c-stitch { stroke: #ef7b86; } /* Diary: pink */
.c-nav nav a:nth-child(2) .c-stitch { stroke: #9b7fd6; } /* Projects: lavender */
.c-nav nav a:nth-child(3) .c-stitch { stroke: #7fbf6a; } /* About: apple green */
.c-nav nav a:nth-child(4) .c-stitch { stroke: #f2b33d; } /* Resources: marigold */
.c-nav nav a:nth-child(5) .c-stitch { stroke: #5aa8d6; } /* Contact: sky blue */
@media (prefers-reduced-motion: reduce) {
  .c-nav nav a:hover .c-stitch path, .c-nav nav a:focus-visible .c-stitch path { animation: none; stroke-dashoffset: 0; }
}
