﻿:root {
  --text: #f9f7f3;
  --scene-url: url("https://images.unsplash.com/photo-1501785888041-af3ef285b470?auto=format&fit=crop&w=1920&q=80");
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background-image: var(--scene-url);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.9s ease-in-out;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.14), transparent 52%),
    linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.46));
  pointer-events: none;
}

.landing {
  width: min(92vw, 760px);
  padding: 1.5rem 1rem 2.25rem;
  text-align: center;
}

.time {
  margin: 0 0 1rem;
  font-size: clamp(2.6rem, 10vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.55);
}

.quote-block {
  margin: 0;
}

blockquote {
  margin: 0;
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

figcaption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  opacity: 0.95;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}

#quote-link {
  color: #ffe8a3;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
  margin-left: 0.4rem;
}

#quote-link:hover,
#quote-link:focus-visible {
  color: #fff3cb;
}

#refresh-btn {
  margin-top: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(0, 0, 0, 0.3);
  color: #ffffff;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  backdrop-filter: blur(1px);
}

#refresh-btn:hover,
#refresh-btn:focus-visible {
  background: rgba(0, 0, 0, 0.45);
}

.hint {
  position: fixed;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  margin: 0;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  text-align: center;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}
