/* =====================================================================
   NAresh Sir's home-page layout — scoped to .nkh only.

   Loaded ONLY by page-naresh-home.php, so the existing front page and
   every other template are completely unaffected. Deleting this file and
   the template removes the whole layout.

   Reuses the theme's variables from style.css (--navy, --gold, --cream …)
   so the alternative home page still looks like the same website.
   ===================================================================== */

/* ---------- 0. OPTIONAL EDITOR INTRO ---------- */

/* Anything typed into the page editor, printed above the fixed sections. */
.nkh-editor{
  margin:0 0 var(--space-6);
  font-size:16px;
  line-height:1.7;
}

/* ---------- 1. MY SHAKE — the hand-painted rectangle ---------- */

.nkh-shake{
  margin:0 0 var(--space-8);
}

/*
   The "hand-painted rectangle": an irregular border-radius plus a double
   frame reads as a brush-drawn box rather than a CSS rectangle. The paint
   texture is a layered gradient — no image file, so nothing to load.
*/
.nkh-shake-paint{
  position:relative;
  padding:38px 34px 34px;
  background:
    radial-gradient(ellipse at 12% 8%,  rgba(201,163,93,.16), transparent 58%),
    radial-gradient(ellipse at 88% 92%, rgba(116,29,37,.10),  transparent 55%),
    linear-gradient(160deg, var(--cream) 0%, var(--cream-2) 100%);
  border:3px solid var(--navy);
  border-radius:255px 14px 225px 16px / 16px 225px 14px 255px;
  box-shadow:var(--shadow-soft);
}

/* The inner brush line, offset slightly so the two strokes never align. */
.nkh-shake-paint::before{
  content:"";
  position:absolute;
  inset:7px 9px 8px 7px;
  border:1.5px solid var(--gold);
  border-radius:225px 16px 255px 14px / 14px 255px 16px 225px;
  pointer-events:none;
}

.nkh-shake-title{
  margin:0;
  font-family:var(--font-display);
  font-size:clamp(30px,5vw,46px);
  font-weight:700;
  letter-spacing:.02em;
  text-align:center;
  color:var(--burgundy);
}

.nkh-shake-title .star{
  color:var(--gold);
  font-size:.6em;
  vertical-align:.22em;
  margin:0 .35em;
}

.nkh-shake-divider{
  width:min(320px,70%);
  height:0;
  margin:14px auto 20px;
  border-top:1px solid var(--gold);
  position:relative;
}

.nkh-shake-divider::after{
  content:"";
  position:absolute;
  left:50%;
  top:-3px;
  width:7px;
  height:7px;
  margin-left:-3.5px;
  background:var(--gold);
  transform:rotate(45deg);
}

/* The quote sits "in clean type" under the painted heading, as instructed. */
.nkh-shake-quote{
  margin:0 auto;
  max-width:70ch;
  padding:0;
  border:0;
  font-family:var(--font-display);
  font-size:clamp(18px,2.2vw,23px);
  font-style:italic;
  line-height:1.55;
  text-align:center;
  color:var(--ink);
}

.nkh-shake-byline{
  margin:18px 0 26px;
  text-align:center;
  font-family:var(--font-display);
  font-size:20px;
  font-weight:600;
  color:var(--green);
}

.nkh-shake-byline .diamond{
  color:var(--gold);
  margin-right:.4em;
  font-size:.75em;
  vertical-align:.1em;
}

.nkh-shake-byline .tak,
.nkh-sign .tak{
  color:var(--maroon);
  font-style:italic;
}

/* ---------- The rectangle inside the rectangle ---------- */

.nkh-shake-frame{
  margin:0 auto;
  width:min(340px,100%);
  padding:10px;
  background:var(--cream);
  border:2px solid var(--navy);
  border-radius:2px;
  box-shadow:var(--shadow-portrait);
}

