@import url('https://fonts.googleapis.com/css2?family=Sarabun:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

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

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --text: #000000;
  --muted: #555555;
  --border: #CCCCCC;
  --subtle: #F5F5F5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sarabun', sans-serif;
  font-weight: 300;
  font-size: 16px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Sarabun', sans-serif;
}

h1 {
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 1.375rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

p {
  text-align: justify;
  hyphens: auto;
}

strong {
  font-weight: 500;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout */

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

/* Nav */

.site-nav {
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 64px;
}

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

.site-name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav-back {
  font-size: 0.8125rem;
  color: var(--muted);
  transition: color 0.15s;
}

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

/* Hero */

.hero {
  margin-bottom: 72px;
}

.hero-eyebrow {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 10px;
}

.hero-tagline {
  font-size: 1.0625rem;
  font-weight: 300;
  font-style: italic;
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.hero-body {
  font-size: 0.9375rem;
  line-height: 1.8;
  max-width: 640px;
  margin-bottom: 28px;
}

.btn-app {
  display: inline-block;
  padding: 9px 22px;
  border: 1px solid var(--border);
  font-family: 'Sarabun', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text);
  background: var(--surface);
  transition: background 0.15s, border-color 0.15s;
}

.btn-app:hover {
  background: var(--subtle);
  border-color: #C8C7C2;
}

/* Section */

.section {
  margin-bottom: 60px;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}

.section-body p {
  font-size: 0.9375rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

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

/* Workflow steps */

.workflow-steps {
  list-style: none;
  counter-reset: step-counter;
  margin-bottom: 14px;
}

.workflow-steps li {
  counter-increment: step-counter;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.workflow-steps li:first-child {
  border-top: 1px solid var(--border);
}

.workflow-steps li::before {
  content: counter(step-counter);
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--muted);
  min-width: 16px;
  flex-shrink: 0;
}

.workflow-note {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.75;
}

/* Stages */

.stages {
  border-top: 1px solid var(--border);
}

.stage {
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.stage-eyebrow {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.stage h3 {
  margin-bottom: 10px;
}

.stage p {
  font-size: 0.9375rem;
  line-height: 1.8;
  color: var(--muted);
}

.stage p + p {
  margin-top: 8px;
}

/* Tables */

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 16px;
}

.data-table th {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: left;
  padding: 9px 24px 9px 0;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 24px 10px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.7;
  font-weight: 300;
  color: var(--muted);
}

.data-table td:first-child {
  font-weight: 400;
  color: var(--text);
}

.table-note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.75;
}

/* Bullet list */

.bullet-list {
  list-style: none;
  margin-top: 16px;
}

.bullet-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.bullet-list li:first-child {
  border-top: 1px solid var(--border);
}

.bullet-list li::before {
  content: '—';
  color: var(--muted);
  flex-shrink: 0;
}

/* Spec list */

.spec-list {
  list-style: none;
}

.spec-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.spec-list li:first-child {
  border-top: 1px solid var(--border);
}

.spec-key {
  font-weight: 400;
  min-width: 160px;
  color: var(--muted);
  flex-shrink: 0;
  font-size: 0.875rem;
}

.spec-val {
  font-weight: 300;
}

/* Researchers */

.researchers-block p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.8;
}

.researcher-slots {
  list-style: none;
  margin-top: 16px;
}

.researcher-slots li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
}

.researcher-slots li:first-child {
  border-top: 1px solid var(--border);
}

.researcher-num {
  min-width: 20px;
  font-size: 0.75rem;
  color: var(--border);
}

/* Main index — project grid */

.index-intro {
  margin-bottom: 64px;
}

.index-intro h1 {
  margin-bottom: 12px;
}

.index-intro p {
  font-size: 0.9375rem;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.8;
}

.project-grid {
  border: 1px solid var(--border);
  background: var(--border);
  display: grid;
  gap: 1px;
}

.project-item {
  display: block;
  padding: 28px;
  background: var(--bg);
  transition: background 0.15s;
}

.project-item:hover {
  background: var(--subtle);
}

.project-eyebrow {
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.project-title {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}

.project-desc {
  font-size: 0.875rem;
  font-weight: 300;
  color: var(--muted);
  line-height: 1.65;
}

/* Footer */

.site-footer {
  margin-top: 96px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}

.site-footer p {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 600px) {
  h1 {
    font-size: 1.875rem;
  }

  .container {
    padding: 0 16px;
  }

  .site-nav {
    margin-bottom: 40px;
  }

  .hero {
    margin-bottom: 48px;
  }

  .section {
    margin-bottom: 44px;
  }

  .data-table td:first-child {
    white-space: normal;
  }

  .spec-key {
    min-width: 110px;
  }
}
