/*
Theme Name: Kulam Roundup — Original Preview
Theme URI: https://kulam-roundup.avrohom-gree-9927.chatgpt.site
Author: Kulam
Description: WordPress edition of the original Kulam Roundup one-page editorial prototype.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kulam-preview
*/

:root {
  --ink: #17231f;
  --muted: #5f6964;
  --cream: #f6f2e8;
  --paper: #fffdf8;
  --sage: #cad4c2;
  --sage-dark: #84967f;
  --accent: #b95d3f;
  --line: rgba(23, 35, 31, 0.16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.custom-logo { display: block; width: auto; max-width: 180px; max-height: 55px; }
.custom-logo-link { display: block; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-links { display:flex; gap:12px; justify-content:center; margin-top:45px; }
.page-numbers { border-bottom:1px solid currentColor; padding:6px; }
.article-body h2,.article-body h3 { line-height:1.25; }
.article-body a { color:var(--accent); text-decoration:underline; }
.wp-block-image img,.reading-article > img { display:block; }

svg {
  width: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 96px;
  padding: 0 clamp(24px, 5vw, 76px);
  border-bottom: 1px solid rgba(23, 35, 31, 0.18);
}

.logo { display: flex; align-items: center; gap: 14px; width: max-content; }

.logo-mark {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1;
}

.logo-u { position: relative; }
.logo-u i {
  position: absolute;
  left: 50%;
  bottom: 78%;
  transform: translateX(-52%);
  font: normal 700 0.43rem/1 Arial, sans-serif;
  letter-spacing: 0.12em;
}

.logo-slot {
  padding-left: 13px;
  border-left: 1px solid rgba(23,35,31,.28);
  color: rgba(23,35,31,.55);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.desktop-nav { display: flex; gap: 34px; }
.desktop-nav a {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
}
.desktop-nav a::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin-top: 5px;
  background: currentColor;
  transition: width .2s ease;
}
.desktop-nav a:hover::after { width: 100%; }

.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.mobile-menu { display: none; }

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(880px, 94vh);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 126px clamp(24px, 8vw, 130px) 74px;
  background: #e5e6dc;
}

.panorama, .panorama > * { position: absolute; }
.panorama { z-index: -1; inset: 0; overflow: hidden; }
.panorama::after {
  content: "";
  inset: 0;
  position: absolute;
  background: linear-gradient(90deg, rgba(246,242,232,.95) 0%, rgba(246,242,232,.66) 43%, rgba(246,242,232,.06) 77%);
}
.sun {
  width: 28vw;
  aspect-ratio: 1;
  min-width: 320px;
  border-radius: 50%;
  right: 11vw;
  top: 14%;
  background: rgba(248, 220, 160, .62);
  filter: blur(1px);
}
.ridge { left: -6%; right: -6%; bottom: -10%; transform-origin: center bottom; }
.ridge-back {
  height: 54%;
  background: #c6d0c0;
  clip-path: polygon(0 63%, 11% 48%, 23% 58%, 35% 29%, 47% 55%, 59% 38%, 70% 50%, 83% 22%, 100% 49%, 100% 100%, 0 100%);
  animation: driftBack 18s ease-in-out infinite alternate;
}
.ridge-mid {
  height: 39%;
  background: #9eae98;
  clip-path: polygon(0 54%, 12% 37%, 25% 57%, 39% 28%, 52% 51%, 63% 20%, 76% 49%, 89% 30%, 100% 44%, 100% 100%, 0 100%);
  opacity: .86;
  animation: driftMid 14s ease-in-out infinite alternate;
}
.ridge-front {
  height: 26%;
  background: #6f8172;
  clip-path: polygon(0 60%, 9% 38%, 18% 53%, 31% 25%, 43% 55%, 55% 30%, 68% 54%, 80% 18%, 92% 50%, 100% 29%, 100% 100%, 0 100%);
  opacity: .74;
  animation: driftFront 11s ease-in-out infinite alternate;
}
.grain {
  inset: 0;
  opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.35'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

@keyframes driftBack { to { transform: translateX(-2.5%) scaleX(1.04); } }
@keyframes driftMid { to { transform: translateX(2.5%) scaleX(1.04); } }
@keyframes driftFront { to { transform: translateX(-1.5%) scaleX(1.025); } }

.hero-content { position: relative; z-index: 2; width: min(680px, 61vw); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 24px;
  color: #4e5c56;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow span { width: 24px; height: 1px; background: var(--accent); }
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.5rem, 8.3vw, 8.1rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .88;
}
.hero h1 em { color: var(--accent); font-weight: 400; }
.hero-copy {
  width: min(530px, 100%);
  margin: 34px 0 36px;
  color: #45514c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.05rem, 1.5vw, 1.32rem);
  line-height: 1.65;
}
.primary-button {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding: 16px 20px 16px 22px;
  background: var(--ink);
  color: white;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .04em;
  transition: transform .2s ease, background .2s ease;
}
.primary-button:hover { transform: translateY(-2px); background: var(--accent); }
.primary-button svg { transition: transform .2s ease; }
.primary-button:hover svg { transform: translateX(4px); }
.hero-note {
  position: absolute;
  right: clamp(24px, 5vw, 76px);
  top: 45%;
  margin: 0;
  writing-mode: vertical-rl;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .22em;
}
.scroll-cue {
  position: absolute;
  left: clamp(24px, 8vw, 130px);
  bottom: 30px;
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.scroll-cue span { width: 32px; height: 1px; background: currentColor; }

.featured { padding: clamp(76px, 9vw, 132px) clamp(24px, 6vw, 92px); }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 48px;
}
.section-heading .eyebrow { margin-bottom: 14px; }
.section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 5rem);
  font-weight: 400;
  letter-spacing: -.045em;
}
.section-heading > a,
.post-body > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 5px;
  border-bottom: 1px solid currentColor;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { min-width: 0; border-top: 1px solid var(--ink); }
.post-art {
  position: relative;
  height: clamp(230px, 25vw, 370px);
  margin: 13px 0 28px;
  overflow: hidden;
}
.post-art.sand { background: #e7d9bd; }
.post-art.blue { background: #c8d8d6; }
.post-art.rose { background: #e0c2b8; }
.post-art > span {
  position: absolute;
  left: 20px;
  top: 18px;
  z-index: 2;
  font: 400 4rem/1 Georgia, serif;
  color: rgba(23,35,31,.24);
}
.art-orbit {
  position: absolute;
  width: 68%;
  aspect-ratio: 1;
  right: -10%;
  bottom: -18%;
  border: 1px solid rgba(23,35,31,.44);
  border-radius: 50%;
  box-shadow: 0 0 0 26px rgba(255,255,255,.14), 0 0 0 52px rgba(255,255,255,.09);
}
.art-orbit::after {
  content: "";
  position: absolute;
  width: 34%;
  aspect-ratio: 1;
  left: 15%;
  top: 6%;
  background: rgba(185,93,63,.76);
  border-radius: 50%;
}
.blue .art-orbit::after { background: rgba(57,105,101,.69); }
.rose .art-orbit::after { background: rgba(126,75,89,.65); }
.art-line {
  position: absolute;
  left: -10%;
  right: 32%;
  bottom: 26%;
  height: 1px;
  background: rgba(23,35,31,.58);
  transform: rotate(-13deg);
}
.post-kicker { display: flex; justify-content: space-between; gap: 12px; }
.post-kicker span {
  color: var(--muted);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.post-kicker span:first-child { color: var(--accent); }
.post-body h3 {
  min-height: 3.5em;
  margin: 17px 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -.025em;
  line-height: 1.16;
}
.post-body p { margin: 0 0 26px; color: var(--muted); font-size: .92rem; line-height: 1.7; }
.post-body > a { width: max-content; }

.reading-preview {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 2.2fr);
  gap: clamp(56px, 9vw, 150px);
  padding: clamp(80px, 11vw, 160px) clamp(24px, 9vw, 150px);
  background: var(--cream);
  border-top: 1px solid var(--line);
}
.reading-rail {
  align-self: start;
  position: sticky;
  top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
}
.rail-label {
  margin: 0 0 30px;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.reading-rail ol { list-style: none; margin: 0; padding: 0; }
.reading-rail li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  color: #7f8783;
  font: .88rem/1.45 Georgia, serif;
}
.reading-rail li span { font: 700 .6rem/1.7 Arial, sans-serif; letter-spacing: .08em; }
.reading-rail li.active { color: var(--ink); }
.reading-rail li.active span { color: var(--accent); }
.rail-meta { display: flex; justify-content: space-between; gap: 14px; margin-top: 32px; }
.rail-meta span { color: var(--muted); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; }
.rail-meta strong { font: 400 .9rem Georgia, serif; }
.reading-article { width: min(100%, 800px); }
.reading-article .eyebrow { margin-bottom: 20px; }
.reading-article h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 6vw, 6rem);
  font-weight: 400;
  letter-spacing: -.055em;
  line-height: .98;
}
.article-dek {
  max-width: 670px;
  margin: 30px 0 32px;
  color: #52605a;
  font: 400 clamp(1.12rem, 1.65vw, 1.42rem)/1.62 Georgia, serif;
}
.byline {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.author-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font: 700 .64rem Arial, sans-serif;
  letter-spacing: .08em;
}
.byline > div:last-child { display: grid; gap: 4px; }
.byline strong { font-size: .72rem; }
.byline span { color: var(--muted); font-size: .65rem; letter-spacing: .04em; }
.article-body {
  max-width: 680px;
  margin: clamp(48px, 7vw, 90px) auto 0;
  color: #29332f;
  font: 400 clamp(1.08rem, 1.45vw, 1.28rem)/1.9 Georgia, serif;
}
.article-body p { margin: 0 0 1.55em; }
.dropcap::first-letter {
  float: left;
  margin: .08em .13em 0 0;
  color: var(--accent);
  font-size: 4.8em;
  line-height: .72;
}
.article-body blockquote {
  margin: 2.2em 0;
  padding: 1.1em 0 1.1em 1.2em;
  border-left: 2px solid var(--accent);
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.28;
  letter-spacing: -.025em;
}
.article-end {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 70px;
  padding-top: 18px;
  border-top: 1px solid var(--ink);
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.article-end a { display: flex; align-items: center; gap: 8px; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: end;
  gap: 40px;
  padding: 58px clamp(24px, 6vw, 92px);
  background: var(--ink);
  color: #f7f3ea;
}
.footer-brand { display: flex; align-items: baseline; gap: 18px; }
.footer-brand p { margin: 0; color: #aab5af; font: italic .9rem Georgia, serif; }
.footer-note { justify-self: center; max-width: 330px; margin: 0; color: #aab5af; font-size: .7rem; line-height: 1.6; text-align: center; }
.footer-links { justify-self: end; display: flex; gap: 22px; }
.footer-links a { font-size: .68rem; font-weight: 700; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto; height: 82px; }
  .desktop-nav, .header-cta { display: none; }
  .mobile-menu { display: block; position: relative; justify-self: end; }
  .mobile-menu summary { display: grid; gap: 7px; cursor: pointer; list-style: none; padding: 12px 0 12px 16px; }
  .mobile-menu summary::-webkit-details-marker { display: none; }
  .mobile-menu summary span { display: block; width: 24px; height: 1px; background: var(--ink); }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: 43px;
    display: grid;
    min-width: 190px;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(23,35,31,.12);
  }
  .mobile-menu nav a { padding: 12px 10px; font-size: .85rem; font-weight: 700; }
  .hero { min-height: 790px; }
  .hero-content { width: min(620px, 82vw); }
  .post-grid { grid-template-columns: 1fr 1fr; row-gap: 60px; }
  .post-card:last-child { grid-column: 1 / -1; width: calc(50% - 11px); }
  .reading-preview { grid-template-columns: 1fr; }
  .reading-rail { position: static; display: grid; grid-template-columns: 1fr 1fr; column-gap: 34px; }
  .reading-rail ol { grid-column: 1 / -1; }
  .rail-meta { align-self: end; margin-top: 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-note { display: none; }
}

@media (max-width: 620px) {
  .logo-slot { display: none; }
  .hero { min-height: 720px; padding-top: 112px; align-items: center; }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(3.7rem, 19vw, 5.2rem); }
  .hero-copy { margin: 26px 0 30px; font-size: 1rem; }
  .hero-note { display: none; }
  .sun { right: -45%; top: 22%; }
  .panorama::after { background: linear-gradient(90deg, rgba(246,242,232,.93) 0%, rgba(246,242,232,.5) 100%); }
  .section-heading { align-items: start; }
  .section-heading > a { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card:last-child { grid-column: auto; width: auto; }
  .post-art { height: 82vw; max-height: 390px; }
  .post-body h3 { min-height: auto; font-size: 1.75rem; }
  .reading-preview { gap: 65px; }
  .reading-rail { display: block; }
  .rail-meta { margin-top: 28px; }
  .reading-article h2 { font-size: clamp(3rem, 14vw, 4.5rem); }
  .article-body { font-size: 1.08rem; }
  .site-footer { grid-template-columns: 1fr; align-items: start; }
  .footer-brand { display: grid; gap: 8px; }
  .footer-links { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ridge { animation: none !important; }
  * { transition-duration: .01ms !important; }
}
