:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #8a8a8a;
  --accent: #111111;
}

* {
  box-sizing: border-box;
}

html {
  height: 100%;
}

html,
body {
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 32px;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.wordmark {
  margin: 0;
  font-size: clamp(2rem, 7vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1;
}

.wordmark .dot {
  color: #d6283b;
}

.wordmark .o-red {
  color: #d6283b;
}

.wordmark .o-blue {
  color: #1f50d0;
}

.tagline {
  margin: 1.25rem 0 0;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.tagline a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
}

.tagline a:hover {
  border-color: var(--fg);
}

.search {
  margin: 1.9rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(440px, 100%);
}

.search input {
  font: inherit;
  font-size: 1rem;
  padding: 13px 15px;
  border: 1px solid #d9d9d9;
  border-radius: 10px;
  background: #fff;
  color: var(--fg);
  outline: none;
  text-align: center;
}

.search input::placeholder {
  color: var(--muted);
}

.search input:focus {
  border-color: var(--fg);
}

.search button {
  font: inherit;
  font-size: 0.95rem;
  padding: 12px 18px;
  border: 1px solid var(--fg);
  border-radius: 10px;
  background: var(--fg);
  color: #fff;
  cursor: pointer;
}

.search button:hover {
  opacity: 0.85;
}

.reveal {
  margin: 2.25rem 0 0;
  width: min(440px, 100%);
}

.canvas-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
}

.canvas-link:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
}

.reveal img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.canvas-link:hover img,
.canvas-link:focus-visible img {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
  transform: translateY(-2px);
}

.canvas-cta {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s ease;
}

.canvas-link:hover .canvas-cta,
.canvas-link:focus-visible .canvas-cta {
  color: var(--fg);
}

@media (prefers-reduced-motion: reduce) {
  .reveal img,
  .canvas-cta {
    transition: none;
  }

  .canvas-link:hover img,
  .canvas-link:focus-visible img {
    transform: none;
  }
}

footer {
  flex: 0 0 auto;
  padding-top: 24px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

footer a {
  color: inherit;
  text-decoration: none;
}

footer a:hover {
  color: var(--fg);
}
