/* =============================================================
   Y UMA SRIKANTH — PORTFOLIO
   Editorial system: deep charcoal / forest / warm ivory / olive
   ============================================================= */

:root {
  --ink: #171916;
  --ink-2: #1d211c;
  --ink-3: #141613;
  --forest: #344B3C;
  --forest-light: #405a47;
  --ivory: #E9E5D8;
  --ivory-2: #ded9c9;
  --olive: #A6A58A;

  --bg: var(--ink);
  --fg: var(--ivory);
  --line: rgba(233, 229, 216, 0.14);
  --line-strong: rgba(233, 229, 216, 0.28);
  --muted: rgba(233, 229, 216, 0.62);
  --accent: var(--olive);

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: clamp(20px, 4.6vw, 76px);
  --max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--forest);
  color: var(--ivory);
}

img,
svg {
  display: block;
}

svg {
  width: 100%;
  height: 100%;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, p, dl, dd, ul, ol {
  margin: 0;
}

ul, ol {
  padding: 0;
  list-style: none;
}

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

.theme-paper :focus-visible {
  outline-color: var(--forest);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.container {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

section[id],
#top {
  scroll-margin-top: 82px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 500;
  padding: 12px 18px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}
