﻿:root {
  --bg-color: #f9f6ef;
  --text-color: #1c1a17;
  --accent-gold: #c5a059;
  --border-color: #ddd7c9;
}

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

html {
  background: var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  font-family: "Times New Roman", Times, Baskerville, Georgia, serif;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  text-align: center;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 1.4s ease-out;
}

h1 {
  font-size: 2.5rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: clamp(0.18em, 1vw, 0.35em);
  padding-left: clamp(0.18em, 1vw, 0.35em);
  margin-bottom: 3rem;
}

.stamp-display {
  width: 100%;
  max-width: 650px;
  border: 1px solid var(--border-color);
  background: #fff;
  padding: 12px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04), 0 20px 45px rgba(0, 0, 0, 0.03);
  position: relative;
}

.stamp-display svg,
.stamp-display img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  filter: grayscale(10%) sepia(8%);
  opacity: 0;
  transform: scale(0.985);
  animation: reveal 1.8s ease forwards 0.3s;
}

.date-marker {
  font-size: 1.1rem;
  letter-spacing: 0.5em;
  padding-left: 0.5em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent-gold);
  opacity: 0.6;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: scale(0.985);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.75rem;
    margin-bottom: 2rem;
  }

  .stamp-display {
    margin-bottom: 2rem;
  }

  .date-marker {
    font-size: 0.95rem;
    letter-spacing: 0.35em;
    padding-left: 0.35em;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }

  .stamp-display svg,
  .stamp-display img {
    opacity: 1;
    transform: none;
  }
}
