/* ============================================================
   Erica Jacque — pinboard portfolio  ·  shared stylesheet
   Fabric board + wooden frame; work pinned as polaroids,
   words on paper panels for legibility. Multi-page.
   ============================================================ */

:root {
  --cream:      #f5f0e2;
  --cream-2:    #ece3c8;
  --paper:      #fffdf5;
  --sage:       #8b9a6b;
  --sage-deep:  #56653f;
  --ink:        #35301f;
  --ink-soft:   #5f5844;
  --wood:       #d9b678;
  --wood-deep:  #a97f42;
  --butter:     #f0dd7a;
  --butter-deep:#c9a83a;
  --pitsik:     #a873c9;
  --pipsi-red:  #bd4632;
  --pipsi-deep: #8f3020;

  --shadow-soft: 0 10px 26px rgba(53, 42, 16, .20);
  --shadow-lift: 0 18px 44px rgba(53, 42, 16, .30);

  --display: "Bricolage Grotesque", "Georgia", serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;
  --hand:    "Shantell Sans", "Comic Sans MS", cursive;

  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--ink);
  line-height: 1.6;
  background:
    repeating-linear-gradient(95deg,
      rgba(255,235,190,.14) 0 3px, rgba(96,64,18,.12) 3px 5px,
      rgba(255,235,190,0) 5px 26px),
    linear-gradient(100deg, #caa05c, #b3813f 45%, #c99e58 70%, #a87737);
  padding: clamp(8px, 1.8vw, 22px);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* ---- The gingham board (softened for legibility) ---- */
.board {
  position: relative;
  max-width: calc(var(--maxw) + 120px);
  margin: 0 auto;
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(0deg,  rgba(122,140,86,.085) 0 14px, rgba(122,140,86,0) 14px 28px),
    repeating-linear-gradient(90deg, rgba(122,140,86,.085) 0 14px, rgba(122,140,86,0) 14px 28px),
    radial-gradient(140% 100% at 50% 25%, rgba(255,253,244,.5), rgba(255,253,244,.12) 70%);
  border-radius: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(84, 58, 16, .35),
    inset 0 4px 22px rgba(59, 40, 8, .30),
    inset 0 -2px 14px rgba(59, 40, 8, .22),
    0 6px 30px rgba(50, 33, 5, .45);
  overflow: clip;
}
.board::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--sage-deep); color: var(--paper);
  padding: 10px 18px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { left: 16px; }

/* ==================== PAPER PANEL (readability) ==================== */
.panel {
  position: relative;
  background: var(--paper);
  border-radius: 16px;
  padding: clamp(22px, 3.2vw, 40px);
  box-shadow: var(--shadow-soft);
}
.panel::before {
  content: "";
  position: absolute; inset: 9px;
  border: 1.5px dashed rgba(122,140,86,.4);
  border-radius: 10px;
  pointer-events: none;
}
.panel > * { position: relative; }

/* ==================== NAV ==================== */
.nav-wrap {
  position: sticky; top: 0; z-index: 40;
  padding: 12px clamp(14px, 3.5vw, 40px);
  background: linear-gradient(rgba(243,237,218,.96), rgba(243,237,218,.82) 72%, rgba(243,237,218,0));
  backdrop-filter: blur(4px);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.nav-name {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.3rem;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.star-mini { width: 26px; height: 26px; filter: drop-shadow(0 2px 2px rgba(80,60,10,.3)); flex: none; }

.nav-links { display: flex; align-items: center; gap: clamp(8px, 1.8vw, 22px); }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .98rem;
  padding: 5px 3px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--sage-deep); border-bottom-color: var(--sage); }
.nav-links a[aria-current="page"] { color: var(--sage-deep); border-bottom-color: var(--pipsi-red); }
.nav-cta {
  background: var(--pipsi-red); color: var(--paper) !important;
  padding: 8px 18px !important; border-radius: 999px; border-bottom: none !important;
  box-shadow: 0 3px 0 var(--pipsi-deep); transition: transform .15s, box-shadow .15s;
}
.nav-cta:hover, .nav-cta:focus-visible { transform: translateY(-2px); box-shadow: 0 5px 0 var(--pipsi-deep); }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--sage);
  border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--sage-deep);
}
.nav-toggle svg { width: 22px; height: 22px; display: block; fill: currentColor; }

