/*
  Stylesheet for the RVM3 home page. The MedSweep pages keep their own
  assets-style.css, which mirrors that app's theme; this one is RVM3's.

  Type is the same self-hosted Bitter and Karla already in fonts/ (SIL Open
  Font License 1.1, license text alongside the files). Nothing is loaded from
  another origin, and the CSP in _headers would refuse it if it were.

  The palette is a neutral ink on paper shared with Socket & Steel. RVM3 has no
  brand color of its own, so color is left to the app icons.
*/
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bitter";
  src: url("fonts/bitter-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Karla";
  src: url("fonts/karla-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #F7F5F1;
  --surface: #FCFBF8;
  --ink: #161E23;
  --ink-secondary: #4B555C;
  --ink-tertiary: #6A737A;
  --divider: #E2DDD5;

  --serif: "Bitter", Georgia, "Times New Roman", serif;
  --sans: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161E23;
    --surface: #1C252B;
    --ink: #F2EFEA;
    --ink-secondary: #B8BFC4;
    --ink-tertiary: #949DA3;
    --divider: #2C373E;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 46rem; margin: 0 auto; padding: 3rem 1rem 4rem; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0; }
p { margin: 0 0 1rem; color: var(--ink-secondary); }

/* Hero: the porch mark, then the headline under it. */
.hero { text-align: center; padding-bottom: 2.5rem; border-bottom: 1px solid var(--divider); }
/*
  The mark is inlined so its stroke can follow the text color into dark mode.
  Its strokes are the traced originals; it is never drawn small enough to need
  them thicker (it goes muddy below about 64px).
*/
.mark { display: block; width: min(15rem, 70vw); height: auto; margin: 0 auto 1.75rem; color: var(--ink); }
h1 { font-weight: 700; font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 0.4rem; }
.motto {
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0;
}

section { padding-top: 2.5rem; }
h2 { font-weight: 600; font-size: 1.3rem; margin-bottom: 0.9rem; }
.about p:last-child { margin-bottom: 0; }

/* One card per app. See the comment above the list in index.html. */
.apps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.app {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0 1rem;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 18px;
  padding: 1.25rem;
}
.app-icon { width: 64px; height: 64px; border-radius: 14px; display: block; }
.app h3 { font-weight: 700; font-size: 1.2rem; }
.app-tagline {
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-tertiary);
  margin: 0.15rem 0 0.6rem;
}
.app-body p { margin-bottom: 0.75rem; }
.app-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; font-size: 0.95rem; }
.app-links .pending { color: var(--ink-tertiary); }

@media (max-width: 30rem) {
  .app { grid-template-columns: 1fr; }
  .app-icon { margin-bottom: 0.75rem; }
}

footer {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--divider);
  font-size: 0.9rem;
  color: var(--ink-tertiary);
}
footer p { color: inherit; margin: 0; }

/* 404.html: the home page layout, with the lost visitor in the Gulf. */
.you-dot { fill: currentColor; }
.you-label { fill: currentColor; font-family: var(--sans); font-weight: 500; font-size: 52px; }
.lost-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem 1.25rem; }
