/* privatelypublic — homepage-only layout layer
   Loads AFTER style.css and reuses its vars/components (stream, post-card,
   doors, footer, doors-nav) unchanged. Nothing here touches style.css'
   shared component rules, so work.html/writing.html/khuraak.html/about.html/
   stuff.html/archive.html and the /posts/ articles are unaffected. */

.home-wrap {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 30px clamp(16px, 4vw, 32px) 0;
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; }
}

.updated-badge {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
  padding: 4px 9px;
  margin-bottom: 16px;
}

.hero-kicker {
  margin: 0 0 6px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marigold);
}

.hero-headline-row {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  flex-wrap: wrap;
}

.hero-headline {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 900;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  max-width: 12ch;
}

.hero-aside {
  margin: 6px 0 0;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  line-height: 1.25;
  color: var(--ink-soft);
  max-width: 14ch;
  transform: rotate(-1.2deg);
}

.hero-aside .underline {
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
}

.hero-tagline {
  margin: 18px 0 0;
  color: var(--ink-soft);
  font-style: italic;
  max-width: 34em;
  font-size: 1.02rem;
}

.hero-photo {
  position: relative;
  margin: 0;
  border: 2px solid var(--ink);
  box-shadow: 7px 7px 0 var(--marigold);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
}

.hero-tape {
  position: absolute;
  top: -14px;
  left: 36px;
  width: 84px;
  height: 30px;
  background: rgba(217, 154, 43, 0.35);
  border: 1px solid rgba(217, 154, 43, 0.5);
  transform: rotate(-4deg);
  box-shadow: 0 1px 2px rgba(34, 38, 61, 0.15);
}

/* ---------- now strip removed in favour of the NOW column in the triad ---------- */

/* ---------- triad: Now / Field notes / Latest essay ---------- */

.triad {
  display: grid;
  grid-template-columns: 0.8fr 1.05fr 0.85fr 0.85fr;
  gap: 0;
  margin-top: 46px;
  border: 1.5px solid var(--ink);
  background: var(--paper-lift);
}

@media (max-width: 900px) {
  .triad { grid-template-columns: 1fr; }
  .triad-col { border-right: none !important; border-bottom: 1px solid var(--rule); }
  .triad-col:last-child { border-bottom: none; }
}

.triad-col {
  padding: 20px 22px 22px;
  border-right: 1px solid var(--rule);
  position: relative;
}

.triad-col:last-child { border-right: none; }

.triad .eyebrow {
  margin: 0 0 14px;
}

/* NOW column */

.now-list {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  font-size: 0.96rem;
}

.now-list li {
  padding: 5px 0;
  display: flex;
  gap: 8px;
}

.now-list .arrow { color: var(--sindoor); flex-shrink: 0; }

.now-illustration {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.now-caption {
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
  color: var(--ink-soft);
  transform: rotate(-1.5deg);
}

.now-figure {
  width: 76px;
  height: 76px;
  color: var(--ink-soft);
  flex-shrink: 0;
}

.coffee-ring {
  position: absolute;
  bottom: 10px;
  left: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid rgba(179, 50, 30, 0.16);
  pointer-events: none;
}

/* Field notes column reuses .stream / .micro from style.css, just tightens spacing */
.triad-col .stream { margin-left: 4px; }
.triad-col .section-link { font-size: 0.68rem; }
.triad-col .more-link {
  display: inline-block;
  margin-top: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--peacock);
  text-decoration: none;
}
.triad-col .more-link:hover { color: var(--sindoor); }

/* Latest essay column reuses .post-card.featured, dropping the outer border
   (the triad column already provides one) and adding the dog-ear + sprig. */

.triad-col .post-card.featured {
  border: none;
  padding: 0;
  box-shadow: none;
}

.triad-col .post-card.featured:hover {
  transform: none;
  box-shadow: none;
}

.dog-ear {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 22px 22px 0;
  border-color: transparent var(--paper-deep) transparent transparent;
}

.essay-sprig {
  position: absolute;
  bottom: 14px;
  right: 16px;
  width: 46px;
  height: 46px;
  color: var(--peacock);
  opacity: 0.75;
}

