/*
Theme Name: Made by Arjun
Theme URI: https://madebyarjun.com
Author: Arjun
Description: A personal index and writing theme for an independent developer.
Version: 2.0.0
Text Domain: madebyarjun
*/

:root {
  --paper: #eef1f4;
  --surface: #f8fafb;
  --ink: #17191d;
  --body: #3f4650;
  --muted: #707984;
  --line: #cfd5dc;
  --blue: #2448ff;
  --green: #159a69;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.site-header,
.site-main,
.site-footer__inner {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.site-header {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 14px;
  letter-spacing: -.04em;
}
.wordmark span { color: var(--muted); }
.wordmark strong { font-weight: 800; }
.site-nav { display: flex; gap: 28px; align-items: center; font-size: 14px; font-weight: 650; }
.site-nav a { transition: color .18s ease; }
.site-nav a:hover { color: var(--blue); }

.profile-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 86px;
  padding: 84px 0 124px;
}
.profile-panel__inner { position: sticky; top: 38px; }
.profile-status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 42px;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 11px;
  letter-spacing: .04em;
}
.profile-status span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(21,154,105,.12);
}
.profile-panel h1 {
  margin: 0;
  font-family: Bahnschrift, "Arial Narrow", "Microsoft YaHei", sans-serif;
  font-size: clamp(64px, 7vw, 96px);
  line-height: .9;
  letter-spacing: -.075em;
}
.profile-panel h1 span { color: var(--blue); }
.profile-role {
  margin: 26px 0 0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.profile-intro { margin: 26px 0 0; color: var(--body); font-size: 17px; }
.profile-links { display: flex; gap: 22px; margin-top: 30px; font-weight: 700; font-size: 14px; }
.profile-links a { padding-bottom: 2px; border-bottom: 1px solid var(--ink); }
.profile-links span { color: var(--blue); }
.now-note { position: relative; margin-top: 52px; padding: 2px 0 2px 22px; border-left: 2px solid var(--blue); }
.now-note ul { margin: 15px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 13px; }
.now-note li + li { margin-top: 8px; }

.content-index { min-width: 0; }
.index-section { padding: 0 0 94px; scroll-margin-top: 30px; }
.index-section + .index-section { padding-top: 88px; border-top: 1px solid var(--line); }
.index-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.index-label,
.entry__category,
.project-entry__type,
.project-entry__stack,
.article-meta {
  margin: 0;
  color: var(--muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.index-heading h2 { margin: 8px 0 0; font-size: 36px; line-height: 1.1; letter-spacing: -.045em; }
.index-heading > a { color: var(--muted); font-size: 13px; font-weight: 700; }
.index-heading > a:hover { color: var(--blue); }

.entry-list { border-top: 1px solid var(--ink); }
.entry {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 24px;
  gap: 22px;
  padding: 27px 0;
  border-bottom: 1px solid var(--line);
  transition: color .18s ease, padding-left .18s ease;
}
.entry:hover { color: var(--blue); padding-left: 7px; }
.entry time { padding-top: 3px; color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }
.entry__category { margin-bottom: 5px; color: var(--blue); font-size: 9px; }
.entry h2,
.entry h3 { margin: 0; font-size: 24px; line-height: 1.3; letter-spacing: -.025em; }
.entry__body > p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.entry__arrow { color: var(--blue); font-size: 18px; }
.empty-state { padding: 32px 0; border-bottom: 1px solid var(--line); color: var(--muted); }

.project-list { border-top: 1px solid var(--ink); }
.project-entry {
  display: grid;
  grid-template-columns: 1fr 24px;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
  transition: color .18s ease, padding-left .18s ease;
}
.project-entry:hover { color: var(--blue); padding-left: 7px; }
.project-entry__type { color: var(--blue); }
.project-entry h3 { margin: 8px 0 10px; font-size: 28px; line-height: 1.15; letter-spacing: -.035em; }
.project-entry h3 + p { margin: 0; max-width: 600px; color: var(--body); }
.project-entry__stack { margin-top: 18px; }
.project-entry > span { color: var(--blue); font-size: 18px; }

.about-section .index-heading { margin-bottom: 25px; }
.about-copy { max-width: 650px; }
.about-copy p { margin: 0 0 16px; color: var(--body); font-size: 19px; line-height: 1.8; }
.skill-index { display: flex; flex-wrap: wrap; gap: 0; margin-top: 32px; border-block: 1px solid var(--line); }
.skill-index span { padding: 11px 15px 11px 0; margin-right: 15px; color: var(--muted); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }

.site-footer { border-top: 1px solid var(--line); }
.site-footer__inner { min-height: 86px; display: flex; justify-content: space-between; align-items: center; gap: 24px; color: var(--muted); font-size: 12px; }

.archive-layout {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 86px;
  padding: 86px 0 126px;
}
.archive-intro { position: sticky; top: 38px; align-self: start; }
.archive-intro h1 { margin: 14px 0 22px; font-size: clamp(54px, 6vw, 76px); line-height: .95; letter-spacing: -.065em; }
.archive-intro > p:not(.index-label) { color: var(--body); }
.archive-intro > a { display: inline-block; margin-top: 26px; font-size: 13px; font-weight: 700; }
.navigation.pagination { margin-top: 36px; }
.nav-links { display: flex; gap: 8px; }
.page-numbers { padding: 6px 11px; border: 1px solid var(--line); font-family: "Cascadia Code", Consolas, monospace; font-size: 11px; }
.page-numbers.current { color: white; background: var(--ink); border-color: var(--ink); }

.article { max-width: 760px; margin: 0 auto; padding: 88px 0 126px; }
.article__header { margin-bottom: 54px; }
.article__header h1 { margin: 18px 0; font-size: clamp(44px, 6vw, 70px); line-height: 1.08; letter-spacing: -.055em; }
.article__deck { color: var(--muted); font-size: 20px; }
.article__body { color: #272c33; font-size: 18px; }
.article__body h2 { margin-top: 50px; font-size: 31px; line-height: 1.25; letter-spacing: -.035em; }
.article__body h3 { margin-top: 36px; font-size: 23px; }
.article__body p { margin: 1.45em 0; }
.article__body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article__body blockquote { margin: 42px 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--blue); font-size: 22px; font-weight: 650; }
.article__body pre { overflow-x: auto; padding: 24px; color: #f2f5f8; background: var(--ink); }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }

@media (max-width: 900px) {
  .profile-layout,
  .archive-layout { grid-template-columns: 1fr; gap: 74px; padding-top: 64px; }
  .profile-panel__inner,
  .archive-intro { position: static; }
  .profile-panel { max-width: 620px; }
  .profile-panel h1 { font-size: 76px; }
  .now-note { max-width: 420px; }
}

@media (max-width: 600px) {
  .site-header,
  .site-main,
  .site-footer__inner { width: min(calc(100% - 28px), var(--max)); }
  .site-header { height: 66px; }
  .site-nav { gap: 17px; font-size: 13px; }
  .site-nav a:nth-child(2),
  .site-nav a:nth-child(3) { display: none; }
  .profile-layout,
  .archive-layout { padding: 52px 0 88px; gap: 68px; }
  .profile-status { margin-bottom: 34px; }
  .profile-panel h1 { font-size: 66px; }
  .index-section { padding-bottom: 72px; }
  .index-section + .index-section { padding-top: 68px; }
  .index-heading h2 { font-size: 31px; }
  .entry { grid-template-columns: 1fr 22px; gap: 10px; }
  .entry time { grid-column: 1 / -1; }
  .entry h2,
  .entry h3 { font-size: 21px; }
  .entry__body > p:last-child { display: none; }
  .project-entry h3 { font-size: 24px; }
  .site-footer__inner { padding: 24px 0; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; }
  .article { padding: 64px 0 90px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
