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

:root {
  --orange: #ff6a00;
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #181818;
  --text: #ffffff;
  --muted: #a0a0a0;
  --border: #222222;
  --font: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

}

html { scroll-behavior: smooth; }

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

/* ── Layout ── */
.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

section:last-of-type { border-bottom: none; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font);
  font-size: 13px;
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

/* ── Section labels ── */
.section-label {
  font-family: var(--font);
  font-size: 11px;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ── Hero ── */
#hero {
  padding: 100px 0 80px;
}

.hero-title {
  font-size: clamp(36px, 6vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.hero-title span { color: var(--orange); }

.hero-subtitle {
  font-family: var(--font);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.hero-tagline {
  font-size: 17px;
  color: #c8c8c8;
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-identity {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 28px;
}

.hero-identity span {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.hero-identity a {
  color: var(--orange);
  text-decoration: none;
}

.hero-identity a:hover { text-decoration: underline; }

.hero-desc {
  font-size: 15px;
  color: #888;
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  font-family: var(--font);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 4px;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--orange);
  color: #000;
  font-weight: 600;
}

.btn-primary:hover { opacity: 0.85; }

.btn-outline {
  border: 1px solid var(--border);
  color: var(--muted);
}

.btn-outline:hover { border-color: var(--muted); color: var(--text); }

/* ── Cards ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s;
}

.card:hover { border-color: #333; }

.card-grid {
  display: grid;
  gap: 16px;
}

.card-grid-2 {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.card-title-link {
  text-decoration: none;
  transition: color 0.2s;
}

.card-title-link:hover { color: var(--orange); }

.card-role {
  font-family: var(--font);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.05em;
  white-space: nowrap;
  padding-top: 2px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

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

.tag {
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 8px;
  letter-spacing: 0.03em;
}

/* ── Experiments ── */
.experiment-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.experiment-item:last-child { border-bottom: none; }

.experiment-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.experiment-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Writing ── */
.writing-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}

.writing-item:hover .writing-title { color: var(--orange); }

.writing-item:last-child { border-bottom: none; }


.writing-dot {
  width: 5px;
  height: 5px;
  background: var(--orange);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 8px;
}

.writing-title {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 4px;
}

.writing-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px 28px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg-3);
  border: 1px solid var(--border);
}

.timeline-item:first-child::before {
  background: var(--orange);
  border-color: var(--orange);
}

.timeline-period {
  font-family: var(--font);
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.timeline-role {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-focus {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Now ── */
.now-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.now-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #d0d0d0;
}

.now-list li::before {
  content: '→';
  font-family: var(--font);
  color: var(--orange);
  font-size: 13px;
}

/* ── Contact ── */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 16px;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.contact-link:hover {
  color: var(--text);
  border-color: #444;
}

.contact-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── Footer ── */
footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-name {
  font-family: var(--font);
  font-size: 12px;
  color: var(--muted);
}

.footer-tag {
  font-family: var(--font);
  font-size: 11px;
  color: #444;
  letter-spacing: 0.05em;
}

/* ── Blog index ── */
.writing-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.writing-date {
  font-family: var(--font);
  font-size: 11px;
  color: #555;
  margin-top: 4px;
  letter-spacing: 0.03em;
}

.nav-active { color: var(--text) !important; }

/* ── Post page ── */
.post-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: var(--font);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.post-back {
  color: var(--orange);
  text-decoration: none;
}

.post-back:hover { text-decoration: underline; }

.post-title {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.post-description {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 580px;
}


.post-thumbnail {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 6px;
  margin-top: 32px;
  border: 1px solid var(--border);
}

.post-content img {
  width: 100%;
  max-width: 600px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 8px 0 24px;
  background: #ffffff;
  padding: 24px;
  box-sizing: border-box;
}

.post-content {
  padding-bottom: 80px;
  max-width: 680px;
}

.post-content h1,
.post-content h2,
.post-content h3 {
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 40px 0 16px;
  line-height: 1.3;
}

.post-content h1 { font-size: 24px; }
.post-content h2 { font-size: 20px; }
.post-content h3 { font-size: 17px; }

.post-content p {
  font-size: 15px;
  color: #d0d0d0;
  line-height: 1.75;
  margin-bottom: 20px;
}

.post-content a {
  color: var(--orange);
  text-decoration: none;
}

.post-content a:hover { text-decoration: underline; }

.post-content ul,
.post-content ol {
  margin: 0 0 20px 20px;
  color: #d0d0d0;
}

.post-content li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
}

.post-content code {
  font-family: var(--font);
  font-size: 13px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 2px 6px;
  color: var(--orange);
}

.post-content pre {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}

.post-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #d0d0d0;
  font-size: 13px;
}

.post-content blockquote {
  border-left: 3px solid var(--orange);
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
}

.post-content blockquote p { color: var(--muted); font-style: italic; }

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 40px 0;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-bottom: 24px;
}

.post-content th {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: #d0d0d0;
  vertical-align: top;
}

.post-content tr:last-child td {
  border-bottom: none;
}

.post-content td:first-child {
  color: var(--muted);
  font-family: var(--font);
  font-size: 13px;
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 600px) {
  section { padding: 60px 0; }
  #hero { padding: 72px 0 60px; }
  .card-grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
