/* Project 13 site: one stylesheet, no external requests. */
:root {
  --green: #116f44;
  --green-light: #6ca94d;
  --bg: #ffffff;
  --surface: #f4f7f4;
  --text: #1f2a24;
  --muted: #55625a;
  --rule: #d9e2db;
  --link: #116f44;
  --link-hover: #0b5233;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111814;
    --surface: #1a241e;
    --text: #e6ece8;
    --muted: #a3b0a7;
    --rule: #2c3a31;
    --link: #8cc56e;
    --link-hover: #b2dc99;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

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

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--green);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 10;
}
.skip:focus { left: 16px; }

/* Header */
.site-header {
  border-bottom: 4px solid var(--green);
  background: var(--bg);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand { display: inline-block; line-height: 0; border-radius: 6px; }
.brand img {
  display: block;
  width: 200px;
  height: auto;
}
/* The banner is transparent with dark-green rules: on a dark page, set it on a
   light plate so the brand colors keep their contrast. */
@media (prefers-color-scheme: dark) {
  .brand img {
    background: #ffffff;
    border-radius: 6px;
    padding: 2px 6px;
    box-sizing: content-box;
  }
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}
.site-nav a:hover { color: var(--link); text-decoration: underline; }
.site-nav a[aria-current="page"] {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
}

/* Content */
main { padding: 2rem 0 3rem; }

h1, h2, h3 { line-height: 1.25; }
h1 {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--green);
}
h2 {
  font-size: 1.3rem;
  margin: 2.25rem 0 0.5rem;
  padding-top: 0.25rem;
}
h3 { font-size: 1.05rem; margin: 1.5rem 0 0.25rem; }
@media (prefers-color-scheme: dark) {
  h1 { color: var(--link); }
}

p, ul, ol { margin: 0 0 1rem; }
li { margin: 0.25rem 0; }

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--green-light);
  outline-offset: 2px;
}

.lead { font-size: 1.2rem; color: var(--text); }

.meta {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.meta span { display: inline-block; margin-right: 1rem; }

.caps { text-transform: uppercase; font-size: 0.95em; }

.callout {
  background: var(--surface);
  border-left: 4px solid var(--green-light);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 6px 6px 0;
}
.callout > :last-child { margin-bottom: 0; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
}
.features li {
  background: var(--surface);
  border-top: 3px solid var(--green-light);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin: 0;
}
.features strong { display: block; margin-bottom: 0.25rem; }

address { font-style: normal; }
.contact {
  background: var(--surface);
  border-radius: 6px;
  padding: 1rem 1.25rem;
}
.contact p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.95rem;
  padding: 1.5rem 0 2rem;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
}
.site-footer p { margin: 0.25rem 0; }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  h1 { font-size: 1.6rem; }
  .brand img { width: 170px; }
}

@media print {
  .site-nav, .skip { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* Screenshots (sms-opt-in) */
.shot { margin: 1.25rem 0 1.75rem; }
.shot img { display: block; width: 100%; max-width: 30rem; height: auto; border-radius: 0.75rem; border: 1px solid rgba(127,127,127,0.35); }
.shot figcaption { font-size: 0.9rem; opacity: 0.8; margin-top: 0.4rem; }
