:root {
  --paper: #f4eee0;
  --card: #fbf8f1;
  --ink: #141414;
  --muted: #5b574d;
  --green: #17603a;
  --gold: #e0a21f;
  --hairline: rgba(20, 20, 20, 0.14);
  --shadow: 0 1px 2px rgba(20, 20, 20, 0.06), 0 8px 24px rgba(20, 20, 20, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12140f;
    --card: #1b1e17;
    --ink: #f1ece0;
    --muted: #b3ad9f;
    --green: #5fbf86;
    --gold: #f2c14e;
    --hairline: rgba(241, 236, 224, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

a {
  color: var(--green);
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header {
  border-bottom: 1px solid var(--hairline);
}

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand img {
  width: 32px;
  height: 32px;
}

nav a {
  margin-left: 16px;
  font-size: 15px;
}

main.wrap {
  padding-top: 40px;
  padding-bottom: 32px;
}

h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.15;
  margin: 0 0 16px;
}

h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}

.lead {
  font-size: 19px;
  color: var(--muted);
  margin: 0 0 32px;
}

.status {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 12px;
  margin-bottom: 16px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 24px;
  margin: 16px 0;
}

.card h2 {
  margin-top: 0;
}

ul {
  padding-left: 20px;
}

.risk {
  border-left: 3px solid var(--gold);
}

footer {
  border-top: 1px solid var(--hairline);
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0 40px;
}

footer p {
  margin: 4px 0;
}

.maker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
}

.maker img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
}

/* Each Naintu logo file has its own background, so show the one that matches the theme. */
.on-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .on-light {
    display: none;
  }

  .on-dark {
    display: block;
  }
}

/* "Naintu" is always written as the Naintu signature, as in the admin portal. */
.sig-name {
  font-family: 'Satisfy', cursive;
  font-weight: 400;
  font-size: 1.18em;
  letter-spacing: 0;
  line-height: 1;
}
