:root {
  --glass: #ffffff0f;
  --border: #ffffff1f;
  --background: #00000059;
  --text: #ffffffcc;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #1e293b, transparent 40%),
    radial-gradient(circle at 80% 0%, #0ea5e9, transparent 35%), #020617;
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid {
  width: min(1200px, 95%);
  display: grid;
  grid-template-areas:
    'hello hello todo todo'
    'hello hello todo todo'
    'weather time todo todo';
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  gap: 18px;
}

.card {
  background: var(--glass);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 26px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px #00000073;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
}

.card--time {
  grid-area: time;
}

.card--weather {
  grid-area: weather;
}

.card--hello {
  grid-area: hello;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card--todo {
  grid-area: todo;
  overflow: hidden;
}

.todo-list {
  overflow-y: auto;
  margin-top: 10px;
  padding-right: 6px;
}

.todo-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  background: var(--background);
  padding: 8px 10px;
  border-radius: 10px;
}

button {
  border: none;
  background: #38bdf8;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

input {
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px;
  color: var(--text);
  width: 100%;
}

.temp {
  font-size: 44px;
  font-weight: 700;
  margin-top: 20px;
}

.date {
  font-size: 40px;
  font-weight: 700;
}

.weather-emoji {
  font-size: 50px;
  position: absolute;
  right: 10px;
  top: 0px;
}

.time {
  font-size: 40px;
  font-weight: 700;
  margin-block: auto;
}

.quote {
  cursor: pointer;
}

.muted {
  opacity: 0.7;
}

.link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed var(--text);
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: 'hello hello' 'hello hello' 'weather time' 'todo todo' 'todo todo';
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-areas: 'hello' 'hello' 'weather' 'time' 'todo' 'todo';
  }
}
