@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@300;400;500;600&display=swap');

html {
  box-sizing: border-box;
  font-size: 10px;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  text-align: center;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

h2 {
  color: #ffffff;
  text-align: center;
  font-size: 6rem;
  margin: 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.display__time-left {
  font-weight: 300;
  font-size: 18rem;
  margin: 0;
  color: #ffffff;
  text-shadow: 0 8px 32px rgba(0,0,0,0.2);
  font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  letter-spacing: -0.05em;
}

.timer {
  display: flex;
  min-height: 80vh;
  flex-direction: column;
}

.timer__controls {
  display: flex;
}

.timer__controls > * {
  flex: 1;
}

.timer__controls form {
  flex: 1;
  display: flex;
}

.timer__controls input {
  flex: 1;
  border: 0;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.95);
  color: #1a1a1a;
  border-radius: 0;
}

.timer__controls input::placeholder {
  color: #6b7280;
  font-weight: 400;
}

.timer__button {
  background: rgba(255, 255, 255, 0.1);
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-size: 1.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
  backdrop-filter: blur(10px);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

.timer__button:hover,
.timer__button:focus {
  background: rgba(255, 255, 255, 0.2);
  outline: 0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.display {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.display__end-time {
  font-size: 3.2rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.article {
  font-size: 1.6em;
  color: rgba(255, 255, 255, 0.9);
  padding: 0 20%;
  font-weight: 400;
  line-height: 1.6;
}

.article hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  margin: 2rem 0;
}

.alarm {
  animation: alarm 0.8s ease-in-out;
}

@keyframes alarm {
  0% {
    color: #ffffff;
    text-shadow: 0 8px 32px rgba(0,0,0,0.2);
  }
  100% {
    color: #ff6b6b;
    text-shadow: 0 8px 32px rgba(255, 107, 107, 0.4);
  }
}