.nkh-shake-frame-inner{
  border:1px solid var(--gold);
  padding:6px;
  min-height:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.nkh-shake-frame img{
  display:block;
  width:100%;
  height:auto;
}

/* ---------- 2 & 3. MY EMOTIONS — text left, photograph right ---------- */

.nkh-emotion{
  display:grid;
  grid-template-columns:1fr 240px;
  gap:var(--space-8);
  align-items:start;
  margin:0 0 var(--space-8);
  padding:26px 28px;
  background:var(--cream-2);
  border:1px solid var(--border-beige);
  border-radius:3px;
  box-shadow:var(--shadow-soft);
}

.nkh-eyebrow{
  margin:0 0 6px;
  font-family:var(--font-ui);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--green);
}

.nkh-eyebrow .star{ color:var(--gold); }

.nkh-h2{
  margin:0 0 16px;
  font-family:var(--font-display);
  font-size:clamp(26px,3.4vw,34px);
  font-weight:700;
  color:var(--burgundy);
  line-height:1.15;
}

.nkh-h2 .brk{ color:var(--gold); font-weight:400; }

.nkh-h2 small{
  display:block;
  margin-top:4px;
  font-size:15px;
  font-style:italic;
  font-weight:400;
  color:var(--maroon);
  letter-spacing:.04em;
}

.nkh-centred{ text-align:center; }

.nkh-h3{
  margin:26px 0 10px;
  font-family:var(--font-display);
  font-size:22px;
  font-weight:600;
  color:var(--green);
  border-bottom:1px solid var(--border-beige);
  padding-bottom:5px;
}

.nkh-salute{
  margin:0 0 10px;
  font-family:var(--font-display);
  font-size:19px;
  font-weight:600;
  color:var(--maroon);
}

.nkh-emotion-text p,
.nkh-intro p{
  margin:0 0 12px;
  font-size:16px;
  line-height:1.72;
  text-align:justify;
  hyphens:auto;
}

.nkh-sign{
  margin-top:16px !important;
  text-align:right !important;
  font-family:var(--font-display);
}

.nkh-sign .l1{
  display:block;
  font-size:15px;
  font-style:italic;
  color:var(--ink);
}

.nkh-sign .l2{
  display:block;
  font-size:20px;
  font-weight:700;
  color:var(--green);
}

/* The photograph on the right. */
.nkh-emotion-photo{
  margin:0;
  padding:9px 9px 12px;
  background:var(--cream);
  border:1px solid var(--gold);
  border-radius:2px;
  box-shadow:var(--shadow-portrait);
  text-align:center;
}

.nkh-emotion-photo img{
  display:block;
  width:100%;
  height:auto;
  border:1px solid var(--border-beige);
}

.nkh-emotion-photo figcaption{
  margin-top:8px;
  font-family:var(--font-ui);
  font-size:11px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--maroon);
}

.nkh-emotion-photo figcaption small{
  display:block;
  margin-top:3px;
  text-transform:none;
  letter-spacing:0;
  font-size:11px;
  color:var(--ink);
  opacity:.72;
}

/* ---------- Awaiting-artwork placeholder ---------- */

.nkh-emotion-photo.is-empty,
.nkh-shake-frame.is-empty .nkh-shake-frame-inner{
  border-style:dashed;
  border-color:var(--gold);
  background:
    repeating-linear-gradient(45deg,
      rgba(201,163,93,.055) 0 10px,
      transparent 10px 20px);
}

.nkh-emotion-photo.is-empty{
  min-height:230px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.nkh-await{
  opacity:.4;
  line-height:0;
}

.nkh-await svg{
  width:64px;
  height:auto;
}

.nkh-shake-frame.is-empty figcaption{
  font-family:var(--font-ui);
  font-size:11px;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--maroon);
  text-align:center;
}

.nkh-shake-frame.is-empty figcaption small{
  display:block;
  margin-top:4px;
  text-transform:none;
  letter-spacing:0;
  color:var(--ink);
  opacity:.72;
}

/* ---------- 4. FORMAL INTRODUCTION ---------- */

.nkh-intro{
  margin:0 0 var(--space-8);
  padding:26px 28px;
  background:var(--cream-2);
  border:1px solid var(--border-beige);
  border-radius:3px;
  box-shadow:var(--shadow-soft);
}

.nkh-facts{
  margin:0 0 18px;
  padding:16px 18px;
  background:var(--cream);
  border:1px solid var(--border-beige);
  border-left:4px solid var(--gold);
  border-radius:2px;
}

