<style scoped>
.about-body-grid {
  grid-template-columns: 1.2fr 1fr;
}
@media (max-width: 768px) {
  .about-body-grid {
    grid-template-columns: 1fr;
  }
}
</style>

<script setup lang="ts">
import { useTheme, useCopy } from '~/composables/useLanding'

definePageMeta({ layout: 'page' })

const t = useTheme()
const copy = useCopy()
const c = computed(() => copy.value.pages.about)

useHead({ title: () => `${copy.value.pages.about.label} · dezky` })
</script>

<template>
  <LandingPageHeader :label="c.label" :title="c.title" :intro="c.intro" />

  <LandingContainer pad="clamp(56px, 8vw, 64px) clamp(20px, 5vw, 64px) clamp(80px, 12vw, 160px)">
    <div class="about-body-grid" :style="{ display: 'grid', gap: '80px', alignItems: 'start' }">
      <div :style="{ display: 'flex', flexDirection: 'column', gap: '24px' }">
        <p
          v-for="(para, i) in c.body" :key="i"
          :style="{ fontFamily: '\'Inter\', sans-serif', fontSize: '18px', lineHeight: 1.6, color: t.fg, margin: 0, textWrap: 'pretty' }"
        >{{ para }}</p>
      </div>

      <div :style="{ display: 'flex', flexDirection: 'column', gap: '0', border: `1px solid ${t.border}`, borderRadius: '4px', overflow: 'hidden' }">
        <div
          v-for="(p, i) in c.principles" :key="i"
          :style="{ padding: '24px 28px', borderTop: i === 0 ? 'none' : `1px solid ${t.border}`, background: t.surface }"
        >
          <div :style="{ fontFamily: '\'Inter Tight\', sans-serif', fontWeight: 600, fontSize: '18px', color: t.fg, letterSpacing: '-0.015em' }">{{ p[0] }}</div>
          <div :style="{ marginTop: '8px', fontFamily: '\'Inter\', sans-serif', fontSize: '14px', lineHeight: 1.55, color: t.fgMuted }">{{ p[1] }}</div>
        </div>
      </div>
    </div>
  </LandingContainer>
</template>
