/*
 * The app's own look: Nunito, its ivory and forest ink by day, and its dark
 * theme by night, with the same values as BotanicalUI in the app. Fonts are
 * served from here; nothing loads from anywhere else.
 *
 * Inside the app the page is marked `in-app` as it loads, and drops the
 * site's header and footer, which would only repeat the app's title bar.
 */

@font-face {
  font-family: "Nunito";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Nunito-Regular.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Nunito-SemiBold.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Nunito-Bold.ttf") format("truetype");
}

@font-face {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Nunito-ExtraBold.ttf") format("truetype");
}

:root {
  color-scheme: light dark;

  --background: #F6F5EF;
  --surface: #FFFFFF;
  --sage: #E8EFDF;
  --lilac: #EDE9F6;
  --separator: #DEE4DD;
  --ink: #183D32;
  --secondary: #586B61;
  --accent: #245C46;
  --on-accent: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #0F201B;
    --surface: #182E28;
    --sage: #1D3329;
    --lilac: #29273B;
    --separator: #2A4139;
    --ink: #ECF2EC;
    --secondary: #A7B9AF;
    --accent: #B7E07F;
    --on-accent: #0F201B;
  }
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--background);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

a {
  color: var(--accent);
  font-weight: 600;
  text-underline-offset: 2px;
}

strong {
  font-weight: 700;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(32px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}

.site-header {
  padding: 4px 0 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  margin: 8px 0 6px;
}

h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
  margin: 32px 0 10px;
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.number {
  flex: none;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--accent);
  font-size: 15px;
  font-weight: 800;
}

p,
li {
  color: var(--ink);
}

.updated {
  color: var(--secondary);
  margin: 0 0 18px;
  font-size: 15px;
  font-weight: 600;
}

.lead {
  font-size: 19px;
  color: var(--secondary);
}

.summary {
  background: var(--sage);
  border-radius: 22px;
  padding: 18px 20px 6px;
  margin: 22px 0 8px;
}

.summary-title {
  font-weight: 800;
  margin: 0 0 6px;
}

.summary ul {
  padding-left: 20px;
  margin: 0 0 12px;
}

li {
  margin: 6px 0;
}

.table {
  overflow-x: auto;
  margin: 12px 0;
  border-radius: 22px;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 520px;
  font-size: 15px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 12px 16px;
  border-bottom: 1px solid var(--separator);
}

tr:last-child td {
  border-bottom: none;
}

th {
  color: var(--secondary);
  font-weight: 700;
}

.contact-card {
  background: var(--surface);
  border-radius: 22px;
  padding: 16px 20px;
}

.contact-card p {
  margin: 4px 0;
}

.links {
  list-style: none;
  padding: 0;
  margin: 22px 0;
}

.links li {
  margin: 0 0 10px;
}

.links a {
  display: block;
  background: var(--surface);
  border-radius: 18px;
  padding: 16px 20px;
  font-weight: 700;
  text-decoration: none;
}

.links a.primary {
  background: var(--accent);
  color: var(--on-accent);
}

.site-footer {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid var(--separator);
  color: var(--secondary);
  font-size: 15px;
}

.site-footer p {
  color: var(--secondary);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 8px;
}

/* Inside the app: the title bar already says where the reader is. */
html.in-app .site-header,
html.in-app .site-footer {
  display: none;
}

html.in-app .page {
  padding-top: 8px;
}