.nkh-fact{
  display:grid;
  grid-template-columns:230px 1fr;
  gap:10px var(--space-5);
  padding:7px 0;
  border-bottom:1px dotted var(--border-beige);
}

.nkh-fact:last-child{ border-bottom:0; }

.nkh-facts dt{
  margin:0;
  font-family:var(--font-ui);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--green);
  align-self:center;
}

.nkh-facts dd{
  margin:0;
  font-size:16px;
  line-height:1.5;
  color:var(--ink);
}

/* ---------- The names he gives his own genres ---------- */

.nkh-genres{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:var(--space-5);
  margin:16px 0 14px;
  padding:0;
  list-style:none;
}

.nkh-genre{
  position:relative;
  padding:18px 16px 16px;
  text-align:center;
  background:var(--cream);
  border:1px solid var(--gold);
  border-radius:2px;
  box-shadow:var(--shadow-soft);
}

/* A thin inner keyline, echoing the frames used elsewhere on the page. */
.nkh-genre::before{
  content:"";
  position:absolute;
  inset:5px;
  border:1px dotted var(--border-beige);
  pointer-events:none;
}

.nkh-genre-label{
  display:block;
  font-family:var(--font-ui);
  font-size:11px;
  font-weight:700;
  letter-spacing:.13em;
  text-transform:uppercase;
  color:var(--green);
}

.nkh-genre-name{
  display:block;
  margin:8px 0 6px;
  font-family:var(--font-display);
  font-size:clamp(24px,3.2vw,32px);
  font-weight:700;
  letter-spacing:.01em;
  color:var(--burgundy);
  word-break:break-word;
}

.nkh-genre-note{
  display:block;
  font-family:var(--font-hi);
  font-size:13px;
  color:var(--maroon);
  opacity:.85;
}

.nkh-genre-tail{
  text-align:center !important;
  font-family:var(--font-display);
  font-size:19px;
  font-style:italic;
  color:var(--green);
}

/* ---------- The closing literary note ---------- */

/* Set on the pale note stock the theme uses for the host's remarks. */
.nkh-note{
  background:var(--note-bg);
  border-color:var(--gold);
}

.nkh-quote{
  margin:16px auto;
  max-width:64ch;
  padding:14px 22px;
  border:0;
  border-left:3px solid var(--gold);
  background:var(--cream);
  font-family:var(--font-display);
  font-size:20px;
  font-style:italic;
  line-height:1.5;
  color:var(--ink);
  border-radius:0;
}

.nkh-quote cite{
  display:block;
  margin-top:7px;
  font-family:var(--font-ui);
  font-size:12px;
  font-style:normal;
  letter-spacing:.09em;
  text-transform:uppercase;
  color:var(--maroon);
}

/* Hindi sections use the Devanagari stack and are not justified —
   Devanagari justifies badly at these measures. */
.nkh-hi,
.nkh-hi .nkh-h2,
.nkh-hi .nkh-h3,
.nkh-hi .nkh-salute,
.nkh-hi .nkh-sign,
.nkh-hi .nkh-facts dt,
.nkh-hi .nkh-facts dd{
  font-family:var(--font-hi);
}

.nkh-hi p,
.nkh-hi .nkh-emotion-text p{
  text-align:left;
  line-height:1.95;
}

.nkh-hi .nkh-facts dt{
  font-size:13px;
  letter-spacing:.02em;
  text-transform:none;
}

/* ---------- RESPONSIVE ---------- */

@media (max-width:900px){
  .nkh-emotion{
    grid-template-columns:1fr;
  }
  .nkh-emotion-photo{
    width:min(240px,100%);
    margin:0 auto;
  }
  .nkh-fact{
    grid-template-columns:1fr;
    gap:2px;
  }
  .nkh-facts dt{ align-self:start; }
  .nkh-genres{ grid-template-columns:1fr; }
}

@media (max-width:560px){
  .nkh-shake-paint{ padding:26px 18px 24px; }
  .nkh-emotion,
  .nkh-intro{ padding:20px 16px; }
  .nkh-emotion-text p,
  .nkh-intro p{ text-align:left; }
}
