/* ===========================
   CORE – Portfolio CSS
   Raufan Yusup | Senior Product Designer
   =========================== */

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

/* ---- Tokens ---- */
:root {
  --bg:       #ffffff;
  --bg2:      #f7f7f7;
  --bg3:      #f0f0f0;
  --text:     #111111;
  --text2:    rgba(17, 17, 17, 0.75);
  --text3:    rgba(17, 17, 17, 0.45);
  --border:   rgba(17, 17, 17, 0.08);
  --border2:  rgba(17, 17, 17, 0.14);
  --accent:   #0099ff;
  --green:    #C8DDD4;
  --radius:   12px;
  --max:      640px;
}

/* ---- Dark Mode (system) ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:      #111111;
    --bg2:     #1a1a1a;
    --bg3:     #222222;
    --text:    #f0f0f0;
    --text2:   rgba(240, 240, 240, 0.75);
    --text3:   rgba(240, 240, 240, 0.45);
    --border:  rgba(240, 240, 240, 0.07);
    --border2: rgba(240, 240, 240, 0.12);
  }
}

/* ---- Dark Mode (manual) ---- */
[data-theme="dark"] {
  --bg:      #111111;
  --bg2:     #1a1a1a;
  --bg3:     #222222;
  --text:    #f0f0f0;
  --text2:   rgba(240, 240, 240, 0.75);
  --text3:   rgba(240, 240, 240, 0.45);
  --border:  rgba(240, 240, 240, 0.07);
  --border2: rgba(240, 240, 240, 0.12);
}

[data-theme="light"] {
  --bg:      #ffffff;
  --bg2:     #f7f7f7;
  --bg3:     #f0f0f0;
  --text:    #111111;
  --text2:   rgba(17, 17, 17, 0.75);
  --text3:   rgba(17, 17, 17, 0.45);
  --border:  rgba(17, 17, 17, 0.08);
  --border2: rgba(17, 17, 17, 0.14);
}

/* ---- Base ---- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s, color 0.2s;
}

/* ---- Japanese font (overrides both Inter and Plus Jakarta Sans) ---- */
html[data-lang="ja"] body,
html[data-lang="ja"] body.minimal {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* ---- Language transition (scramble) ---- */
/* No CSS classes needed — scramble is purely JS-driven */

/* ==========================
   MINIMAL HOMEPAGE
   ========================== */

body.minimal {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  line-height: 2.4rem;
  letter-spacing: 1px;
}

body.minimal ::selection {
  background: #C8DDD4;
  color: var(--text);
}

body.minimal .nav,
body.minimal footer:not(.m-footer) {
  display: none;
}

.m-page {
  max-width: 500px;
  margin: 0 auto;
  padding: 80px 24px 64px;
  position: relative;
}

/* ---- Theme toggle ---- */
.m-theme-toggle {
  position: absolute;
  top: 80px;
  right: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  padding: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.m-theme-toggle:hover {
  color: var(--text);
}

/* ---- Language toggle (homepage) ---- */
.m-top-controls {
  position: absolute;
  top: 80px;
  right: 24px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.m-top-controls .m-theme-toggle {
  position: static;
}
.m-lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text3);
  padding: 6px;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
}
.m-lang-toggle:hover {
  color: var(--text);
}

/* ---- Language toggle (nav pages) ---- */
.lang-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lang-toggle:hover {
  color: var(--text);
  background: var(--bg2);
}

/* Show sun in dark mode, moon in light mode */
.m-icon-sun {
  display: none;
}

.m-icon-moon {
  display: block;
}

[data-theme="dark"] .m-icon-sun {
  display: block;
}

[data-theme="dark"] .m-icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-icon-sun {
    display: block;
  }
  :root:not([data-theme="light"]) .m-icon-moon {
    display: none;
  }
}

.m-header {
  margin-bottom: 32px;
}

