/* ============================================================
   manoharpaluri.com — shared styles
   Used by index.html and all sub-pages.
   ============================================================ */

:root {
  --paper: #f5f0e6;
  --ink: #1b1a17;
  --ink-soft: #5a564d;
  --rule: #d9d2c2;
  --accent: #1f4d3a;
  --accent-soft: #d7e3dc;
  --chip: #eae3d1;

  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --measure: 680px;
  --page-x: clamp(24px, 6vw, 96px);

  --body-size: 18px;
}

html[data-theme="green"] {
  --paper: #0e1a14;
  --ink: #e8e0cf;
  --ink-soft: #9aa89e;
  --rule: #1d2b22;
  --accent: #8ad1a7;
  --accent-soft: #18291f;
  --chip: #17231c;
}

html[data-theme="paper"] {
  --paper: #ffffff;
  --ink: #111111;
  --ink-soft: #5a5a5a;
  --rule: #e5e5e5;
  --accent: #1f4d3a;
  --accent-soft: #e8f0ec;
  --chip: #f1efea;
}

html[data-font="sans"]  { --font-display: "Inter", system-ui, sans-serif; }
html[data-font="mono"]  { --font-display: "JetBrains Mono", ui-monospace, monospace; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--font-ui);
  font-size: var(--body-size);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color .25s ease, color .25s ease;
}

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--rule); transition: color .15s ease, text-decoration-color .15s ease; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
::selection { background: var(--accent); color: var(--paper); }

/* ---- Layout ---- */
.page { max-width: calc(var(--measure) + var(--page-x) * 2); margin: 0 auto; padding: 56px var(--page-x) 120px; }
.section { margin-top: 72px; }
.measure { max-width: var(--measure); }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 64px 0 0; }

.section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: ""; display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
}

/* ---- Top bar ---- */
.topbar {
  display: flex; justify-content: flex-start; align-items: baseline;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em;
}
.topbar .mark { color: var(--ink); font-weight: 500; text-decoration: none; }
.topbar .mark:hover { color: var(--accent); }
.topbar nav a { margin-right: 18px; margin-left: 0; text-decoration: none; color: var(--ink-soft); }
.topbar nav a:hover, .topbar nav a[aria-current="page"] { color: var(--accent); }

/* ---- Hero (home) ---- */
.hero { margin-top: 56px; }
.hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.hero .kicker {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0 0 28px;
  max-width: 560px;
}
.hero p { max-width: 620px; margin: 0 0 14px; }

.hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: start; }
.hero-grid .hero-copy { grid-column: 1 / 2; grid-row: 1; order: 1; }
.hero-grid .portrait-col { grid-column: 2 / 3; grid-row: 1; order: 2; display: flex; flex-direction: column; gap: 18px; }
.hero-grid .portrait { aspect-ratio: 4/5; width: 100%; border-radius: 2px; overflow: hidden; }
.hero-grid .portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-grid .portrait-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.hero-grid .portrait-caption strong { font-style: normal; font-weight: 600; color: var(--accent); }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .portrait-col { grid-column: 1; grid-row: 1; max-width: 260px; width: 60%; }
  .hero-grid .hero-copy { grid-column: 1; grid-row: 2; }
}

/* ---- Sub-page hero (smaller, single-column) ---- */
.subhero { margin-top: 40px; }
.subhero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
}
.subhero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.subhero p.lede {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: clamp(18px, 1.6vw, 22px);
  margin: 0 0 0;
  max-width: 620px;
}

/* ---- Meta row / chips ---- */
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font-family: var(--font-mono); font-size: 12px; }
.chip {
  padding: 6px 10px;
  background: var(--chip);
  color: var(--ink);
  border-radius: 999px;
  text-decoration: none;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip .dot { display: inline-block; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; margin-right: 6px; vertical-align: 1px; }

/* ---- Lists ---- */
ul.clean, ol.clean { padding-left: 0; list-style: none; margin: 0; }
ul.clean li, ol.clean li { padding: 14px 0; border-top: 1px solid var(--rule); display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: baseline; }
ul.clean li:last-child, ol.clean li:last-child { border-bottom: 1px solid var(--rule); }
ul.clean li .when, ol.clean li .when { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
ul.clean li .what, ol.clean li .what { color: var(--ink); }
ul.clean li .what .sub, ol.clean li .what .sub { display: block; color: var(--ink-soft); font-size: 15px; margin-top: 2px; }
ul.clean li .where, ol.clean li .where { font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); text-align: right; }
@media (max-width: 680px) {
  ul.clean li, ol.clean li { grid-template-columns: 1fr; gap: 4px; }
  ul.clean li .where, ol.clean li .where { text-align: left; }
}

/* ---- Bullet list ---- */
ul.bullets { padding-left: 0; list-style: none; margin: 0; }
ul.bullets li { padding: 10px 0 10px 20px; position: relative; }
ul.bullets li::before {
  content: ""; position: absolute; left: 0; top: 22px;
  width: 8px; height: 1px; background: var(--ink-soft);
}

/* ---- Link tiles (home page hub) ---- */
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tile {
  display: block;
  padding: 22px 22px 20px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  color: var(--ink);
  background: var(--paper);
  transition: border-color .15s ease, background .15s ease;
}
.tile:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent-soft) 35%, var(--paper)); }
.tile .tile-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
  display: flex; justify-content: space-between; align-items: center;
}
.tile .tile-label .arrow { font-family: var(--font-ui); }
.tile .tile-title { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 10px 0 6px; line-height: 1.15; }
.tile .tile-sub { color: var(--ink-soft); font-size: 15px; margin: 0; }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* ---- Travel grid ---- */
.travel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.travel-grid .photo { aspect-ratio: 1/1; overflow: hidden; border-radius: 2px; }
.photo-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--chip) 0 8px, var(--paper) 8px 16px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 10px; color: var(--ink-soft); letter-spacing: 0.08em;
  text-align: center; padding: 8px;
}
@media (max-width: 560px) { .travel-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Portrait placeholder ---- */
.portrait-placeholder {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--accent) 16%, var(--paper)) 0 12px,
      color-mix(in oklab, var(--accent) 8%, var(--paper)) 12px 24px
    );
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 12px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-soft);
  letter-spacing: 0.08em; text-transform: uppercase;
}

