:root {
  color-scheme: light;
  --background: #fff9f1;
  --surface: #ffffff;
  --surface-muted: #f6eddf;
  --text: #241b16;
  --muted: #6d6259;
  --brand: #243f91;
  --brand-dark: #172c70;
  --accent: #df7600;
  --border: #e8ddcf;
  --focus: #df7600;
  font-family: Inter, "Noto Sans Khmer", "Khmer OS Battambang", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--background);
  line-height: 1.65;
}

a {
  color: var(--brand);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--brand-dark);
}

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

.shell {
  width: min(100% - 2rem, 70rem);
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 0.6rem;
  color: white;
  background: var(--brand);
  font-size: 1.15rem;
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav a {
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.72fr);
  gap: clamp(2rem, 7vw, 6rem);
  align-items: center;
  min-height: calc(100vh - 9rem);
  padding-block: clamp(3rem, 7vw, 6rem);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

h1,
h2 {
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.7rem);
}

h2 {
  margin-top: 2.5rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.content-card h1 {
  max-width: none;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.content-card table {
  width: 100%;
  margin: 1rem 0 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.content-card th,
.content-card td {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.content-card th {
  background: var(--surface-muted);
}

.lead {
  max-width: 40rem;
  margin: 1.5rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--brand);
  border-radius: 0.5rem;
  color: white;
  background: var(--brand);
  font-weight: 750;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: var(--brand-dark);
}

.button.secondary {
  color: var(--brand);
  background: transparent;
}

.button.secondary:hover {
  color: var(--brand-dark);
  background: var(--surface-muted);
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 1.4rem 1.4rem 1rem;
  border-radius: 2.5rem;
  background: var(--brand);
  box-shadow: 0 2rem 5rem rgba(36, 63, 145, 0.2);
}

.phone-frame {
  overflow: hidden;
  border: 0.45rem solid #172c70;
  border-radius: 2rem;
  background: #fff;
}

.phone-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-visual figcaption {
  padding: 0.85rem 0.3rem 0.1rem;
  color: white;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.content-card {
  max-width: 52rem;
  margin: 2rem auto 5rem;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.content-card h1 {
  max-width: none;
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.meta,
.note {
  color: var(--muted);
}

.note {
  padding: 1rem;
  border-left: 4px solid var(--brand);
  background: var(--surface-muted);
}

.site-footer {
  padding-block: 1.5rem 2.5rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 46rem) {
  .site-header,
  .hero {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    padding-block: 3rem 5rem;
    min-height: auto;
  }

  h1 {
    max-width: 11ch;
  }
}