.m-name {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.m-bio {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 16px;
}

.m-medium {
  font-weight: 500;
  color: var(--text);
}

.m-spacer {
  height: 32px;
}

.m-spacer-sm {
  height: 16px;
}

/* ---- Underlined links ---- */
.m-link {
  font-weight: 500;
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--border2);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.m-link:hover {
  color: var(--text);
  text-decoration-color: #C8DDD4;
}

/* ---- Green highlight — minimalist dashed underline ---- */
.m-highlight {
  background: transparent;
  color: var(--text);
  text-decoration: underline dashed #C8DDD4;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  padding: 0;
  cursor: pointer;
}

/* ---- Grey highlight — minimalist dashed underline ---- */
.m-highlight-muted {
  background: transparent;
  color: var(--text);
  text-decoration: underline dashed #D8D4D0;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  padding: 0;
}

[data-theme="dark"] .m-highlight-muted {
  text-decoration-color: rgba(240, 240, 240, 0.18);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-highlight-muted {
    text-decoration-color: rgba(240, 240, 240, 0.18);
  }
}

/* ---- Soon badge dark mode ---- */
[data-theme="dark"] .m-badge-soon {
  border-color: rgba(240, 240, 240, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-badge-soon {
    border-color: rgba(240, 240, 240, 0.12);
  }
}

/* ---- AI badge ---- */
.m-badge-ai {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: #4a6b5c;
  border: 1px solid #C8DDD4;
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

[data-theme="dark"] .m-badge-ai {
  color: #b5ccc3;
  border-color: rgba(200, 221, 212, 0.35);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .m-badge-ai {
    color: #b5ccc3;
    border-color: rgba(200, 221, 212, 0.35);
  }
}

/* ---- Confetti canvas ---- */
#confetti-canvas {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
}

/* ---- Name hover expand ---- */
/* No text-decoration reset here — when combined with .m-highlight the
   dashed underline from that class must win. .m-name-hover is always
   used together with .m-highlight in markup, so we let the highlight
   own the underline and just handle the expand behavior here. */
.m-name-hover {
  display: inline;
  white-space: nowrap;
  word-spacing: 4px;
  color: var(--text);
}

.m-name-prefix,
.m-name-suffix {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  vertical-align: bottom;
  white-space: pre;
  transition: max-width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.m-name-hover:hover .m-name-prefix {
  max-width: 110px;
}

.m-name-hover:hover .m-name-suffix {
  max-width: 60px;
}

.m-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

.m-section-title {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.m-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}

.m-list li {
  margin-bottom: 16px;
}

.m-list-soon {
  font-size: 14px;
  color: var(--text3);
}

.m-badge-soon {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: var(--text3);
  border: 1px solid var(--border2);
  padding: 1px 6px;
  margin-left: 4px;
  vertical-align: middle;
}

.m-list a {
  font-size: 14px;
  color: var(--text2);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--border2);
  transition: color 0.15s, text-decoration-color 0.15s;
}

.m-list a:hover {
  color: var(--text);
  text-decoration-color: #C8DDD4;
}

.m-footer {
  font-size: 14px;
  margin-bottom: 12px;
}


.m-dot {
  color: var(--text3);
  margin: 0 4px;
}

/* ---- Layout ---- */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-logo:hover {
  color: var(--text);
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s, background 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--bg2);
  text-decoration: none;
}

.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  color: var(--text);
  background: var(--bg2);
}

/* ---- Main Content ---- */
main {
  padding: 56px 0 96px;
}

/* ---- Section ---- */
section {
  margin-bottom: 56px;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  white-space: nowrap;
}

.section-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- Hero ---- */
.hero {
  margin-bottom: 64px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg3);
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--text2);
  letter-spacing: -0.02em;
}

.hero-info {
  flex: 1;
  padding-top: 4px;
}

.hero-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 4px;
}

.hero-role {
  font-size: 14px;
  color: var(--text2);
  font-weight: 500;
  margin-bottom: 8px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text2);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.badge.available {
  background: rgba(200, 221, 212, 0.08);
  border-color: rgba(200, 221, 212, 0.2);
  color: #4a6b5c;
}

.badge.available .badge-dot {
  background: var(--green);
}

.hero-bio {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text2);
}

.hero-bio p {
  margin-bottom: 0;
}

/* ---- Experience ---- */
.exp-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.exp-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.exp-item:first-child {
  border-top: 1px solid var(--border);
}

.exp-company {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.exp-role {
  font-size: 13px;
  color: var(--text2);
  text-align: right;
}

/* ---- Skills / Tags ---- */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
}

/* ---- Project Cards ---- */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-card {
  display: flex;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
  cursor: pointer;
}

.project-card:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.project-card.wip {
  opacity: 0.6;
  pointer-events: none;
}

.project-thumb {
  width: 88px;
  height: 66px;
  border-radius: 8px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg3);
}

