/* Abiral Gautam — portfolio. Minimal static site. */

:root {
  --bg:        #10151a;
  --surface:   #171d24;
  --border:    #2a333d;
  --text:      #e6ebf0;
  --text-dim:  #9aa8b6;
  --accent:    #4fd1c5;
  --radius:    6px;
  --wrap:      760px;
  --gutter:    20px;
  --font:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

:root[data-theme="light"] {
  --bg:        #ffffff;
  --surface:   #f6f8fa;
  --border:    #e0e6ec;
  --text:      #15202b;
  --text-dim:  #5b6b7a;
  --accent:    #0d7f73;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

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

img { max-width: 100%; display: block; }

h1, h2, h3 { line-height: 1.3; margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.15rem; margin-bottom: 1.5rem; }
h3 { font-size: 1.02rem; }
p  { margin: 0 0 .9rem; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--accent); color: var(--bg); padding: .5rem .9rem; z-index: 50; }
.skip-link:focus { left: 0; }

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

/* header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 56px;
}
.brand {
  margin-right: auto;
  color: var(--text);
  font-weight: 600;
  font-size: .95rem;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 1.1rem; }
.nav a { color: var(--text-dim); font-size: .9rem; }
.nav a:hover { color: var(--text); text-decoration: none; }

.header-actions { display: flex; align-items: center; gap: .4rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}
.icon-btn:hover { color: var(--text); }
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.menu-btn { display: none; }

:root[data-theme="dark"] .i-sun,
:root[data-theme="light"] .i-moon { display: none; }

/* intro */

.intro { padding: 3rem 0 2.5rem; }
.intro-inner {
  display: flex;
  align-items: flex-start;
  gap: 1.75rem;
}
.portrait {
  flex: 0 0 auto;
  width: 132px;
  height: 176px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.intro-text { min-width: 0; }
.intro-text p { color: var(--text-dim); }
.role { color: var(--text); font-size: .95rem; margin-bottom: 1rem; }
.intro-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 0; }

/* sections */

.section {
  padding: 2.25rem 0;
  border-top: 1px solid var(--border);
}
.mt { margin-top: 2.5rem; }

.meta { color: var(--text-dim); font-size: .85rem; margin-bottom: .7rem; }
.tags { color: var(--text-dim); font-size: .85rem; }

.bullets { margin: 0 0 .9rem; padding-left: 1.1rem; }
.bullets li { margin-bottom: .35rem; color: var(--text-dim); }

.plain { list-style: none; margin: 0; padding: 0; }
.plain li { margin-bottom: .9rem; color: var(--text-dim); }
.plain strong { color: var(--text); font-weight: 600; }
.contact li { margin-bottom: .3rem; }

.links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .9rem; }

/* projects */

.project { margin-bottom: 2.75rem; }
.project:last-child { margin-bottom: 0; }
.project > p:not(.meta):not(.tags):not(.links) { color: var(--text-dim); }

.entry { margin-bottom: 1.75rem; }
.entry:last-child { margin-bottom: 0; }
.entry .at { display: block; font-weight: 400; color: var(--text-dim); font-size: .92rem; }
.entry .meta { margin-bottom: .5rem; }

/* skills */

.skills { margin: 0; }
.skills dt { font-weight: 600; margin-top: 1rem; }
.skills dt:first-of-type { margin-top: 0; }
.skills dd { margin: .15rem 0 0; color: var(--text-dim); }

/* screenshots */

.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
  margin-top: 1.1rem;
}
.shots-one { grid-template-columns: 1fr; }

.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  cursor: zoom-in;
}
.shot:hover { border-color: var(--accent); }
.shot img { width: 100%; height: auto; }
.shot-light { background: #fff; }

/* footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
  color: var(--text-dim);
  font-size: .85rem;
}
.site-footer p { margin: 0; }

/* lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgba(8, 11, 14, .92);
}
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 100%; text-align: center; }
.lb-figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  margin-inline: auto;
  background: #fff;
  border-radius: var(--radius);
}
.lb-figure figcaption { margin-top: .75rem; color: #c3ced9; font-size: .85rem; }
.lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.lb-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
body.lb-open { overflow: hidden; }

/* responsive */

@media (max-width: 640px) {
  .menu-btn { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: .5rem var(--gutter) .75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .45rem 0; }
  .intro { padding: 2rem 0; }
  .intro-inner { flex-direction: column; gap: 1.25rem; }
  .portrait { width: 110px; height: 146px; }
  .shots { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
