:root {
  color-scheme: light;
  --paper: #ffffff;
  --ink: #16212a;
  --muted: #566573;
  --line: #d6dde2;
  --tile: #eef1f3;
  --tile-hover: #e2ecf4;
  --accent: #1c4a6e;
  --icon-bg: #ffffff;
  --shadow: 0 1px 6px rgba(22, 33, 42, .18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
}

.home {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 18vh 16px 40px;
}

/* Logo block */
.brand { margin: 0 0 28px; text-align: center; font-weight: normal; }
.logo { display: block; width: 300px; max-width: 80vw; height: auto; margin: 0 auto; }
/* Gotham Bold is licensed, so it's used only where installed; Montserrat Bold is the free stand-in */
.welcome {
  display: block;
  margin-bottom: 18px;
  font-family: "Gotham Bold", "Gotham", "Montserrat", var(--font);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 30px);
  color: var(--accent);
}

/* Google-style search box */
.search {
  position: relative;
  width: 100%;
  max-width: 584px;
  margin-bottom: 36px;
}
.search input {
  width: 100%;
  height: 48px;
  padding: 0 20px 0 48px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}
.search input:hover,
.search input:focus { border-color: transparent; box-shadow: var(--shadow); }
.search-icon {
  position: absolute;
  left: 16px;
  top: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}

/* Shortcut tiles */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 112px);
  gap: 8px;
}
.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 16px 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--ink);
  transition: background .15s;
}
.tile:hover { background: var(--tile-hover); }
.tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--tile);
}
.tile:hover .icon { background: var(--icon-bg); }
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.label { font-size: 14px; text-align: center; }

.foot {
  padding: 14px 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  background: var(--tile);
}

@media (max-width: 520px) {
  .home { padding-top: 12vh; }
  .tiles { grid-template-columns: repeat(3, 100px); gap: 4px; }
}
