/* limjunxian.com — shared styles. No build step: edit and deploy. */

:root {
  --bg: #f4f4f2;
  --card: #ffffff;
  --border: #e7e7e4;
  --text: #18181b;
  --muted: #5f5f66;
  --label: #6b6b72;
  --studio-bg: #2b1d14;
  --studio-border: #2b1d14;
  --studio-text: #f3e7da;
  --studio-muted: #d4c3b0;
  --studio-label: #d9a877;
  --recruit-bg: #e8eefc;
  --recruit-border: #d3ddf7;
  --accent-btn-bg: #18181b;
  --accent-btn-text: #ffffff;
  --focus: #3b5bdb;
  --radius: 14px;
  --gap: 12px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e10;
    --card: #18181b;
    --border: #2a2a2e;
    --text: #f4f4f5;
    --muted: #a8a8b0;
    --label: #9a9aa3;
    /* studio tile stays dark brown in both modes; border lifts it off the dark page */
    --studio-border: #4a3424;
    --recruit-bg: #161e33;
    --recruit-border: #273659;
    --accent-btn-bg: #f4f4f5;
    --accent-btn-text: #18181b;
    --focus: #8ea8ff;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

/* --- nav --- */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 4px 20px;
}
.wordmark {
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-btn-bg);
  color: var(--accent-btn-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn--square { border-radius: 10px; }

/* --- grid + tiles --- */
.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap);
}
@media (min-width: 640px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .tile--wide { grid-column: span 2; }
}

.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  min-width: 0;
  overflow-wrap: anywhere;
  text-decoration: none;
  color: var(--text);
}
a.tile {
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
a.tile:hover { transform: translateY(-2px); border-color: var(--label); }
a.tile:focus-visible { border-radius: var(--radius); }
a.tile::after {
  content: "↗";
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 15px;
  color: var(--label);
}

.tile h1 {
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0 0 10px;
}
.tile h2 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-weight: 620;
  margin: 0 0 6px;
  padding-right: 20px;
}
.tile p { margin: 0; color: var(--muted); }
.tile p + p { margin-top: 8px; }

.tile-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  margin-bottom: 8px;
}

.tile--intro { padding: 28px 24px; }

.tile--studio {
  background: var(--studio-bg);
  border-color: var(--studio-border);
  color: var(--studio-text);
}
.tile--studio p { color: var(--studio-muted); }
.tile--studio .tile-label,
a.tile--studio::after { color: var(--studio-label); }
a.tile--studio:hover { border-color: var(--studio-label); }

.tile--recruit {
  background: var(--recruit-bg);
  border-color: var(--recruit-border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 20px;
}
.tile--recruit h2 { margin: 0 0 2px; padding: 0; }

.meta { font-size: 14px; }

.site-foot {
  margin: 28px 4px 0;
  font-size: 13px;
  color: var(--label);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}
.site-foot a { color: var(--label); }

/* --- resume page --- */
.resume { display: flex; flex-direction: column; gap: var(--gap); }
.resume .tile ul { margin: 10px 0 0; padding-left: 20px; color: var(--muted); }
.resume .tile li + li { margin-top: 6px; }
.resume .tile strong { color: var(--text); font-weight: 600; }
.resume ul.plain { list-style: none; padding: 0; }
.resume ul.plain li + li { margin-top: 12px; }

.resume-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px 20px;
  padding: 28px 24px;
}
.resume-head h1 { margin-bottom: 4px; }
.resume-role { font-weight: 500; color: var(--text) !important; }
.resume-contact { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px !important; font-size: 15px; }

.resume-section {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
  margin: 16px 4px 0;
}

.job-head { margin-bottom: 10px; }
.job h3 { font-size: 18px; letter-spacing: -0.01em; margin: 0 0 2px; }
.job-meta { font-size: 14px; color: var(--label); font-weight: 400; }
.job-note { font-size: 13px; color: var(--label) !important; font-style: italic; }

.resume-pair { margin: 0; }

.skills { display: grid; grid-template-columns: 1fr; gap: 2px 16px; margin: 0; }
.skills dt { font-weight: 600; font-size: 14px; margin-top: 8px; }
.skills dd { margin: 0; color: var(--muted); }
@media (min-width: 640px) {
  .skills { grid-template-columns: 150px 1fr; gap: 8px 16px; }
  .skills dt { margin-top: 0; }
}

@media print {
  :root {
    --bg: #ffffff; --card: #ffffff; --border: #e7e7e4;
    --text: #18181b; --muted: #3f3f46; --label: #52525b;
  }
  .site-nav, .site-foot, .resume-head .btn { display: none; }
  .tile { border: none; padding: 8px 0; }
  body { background: #fff; color: #000; }
}
