/* ---------------------------------------------------------------
   rohangoel.com — shared styles
   Every color is a token in :root — change it there, not below.
   --------------------------------------------------------------- */

:root {
  /* default (light) palette — near-white paper, oxblood accent */
  --bg:        #FDFCFB;
  --surface:   #F4F0ED;
  --text:      #1F1B1A;
  --muted:     #6B615E;
  --faint:     #968A86;
  --accent:    #7A2E36;
  --accent-sf: #F3E6E5;
  --line:      #E8E2DE;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --measure: 41rem;
}

/* Single theme, on purpose: every visitor sees the light palette above,
   regardless of their OS setting. If you ever want a dark mode back,
   re-declare the same tokens inside a @media (prefers-color-scheme: dark)
   block — nothing below references a color directly. */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding-inline: 1.25rem;
  padding-block: 3rem 5rem;
}

/* ---------- header ---------- */

.masthead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.wordmark:hover { color: var(--accent); }

nav.site {
  display: flex;
  align-items: baseline;
  gap: 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

nav.site a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.site a:hover { color: var(--text); border-bottom-color: var(--line); }
nav.site a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ---------- intro ---------- */

.intro {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-block: 2.75rem 1.5rem;
  flex-wrap: wrap;
}

/* ---------- full-bleed banner (About page) ---------- */

.banner {
  margin-block: 2rem 2.25rem;
  /* break out of .wrap's measure to run edge to edge */
  width: 100vw;
  max-width: 100vw;
  margin-inline: calc(50% - 50vw);
  overflow: hidden;
}

.banner img {
  display: block;
  width: 100%;
  height: clamp(150px, 26vw, 300px);
  object-fit: cover;
  object-position: center 42%;
}

.banner-caption {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  max-width: var(--measure);
  margin: 0.5rem auto 0;
  padding-inline: 1.25rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 2.6rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.3rem;
  text-wrap: balance;
}

.tagline {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin: 0;
}

/* ---------- prose ---------- */

p { margin: 0 0 1.15rem; }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

h2 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--faint);
  margin: 3rem 0 1.25rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
}

.lede { font-size: 1.05rem; }

/* ---------- list of things (projects, now, links) ---------- */

.entries { border-top: 1px solid var(--line); }

.entry {
  padding-block: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.entry-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
}

.entry p { margin: 0.55rem 0 0; color: var(--muted); }
.entry p strong { color: var(--text); font-weight: 500; }

.meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--faint);
  text-transform: uppercase;
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
  padding: 0;
  list-style: none;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}

.status {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-sf);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
}

/* ---------- long-form post ---------- */

.post { margin-top: 2.75rem; }

.post .kicker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  margin: 0 0 0.9rem;
}

.post .kicker a { color: var(--faint); text-decoration: none; }
.post .kicker a:hover { color: var(--accent); }

.post h1 { margin-bottom: 1.5rem; }

/* headings inside a post are real headings, not the mono section labels */
.post h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--text);
  margin: 2.5rem 0 0.85rem;
}

.post p { max-width: 34rem; }
.post .lede { color: var(--muted); }
.post .todo { max-width: 34rem; }

/* ---------- simple two-column facts ---------- */

.facts {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.65rem 1.25rem;
  margin: 0;
}

.facts dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint);
  padding-top: 0.28rem;
}

.facts dd { margin: 0; color: var(--muted); }
.facts dd strong { color: var(--text); font-weight: 500; }

@media (max-width: 30rem) {
  .facts { grid-template-columns: 1fr; gap: 0.15rem; }
  .facts dd { margin-bottom: 0.9rem; }
}

/* ---------- placeholder note ---------- */

.todo {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.6;
  color: var(--faint);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0.8rem 0.9rem;
  margin-block: 1.5rem;
}

/* ---------- footer ---------- */

footer {
  margin-top: 4rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
  align-items: baseline;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.02em;
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--accent); }
footer .colophon { color: var(--faint); margin-left: auto; }

@media (prefers-reduced-motion: no-preference) {
  a, nav.site a, footer a { transition: color 120ms ease; }
}