/* ---------- the four doors: icon sizing lives in style.css; layout only ---------- */

.doors { margin-bottom: 4px; }

/* ---------- recently in khuraak ---------- */

.khuraak-recent { margin-top: 6px; position: relative; }

.khuraak-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin: -6px 0 20px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.khuraak-tabs a {
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
}

.khuraak-tabs a.active {
  color: var(--ink);
  border-bottom-color: var(--sindoor);
}

.khuraak-tabs a:hover { color: var(--sindoor); }

.khuraak-row-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 880px) {
  .khuraak-row-wrap { grid-template-columns: 1fr; }
}

.khuraak-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

@media (max-width: 620px) {
  .khuraak-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.khuraak-item { font-size: 0.88rem; }

.khuraak-thumb {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1.5px solid var(--ink);
  background: var(--paper-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.khuraak-thumb svg { width: 34%; height: 34%; }
.khuraak-thumb.k-book { background: #ded0ae; }
.khuraak-thumb.k-film { background: #cdd2ce; }
.khuraak-thumb.k-music { background: #e7c9c2; }
.khuraak-thumb.k-article { background: #e3ddc6; }

.khuraak-item h3 {
  margin: 0 0 2px;
  font-size: 0.95rem;
  font-weight: 700;
}

.khuraak-item .k-by { display: block; color: var(--ink-soft); font-size: 0.82rem; margin-bottom: 4px; }
.khuraak-item p { margin: 0 0 6px; color: var(--ink-soft); }

.khuraak-item .k-tag {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--peacock);
}

.obsession-note {
  background: var(--paper-deep);
  border: 1px solid var(--rule);
  padding: 18px 16px 16px;
  transform: rotate(1.4deg);
  box-shadow: 3px 3px 0 rgba(34, 38, 61, 0.08);
  position: relative;
}

.obsession-tape {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
  width: 70px;
  height: 22px;
  background: rgba(217, 154, 43, 0.4);
  border: 1px solid rgba(217, 154, 43, 0.55);
}

.obsession-note h3 {
  margin: 0 0 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: underline;
  text-decoration-color: var(--rule);
}

.obsession-note p {
  margin: 0;
  font-family: "Caveat", cursive;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink);
}

.obsession-spark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 20px;
  height: 20px;
  color: var(--marigold);
}

/* ---------- guestbook ---------- */

.guestbook {
  margin-top: 52px;
  border: 1.5px solid var(--ink);
  background: var(--paper-lift);
  padding: 26px 26px 24px;
  position: relative;
}

.guestbook-clip {
  position: absolute;
  top: -16px;
  left: 22px;
  width: 26px;
  height: 40px;
  color: var(--ink-soft);
  transform: rotate(-8deg);
}

.guestbook-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 24px;
  align-items: start;
}

@media (max-width: 980px) {
  .guestbook-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .guestbook-top { grid-template-columns: 1fr; }
}

.guestbook-intro h2 { margin: 0 0 8px; }
.guestbook-intro p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

.guestbook-quote {
  font-family: "Caveat", cursive;
  font-size: 1.2rem;
  line-height: 1.28;
  color: var(--ink);
}

.guestbook-quote cite {
  display: block;
  margin-top: 6px;
  font-family: "IBM Plex Mono", monospace;
  font-style: normal;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.guestbook-quote time {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--ink-soft);
  margin-top: 3px;
}

.guestbook-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  justify-self: end;
}

.guestbook-cta a.button {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  background: var(--sindoor);
  color: var(--paper);
  border: 1.5px solid var(--sindoor);
  padding: 11px 20px;
  white-space: nowrap;
}

.guestbook-cta a.button:hover {
  background: var(--ink);
  border-color: var(--ink);
}

.guestbook-pen {
  width: 60px;
  height: 60px;
  color: var(--ink-soft);
  transform: rotate(8deg);
}

@media (max-width: 620px) {
  .guestbook-cta { align-items: flex-start; }
}

/* ---------- mobile odds and ends ---------- */

@media (max-width: 620px) {
  .hero-photo img { max-height: 260px; }
}
