/* ========================================
   nojus liutikas — site stylesheet
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=IBM+Plex+Sans:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --surface-raised: #151515;
  --border: #1a1a1a;
  --border-accent: #252525;
  --border-strong: #333333;
  --text: #e0e0e0;
  --text-muted: #aaa7a7;
  --text-dim: #717070;
  --accent: #c8c8c8;
  --link: #a0a0a0;
  --link-hover: #ffffff;
  --green: #5a9e5a;
  --mono: 'IBM Plex Mono', monospace;
  --sans: 'IBM Plex Sans', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #333;
  color: #fff;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--link-hover); }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- CUSTOM ELEMENTS ---- */
site-nav,
site-footer {
  display: block;
}

/* ---- NAV ---- */
nav {
  padding: 32px 0 0;
  margin-bottom: 80px;
}
nav .container {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
nav .name {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.5px;
}
nav .links {
  display: flex;
  gap: 28px;
}
nav .links a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  text-transform: lowercase;
}
nav .links a:hover { color: var(--text); }
nav .links a.active {
  color: var(--accent);
}

/* ---- SECTION LABEL ---- */
.section-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 64px;
  margin-bottom: 24px;
}

/* ---- HERO (index) ---- */
.hero h1 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
  line-height: 1.3;
}
.hero p {
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 12px;
}
.hero .status {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 20px;
}
.hero .status span {
  color: var(--green);
}

/* ---- PROJECTS (index) ---- */
.project {
  display: block;
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 16px;
  transition: border-color 0.2s, background 0.2s;
  color: inherit;
}
.project:hover {
  border-color: var(--border-strong);
  background: var(--surface-raised);
}
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.project h3 {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--accent);
}
.project .tag {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.project p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 12px;
}
.project .stack {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ---- BLOG (index) ---- */
.post-entry {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
}
.post-entry:first-child {
  border-top: 1px solid var(--border);
}
.post-title {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  color: var(--text);
}
.post-title:hover { color: var(--link-hover); }
.post-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.blog-note {
  color: var(--text-dim);
  font-size: 13px;
  margin-top: 16px;
  font-style: italic;
}

/* ---- CONTACT ---- */
.contact-links {
  display: flex;
  gap: 32px;
}
.contact-links a {
  font-family: var(--mono);
  font-size: 13px;
}

/* ---- FOOTER ---- */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer p {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
}

/* ========================================
   RESUME PAGE
   ======================================== */

.resume-header {
  margin-bottom: 32px;
}
.resume-header h1 {
  font-family: var(--sans);
  font-size: 28px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 8px;
}
.resume-header .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.8;
}
.resume-header .meta a {
  color: var(--text-muted);
}

.resume-summary {
  color: var(--text-muted);
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.resume-section {
  margin-bottom: 40px;
}

.resume-section-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

/* Resume entry (project or job) */
.resume-entry {
  margin-bottom: 24px;
}
.resume-entry-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}
.resume-entry-header h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.resume-entry-header .date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  white-space: nowrap;
}
.resume-entry .subtitle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.resume-entry .subtitle a {
  color: var(--text-muted);
}
.resume-entry .subtitle a:hover {
  color: var(--link-hover);
}
.resume-entry ul {
  list-style: none;
  padding: 0;
}
.resume-entry ul li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
}
.resume-entry ul li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}

/* Skills grid */
.skills-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 16px;
  font-size: 14px;
}
.skills-grid .label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-top: 2px;
}
.skills-grid .value {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Download button */
.resume-download {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid var(--border-accent);
  padding: 10px 20px;
  transition: all 0.2s;
  margin-top: 8px;
}
.resume-download:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface-raised);
}

/* ========================================
   BLOG POST PAGE
   ======================================== */

.post {
  padding-bottom: 80px;
}

.post-header {
  margin-bottom: 56px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
}

.post-back {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}
.post-back:hover { color: var(--text-muted); }


.post-heading {
  font-family: var(--sans);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1.25;
  margin-bottom: 16px;
}

.post-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 580px;
  border-left: 2px solid var(--border-strong);
  padding-left: 16px;
  margin-top: 20px;
}

.post-body h2 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 52px;
  margin-bottom: 20px;
}

.post-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
  max-width: 660px;
}

.post-body strong {
  color: var(--text);
  font-weight: 500;
}

.post-body em {
  color: var(--text);
  font-style: italic;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 520px) {
  nav { margin-bottom: 48px; }
  nav .links { gap: 16px; }
  .hero h1 { font-size: 22px; }
  .project { padding: 20px; }
  .post-entry { flex-direction: column; gap: 4px; }
  .contact-links { flex-direction: column; gap: 12px; }
  .resume-entry-header { flex-direction: column; gap: 2px; }
  .skills-grid { grid-template-columns: 1fr; gap: 12px 0; }
  .skills-grid .label { margin-bottom: -8px; }
}
