/* Close By website. "Light at home" brand, matching SharedUI/Brand.swift. */
:root {
  --navy: #1E2A44;
  --teal: #1F5C57;
  --light: #F5C04A;
  --ground: #F4F5F7;
  --card: #FFFFFF;
  --text: #1E2A44;
  --muted: #5B6475;
  --hairline: #ECEEF2;
  --teal-tint: #E3F0EE;
  --help: #D93A2B;
  --heading: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #141B2C;
    --card: #1E2A44;
    --text: #F4F5F7;
    --muted: #B4BCCB;
    --hairline: #2C3957;
    --teal-tint: #18343A;
    --help: #F2705F;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.6 var(--body);
}
a { color: var(--teal); text-underline-offset: 3px; }
@media (prefers-color-scheme: dark) { a { color: var(--light); } }

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

header.site { background: var(--navy); color: #fff; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 800 21px/1 var(--heading); }
.brand img { width: 36px; height: 36px; }
nav a { color: #fff; text-decoration: none; margin-left: 18px; font-weight: 500; opacity: .85; }
nav a:first-child { margin-left: 0; }
nav a:hover, nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-decoration-color: var(--light); }

h1, h2, h3 { font-family: var(--heading); font-weight: 800; line-height: 1.2; }
h1 { font-size: 36px; margin: 0 0 12px; }
h2 { font-size: 24px; margin: 40px 0 8px; }
h3 { font-size: 19px; margin: 24px 0 4px; }

main { padding: 40px 0 56px; }
.lede { font-size: 20px; color: var(--muted); margin-top: 0; }
.updated { color: var(--muted); font-size: 15px; }

.hero { background: var(--navy); color: #fff; padding: 24px 0 56px; }
.hero h1 { font-size: 44px; }
.hero p { color: #D7DCE6; font-size: 20px; max-width: 34em; }
.hero .mark { width: 88px; height: 88px; margin-bottom: 20px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 24px; }
.card { background: var(--card); border: 1px solid var(--hairline); border-radius: 18px; padding: 20px; }
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }

.notice { background: var(--teal-tint); border-radius: 16px; padding: 16px 20px; margin: 24px 0; }
.notice strong { color: var(--text); }
.notice.urgent { border-left: 5px solid var(--help); }

.button { display: inline-block; background: var(--light); color: var(--navy); font-weight: 700; text-decoration: none; padding: 12px 22px; border-radius: 999px; }

table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 16px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--hairline); }
th { font-family: var(--heading); }
.table-scroll { overflow-x: auto; }

/* Placeholders only James can fill in. Search the folder for class="todo" before publishing. */
.todo { background: #FFE58F; color: #1E2A44; padding: 0 4px; border-radius: 4px; }

details { background: var(--card); border: 1px solid var(--hairline); border-radius: 14px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p, details ol, details ul { margin-bottom: 0; }

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

@media (max-width: 520px) {
  h1, .hero h1 { font-size: 32px; }
  nav a { margin-left: 12px; }
}
