/* ===================================================================
   HERO
=================================================================== */
.hero{
  padding: 60px 0 30px;
  position: relative;
}
.hero-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: start;
}
@media(min-width: 780px){
  .hero-grid{ grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center }
}
.eyebrow{
  font-family: var(--f-type);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.hero .eyebrow{
  text-shadow:
    0 0 2px rgba(240,230,203,.95),
    0 0 6px rgba(240,230,203,.9),
    0 0 14px rgba(240,230,203,.7);
}
.eyebrow::before{
  content:"";
  width: 28px; height: 1px;
  background: var(--ink-mute);
}
.hero h1{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(38px, 7vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-shadow:
    0 0 3px rgba(240,230,203,.95),
    0 0 8px rgba(240,230,203,.95),
    0 0 18px rgba(240,230,203,.85),
    0 0 32px rgba(240,230,203,.7),
    0 2px 4px rgba(26,21,16,.25);
}
.hero h1 .italic{
  font-weight: 400;
  color: var(--moss);
}
.tagline{
  font-family: var(--f-body);
  font-size: 18px;
  color: var(--ink-soft);
  margin: 32px 0 0;
  max-width: 48ch;
  line-height: 1.65;
  text-shadow:
    0 0 2px rgba(240,230,203,.95),
    0 0 8px rgba(240,230,203,.9),
    0 0 18px rgba(240,230,203,.75);
}

/* Portrait */
.portrait-wrap{
  position: relative;
  max-width: 340px;
  width: 100%;
  margin: 0 auto;
  transform: rotate(-1deg);
}
.portrait{
  position: relative;
  background: var(--card);
  padding: 14px 14px 50px;
  aspect-ratio: 4/5;
  border: 1px solid var(--card-edge);
  box-shadow:
    0 1px 0 rgba(26,21,16,.04),
    0 18px 30px -20px rgba(26,21,16,.35);
}
.portrait-inner{
  position:relative;
  width: 100%; height: calc(100% - 14px);
  background: linear-gradient(155deg, #d9a46e 0%, #7a3e24 100%);
  overflow:hidden;
}
.portrait-inner svg{ width:100%; height:100%; display:block }
.portrait-inner img{ width:100%; height:100%; object-fit:cover; display:block }
.portrait .caption{
  position:absolute;
  bottom: 12px; left: 0; right: 0;
  text-align: center;
  font-family: var(--f-type);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: .04em;
}
.tape{
  position:absolute;
  width: 64px; height: 20px;
  background: rgba(212, 184, 90, .55);
  border: 1px solid rgba(140,110,30,.25);
  box-shadow: inset 0 0 8px rgba(212,184,90,.4);
  z-index: 3;
}
.tape.tl{ top:-9px; left:-14px; transform: rotate(-22deg) }
.tape.br{ bottom:-9px; right:-14px; transform: rotate(-22deg) }

/* Gate all ivy hosts at opacity:0 until the scroll-grow system reveals
   them (see setupScrollGrow in site.js). Scoped to no-preference so
   reduced-motion users — who never get the grow animation — aren't left
   with invisible ivy. If anime.js fails to load, site.js flips hosts to
   opacity:1 as a fallback. */
@media (prefers-reduced-motion: no-preference){
  [data-ivy]{ opacity: 0; }
}

/* ivy overlay for the portrait */
.ivy-anchor{
  position:absolute;
  pointer-events:none;
  z-index: 2;
  width: 180px; height: 180px;
}
.ivy-anchor svg{ width: 100%; height: 100%; overflow: visible; display: block }
.ivy-anchor.tl{ top: -40px; left: -40px }
.ivy-anchor.tr{ top: -40px; right: -40px; transform: scaleX(-1) }
.ivy-anchor.bl{ bottom: -40px; left: -40px; transform: scaleY(-1) }
.ivy-anchor.br{ bottom: -40px; right: -40px; transform: scale(-1,-1) }

/* stamp buttons */
.stamps{
  display:flex; flex-wrap:wrap; gap: 12px;
  margin-top: 30px;
}
.stamp{
  display:inline-flex; align-items: baseline; gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--f-type);
  font-size: 14px;
  padding: 10px 16px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  position: relative;
  transition: transform .15s, background .15s, color .15s;
  letter-spacing: .02em;
}
.stamp::before{
  content:"";
  position:absolute;
  inset: 3px;
  border: 1px dashed rgba(26,21,16,.35);
  pointer-events:none;
}
.stamp:hover{ background: var(--ink); color: var(--paper); transform: translate(-1px,-1px) }
.stamp .glyph{
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--umber);
  letter-spacing: .14em;
}
.stamp:hover .glyph{ color: var(--paper) }

/* ===================================================================
   LETTER
=================================================================== */
.letter-card{
  margin-top: 80px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 40px 42px 38px;
  box-shadow: 0 1px 0 rgba(26,21,16,.04), 0 22px 34px -26px rgba(26,21,16,.35);
  position: relative;
  max-width: 640px;
}
.letter-card::before{
  content:""; position:absolute;
  left: 28px; top: 14px; bottom: 14px;
  width: 1px;
  background: var(--umber);
  opacity: .45;
}
.letter-card .salutation{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 24px;
  color: var(--moss);
  margin: 0 0 14px;
  padding-left: 18px;
  letter-spacing: .02em;
}
.letter-card p{
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin: 0 0 14px;
  padding-left: 18px;
  max-width: 60ch;
}
.letter-card p strong{ color: var(--ink); font-weight: 600 }
.letter-card p em{ color: var(--umber); font-style: italic }
.letter-card .sig{
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--ink);
  margin-top: 8px;
  padding-left: 18px;
  display: inline-block;
  letter-spacing: .02em;
}