.project-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.project-body {
  flex: 1;
  min-width: 0;
}

.project-year {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 4px;
}

.project-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.project-desc {
  font-size: 13px;
  color: var(--text2);
  line-height: 1.5;
}

.project-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text3);
  background: var(--bg3);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* ---- Outside / Extras ---- */
.outside-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.outside-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}

.outside-item:first-child {
  border-top: 1px solid var(--border);
}

.outside-item:hover .outside-title {
  color: var(--accent);
}

.outside-title {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.outside-meta {
  font-size: 12px;
  color: var(--text3);
}

/* ---- Writing List ---- */
.writing-list {
  display: flex;
  flex-direction: column;
}

.writing-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: color 0.15s;
}

.writing-item:first-child {
  border-top: 1px solid var(--border);
}

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

.writing-title {
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.writing-date {
  font-size: 12px;
  color: var(--text3);
  flex-shrink: 0;
}

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

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

.footer-copy {
  font-size: 13px;
  color: var(--text3);
}

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

.footer-links a {
  font-size: 13px;
  color: var(--text3);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ==================== */
/* PAGE-SPECIFIC STYLES */
/* ==================== */

/* ---- Page Header ---- */
.page-header {
  margin-bottom: 48px;
}

.page-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}

.page-title {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.6;
}

/* ---- About Page ---- */
.about-body {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text2);
}

.about-body p {
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ---- Stack Page ---- */
.stack-group {
  margin-bottom: 40px;
}

.stack-group-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 12px;
}

.stack-list {
  display: flex;
  flex-direction: column;
}

.stack-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.stack-item:first-child {
  border-top: 1px solid var(--border);
}

.stack-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.stack-desc {
  font-size: 13px;
  color: var(--text2);
}

/* ---- Contact Page ---- */
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.contact-item:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
  text-decoration: none;
}

.contact-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-icon {
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg3);
}

.contact-label {
  font-size: 14px;
  font-weight: 500;
}

.contact-meta {
  font-size: 12px;
  color: var(--text3);
}

.contact-arrow {
  font-size: 14px;
  color: var(--text3);
}

/* ---- Work Case Study ---- */
.case-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.case-back:hover {
  color: var(--text);
  text-decoration: none;
}

.case-hero {
  margin-bottom: 48px;
}

.case-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.case-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 16px;
}

.case-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  padding: 18px;
  border-radius: var(--radius);
  background: var(--bg2);
  border: 1px solid var(--border);
  margin-bottom: 24px;
}

.case-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-meta-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text3);
}

.case-meta-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.case-cover {
  width: 100%;
  height: 240px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}

.case-cover-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.case-quote {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  padding: 20px 24px;
  border-left: 3px solid var(--accent);
  background: var(--bg2);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 32px 0;
}

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

.case-section h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.case-section h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  margin-top: 20px;
}

.case-section p {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.75;
  margin-bottom: 14px;
}

.case-section ul, .case-section ol {
  padding-left: 20px;
  color: var(--text2);
  font-size: 15px;
  line-height: 1.8;
}

.case-section li {
  margin-bottom: 6px;
}

.case-outcome {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.outcome-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
}

.outcome-stat {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 2px;
}

.outcome-label {
  font-size: 13px;
  color: var(--text2);
}

/* ---- Writing / Article ---- */
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  text-decoration: none;
  margin-bottom: 40px;
  transition: color 0.15s;
}

.article-back:hover {
  color: var(--text);
  text-decoration: none;
}

.article-meta {
  font-size: 12px;
  color: var(--text3);
  margin-bottom: 10px;
}

.article-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.article-body {
  font-size: 15px;
  color: var(--text2);
  line-height: 1.8;
}

.article-body h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 24px 0 8px;
}

.article-body p {
  margin-bottom: 16px;
}

.article-body ul, .article-body ol {
  padding-left: 20px;
  margin-bottom: 16px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body strong {
  color: var(--text);
  font-weight: 600;
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .nav-links a:not(:last-child) {
    display: none;
  }

  .hero-name {
    font-size: 20px;
  }

  .page-title {
    font-size: 24px;
  }

  .case-title, .article-title {
    font-size: 22px;
  }

  .project-card {
    flex-direction: column;
  }

  .project-thumb {
    width: 100%;
    height: 140px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .case-meta-row {
    gap: 16px;
  }
}
