/* ============================================================
   Adithya Shreshti — personal site
   Light, minimal, oliur-inspired. One column, generous space.
   ============================================================ */

:root {
  --bg:            #ffffff;
  --surface:       #f7f7f5;   /* subtle card / block background */
  --border:        #ececea;
  --text:          #1a1a18;   /* near-black, softer than pure #000 */
  --text-soft:     #56564f;   /* secondary copy */
  --text-muted:    #8b8b83;   /* meta / hints */
  --accent:        #1a1a18;   /* buttons, strong links (mono, understated) */
  --accent-hover:  #000000;
  --ring:          #c9c9c4;

  --maxw:   640px;
  --radius: 12px;
  --font:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

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

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 80px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

a { color: inherit; }

h1, h2 { font-weight: 600; letter-spacing: -0.02em; }

/* ---------- Nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0;
}
.nav__brand {
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__links {
  display: flex;
  gap: 22px;
  font-size: 15px;
}
.nav__links a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.nav__links a:hover { color: var(--text); }

/* ---------- Hero ---------- */
.hero {
  padding: 40px 0 8px;
}
.hero__avatar {
  position: relative;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 30px;
  color: var(--text-soft);
  margin-bottom: 28px;
  overflow: hidden;
}
/* The photo covers the initials. If img/avatar.png is missing the <img>
   removes itself and the "AS" circle shows exactly as before. */
.hero__avatar-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.hero__title {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
}
.hero__lead {
  font-size: 19px;
  color: var(--text-soft);
  margin: 0 0 20px;
  max-width: 34em;
}
.hero__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--text-muted);
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
}

/* ---------- Section headings ---------- */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}
.section-head h2 { font-size: 15px; margin: 0; }
.section-head__all {
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.section-head__all:hover { color: var(--text); }

/* ---------- Subscribe ---------- */
.subscribe {
  margin: 56px 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.subscribe__head h2 { font-size: 20px; margin: 0 0 16px; }
.subscribe__form {
  display: flex;
  gap: 10px;
}
.subscribe__form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--ring);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.subscribe__form input::placeholder { color: var(--text-muted); }
.subscribe__form input:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(26,26,24,0.08);
}
.subscribe__form button {
  height: 46px;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.05s ease;
}
.subscribe__form button:hover { background: var(--accent-hover); }
.subscribe__form button:active { transform: scale(0.98); }
.subscribe__note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
}

.subscribe__embed { margin-top: 4px; }

/* ---------- Writing / posts list ---------- */
.writing { margin: 56px 0; }
.posts {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.post { border-top: 1px solid var(--border); }
.post:last-child { border-bottom: 1px solid var(--border); }
.post a {
  display: block;
  padding: 20px 0;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.post a:hover { opacity: 0.62; }
.post__title {
  display: block;
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 4px;
}
.post__excerpt {
  display: block;
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.post__meta {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- Elsewhere / links ---------- */
.elsewhere { margin: 56px 0; }
.links {
  margin-top: 8px;
  display: grid;
  gap: 0;
}
.links__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.links__item:last-child { border-bottom: 1px solid var(--border); }
.links__item:hover { opacity: 0.62; }
.links__label { font-weight: 500; font-size: 16px; }
.links__handle { font-size: 15px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer {
  margin-top: 72px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-muted);
}
.footer p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 520px) {
  .hero__avatar { width: 80px; height: 80px; font-size: 26px; }
  .hero__title { font-size: 28px; }
  .hero__lead  { font-size: 17px; }
  .subscribe   { padding: 22px; }
  .subscribe__form { flex-direction: column; }
  .subscribe__form button { width: 100%; }
  .nav__links { gap: 16px; font-size: 14px; }
}