/* ===================================================================
   SECTION HEADS
=================================================================== */
section.chunk{ margin-top: 110px; position:relative }
.sec-head{
  margin-bottom: 36px;
  position:relative;
  background: var(--card);
  padding: 30px 34px 26px;
  border: 1px solid var(--card-edge);
  --tear: polygon(
    0% 6%, 3% 3%, 7% 7%, 12% 4%, 18% 8%, 25% 5%, 32% 9%,
    40% 4%, 48% 7%, 56% 3%, 64% 8%, 72% 4%, 80% 7%, 88% 3%, 94% 6%, 100% 4%,
    100% 94%, 96% 97%, 90% 93%, 82% 96%, 74% 93%, 66% 97%, 58% 93%,
    50% 97%, 42% 94%, 34% 97%, 26% 93%, 18% 96%, 10% 93%, 4% 97%, 0% 94%
  );
  clip-path: var(--tear);
  box-shadow:
    0 1px 0 rgba(26,21,16,.04),
    0 24px 36px -30px rgba(26,21,16,.35);
  max-width: 780px;
}
.sec-head .sec-ivy{
  position: absolute;
  top: -54px; left: -30px; right: -30px;
  height: 90px;
  pointer-events:none;
  z-index: 3;
}
.sec-head .sec-ivy svg{ width: 100%; height: 100%; overflow: visible }
.sec-head .num{
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--ink-mute);
  letter-spacing: .2em;
  display: block;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.sec-head h2{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 42px);
  margin: 0;
  letter-spacing: -0.005em;
  color: var(--ink);
  line-height: 1.15;
  position: relative;
  z-index: 2;
}
.sec-head h2 em{
  font-style: italic;
  color: var(--moss);
  font-weight: 400;
}
.sec-head .sub{
  font-family: var(--f-type);
  font-size: 13px;
  color: var(--ink-mute);
  margin-top: 14px;
  display: block;
  letter-spacing: .02em;
  max-width: 48ch;
}

