/* ===================================================================
   abhishekgore.com — stylesheet
   Design language: a working security-review dossier, not a hacker
   theme and not a SaaS landing page. Paper, ink, a brass accent for
   certifications/status, a brick-red accent used once with intent,
   and a muted teal for links and tags.
   =================================================================== */

:root {
  --paper: #eff1ed;
  --paper-raised: #e7e9e3;
  --ink: #1a1d18;
  --ink-soft: #454a40;
  --muted: #6e7268;
  --rule: #d3d6cc;
  --rule-strong: #b7bbae;
  --brass: #a8792d;
  --brick: #8c3323;
  --teal: #3b5a55;

  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --content-max: 640px;
  --nav-width: 232px;
}

@media (prefers-color-scheme: dark) {
  /* Intentionally not offering an auto dark mode — the paper/ink
     concept is the design. Left as a hook for future manual toggle. */
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
a:hover { color: var(--brick); }
a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 0.4em;
  color: var(--ink);
}

h1 { font-size: 2.6rem; letter-spacing: -0.01em; }
h2 { font-size: 1.5rem; margin-top: 0; }
h3 { font-size: 1.1rem; }

p { margin: 0 0 1em; max-width: var(--content-max); }

.field-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.rule {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* ---------- layout shell ---------- */

.shell {
  display: flex;
  align-items: flex-start;
  min-height: 100vh;
}

.sidenav {
  position: sticky;
  top: 0;
  height: 100vh;
  width: var(--nav-width);
  flex: 0 0 var(--nav-width);
  padding: 2.2rem 1.6rem;
  border-right: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.mark {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 2.4rem;
}
.mark span { color: var(--brass); }

.sidenav nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidenav nav li { margin-bottom: 0.55rem; }
.sidenav nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
}
.sidenav nav a:hover,
.sidenav nav a[aria-current="page"] { color: var(--brick); }
.sidenav nav a[aria-current="page"] { font-weight: 600; }

.status {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  display: inline-block;
  flex: none;
}

.main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 3.2rem clamp(1.4rem, 5vw, 4.5rem) 5rem;
  max-width: 980px;
}

/* mobile top bar (hidden on desktop) */
.topbar {
  display: none;
}

@media (max-width: 820px) {
  .sidenav { display: none; }
  .topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.4rem;
    border-bottom: 1px solid var(--rule);
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 5;
  }
  .topbar .mark { margin-bottom: 0; }
  .topbar-toggle {
    font-family: var(--mono);
    background: none;
    border: 1px solid var(--rule-strong);
    color: var(--ink);
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    cursor: pointer;
  }
  .mobile-menu {
    display: none;
    padding: 0 1.4rem 1.2rem;
    border-bottom: 1px solid var(--rule);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; }
  .mobile-menu li { margin: 0.5rem 0; }
  .mobile-menu a { color: var(--ink-soft); text-decoration: none; font-size: 1rem; }
  .main { padding: 2.2rem 1.3rem 3.5rem; }
}

/* ---------- hero ---------- */

.hero { max-width: 720px; }
.hero h1 {
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.5s ease-out 0.05s forwards;
}
.hero .lede {
  opacity: 0;
  transform: translateY(6px);
  animation: rise 0.5s ease-out 0.18s forwards;
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 560px;
}
.hero .status {
  opacity: 0;
  animation: fade 0.5s ease-out 0.32s forwards;
  margin-top: 0.6rem;
}

@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  to { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero .lede, .hero .status {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */

section { margin-bottom: 3.4rem; }
section > .field-label {
  display: block;
  margin-bottom: 0.9rem;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.focus-grid .item {
  border-top: 2px solid var(--ink);
  padding-top: 0.8rem;
}
.focus-grid .item h3 { margin-bottom: 0.35rem; }
.focus-grid .item p { font-size: 0.94rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 680px) {
  .focus-grid { grid-template-columns: 1fr; gap: 1.4rem; }
}

/* certification path — this one IS a real sequence, numbered on purpose */
.path {
  border-top: 1px solid var(--rule);
}
.path-item {
  display: flex;
  gap: 1.1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.path-item .n {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 0.85rem;
  width: 1.4rem;
  flex: none;
}
.path-item .name { font-weight: 600; }
.path-item .state {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}
.path-item.current .name { color: var(--brick); }
.path-item.current .state { color: var(--brick); }
.path-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.9rem;
}

/* capability / work list */
.worklist { border-top: 1px solid var(--rule); }
.work-row {
  display: block;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.work-row h3 { margin-bottom: 0.3rem; }
.work-row p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.work-row .tags { margin-top: 0.5rem; }

.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--teal);
  border: 1px solid var(--rule-strong);
  padding: 0.12rem 0.5rem;
  background: transparent;
}

/* writeup list rows */
.writeup-row {
  display: flex;
  gap: 1.2rem;
  align-items: baseline;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.writeup-row:hover .writeup-title { color: var(--brick); }
.writeup-title {
  font-family: var(--serif);
  font-size: 1.15rem;
  flex: 1 1 auto;
}
.writeup-meta {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex: none;
}
.writeup-meta .diff {
  display: flex;
  align-items: center;
  gap: 0.4em;
}
.diff-swatch {
  width: 8px;
  height: 8px;
  display: inline-block;
  flex: none;
}

.filters {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.9rem;
}
.filters button {
  font-family: var(--mono);
  font-size: 0.82rem;
  background: none;
  border: none;
  color: var(--muted);
  padding: 0.2rem 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
.filters button.active { color: var(--ink); border-bottom-color: var(--brick); }

/* writeup reader */
.writeup-header { max-width: var(--content-max); margin-bottom: 2rem; }
.writeup-header .back {
  font-family: var(--mono);
  font-size: 0.82rem;
  display: inline-block;
  margin-bottom: 1.6rem;
}
.writeup-header .meta-line {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.6rem;
}
.writeup-body {
  max-width: var(--content-max);
  font-size: 1.02rem;
}
.writeup-body h2 { margin-top: 2rem; font-size: 1.3rem; }
.writeup-body h3 { margin-top: 1.6rem; font-size: 1.05rem; }
.writeup-body pre {
  background: var(--paper-raised);
  border: 1px solid var(--rule);
  padding: 0.9rem 1rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.5;
}
.writeup-body code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-raised);
  padding: 0.1em 0.35em;
}
.writeup-body pre code { background: none; padding: 0; }
.writeup-body blockquote {
  margin: 1.2em 0;
  padding-left: 1rem;
  border-left: 2px solid var(--brass);
  color: var(--ink-soft);
}
.writeup-body ul, .writeup-body ol { max-width: var(--content-max); }
.writeup-body img { max-width: 100%; border: 1px solid var(--rule); }

/* contact */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--rule);
}
.contact-list li {
  border-bottom: 1px solid var(--rule);
  padding: 0.9rem 0;
  display: flex;
  gap: 1rem;
}
.contact-list .field-label { width: 6.5rem; flex: none; padding-top: 0.15rem; }

footer.sitefoot {
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 3rem;
}

.empty-state {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--muted);
  padding: 2rem 0;
}