/* ==================== BUTTONS ==================== */
.btn-primary, .btn-ghost {
  font-family: var(--body); font-weight: 700; font-size: 1rem; text-decoration: none;
  border-radius: 999px; padding: 12px 26px; display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s, box-shadow .15s; cursor: pointer; border: none;
}
.btn-primary { background: var(--sage-deep); color: var(--paper); box-shadow: 0 4px 0 #3c471f; }
.btn-primary:hover, .btn-primary:focus-visible { transform: translateY(-2px); box-shadow: 0 6px 0 #3c471f; }
.btn-ghost { color: var(--sage-deep); border: 2px dashed var(--sage); background: rgba(255,253,244,.7); }
.btn-ghost:hover, .btn-ghost:focus-visible { transform: translateY(-2px); background: var(--paper); }
.btn-big { font-size: 1.06rem; padding: 15px 30px; }
.btn-primary svg, .btn-ghost svg { width: 20px; height: 20px; fill: currentColor; }

/* ==================== SECTION SCAFFOLD ==================== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(34px, 5vw, 76px) clamp(18px, 4vw, 60px); }
.section-head { margin-bottom: clamp(26px, 4vw, 46px); }
.section-kicker, .work-group {
  display: inline-block;
  font-family: var(--hand); font-weight: 600;
  font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--sage-deep);
  background: var(--paper); padding: 2px 14px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(53,42,16,.12); margin-bottom: 10px;
}
.section-kicker.red { color: var(--pipsi-red); }
.section h2, .page-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.02em; color: var(--ink); line-height: 1.02;
}

.stitch-divider {
  max-width: var(--maxw); margin: 0 auto; height: 0;
  padding: 0 clamp(18px, 4vw, 60px);
  border-top: 3px dashed rgba(86, 101, 63, .45); position: relative;
}
.stitch-divider .needle {
  position: absolute; right: clamp(18px, 4vw, 60px); top: -13px;
  width: 24px; height: 24px; fill: var(--sage-deep); transform: rotate(12deg);
}

/* ==================== HERO ==================== */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4.5vw, 60px); align-items: center;
  max-width: var(--maxw); margin: 0 auto;
  padding: clamp(24px, 5vw, 66px) clamp(18px, 4vw, 60px) clamp(34px, 5vw, 76px);
}
.hero-panel { padding: clamp(26px, 3.4vw, 44px); }
.hero-kicker {
  font-family: var(--hand); font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 600;
  color: var(--sage-deep); display: flex; align-items: center; gap: 12px;
}
.thread-line { display: inline-block; width: 42px; border-top: 3px dashed var(--sage); }
.hero-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 8vw, 5.6rem); line-height: .92; letter-spacing: -.03em;
  margin: 10px 0 2px; color: var(--ink);
}
.stitch-underline { width: min(300px, 72%); height: 14px; overflow: visible; margin: 4px 0 18px; display: block; }
.stitch-underline path {
  stroke: var(--pipsi-red); stroke-width: 3.4; stroke-linecap: round; stroke-dasharray: 11 8;
  animation: stitch-draw 1.6s ease-out both .3s;
}
@keyframes stitch-draw { from { stroke-dashoffset: 340; opacity: 0; } 20% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
.hero-lede { font-size: clamp(1.02rem, 1.5vw, 1.18rem); line-height: 1.62; color: var(--ink-soft); max-width: 34em; margin-bottom: 24px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-pins { position: relative; min-height: 500px; }
.hero-pins .polaroid { position: absolute; }
.hero-pins .polaroid:first-child { width: min(62%, 290px); top: 0; left: 2%; z-index: 2; }
.hero-pin-2 { width: min(46%, 208px); top: 6%; right: 0; z-index: 1; }
.hero-pin-2 img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 32%; }
.note-hero { position: absolute; bottom: 0; left: 10%; transform: rotate(-3deg); z-index: 3; }

/* ==================== POLAROIDS ==================== */
.polaroid {
  background: var(--paper); padding: 12px 12px 14px; border-radius: 2px;
  box-shadow: var(--shadow-soft); position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform .28s cubic-bezier(.22,1.4,.36,1), box-shadow .28s;
}
.tilt-l { --tilt: -2.2deg; } .tilt-r { --tilt: 2deg; }
.polaroid:hover, .polaroid:focus-visible {
  transform: rotate(0deg) translateY(-6px) scale(1.015); box-shadow: var(--shadow-lift); z-index: 5;
}
.polaroid img { display: block; width: 100%; height: auto; border-radius: 1px; }
.polaroid figcaption {
  font-family: var(--hand); font-size: 1.15rem; font-weight: 600; color: var(--ink-soft);
  text-align: center; padding-top: 9px; line-height: 1.25;
}
.polaroid figcaption strong { color: var(--ink); font-weight: 700; }

.pin-star::before {
  content: ""; position: absolute; top: -17px; left: 50%;
  transform: translateX(-50%) rotate(-8deg); width: 36px; height: 36px; z-index: 6;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpolygon points='50,6 62,36 94,38 69,59 78,90 50,72 22,90 31,59 6,38 38,36' fill='%23f0dd7a' stroke='%23f0dd7a' stroke-width='10' stroke-linejoin='round'/%3E%3Cpolygon points='50,20 58,40 79,42 63,56 69,76 50,64 31,76 37,56 21,42 42,40' fill='%23f7ecad' stroke='%23f7ecad' stroke-width='6' stroke-linejoin='round'/%3E%3Ccircle cx='43' cy='46' r='4.5' fill='%23c9a83a'/%3E%3Ccircle cx='57' cy='46' r='4.5' fill='%23c9a83a'/%3E%3Ccircle cx='43' cy='60' r='4.5' fill='%23c9a83a'/%3E%3Ccircle cx='57' cy='60' r='4.5' fill='%23c9a83a'/%3E%3C/svg%3E");
  filter: drop-shadow(0 3px 3px rgba(80,60,10,.35));
}
.pin-red::before {
  content: ""; position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; border-radius: 50%; z-index: 6;
  background: radial-gradient(circle at 35% 30%, #e8836f, var(--pipsi-red) 55%, var(--pipsi-deep));
  box-shadow: 0 3px 5px rgba(80, 20, 5, .4);
}

/* ==================== NOTES & TAPE ==================== */
.note {
  position: relative;
  background: repeating-linear-gradient(var(--paper) 0 26px, rgba(122,140,86,.35) 26px 27px), var(--paper);
  font-family: var(--hand); font-size: 1.3rem; font-weight: 600; line-height: 27px; color: #3f5170;
  padding: 30px 26px 20px; border-radius: 2px; box-shadow: var(--shadow-soft);
}
.tape {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  width: 90px; height: 26px;
  background: linear-gradient(rgba(252,246,222,.75), rgba(240,231,200,.7));
  box-shadow: 0 1px 3px rgba(90,70,20,.18);
  border-left: 1px dashed rgba(150,130,80,.25); border-right: 1px dashed rgba(150,130,80,.25);
}

/* ==================== GALLERY (grid) ==================== */
.work-group { color: var(--sage-deep); margin: clamp(28px, 4vw, 48px) 0 22px; }
.work-group:first-of-type { margin-top: 0; }

.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: clamp(24px, 3.2vw, 42px); align-items: start;
}
.gallery .polaroid { cursor: zoom-in; }
.polaroid-wide { grid-column: span 2; }
.crop-tall img { aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 28%; }
.gallery-note {
  text-align: center; font-family: var(--hand); font-size: 1.2rem; font-weight: 600;
  color: var(--ink); background: var(--paper); width: max-content; max-width: 90%;
  margin: clamp(24px, 4vw, 40px) auto 0; padding: 4px 18px; border-radius: 999px;
  box-shadow: 0 2px 6px rgba(53,42,16,.12);
}

/* Gallery page controls */
.gallery-bar {
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between;
  margin-bottom: clamp(22px, 3vw, 36px);
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--body); font-weight: 600; font-size: .92rem; cursor: pointer;
  border: 2px solid var(--sage); background: rgba(255,253,244,.7); color: var(--sage-deep);
  padding: 7px 16px; border-radius: 999px; transition: background .18s, color .18s, transform .12s;
}
.chip:hover { transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--sage-deep); color: var(--paper); border-color: var(--sage-deep); }
.chip .n { opacity: .7; font-size: .82em; margin-left: 4px; }

