:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --text: #1c1c1a;
  --muted: #5f5f5a;
  --border: #dedcd5;
  --accent: #2f6b3a;
  --accent-text: #ffffff;
  --notice-bg: #fff6e0;
  --notice-text: #6a4b00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161615;
    --surface: #1f1f1d;
    --text: #ecebe6;
    --muted: #a7a59d;
    --border: #3a3935;
    --accent: #7fbf87;
    --accent-text: #10210f;
    --notice-bg: #3a2f12;
    --notice-text: #f3d68a;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    16px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    sans-serif;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.brand {
  font-weight: 600;
}

.account {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--muted);
}

.account a {
  color: var(--accent);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  margin: 8px 0 16px;
}

.muted {
  color: var(--muted);
}

.notice {
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--notice-bg);
  color: var(--notice-text);
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
}

.tile:hover,
.tile:focus-visible {
  border-color: var(--accent);
}

.tile-name {
  font-weight: 600;
}

.tile-description {
  color: var(--muted);
  font-size: 14px;
}

.button {
  display: inline-block;
  padding: 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font: inherit;
  text-decoration: none;
  cursor: pointer;
}

select {
  font: inherit;
  padding: 4px 8px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
