/* justyards.app. Colors come from the app icon. Fonts are self-hosted
   (SIL Open Font License), the same two WeatherRoam uses. */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/manrope-latin-var.woff2) format("woff2"); }
@font-face { font-family: "DM Serif Display"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/dm-serif-display-latin-400.woff2) format("woff2"); }

:root {
  --bg: #f6f3ee;
  --ink: #15241e;
  --muted: #56645d;
  --line: rgba(21, 36, 30, 0.14);
  --green: #00664c;
  --green-ink: #ffffff;
  --fairway: #cfe3c4;
  --flag: #e8473f;
  --card: #ffffff;
  --maxw: 920px;
  --r: 18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", "Avenir Next", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green); }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }

.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 16px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav.top a { color: var(--ink); text-decoration: none; font-weight: 600; margin-left: 18px; font-size: 15px; }
nav.top a:hover, nav.top a[aria-current="page"] { color: var(--green); }

h1, h2 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 7vw, 64px); margin: 0 0 16px; }
h2 { font-size: 28px; margin: 40px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }

.hero { padding: 56px 0 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.hero .icon { width: 168px; height: 168px; border-radius: 38px; box-shadow: 0 24px 50px rgba(0, 70, 52, 0.22); }
.lede { font-size: 20px; color: var(--muted); max-width: 34em; margin: 0 0 20px; }
.status { display: inline-block; background: var(--fairway); color: var(--ink); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; }
.promise { margin: 18px 0 0; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 8px 0 48px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.card h2 { font-size: 22px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); }

.band { background: var(--green); color: var(--green-ink); padding: 40px 0; }
.band h2 { margin-top: 0; }
.band a { color: var(--green-ink); }
.band ul { padding-left: 20px; margin: 0; }

.page { padding: 40px 0 56px; max-width: 44em; }
.page .meta { color: var(--muted); font-size: 15px; margin-top: -8px; }
.page ul { padding-left: 22px; }
.page li { margin: 6px 0; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; }

.letterhead { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 16px 20px; margin: 16px 0; }
.letterhead dl { display: grid; grid-template-columns: 7em 1fr; gap: 6px 12px; margin: 0; }
.letterhead dt { font-weight: 700; }
.letterhead dd { margin: 0; }

details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 8px 0 0; }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 8px; border-top: 1px solid var(--line); }

footer.site { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 15px; color: var(--muted); }
footer.site p { margin: 4px 0; }
footer.site .links a { margin-right: 16px; }
.credit { font-size: 14px; }

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero .icon { width: 96px; height: 96px; border-radius: 22px; order: -1; }
  .cards { grid-template-columns: 1fr; }
  nav.top a { margin-left: 12px; }
  .letterhead dl { grid-template-columns: 1fr; }
  .letterhead dt { margin-top: 6px; }
}