.sort-wrap { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink-soft); }
.sort-wrap select {
  font-family: var(--body); font-weight: 600; font-size: .92rem; color: var(--sage-deep);
  border: 2px solid var(--sage); background: rgba(255,253,244,.8); border-radius: 999px;
  padding: 7px 30px 7px 14px; cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2356653f'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 18px;
}
.gallery-empty { text-align: center; color: var(--ink-soft); font-size: 1.05rem; padding: 40px 0; }

/* zoom cue on gallery polaroids */
.gallery .polaroid .zoom-cue {
  position: absolute; right: 16px; bottom: 46px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,253,244,.92); box-shadow: 0 2px 6px rgba(53,42,16,.3);
  display: grid; place-items: center; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.gallery .polaroid:hover .zoom-cue, .gallery .polaroid:focus-visible .zoom-cue { opacity: 1; }
.gallery .polaroid .zoom-cue svg { width: 15px; height: 15px; fill: var(--sage-deep); }

/* ==================== LIGHTBOX (advanced) ==================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100; background: rgba(43, 36, 20, .84);
  display: grid; place-items: center; padding: 3vmin; animation: fade-in .25s ease-out;
}
.lightbox[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.lightbox-frame {
  background: var(--paper); padding: 14px 14px 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5);
  max-width: min(94vw, 1080px); max-height: 94vh; display: flex; flex-direction: column;
  animation: pop-in .3s cubic-bezier(.2,1.4,.4,1); position: relative;
}
@keyframes pop-in { from { transform: scale(.94); opacity: 0; } }
.lightbox-imgwrap { min-height: 0; overflow: auto; display: grid; place-items: center; }
.lightbox-frame img {
  max-width: 100%; max-height: 78vh; object-fit: contain; cursor: zoom-in; transition: transform .2s;
}
.lightbox-frame img.zoomed { cursor: zoom-out; max-height: none; max-width: none; }
.lightbox-frame figcaption {
  font-family: var(--hand); font-size: 1.35rem; font-weight: 600; text-align: center;
  padding-top: 8px; color: var(--ink); flex: none;
}
.lightbox-frame figcaption strong { font-weight: 700; }
#lightbox-desc {
  font-family: var(--body); font-size: .95rem; line-height: 1.5; color: var(--ink-soft);
  text-align: center; max-width: 60ch; margin: 4px auto 2px; flex: none;
}
.lightbox-count {
  font-family: var(--body); font-size: .82rem; color: var(--ink-soft); text-align: center;
  padding-top: 4px; letter-spacing: .04em; flex: none;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--paper); color: var(--sage-deep); box-shadow: 0 6px 18px rgba(0,0,0,.35);
  display: grid; place-items: center; transition: transform .15s, background .15s; z-index: 3;
}
.lb-btn:hover { background: var(--butter); }
.lb-btn svg { width: 26px; height: 26px; fill: currentColor; }
.lb-prev { left: -26px; } .lb-next { right: -26px; }
.lb-prev:hover { transform: translateY(-50%) scale(1.08); } .lb-next:hover { transform: translateY(-50%) scale(1.08); }
.lightbox-close {
  position: absolute; top: 16px; right: 22px; font-size: 2.3rem; line-height: 1;
  background: none; border: none; color: var(--cream); cursor: pointer; padding: 8px; z-index: 110;
  transition: transform .15s;
}
.lightbox-close:hover { transform: scale(1.2) rotate(90deg); }

/* ==================== PATCHES (mediums) ==================== */
.patches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.6vw, 30px); }
.patch { position: relative; background: var(--paper); border-radius: 18px; padding: 30px 26px; box-shadow: var(--shadow-soft); transition: transform .25s, box-shadow .25s; }
.patch::before { content: ""; position: absolute; inset: 8px; border: 2px dashed rgba(122,140,86,.6); border-radius: 12px; pointer-events: none; }
.patch:hover { transform: translateY(-5px) rotate(-.5deg); box-shadow: var(--shadow-lift); }
.patch-icon { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--butter); display: grid; place-items: center; margin-bottom: 16px; box-shadow: inset 0 -3px 0 rgba(160,130,30,.35), 0 3px 6px rgba(90,70,10,.2); }
.patch-icon svg { width: 26px; height: 26px; fill: #7c6114; }
.patch h3 { font-family: var(--display); font-size: 1.3rem; font-weight: 800; margin-bottom: 8px; }
.patch p { color: var(--ink-soft); line-height: 1.55; }

/* ==================== ABOUT ==================== */
.about { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(28px, 4.5vw, 66px); align-items: start; }
.hoop-wrap { position: relative; justify-self: center; width: min(100%, 340px); margin-top: 20px; }
.hoop { border-radius: 50%; overflow: hidden; border: 14px solid var(--wood); outline: 4px solid var(--wood-deep); outline-offset: -2px; box-shadow: inset 0 0 0 3px rgba(120, 84, 30, .5), var(--shadow-lift); aspect-ratio: 1; transform: rotate(1.5deg); }
.hoop img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hoop-screw { position: absolute; top: -26px; left: 50%; transform: translateX(-50%); width: 44px; height: 30px; fill: var(--wood-deep); filter: drop-shadow(0 2px 2px rgba(80,55,15,.4)); }
.hoop-caption { position: absolute; bottom: -14px; right: -8px; font-family: var(--hand); font-size: 1.5rem; font-weight: 700; color: var(--pipsi-red); transform: rotate(-6deg); }
.about-text.panel h2 { margin-bottom: 16px; }
.about-text p { line-height: 1.7; color: var(--ink-soft); margin-bottom: 14px; max-width: 62ch; }
.about-text p:first-of-type { color: var(--ink); }
.about-snaps { display: flex; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.about-snaps .polaroid { width: min(220px, 44%); }

/* ==================== INDEX CARDS (press) ==================== */
.index-cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: clamp(16px, 2.4vw, 24px); }
.card { position: relative; background: var(--paper); border-radius: 10px; padding: 22px 20px 18px; box-shadow: var(--shadow-soft); border-top: 6px solid var(--sage); transition: transform .2s, box-shadow .2s; }
.card:nth-child(5n+2) { border-top-color: var(--butter-deep); }
.card:nth-child(5n+3) { border-top-color: var(--pipsi-red); }
.card:nth-child(5n+4) { border-top-color: var(--pitsik); }
.card:nth-child(5n+5) { border-top-color: var(--wood-deep); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card-tag { display: inline-block; font-family: var(--hand); font-size: 1.05rem; font-weight: 700; color: var(--sage-deep); background: rgba(122,140,86,.16); padding: 1px 12px; border-radius: 999px; margin-bottom: 10px; }
.card h3 { font-family: var(--display); font-size: 1.15rem; font-weight: 800; margin-bottom: 6px; }
.card h3 a { color: inherit; text-decoration: none; border-bottom: 2px solid var(--sage); }
.card h3 a:hover { color: var(--sage-deep); }
.card p { color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }
.card .card-link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-weight: 700; font-size: .9rem; color: var(--pipsi-red); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card .card-link svg { width: 14px; height: 14px; fill: currentColor; }
.card details { margin-top: 10px; }
.card details summary {
  cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--sage-deep);
  list-style: none; display: inline-flex; align-items: center; gap: 6px; user-select: none;
}
.card details summary::-webkit-details-marker { display: none; }
.card details summary::before { content: "＋"; font-weight: 700; }
.card details[open] summary::before { content: "－"; }
.card details p { margin-top: 8px; font-size: .92rem; }
.card details a { color: var(--pipsi-red); font-weight: 600; }

/* ==================== COMMISSIONS ==================== */
.commission-intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.steps { list-style: none; counter-reset: step; display: grid; gap: 16px; margin-top: 10px; }
.steps li { position: relative; padding-left: 52px; color: var(--ink-soft); line-height: 1.5; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%;
  background: var(--sage-deep); color: var(--paper); font-family: var(--display); font-weight: 800;
  display: grid; place-items: center;
}
.steps li strong { color: var(--ink); display: block; font-size: 1.05rem; }

.commission-form { display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: .95rem; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-soft); font-size: .85rem; }
.field input, .field select, .field textarea {
  font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: #fffefb; border: 2px solid rgba(122,140,86,.5); border-radius: 10px; padding: 11px 14px;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage-deep); box-shadow: 0 0 0 3px rgba(122,140,86,.22);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 4px; }
.form-note { font-size: .88rem; color: var(--ink-soft); }
.copy-ok { color: var(--sage-deep); font-weight: 700; font-size: .9rem; opacity: 0; transition: opacity .2s; }
.copy-ok.show { opacity: 1; }
.preview {
  margin-top: 8px; background: repeating-linear-gradient(#fffdf5 0 28px, rgba(122,140,86,.28) 28px 29px), #fffdf5;
  border-radius: 12px; padding: 20px 22px; box-shadow: inset 0 0 0 1.5px rgba(122,140,86,.35);
  font-size: .95rem; color: var(--ink); white-space: pre-wrap; line-height: 29px; min-height: 120px;
}
.preview-label { font-family: var(--hand); font-weight: 700; color: var(--pipsi-red); font-size: 1.1rem; margin-bottom: 4px; display: block; }

/* ==================== CONTACT ==================== */
.contact { display: grid; place-items: center; }
.contact-note {
  position: relative; text-align: center; max-width: 620px; border-radius: 3px; transform: rotate(-.8deg);
  background: repeating-linear-gradient(var(--paper) 0 30px, rgba(122,140,86,.3) 30px 31px), var(--paper);
  padding: clamp(34px, 5vw, 54px) clamp(28px, 5vw, 62px) clamp(30px, 4vw, 46px); box-shadow: var(--shadow-lift);
}
.tape-l { left: 12%; transform: rotate(-14deg); } .tape-r { left: auto; right: 12%; transform: rotate(10deg); }
.contact-hand { font-family: var(--hand); font-size: 1.9rem; font-weight: 700; color: var(--pipsi-red); }
.contact-note h2 { font-family: var(--display); font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 800; margin: 4px 0 12px; }
.contact-note > p { color: var(--ink-soft); line-height: 1.6; margin-bottom: 24px; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ==================== FOOTER ==================== */
.footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 18px;
  padding: 34px 20px 40px; color: var(--ink-soft); font-size: .93rem; text-align: center;
}
.footer a { color: var(--sage-deep); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.footer .star-mini { width: 22px; height: 22px; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ==================== REVEAL (progressive enhancement) ==================== */
/* Hidden only when JS is present; without JS everything shows normally. */
.reveal { transition: opacity .7s ease var(--d, 0s), transform .7s cubic-bezier(.22,1,.36,1) var(--d, 0s); }
html.js .reveal { opacity: 0; transform: translateY(20px); }
html.js .reveal.is-in { opacity: 1; transform: translateY(0); }
html.js .polaroid.reveal { transform: translateY(20px) rotate(var(--tilt, 0deg)); }
html.js .polaroid.reveal.is-in { transform: translateY(0) rotate(var(--tilt, 0deg)); }
html.js .polaroid.reveal.is-in:hover, html.js .polaroid.reveal.is-in:focus-visible { transform: rotate(0deg) translateY(-6px) scale(1.015); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; right: clamp(14px,3.5vw,40px); left: clamp(14px,3.5vw,40px);
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--paper); border-radius: 14px; padding: 12px; box-shadow: var(--shadow-lift);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 12px; border-bottom: none; border-radius: 8px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(122,140,86,.14); border-bottom: none; }
  .nav-cta { text-align: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-pins { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; padding-top: 12px; }
  .hero-pins .polaroid { position: static; width: 100%; }
  .note-hero { position: static; transform: rotate(-2deg); grid-column: span 2; justify-self: center; }
  .about { grid-template-columns: 1fr; }
  .patches { grid-template-columns: 1fr; }
  .commission-intro { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero-pins { grid-template-columns: 1fr; }
  .note-hero { grid-column: span 1; }
  .field-row { grid-template-columns: 1fr; }
  .polaroid-wide { grid-column: span 1; }
  .lb-prev { left: 6px; } .lb-next { right: 6px; }
}

:focus-visible { outline: 3px dashed var(--pipsi-red); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .polaroid.reveal { transform: rotate(var(--tilt, 0deg)); }
  .stitch-underline path { animation: none; }
  * { transition-duration: .01s !important; animation-duration: .01s !important; }
}
