/* ─────────────────────────────────────────────
   Yeshwanth L M — links. Same tokens as yeshwanthlm.in
   (dark/light, AWS orange accent, Geist + Instrument Serif, terminal accent)
   ───────────────────────────────────────────── */
:root, [data-theme="dark"] {
  --bg: #0b0b0c; --bg-2: #111113; --card: #141416;
  --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --fg: #ededee; --fg-2: #b4b4bb; --dim: #7c7c85;
  --acc: #ff9900; --acc-ink: #1a0f00; --acc-soft: rgba(255,153,0,.11); --acc-text: #ff9900;
  --glow-1: rgba(255,153,0,.10); --glow-2: rgba(138,180,255,.06);
  --shadow: 0 30px 80px -40px rgba(0,0,0,.8);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f5f4ef; --bg-2: #eeece5; --card: #fbfaf7;
  --line: rgba(17,17,20,.09); --line-2: rgba(17,17,20,.16);
  --fg: #121214; --fg-2: #3d3d44; --dim: #75757d;
  --acc: #ff9900; --acc-ink: #1a0f00; --acc-soft: rgba(255,153,0,.15); --acc-text: #b85c00;
  --glow-1: rgba(255,153,0,.10); --glow-2: rgba(35,47,62,.05);
  --shadow: 0 30px 70px -40px rgba(40,30,10,.35);
  color-scheme: light;
}
:root {
  --t-bg: #0d0f12; --t-bar: #15181d; --t-line: #232830; --t-fg: #d7dce4; --t-dim: #7d8696; --t-acc: #ff9900;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--fg);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
  transition: background-color .35s ease, color .35s ease;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(800px 500px at 85% -5%, var(--glow-1), transparent 65%),
    radial-gradient(700px 500px at -10% 30%, var(--glow-2), transparent 60%);
}
.grain { position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
::selection { background: var(--acc); color: var(--acc-ink); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mono { font-family: var(--mono); }
.dim { color: var(--dim); }

/* ── nav ── */
.nav {
  position: sticky; top: 0; z-index: 50; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  width: min(560px, 100% - 40px); margin: 0 auto;
}
.nav::before { content: ""; position: absolute; inset: 0 -50vw; z-index: -1;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo__img { width: 56px; height: 56px; display: block; object-fit: contain; transition: filter .3s ease; }
.logo:hover .logo__img { filter: drop-shadow(0 0 10px var(--acc)) drop-shadow(0 0 22px var(--acc-soft)); }
.logo__txt { font: 600 18px var(--sans); letter-spacing: -.01em; }
.logo__cur { font-family: var(--mono); color: var(--acc); margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line-2); border-radius: 10px; color: var(--fg-2);
  cursor: pointer; transition: border-color .2s, color .2s, background .2s;
}
.icon-btn:hover { color: var(--fg); border-color: var(--acc); background: var(--acc-soft); }
.icon-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

/* ── page ── */
.page { width: min(560px, 100% - 40px); margin: 0 auto; padding: 28px 0 calc(40px + env(safe-area-inset-bottom)); }
.hero { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; padding: 6px 14px 6px 12px;
  border: 1px solid var(--line-2); border-radius: 99px; font: 500 12.5px var(--mono); color: var(--fg-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--acc); flex: none; animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }
.display { font: 400 clamp(46px, 12vw, 72px)/1 var(--serif); letter-spacing: -.02em; margin: 0 0 14px; }
.display em { color: var(--acc); }
[data-theme="light"] .display em { text-shadow: 0 1px 0 rgba(120,60,0,.18); }
.sub { margin: 0 0 28px; color: var(--fg-2); font-size: 16.5px; }

/* ── terminal accent ── */
.term { background: var(--t-bg); color: var(--t-fg); border: 1px solid var(--t-line); border-radius: 14px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0,0,0,.25); overflow: hidden; margin: 0 0 18px; }
.term__bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: var(--t-bar);
  border-bottom: 1px solid var(--t-line); color: var(--t-dim); font-size: 11.5px; }
.term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3f48; }
.term__bar i:nth-child(1) { background: #ff5f57; } .term__bar i:nth-child(2) { background: #febc2e; } .term__bar i:nth-child(3) { background: #28c840; }
.term__bar span { margin-left: auto; }
.term__body { padding: 12px 16px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term .pr { color: var(--t-acc); }
.term .dim { color: var(--t-dim); }
.caret { display: inline-block; margin-left: 2px; color: var(--t-acc); animation: blink 1.1s steps(1) infinite; }

/* ── links ── */
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.links li { animation: rise .5s both cubic-bezier(.2,.8,.2,1); animation-delay: var(--d); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.lk {
  display: flex; align-items: center; gap: 14px; min-height: 68px; padding: 12px 16px 12px 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  transition: border-color .2s, transform .2s, box-shadow .3s, background .2s;
  -webkit-tap-highlight-color: transparent;
}
.lk:hover, .lk:focus-visible { border-color: var(--acc); transform: translateY(-1px);
  box-shadow: 0 0 0 5px var(--acc-soft), 0 14px 30px -18px var(--acc); }
.lk:active { transform: scale(.985); }
.lk__ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); transition: background .2s, color .2s; }
.lk__ic svg { width: 22px; height: 22px; fill: currentColor; }
.lk:is([href*="x.com"], [href*="github"], [href*="dev.to"]) .lk__ic { color: var(--fg); background: var(--line); }
.lk:hover .lk__ic { background: var(--acc); color: var(--acc-ink) !important; }
.lk__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lk__txt b { font-weight: 600; font-size: 16px; }
.lk__txt span { font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk__app { display: none; font-size: 10.5px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line-2); color: var(--acc-text); }
html:not([data-device="desktop"]) .lk__app { display: inline-block; }
.lk__go { color: var(--dim); font-size: 18px; transition: color .2s, transform .2s; }
.lk:hover .lk__go { color: var(--acc); transform: translate(2px, -2px); }

/* ── footer ── */
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 18px;
  border-top: 1px solid var(--line); font-size: 12.5px; }
.link-arrow { color: var(--fg-2); transition: color .2s; }
.link-arrow:hover { color: var(--acc-text); }

@media (max-width: 480px) {
  .logo__img { width: 46px; height: 46px; }
  .lk { min-height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
