@import "../shared.css";

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: var(--page-bg);
  --text: var(--pesu-blue);
  --accent: var(--pesu-orange);
}

body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.home-shell {
  width: 100%;
  max-width: 760px;
}

.home-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
}

h1 {
  font-size: 1.5rem;
}

.year-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.875rem;
}

.year-label {
  font-weight: 600;
  white-space: nowrap;
}

.year-bar input {
  width: 110px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.875rem;
  font-family: inherit;
}

.year-bar input:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
}

#save-year {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  font-size: 0.875rem;
  font-family: inherit;
  cursor: pointer;
}

#save-year:hover {
  border-color: var(--accent);
}

.year-status {
  color: #16a34a;
  font-weight: 600;
  font-size: 0.8rem;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.surface-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}

.surface-link:hover {
  border-color: var(--accent);
}

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