/* Hatıra / Mektup — protected personal letter preset v1.6 */
body.nd-letter-restored{
  --letter-ink:#2e2925;
  --letter-soft:#665a50;
  --letter-muted:#928579;
  --letter-paper:#fffdfa;
  --letter-paper-2:#f7f1e9;
  --letter-line:#ded3c7;
  --letter-accent:#765642;
  --letter-accent-soft:#a38b78;
}

body.single-post.nd-letter-restored .nd-letter-restored-surface{
  --nd-design-width:980px;
  padding:42px clamp(22px,4.5vw,58px) 76px!important;
  color:var(--letter-ink)!important;
  background:linear-gradient(180deg,#fffefa 0%,#fbf7f1 100%)!important;
  border-top:1px solid var(--letter-line)!important;
  border-bottom:1px solid var(--letter-line)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.9!important;
}

body.single-post.nd-letter-restored .nd-letter-restored-surface p:not(.nd-letter-dedication):not(.nd-letter-title):not(.nd-letter-signature):not(.nd-letter-date),
body.single-post.nd-letter-restored .nd-letter-restored-surface>ul,
body.single-post.nd-letter-restored .nd-letter-restored-surface>ol{
  box-sizing:border-box!important;
  width:min(760px,100%)!important;
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.9!important;
  letter-spacing:.002em!important;
  color:var(--letter-ink)!important;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface p:not(.nd-letter-dedication):not(.nd-letter-title):not(.nd-letter-signature):not(.nd-letter-date){margin-top:0!important;margin-bottom:1.34em!important}

/* Letter opening — intentionally distinct from Ayna. */
body.single-post.nd-letter-restored .nd-letter-opening{
  width:min(830px,100%);
  margin:0 auto 42px;
  padding:4px 18px 34px;
  text-align:center;
  position:relative;
}
body.single-post.nd-letter-restored .nd-letter-opening::before{
  content:"";
  display:block;
  width:72px;
  height:1px;
  margin:0 auto 22px;
  background:var(--letter-accent-soft);
  box-shadow:-18px 0 0 -0.25px var(--letter-paper),18px 0 0 -0.25px var(--letter-paper);
  opacity:.72;
}
body.single-post.nd-letter-restored .nd-letter-kicker{
  margin:0 0 22px;
  font:700 10px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  letter-spacing:.27em;
  color:var(--letter-muted);
}
body.single-post.nd-letter-restored .nd-letter-dedication{
  width:auto!important;
  max-width:none!important;
  margin:0 0 18px!important;
  text-align:center!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.55!important;
  font-style:italic!important;
  font-weight:600!important;
  color:var(--letter-accent)!important;
}
body.single-post.nd-letter-restored .nd-letter-title{
  width:auto!important;
  max-width:760px!important;
  margin:0 auto!important;
  text-align:center!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:clamp(34px,4.25vw,50px)!important;
  line-height:1.17!important;
  letter-spacing:-.025em!important;
  font-weight:500!important;
  font-style:normal!important;
  color:var(--letter-ink)!important;
}
body.single-post.nd-letter-restored .nd-letter-title::after{
  content:"";
  display:block;
  width:54px;
  height:1px;
  margin:28px auto 0;
  background:var(--letter-line);
}


/* Author's * separators become quiet breathing points. */
body.single-post.nd-letter-restored .nd-letter-break{
  width:min(760px,100%);
  height:44px;
  margin:30px auto 36px;
  position:relative;
}
body.single-post.nd-letter-restored .nd-letter-break::before,
body.single-post.nd-letter-restored .nd-letter-break::after{
  content:"";
  position:absolute;
  top:50%;
  width:46px;
  height:1px;
  background:var(--letter-line);
}
body.single-post.nd-letter-restored .nd-letter-break::before{left:calc(50% - 58px)}
body.single-post.nd-letter-restored .nd-letter-break::after{right:calc(50% - 58px)}
body.single-post.nd-letter-restored .nd-letter-break span{
  position:absolute;
  left:50%;top:50%;
  width:5px;height:5px;
  transform:translate(-50%,-50%);
  border-radius:50%;
  background:var(--letter-accent-soft);
}

/* Rhythmic lines remain part of the prose — never promoted to giant headings. */
body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-litany{
  max-width:700px!important;
  margin-bottom:.48em!important;
  padding-left:18px!important;
  border-left:1px solid var(--letter-line)!important;
  font-size:18px!important;
  line-height:1.72!important;
  font-style:italic!important;
  color:var(--letter-soft)!important;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-litany + .nd-letter-litany{margin-top:-.1em!important}

body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-cadence{
  max-width:720px!important;
  margin-bottom:.7em!important;
  font-size:18px!important;
  line-height:1.72!important;
  color:var(--letter-soft)!important;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-cadence + .nd-letter-cadence{margin-top:-.15em!important}

body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-dialogue{
  max-width:730px!important;
  margin:34px auto!important;
  padding:19px 22px!important;
  background:rgba(247,241,233,.7)!important;
  border-left:2px solid var(--letter-accent-soft)!important;
  font-style:italic!important;
  color:var(--letter-soft)!important;
}

body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-reflection{
  max-width:730px!important;
  margin-top:32px!important;
  margin-bottom:18px!important;
  padding-left:18px!important;
  border-left:2px solid var(--letter-accent)!important;
  font-weight:600!important;
  color:#4e3c30!important;
}

body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-counsel{
  max-width:710px!important;
  margin-bottom:.62em!important;
  padding-left:18px!important;
  border-left:1px solid var(--letter-line)!important;
  line-height:1.72!important;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-counsel + .nd-letter-counsel{margin-top:-.12em!important}

body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-closing-thought{
  max-width:740px!important;
  margin-top:34px!important;
  font-weight:600!important;
  color:#493a30!important;
}

/* v1.2 hard safety net: this article contains no intentional body blockquote.
   If another layout/content filter reintroduces one after the server-side
   composer, make it visually indistinguishable from normal prose. */
body.single-post.nd-letter-restored .nd-letter-restored-surface blockquote{
  box-sizing:border-box!important;
  width:min(760px,100%)!important;
  max-width:760px!important;
  margin:0 auto!important;
  padding:0!important;
  background:transparent!important;
  background-image:none!important;
  border:0!important;
  box-shadow:none!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.9!important;
  font-style:normal!important;
  font-weight:400!important;
  color:var(--letter-ink)!important;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface blockquote::before,
body.single-post.nd-letter-restored .nd-letter-restored-surface blockquote::after{display:none!important;content:none!important}
body.single-post.nd-letter-restored .nd-letter-restored-surface blockquote p{
  margin:0 0 1.34em!important;
  padding:0!important;
  color:var(--letter-ink)!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.9!important;
  font-style:normal!important;
  font-weight:400!important;
}

/* Sign-off */
body.single-post.nd-letter-restored .nd-letter-signoff{
  width:min(760px,100%);
  margin:54px auto 0;
  padding-top:25px;
  border-top:1px solid var(--letter-line);
  text-align:right;
}
body.single-post.nd-letter-restored .nd-letter-signature{
  width:auto!important;max-width:none!important;margin:0 0 5px!important;
  text-align:right!important;font-size:20px!important;line-height:1.45!important;
  font-style:italic!important;font-weight:600!important;color:var(--letter-accent)!important;
}
body.single-post.nd-letter-restored .nd-letter-date{
  width:auto!important;max-width:none!important;margin:0!important;
  text-align:right!important;font:600 11px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:.09em!important;text-transform:none!important;color:var(--letter-muted)!important;
}

body.single-post.nd-letter-restored .nd-letter-restored-surface a{
  color:#624635!important;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface>:last-child{margin-bottom:0!important}

@media(max-width:700px){
  body.single-post.nd-letter-restored .nd-letter-restored-surface{padding:28px 17px 48px!important}
  body.single-post.nd-letter-restored .nd-letter-restored-surface p:not(.nd-letter-dedication):not(.nd-letter-title):not(.nd-letter-signature):not(.nd-letter-date),
  body.single-post.nd-letter-restored .nd-letter-restored-surface>ul,
  body.single-post.nd-letter-restored .nd-letter-restored-surface>ol{font-size:17px!important;line-height:1.82!important}
  body.single-post.nd-letter-restored .nd-letter-opening{margin-bottom:30px;padding:2px 2px 25px}
  body.single-post.nd-letter-restored .nd-letter-opening::before{margin-bottom:18px;width:58px}
  body.single-post.nd-letter-restored .nd-letter-kicker{font-size:9px;letter-spacing:.22em;margin-bottom:17px}
  body.single-post.nd-letter-restored .nd-letter-dedication{font-size:16px!important;margin-bottom:14px!important}
  body.single-post.nd-letter-restored .nd-letter-title{font-size:31px!important;line-height:1.19!important;letter-spacing:-.02em!important}
  body.single-post.nd-letter-restored .nd-letter-title::after{margin-top:22px;width:44px}
  body.single-post.nd-letter-restored .nd-letter-break{height:36px;margin:24px auto 29px}
  body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-litany,
  body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-cadence{font-size:17px!important;line-height:1.7!important}
  body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-dialogue{margin:27px auto!important;padding:16px 17px!important}
  body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-reflection{margin-top:27px!important;padding-left:14px!important}
  body.single-post.nd-letter-restored .nd-letter-restored-surface>.nd-letter-counsel{padding-left:14px!important;line-height:1.7!important}
  body.single-post.nd-letter-restored .nd-letter-signoff{margin-top:42px;padding-top:21px}
  body.single-post.nd-letter-restored .nd-letter-signature{font-size:18px!important}
}


/* v1.2 mobile hard reset for any late legacy quotation wrapper. */
@media(max-width:700px){
  body.single-post.nd-letter-restored .nd-letter-restored-surface blockquote,
  body.single-post.nd-letter-restored .nd-letter-restored-surface blockquote p{
    font-size:17px!important;
    line-height:1.82!important;
    font-style:normal!important;
  }
}


/* v1.6 — one body rhythm for all ordinary prose blocks.
   The legacy article mixes paragraphs and div/br based text blocks. Every ordinary
   block receives the same width, type size, line-height and alignment. There is no
   special "first paragraph" presentation. */
body.single-post.nd-letter-restored .nd-letter-restored-surface > .nd-letter-prose-block{
  box-sizing:border-box!important;
  width:min(760px,100%)!important;
  max-width:760px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding-left:0!important;
  padding-right:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.9!important;
  font-style:normal!important;
  font-weight:400!important;
  text-align:left!important;
  color:var(--letter-ink)!important;
}
body.single-post.nd-letter-restored .nd-letter-restored-surface > .nd-letter-prose-block :is(em,i){
  color:inherit!important;
}

/* Backward guard for cached markup from v1.5: even if the old class survives in a
   page cache, it is explicitly identical to ordinary prose. */
body.single-post.nd-letter-restored .nd-letter-restored-surface p.nd-letter-first-paragraph{
  width:min(760px,100%)!important;
  max-width:760px!important;
  margin:0 auto 1.34em!important;
  padding:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  font-family:Georgia,"Times New Roman",serif!important;
  font-size:18px!important;
  line-height:1.9!important;
  font-style:normal!important;
  font-weight:400!important;
  text-align:left!important;
  color:var(--letter-ink)!important;
}
@media(max-width:700px){
  body.single-post.nd-letter-restored .nd-letter-restored-surface{font-size:17px!important;line-height:1.82!important}
  body.single-post.nd-letter-restored .nd-letter-restored-surface > .nd-letter-prose-block,
  body.single-post.nd-letter-restored .nd-letter-restored-surface p.nd-letter-first-paragraph{
    font-size:17px!important;
    line-height:1.82!important;
  }
}
/* Current-theme boundary: restored prose never receives generic lead/finale styles. */
body.nd-letter-restored .nd-reading-shell.nd-entry-content{width:100%!important;max-width:980px!important;margin:0 auto!important;}
body.nd-letter-restored .nd-letter-restored-surface{box-sizing:border-box!important;width:100%!important;max-width:980px!important;margin:24px auto 48px!important;transform:none!important;}
body.nd-letter-restored .nd-v3-toc{display:none!important;}
body.nd-letter-restored .nd-letter-restored-surface .nd-letter-prose-block{font-weight:400!important;text-align:left!important;font-style:normal!important;}
body.nd-letter-restored .nd-letter-restored-surface .nd-letter-title{display:block!important;}
@media print{body.nd-letter-restored .nd-letter-restored-surface{padding:0!important;margin:0!important;background:none!important;border:0!important;}body.nd-letter-restored .nd-letter-opening{break-after:avoid;}}
