:root {
  --bg: #ffffff;
  --text: #212121;
  --muted: #6b6b6b;
  --title: #3d6e99;
  --link: #1f5d8f;
  --link-hover: #0b3a63;
  --label: #8a8a8a;
  --rule: #e4e7eb;
  --card: #f7f9fb;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15181c;
    --text: #e6e6e6;
    --muted: #9aa3ad;
    --title: #8db8de;
    --link: #8cc2f0;
    --link-hover: #c4e2ff;
    --label: #7f8892;
    --rule: #2a3038;
    --card: #1c2026;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px 48px;
}

header {
  text-align: center;
  padding: 48px 0 32px;
}

header h1 {
  margin: 0;
  font-weight: 300;
  font-size: clamp(32px, 6vw, 52px);
  color: var(--title);
  letter-spacing: 0.01em;
}

header nav {
  margin-top: 12px;
  font-size: 14px;
}

header nav a {
  margin: 0 10px;
  color: var(--muted);
  text-decoration: none;
}

header nav a:hover,
header nav a[aria-current="page"] {
  color: var(--title);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 40px;
}

@media (max-width: 760px) {
  .columns { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .columns { grid-template-columns: 1fr; }
}

section { margin-bottom: 22px; }

h2 {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--label);
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

li { padding: 1px 0; }

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.note {
  color: var(--muted);
  font-size: 13px;
}

/* Links that still point at the old Google Site */
a.gs::after {
  content: " \2197";
  font-size: 11px;
  color: var(--label);
}

.my-pages {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.my-pages h2 {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--title);
  margin-bottom: 12px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.tiles a {
  display: block;
  padding: 12px 14px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 8px;
}

.tiles a:hover {
  text-decoration: none;
  border-color: var(--link);
}

/* Weather page: wider single-column sections laid out in a grid */
.sections {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 40px;
}

.sections h2 {
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  margin-bottom: 6px;
}

.sections li { padding: 3px 0; }

footer {
  margin-top: 32px;
  font-size: 12px;
  color: var(--label);
  text-align: center;
}