/* ---- Press kit ---- */
.press-kit { display: grid; grid-template-columns: 1fr; gap: 36px; }
.press-headshots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.press-headshot {
  position: relative; display: block; overflow: hidden; border-radius: 2px;
  aspect-ratio: 3/2; background: var(--rule);
  text-decoration: none;
}
.press-headshot img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.press-headshot:hover img { transform: scale(1.03); }
.press-dl {
  position: absolute; left: 10px; bottom: 10px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,0.55); padding: 5px 9px; border-radius: 2px;
  opacity: 0; transition: opacity .2s ease;
}
.press-headshot:hover .press-dl, .press-headshot:focus-visible .press-dl { opacity: 1; }
.press-bios { max-width: 68ch; }
.press-kicker { font-family: var(--font-display); font-style: italic; font-size: 20px; margin: 0 0 10px; }
.press-note { color: var(--ink-soft); margin: 0 0 24px; }
.bio-block { padding: 18px 0; border-top: 1px solid var(--rule); }
.bio-head { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; margin-bottom: 8px; }
.bio-head h4 { font-family: var(--font-display); font-size: 22px; color: var(--ink); margin: 0; font-weight: 500; }
.bio-head h4 a { color: var(--ink); text-decoration: none; }
.bio-head h4 a:hover { color: var(--accent); }
.bio-dl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); text-decoration: none; white-space: nowrap; }
.bio-dl:hover { text-decoration: underline; }
.bio-block p { margin: 0 0 10px; }
.press-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; }
.press-links { display: flex; flex-wrap: wrap; align-items: baseline; gap: 14px 36px; padding: 22px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin: 22px 0; }
.press-links .bio-dl { position: relative; text-decoration: none; }
.press-links .bio-dl:hover { text-decoration: underline; text-underline-offset: 4px; }
.press-links .bio-dl + .bio-dl::before {
  content: ","; position: absolute; left: -20px; color: var(--ink-soft);
  font-family: var(--font-display); font-size: 16px;
}
@media (max-width: 760px) {
  .press-headshots { grid-template-columns: 1fr; }
  .bio-head { flex-direction: column; align-items: flex-start; gap: 4px; }
}

/* ---- Footer ---- */
footer { margin-top: 96px; padding-top: 28px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--font-mono); font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
footer a { color: var(--ink-soft); text-decoration: none; }
footer a:hover { color: var(--accent); }

/* ---- Placeholder notes ---- */
.placeholder-note {
  display: inline-block; font-family: var(--font-mono); font-size: 11px;
  background: transparent; color: var(--ink-soft);
  border: 1px dashed var(--rule); padding: 2px 6px; border-radius: 2px;
  letter-spacing: 0.04em; margin-left: 4px;
}

/* ---- Tweaks panel ---- */
.tweaks {
  position: fixed; right: 20px; bottom: 20px; width: 280px;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 16px; border-radius: 4px;
  font-family: var(--font-ui); font-size: 13px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  display: none; z-index: 50;
}
.tweaks[data-open="true"] { display: block; }
.tweaks h4 { margin: 0 0 10px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.tweaks .row { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tweaks button {
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
  padding: 6px 10px; border-radius: 2px; font-family: var(--font-mono); font-size: 11px; cursor: pointer;
  letter-spacing: 0.04em;
}
.tweaks button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.tweaks button:hover { border-color: var(--accent); }
.tweaks .label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }

/* ---- Foundation callout (home) ---- */
.foundation-callout {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 22px 24px;
  border-radius: 2px;
  background: color-mix(in oklab, var(--accent-soft) 30%, var(--paper));
}
.foundation-callout h3 { font-family: var(--font-display); font-size: 24px; font-weight: 500; margin: 0 0 8px; line-height: 1.2; }
.foundation-callout p { margin: 0 0 10px; color: var(--ink-soft); font-size: 16px; }
.foundation-callout a.learn { color: var(--accent); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; }
.foundation-callout a.learn:hover { text-decoration: underline; }
