/* Matchbasket - one small mobile-first stylesheet. System fonts only. */

:root {
  --text: #1a1f24;
  --muted: #4a5560;      /* 7.4:1 on white */
  --accent: #0b5d57;     /* deep teal, 7.6:1 on white */
  --bg: #ffffff;
  --soft: #f3f6f6;
  --line: #d7dfdf;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.6;
}

.wrap {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 0.5rem 0;
}

.nav {
  display: flex;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  min-height: 44px;
  padding: 0.6rem 0.75rem;
  text-decoration: none;
  border-radius: 6px;
}

.nav a[aria-current="page"] {
  background: var(--soft);
  color: var(--text);
  font-weight: 600;
}

/* Content */
main {
  padding-top: 1.5rem;
  padding-bottom: 2rem;
}

section {
  margin-bottom: 1.75rem;
}

h1,
h2 {
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.35rem;
}

p {
  margin: 0 0 0.75rem;
}

.tagline {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

/* Malay line under the English line */
.bm {
  color: var(--muted);
}

.tagline-bm {
  font-size: 1.05rem;
}

.checks {
  margin: 0;
  padding-left: 1.25rem;
}

.checks li {
  margin-bottom: 0.6rem;
}

.card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 1rem;
}

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

.small-print {
  font-size: 1rem; /* 16px */
  font-style: italic;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 1.25rem 0;
  font-size: 1rem;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.site-footer a {
  display: inline-block;
  padding: 0.35rem 0;
}

/* Wider screens */
@media (min-width: 40em) {
  main {
    padding-top: 2.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

  .tagline {
    font-size: 1.35rem;
  }

  .card {
    padding: 1.25rem 1.5rem;
  }
}
