@font-face {
  font-family: 'Noto Sans Khmer';
  src: url('NotoSansKhmer.ttf') format('truetype');
  font-display: swap;
}

:root {
  color-scheme: light;
  --plum: #412638;
  --plum-light: #60374a;
  --paper: #fcfaf4;
  --cream: #f4eddd;
  --line: #ded5c1;
  --gold: #c29a4a;
  --ink: #30252d;
  --muted: #60535a;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 system-ui, sans-serif;
}
a { color: var(--plum); text-decoration-thickness: .08em; text-underline-offset: .22em; }
a:focus-visible { outline: 3px solid #996321; outline-offset: 5px; }
h1, h2, p { margin: 0; }
h1, h2 { text-wrap: balance; }
h1 { font: 700 clamp(2.35rem, 6vw, 4.6rem)/1.02 Georgia, serif; letter-spacing: -.025em; }
h2 { font: 700 clamp(1.25rem, 3vw, 1.65rem)/1.2 Georgia, serif; }
.wrap { width: min(100% - 2rem, 71rem); margin: 0 auto; }
.skip-link { position: fixed; top: -5rem; z-index: 5; padding: .6rem 1rem; background: var(--paper); }
.skip-link:focus { top: .5rem; left: .5rem; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem 1.5rem;
}
.header-inner { padding: .8rem 0; }
.header-inner nav, .site-footer nav { display: flex; flex-wrap: wrap; column-gap: 1.05rem; }
.header-inner nav a { padding: .52rem 0; text-decoration: none; }
.header-inner nav a[aria-current] { box-shadow: inset 0 -2px var(--gold); font-weight: 700; }
.wordmark { display: inline-flex; align-items: center; gap: .65rem; font-weight: 750; text-decoration: none; }
.mark { width: 1.45rem; height: 1.45rem; background: var(--plum); border-radius: 5px; display: grid; place-items: center; }
.site-footer { border-top: 1px solid var(--line); margin-top: 3rem; padding: 1.25rem 0 2rem; color: var(--muted); font-size: .92rem; }
main { padding-top: clamp(1.4rem, 5vw, 3.5rem); }
.hero {
  min-height: 25rem;
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  align-items: center;
  gap: 2.5rem;
  padding: clamp(1.35rem, 5vw, 4rem);
  color: var(--paper);
  background: var(--plum);
  border-radius: 1.35rem;
}
.kicker { color: #f4dba3; font-weight: 700; margin-bottom: 1rem; }
.intro { margin-top: 1.05rem; font-size: clamp(1rem, 2vw, 1.18rem); max-width: 47ch; }
.hero .intro { color: #eee6d3; }
.button {
  display: inline-block;
  margin-top: 1.35rem;
  padding: .64rem 1.1rem;
  border-radius: .55rem;
  background: #f5e4b9;
  color: var(--plum);
  font-weight: 700;
  text-decoration: none;
}
.scan-illustration {
  min-height: 16rem;
  padding: 1.8rem;
  position: relative;
  display: grid;
  align-items: center;
  background:
    repeating-linear-gradient(42deg, transparent 0 12px, #d9c78a15 12px 13px, transparent 13px 16px),
    repeating-linear-gradient(-42deg, transparent 0 12px, #d9c78a12 12px 13px, transparent 13px 16px),
    var(--plum-light);
  border-radius: .85rem;
}
.corner { position: absolute; width: 1.15rem; height: 1.15rem; border: solid #e7c37b; }
.corner:nth-child(1) { top: 1rem; left: 1rem; border-width: 2px 0 0 2px; }
.corner:nth-child(2) { top: 1rem; right: 1rem; border-width: 2px 2px 0 0; }
.corner:nth-child(3) { bottom: 1rem; left: 1rem; border-width: 0 0 2px 2px; }
.corner:nth-child(4) { bottom: 1rem; right: 1rem; border-width: 0 2px 2px 0; }
.sample-sheet { padding: 1.05rem; color: var(--plum); background: var(--paper); border-radius: .22rem; box-shadow: 0 6px 16px #38243850; }
.sample-title, .sample-total { font-family: 'Noto Sans Khmer', system-ui, sans-serif; font-weight: 700; }
.sample-title { font-size: 1.15rem; margin-bottom: .75rem; }
.sample-total { font-size: .92rem; margin-top: .85rem; text-align: end; }
.sample-line { height: .38rem; width: 100%; margin-bottom: .5rem; border-radius: .3rem; background: #e0dcca; }
.sample-line.short { width: 65%; }
.sample-rule { height: 1px; background: var(--gold); margin: .75rem 0; }
.home-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.2rem; }
.tile { padding: 1.35rem; border: 1px solid var(--line); border-radius: .85rem; background: #fffdf8; }
.tile p { margin: .6rem 0 .7rem; color: var(--muted); }
.tile a { font-weight: 700; }
.reading { max-width: 46rem; }
.page-header { padding: 0 0 1.5rem; border-bottom: 2px solid var(--gold); }
.page-header h1 { color: var(--plum); font-size: clamp(2.2rem, 6vw, 3.7rem); }
.date { margin-top: .65rem; color: var(--muted); font-size: .9rem; }
.content-block { padding: 1.35rem 0; border-bottom: 1px solid var(--line); }
.content-block p { margin: .55rem 0 0; }
.content-block ol { padding-left: 1.3rem; margin-bottom: .65rem; }
.content-block li { padding-left: .25rem; }
.content-block li + li { margin-top: .35rem; }
.issues { margin-bottom: 0; }
.issues dt { margin-top: .75rem; font-weight: 700; }
.issues dd { margin-inline-start: 0; }
.callout { background: var(--cream); border: 1px solid var(--line); border-radius: .85rem; padding: 1.2rem; margin-top: 1.15rem; }
.callout > a { display: inline-block; margin-top: .6rem; }

@media (max-width: 730px) {
  .hero { grid-template-columns: 1fr; gap: 1.55rem; }
  .scan-illustration { width: min(100%, 24rem); min-height: 12rem; }
  .home-links { grid-template-columns: 1fr; }
}
