/* prakashmali.me — one stylesheet, no build step */
:root {
  --bg: #14110f;
  --surface: #1d1916;
  --sunken: #0f0d0b;
  --ink: #f4efe8;
  --ink-soft: #c9c0b5;
  --muted: #968c80;
  --edge: #2e2823;
  --accent: #f08a3c;
  --accent-ink: #1f0e02;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: Fraunces, "Iowan Old Style", Georgia, serif;
  --wrap: 72rem;
  --read: 42rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --radius: 14px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
b, strong { font-weight: 600; }

.skip { position: absolute; left: -999px; top: .5rem; background: var(--ink); color: var(--bg); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: .5rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header / footer */
.site-header {
  max-width: var(--wrap); margin: 0 auto; padding: 1.25rem var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.wordmark {
  color: var(--ink); text-decoration: none; display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--display); font-size: 1.3rem; font-weight: 600;
}
.wordmark .mark { width: 2rem; height: 2rem; color: var(--accent); flex: none; }
.site-header nav { display: flex; gap: 1.5rem; }
.site-header nav a { color: var(--ink-soft); text-decoration: none; font-size: .95rem; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.site-footer {
  max-width: var(--wrap); margin: 6rem auto 0; padding: 2rem var(--gutter) 3rem;
  border-top: 1px solid var(--edge); color: var(--muted); font-size: .9rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}
.site-footer p { margin: 0; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; flex-wrap: wrap; }
.social a { color: var(--ink-soft); text-decoration: none; }
.social a:hover { color: var(--accent); }

main > section, .post { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow, .kicker { font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; font-weight: 600; }
.lede { font-size: clamp(1.15rem, 2.2vw, 1.3rem); color: var(--ink-soft); line-height: 1.55; }
.meta { color: var(--muted); font-size: .9rem; margin: 0; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 1.5rem; }

.btn {
  display: inline-flex; align-items: center; min-height: 3rem; padding: 0 1.5rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(244, 239, 232, .4); }
.btn.ghost:hover { border-color: var(--ink); filter: none; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin: 0; }

/* home: text-led, one dimmed photo fixed behind the page */
body.home::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20, 17, 15, .84) 0%, rgba(20, 17, 15, .9) 60%, rgba(20, 17, 15, .94) 100%),
    url("/img/hero-ebc.webp") 30% 35% / cover no-repeat;
}
body.home { background: var(--bg); }
.opening { padding-top: clamp(3.5rem, 14vh, 9rem) !important; padding-bottom: clamp(3rem, 9vh, 6rem) !important; }
.opening h1 {
  font-size: clamp(3rem, 9.5vw, 7rem); font-weight: 400; line-height: .95; letter-spacing: -.03em;
  margin: 0 0 1.5rem; max-width: 11ch;
}
.opening h1 em { color: var(--accent); }
.opening-lede { font-size: clamp(1.1rem, 2vw, 1.35rem); line-height: 1.55; color: #ece5dc; max-width: 34rem; margin: 0; }
.intro::before, .quote::before { content: ""; display: block; border-top: 1px solid rgba(244, 239, 232, .14); margin-bottom: clamp(2rem, 5vh, 3rem); }
.intro { padding-bottom: clamp(2.5rem, 6vh, 4rem) !important; }
.intro-lead { font-family: var(--display); font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.4; margin: 0 0 1rem; max-width: 40rem; }
.intro-body { color: var(--ink-soft); font-size: 1.05rem; max-width: 40rem; margin: 0; }
.quote blockquote { margin: 0; }
.quote p {
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.25; max-width: 28ch; margin: 0;
}
.quote span { color: var(--accent); }
body.home .site-footer { margin-top: clamp(3rem, 8vh, 5rem); }

.latest { margin-top: clamp(4rem, 8vw, 7rem) !important; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head a { text-decoration: none; font-weight: 600; font-size: .95rem; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.card a {
  color: inherit; text-decoration: none; display: block; height: 100%;
  background: var(--surface); border: 1px solid var(--edge); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
}
.card a:hover { border-color: rgba(240, 138, 60, .6); }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--sunken); }
.card div { padding: 1.1rem 1.25rem 1.4rem; }
.card h3 { font-size: 1.2rem; margin: .3rem 0 .5rem; }
.card a:hover h3 { color: var(--accent); }
.card p:not(.meta) { margin: 0; color: var(--ink-soft); font-size: .95rem; line-height: 1.55; }

.cards.list { grid-template-columns: 1fr; max-width: 56rem; }
.cards.list .card a { display: grid; grid-template-columns: 15rem 1fr; align-items: stretch; }
.cards.list .card img { height: 100%; aspect-ratio: auto; min-height: 10rem; }
.cards.list .card div { padding: 1.4rem 1.6rem; }


/* posts */
.post-head { max-width: var(--read); margin: clamp(2rem, 6vw, 4.5rem) auto 2.5rem; }
.post-head h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); margin: 0 0 1.25rem; }
.post-head .lede { margin: 0 0 1.25rem; }
.stories-page .post-head { max-width: 56rem; margin-left: 0; }
.cover { margin: 0 auto 3rem; max-width: 60rem; }
.cover img { width: 100%; border-radius: var(--radius); max-height: 34rem; object-fit: cover; }

.prose { max-width: var(--read); margin: 0 auto; font-size: 1.125rem; }
.prose > * + * { margin-top: 1.2em; }
.prose p, .prose ul, .prose ol { margin-bottom: 0; }
.prose h2 { font-size: 1.65rem; margin: 2.4em 0 0; }
.prose h3 { font-size: 1.3rem; margin: 2em 0 0; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li + li { margin-top: .35em; }
.prose li::marker { color: var(--accent); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; }
.prose td, .prose th { border-bottom: 1px solid var(--edge); padding: .5rem .5rem .5rem 0; text-align: left; vertical-align: top; }
.prose > img { border-radius: 10px; }
.gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(10rem, 40vw), 1fr)); gap: .6rem;
  width: min(60rem, calc(100vw - 2 * var(--gutter))); margin-left: 50%; transform: translateX(-50%);
  margin-top: 2.5rem !important; margin-bottom: 1rem;
}
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--sunken); }
.back { max-width: var(--read); margin: 4rem auto 0; }
.back a { text-decoration: none; font-weight: 600; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video img, .video iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.yt { display: block; height: 100%; position: relative; }
.play {
  position: absolute; inset: 50% auto auto 50%; width: 4.5rem; height: 4.5rem; transform: translate(-50%, -50%);
  border-radius: 50%; background: rgba(0, 0, 0, .6); transition: background .2s;
}
.play::after { content: ""; position: absolute; left: 1.8rem; top: 1.35rem; border-left: 1.4rem solid #fff; border-top: .9rem solid transparent; border-bottom: .9rem solid transparent; }
.yt:hover .play { background: var(--accent); }

/* responsive */
@media (max-width: 860px) {
    .cards { grid-template-columns: 1fr; }
  .cards.list .card a { grid-template-columns: 1fr; }
  .cards.list .card img { aspect-ratio: 3 / 2; min-height: 0; }
}
@media (max-width: 700px) {
  .site-header nav { gap: 1.1rem; }
  .cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
