/* arunjay.dev - shared stylesheet
   Monospace, minimal, auto light/dark. */

:root {
  --bg: #fafaf9;
  --panel: #ffffff;
  --fg: #1a1e24;
  --muted: #5b6470;
  --line: rgba(0, 0, 0, .12);
  --line-soft: rgba(0, 0, 0, .07);
  --accent: #0d9488;
  --accent-dim: rgba(13, 148, 136, .10);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0d10;
    --panel: #12151a;
    --fg: #e8ebef;
    --muted: #9aa4b2;
    --line: rgba(255, 255, 255, .14);
    --line-soft: rgba(255, 255, 255, .07);
    --accent: #5eead4;
    --accent-dim: rgba(94, 234, 212, .12);
  }
}

* { box-sizing: border-box; }

img { max-width: 100%; height: auto; }

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

section[id] {
  scroll-margin-top: 64px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Roboto Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo,
               Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.site-nav .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 13px;
}

.site-nav a,
.site-nav span {
  color: var(--muted);
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

.site-nav .here {
  color: var(--fg);
  font-weight: 700;
}

.site-nav .sep {
  margin: 0 8px;
  color: var(--line);
  user-select: none;
}

/* ---------- page scaffolding ---------- */

main {
  flex: 1;
  width: 100%;
}

.page {
  padding: 48px 0 64px;
}

.crumbs {
  margin: 0 0 40px;
  font-size: 12.5px;
  color: var(--muted);
}

.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

.kicker {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 6px 0 24px;
  font-size: 1.9rem;
  line-height: 1.2;
  letter-spacing: -.02em;
}

h2 {
  margin: 44px 0 14px;
  font-size: 1.15rem;
}

p { margin: 0 0 14px; }

.muted { color: var(--muted); }

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

.hero {
  padding: 64px 0 60px;
  text-align: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 0 0 26px;
}

.btn.btn-solid {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.btn.btn-solid:hover,
.btn.btn-solid:focus-visible {
  background: var(--accent);
  opacity: .88;
}

.hero-contact {
  font-size: 13px;
  color: var(--muted);
}

.hero-contact .sep {
  margin: 0 10px;
  color: var(--line);
}

/* ---------- one-page sections ---------- */

.section {
  padding: 56px 0 26px;
  border-top: 1px solid var(--line-soft);
}

.section-title {
  margin: 6px 0 22px;
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

.avatar {
  width: 96px;
  height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: .02em;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(1.8rem, 6vw, 2.5rem);
}

.hero .tagline {
  max-width: 34rem;
  margin: 0 auto 30px;
  color: var(--muted);
  text-wrap: balance;
}

.btn {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-size: 13.5px;
  transition: background .15s ease;
}

.btn:hover,
.btn:focus-visible {
  background: var(--accent-dim);
  text-decoration: none;
}

.highlights {
  list-style: none;
  margin: 0 auto 38px;
  padding: 0;
  max-width: 37rem;
  text-align: left;
}

.highlights li {
  position: relative;
  padding: 0 0 14px 22px;
}

.highlights li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.hero .aside-link {
  display: block;
  margin-top: 22px;
  font-size: 13px;
}

/* ---------- timeline (about) ---------- */

.timeline {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 26px 24px;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline .when {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- projects ---------- */

.project {
  padding: 26px 0;
  border-top: 1px solid var(--line-soft);
}

.project:last-of-type {
  border-bottom: 1px solid var(--line-soft);
}

.project header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
}

.project h2 {
  margin: 0;
  font-size: 1.05rem;
}

.project h2 a {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
}

.project h2 a:hover,
.project h2 a:focus-visible {
  color: var(--accent);
}

.project h2 a.ext::after {
  content: " \2197";
  font-size: .85em;
  color: var(--accent);
}

.project .year {
  font-size: 12.5px;
  color: var(--muted);
}

.project .status {
  font-size: 11.5px;
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

.project .status.live {
  border-color: var(--accent);
  color: var(--accent);
}

.project .type {
  margin: 10px 0 4px;
  font-size: 12.5px;
  color: var(--muted);
}

.project .tags {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--accent);
}

.project p { margin: 0 0 10px; }

.project .links {
  font-size: 13px;
}

.project .links a { margin-right: 18px; }

/* ---------- project shots ---------- */

.shot {
  margin: 14px 0 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.shot img { display: block; width: 100%; }

.shot.portrait { max-width: 420px; }

/* ---------- resume ---------- */

.job {
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
}

.job .when {
  font-size: 12.5px;
  color: var(--muted);
}

.job h3 {
  margin: 4px 0 2px;
  font-size: 1rem;
}

.job .org {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}

.job ul {
  margin: 0;
  padding-left: 20px;
}

.job li { margin-bottom: 6px; }

/* ---------- skills ---------- */

.skill-group { margin-bottom: 28px; }

.skill-group h2 { margin: 0 0 12px; }

.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tagcloud span {
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--panel);
}

/* ---------- contact ---------- */

.contact-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
}

.contact-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

.contact-list .label {
  width: 110px;
  color: var(--muted);
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
