/* ============================================================
   srtangirala.in — minimal, dark, type-driven
   Fonts: Instrument Serif (display) + Inter (body)
   Palette: near-black, warm off-white, one amber accent
   ============================================================ */

:root {
  --bg: #0c0c0d;
  --bg-raised: #131315;
  --text: #ecebe6;
  --text-dim: #9b9a94;
  --line: #232326;
  --accent: #e0a458;
  --max: 1060px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Outfit", -apple-system, system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

::selection { background: var(--accent); color: var(--bg); }

a { color: inherit; }
.accent { color: var(--accent); }
em { font-family: var(--serif); font-style: italic; font-size: 1.06em; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.5rem;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  color: var(--bg) !important;
  background: var(--text);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-weight: 500;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--accent); }

/* ---------- layout ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

.section {
  padding: 6.5rem 0 2rem;
  border-top: 1px solid var(--line);
  margin-top: 5rem;
}

.section h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 2.5rem;
}

.section-num {
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--accent);
  vertical-align: super;
  margin-right: 0.75rem;
  letter-spacing: 0.1em;
}

.section-intro {
  color: var(--text-dim);
  max-width: 34rem;
  margin: -1.5rem 0 2.5rem;
}

/* reveal */
.hero, .section { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.hero.visible, .section.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero, .section { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ---------- */
.hero { padding: 9rem 0 3rem; }

.eyebrow {
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 10vw, 7.5rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.hero-sub {
  max-width: 34rem;
  margin-top: 2rem;
  font-size: 1.15rem;
  color: var(--text-dim);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2.5rem;
}

.hero-tags span {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about-lead { font-size: 1.2rem; line-height: 1.7; }

.about-facts { display: flex; flex-direction: column; gap: 1.6rem; }

.fact { display: flex; flex-direction: column; }
.fact-num { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1.1; }
.fact-label { font-size: 0.85rem; color: var(--text-dim); }

.about-stack {
  margin-top: 3rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- work ---------- */
.work-list { list-style: none; }

.work-item {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 2rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.2s;
}
.work-item:last-child { border-bottom: none; }

.work-period {
  font-size: 0.82rem;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  padding-top: 0.25rem;
  white-space: nowrap;
}

.work-body h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.work-body p { color: var(--text-dim); font-size: 0.95rem; max-width: 40rem; }

/* ---------- preferences ---------- */
.pref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pref-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 2rem 1.6rem;
  transition: border-color 0.25s, transform 0.25s;
}
.pref-card:hover { border-color: var(--accent); transform: translateY(-3px); }

.pref-icon { color: var(--accent); font-size: 1.2rem; display: block; margin-bottom: 1.2rem; }
.pref-card h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 0.6rem; }
.pref-card p { color: var(--text-dim); font-size: 0.92rem; }
.pref-card a { color: var(--accent); text-decoration: none; }
.pref-card a:hover { text-decoration: underline; }

/* ---------- writing ---------- */
.blog-list { list-style: none; }

.blog-list li { border-bottom: 1px solid var(--line); }
.blog-list li:last-child { border-bottom: none; }

.blog-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 0.25rem;
  text-decoration: none;
  transition: padding-left 0.25s, color 0.2s;
}
.blog-list a:hover { padding-left: 0.9rem; color: var(--accent); }

.blog-title { font-family: var(--serif); font-size: 1.35rem; }
.blog-arrow { color: var(--text-dim); }
.blog-list a:hover .blog-arrow { color: var(--accent); }

/* ---------- contact ---------- */
.contact { padding-bottom: 7rem; }

.contact-lead {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin-bottom: 2.5rem;
}

.contact-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.contact-btn {
  text-decoration: none;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.contact-btn:hover { background: var(--accent); }

.contact-btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.contact-btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- responsive ---------- */
@media (max-width: 760px) {
  .nav-links { gap: 1rem; font-size: 0.8rem; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding-top: 5rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-facts { flex-direction: row; gap: 2rem; flex-wrap: wrap; }
  .work-item { grid-template-columns: 1fr; gap: 0.4rem; }
  .pref-grid { grid-template-columns: 1fr; }
  .section { padding-top: 4.5rem; margin-top: 3rem; }
}