/* ===================================================================
   PROJECTS — index-card stack
=================================================================== */
.ledger{
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 4px 28px;
  box-shadow: 0 1px 0 rgba(26,21,16,.04), 0 22px 34px -26px rgba(26,21,16,.35);
  position: relative;
}
.proj{
  position: relative;
  border-bottom: 1px dashed rgba(26,21,16,.28);
}
.proj:last-child{ border-bottom: none }
.proj-head{
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 18px;
  align-items: baseline;
  padding: 22px 0;
  cursor: pointer;
  user-select: none;
}
.proj-head .n{
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: .12em;
  padding-top: 6px;
}
.proj-head h3{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0;
  margin: 0 0 6px;
  line-height: 1.25;
  color: var(--ink);
}
.proj-head .meta{
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.proj-head .plus{
  font-family: var(--f-mono);
  font-size: 18px;
  color: var(--ink);
  width: 32px; height: 32px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .3s, background .2s, color .2s;
  flex-shrink: 0;
  align-self: center;
  font-weight: 700;
}
.proj.open .proj-head .plus{
  transform: rotate(45deg);
  background: var(--ink); color: var(--paper);
}
.proj-body{
  max-height: 0;
  overflow: hidden;
  transition: max-height .55s cubic-bezier(.2,.8,.2,1);
}
.proj.open .proj-body{ max-height: 2800px }
.proj-body-inner{
  padding: 0 0 28px 70px;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 64ch;
}
.proj-body-inner p + p{ margin-top: 12px }
.proj-body-inner a{
  color: var(--moss);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(59,90,40,.5);
}
.proj-body-inner a:hover{ text-decoration-color: var(--moss) }
.proj-body-inner strong{ color: var(--ink); font-weight: 700 }
.proj-body-inner em{ color: var(--umber); font-style: italic }

.ledger .corner-ivy{
  position: absolute;
  width: 180px; height: 180px;
  pointer-events:none;
  z-index: 3;
}
.ledger .corner-ivy.tl{ top: -50px; left: -50px }
.ledger .corner-ivy.br{ bottom: -50px; right: -50px; transform: scale(-1,-1) }
.ledger .corner-ivy svg{ width:100%; height:100%; overflow: visible }

@media(max-width: 560px){
  .ledger{ padding: 4px 18px }
  .proj-head{ grid-template-columns: 38px 1fr auto; gap: 12px }
  .proj-body-inner{ padding-left: 50px }
}

/* ===================================================================
   MEDIA — newspaper clippings
=================================================================== */
.clippings{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
@media(min-width: 700px){ .clippings{ grid-template-columns: repeat(3,1fr); gap: 12px }}
.clip{
  padding: 20px 18px;
  background: var(--card);
  border: 1px solid var(--card-edge);
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: background .2s;
}
.clip:hover{ background: var(--paper-warm) }
.clip-blank{
  background: transparent;
  border-style: dashed;
  border-color: rgba(26,21,16,.18);
  pointer-events: none;
  display: none;
}
@media(min-width: 700px){ .clip-blank{ display: block } }
.clip .src{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0;
  margin-bottom: 6px;
  color: var(--ink);
  line-height: 1.2;
}
.clip .tag{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===================================================================
   ART — polaroids on wire
=================================================================== */
.wire{ position:relative; padding: 34px 0 20px }
.wire::before{
  content:"";
  position: absolute;
  left: 0; right: 0; top: 12px;
  height: 2px;
  background: var(--ink);
  transform: translateY(2px) rotate(-.4deg);
  transform-origin: 0 50%;
}
.gallery{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 18px;
}
@media(min-width: 700px){ .gallery{ grid-template-columns: repeat(3,1fr); gap: 32px 22px }}
.polaroid{
  position: relative;
  background: var(--card);
  padding: 10px 10px 34px;
  text-decoration: none;
  color: var(--ink);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
  display: block;
  border: 1px solid var(--card-edge);
}
.polaroid:nth-child(3n){ transform: rotate(1.5deg) }
.polaroid:nth-child(3n+1){ transform: rotate(-1.8deg) }
.polaroid:nth-child(3n+2){ transform: rotate(.8deg) }
.polaroid:hover{ transform: rotate(0deg) translateY(-3px) }
.polaroid::before{
  content:"";
  position:absolute;
  top: -14px; left: 50%; transform: translateX(-50%);
  width: 10px; height: 14px;
  background: var(--ink);
  clip-path: polygon(50% 100%, 0 0, 100% 0);
}
.polaroid-img{
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--leaf-4), var(--leaf-1));
  position:relative;
  overflow:hidden;
}
.polaroid-img svg{ width:100%; height:100%; display:block }
.polaroid-img img{ width:100%; height:100%; object-fit:cover; display:block }
.polaroid .title{
  font-family: var(--f-type);
  font-size: 14px;
  color: var(--ink);
  margin-top: 10px;
  line-height: 1.25;
  min-height: 2.2em;
  letter-spacing: .01em;
}

/* ===================================================================
   BREWING
=================================================================== */
.napkins{
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media(min-width: 700px){ .napkins{ grid-template-columns: 1fr 1fr; gap: 22px } }
.napkin{
  position: relative;
  background: var(--card);
  padding: 26px 26px 28px;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--card-edge);
  transition: transform .2s;
  box-shadow: 0 12px 24px -20px rgba(26,21,16,.4);
}
.napkin:nth-child(1){ transform: rotate(-.6deg) }
.napkin:nth-child(2){ transform: rotate(.7deg) }
.napkin:hover{ transform: rotate(0) translateY(-2px) }
.napkin::after{
  content:"";
  position:absolute;
  right: -18px; top: -18px;
  width: 70px; height: 70px;
  border-radius: 50%;
  border: 4px solid rgba(140,90,44,.25);
  opacity: .7;
}
.napkin .tag{
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--umber);
  margin-bottom: 10px;
  display: block;
}
.napkin h4{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 20px;
  margin: 0 0 10px;
  letter-spacing: .01em;
  color: var(--ink);
  line-height: 1.25;
}
.napkin p{
  font-family: var(--f-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0;
}

/* ===================================================================
   WRITING — table of contents
=================================================================== */
.toc{
  background: var(--card);
  border: 1px solid var(--card-edge);
  padding: 10px 28px;
  box-shadow: 0 1px 0 rgba(26,21,16,.04), 0 22px 34px -26px rgba(26,21,16,.35);
}
.toc a{
  display: grid;
  grid-template-columns: 28px 1fr auto 40px;
  gap: 14px;
  align-items: baseline;
  padding: 16px 4px;
  text-decoration: none;
  color: var(--ink);
  transition: background .2s, padding .2s;
  border-bottom: 1px dotted rgba(26,21,16,.28);
}
.toc a:last-child{ border-bottom: none }
.toc a:hover{ background: var(--paper-warm); padding-left: 14px }
.toc .n{ font-family: var(--f-mono); font-size: 12px; color: var(--ink-mute) }
.toc .t{
  font-family: var(--f-body);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(16px, 2vw, 19px);
  letter-spacing: 0;
  line-height: 1.4;
}
.toc .fav{
  font-family: var(--f-type);
  font-size: 13px;
  color: var(--umber);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.toc .pg{ font-family: var(--f-mono); font-size: 13px; color: var(--ink-mute); text-align: right }

/* ===================================================================
   CONTACT — invitation card
=================================================================== */
.invite-wrap{ position: relative; margin-top: 28px }
.invite{
  padding: 46px 36px 42px;
  border: 2px solid var(--ink);
  background: var(--card);
  position: relative;
  z-index: 2;
}
.invite::before{
  content:""; position:absolute; inset: 6px;
  border: 1px dashed rgba(26,21,16,.4);
  pointer-events:none;
}
.invite h3{
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 0 0 16px;
  letter-spacing: 0;
  color: var(--ink);
  max-width: 24ch;
  line-height: 1.25;
}
.invite p{
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 58ch;
  margin: 0 0 16px;
}
.invite .want{
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--moss);
  display: block;
  margin: 24px 0 12px;
  letter-spacing: .02em;
}
.invite ul{
  margin: 0 0 22px; padding: 0; list-style: none;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--ink);
}
.invite ul li{ padding: 6px 0 6px 30px; position: relative }
.invite ul li::before{
  content: ""; position: absolute;
  left: 2px; top: 13px; width: 18px; height: 2px;
  background: var(--umber);
}
.invite-actions{ display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px }

/* ivy overlaying invite — heavy */
.invite-wrap .overgrown{
  position: absolute; pointer-events:none; z-index: 3;
  width: 260px; height: 260px;
}
.invite-wrap .overgrown.tl{ top: -60px; left: -70px }
.invite-wrap .overgrown.tr{ top: -60px; right: -70px; transform: scaleX(-1) }
.invite-wrap .overgrown.bl{ bottom: -60px; left: -70px; transform: scaleY(-1) }
.invite-wrap .overgrown.br{ bottom: -60px; right: -70px; transform: scale(-1,-1) }
.invite-wrap .overgrown svg{ width:100%; height:100%; overflow: visible }
