@import url("https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Playfair+Display:wght@400;700;900&family=Courier+Prime:wght@400;700&display=swap");

:root {
  --background: #f5f1e8;
  --foreground: #2a2520;
  --card: #f8f5ed;
  --card-foreground: #2a2520;
  --popover: #f8f5ed;
  --popover-foreground: #2a2520;
  --primary: #ea580c;
  --primary-foreground: #fefdfb;
  --secondary: #e8dcc8;
  --secondary-foreground: #2a2520;
  --muted: #ebe3d5;
  --muted-foreground: #6b5d4f;
  --accent: #ea580c;
  --accent-foreground: #fefdfb;
  --destructive: #dc2626;
  --destructive-foreground: #fefdfb;
  --border: #d4c4a8;
  --input: #ebe3d5;
  --ring: #ea580c;
}

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

body {
  font-family: "Libre Baskerville", Georgia, serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='3.5' numOctaves='4'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.12'/%3E%3C/svg%3E"),
    radial-gradient(ellipse at 20% 30%, rgba(139, 69, 19, 0.03) 0%, transparent 40%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 69, 19, 0.025) 0%, transparent 35%),
    radial-gradient(ellipse at 50% 80%, rgba(234, 88, 12, 0.02) 0%, transparent 30%);
  position: relative;
  will-change: auto;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background: linear-gradient(135deg, transparent 48%, rgba(0, 0, 0, 0.06) 50%, transparent 52%),
    radial-gradient(ellipse 600px 80px at 25% 40%, rgba(0, 0, 0, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 500px 70px at 75% 60%, rgba(0, 0, 0, 0.035) 0%, transparent 50%);
  z-index: 1;
  mix-blend-mode: multiply;
  will-change: auto;
}

body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  background-image: radial-gradient(ellipse at 0% 0%, rgba(0, 0, 0, 0.06) 0%, transparent 15%),
    radial-gradient(ellipse at 100% 100%, rgba(0, 0, 0, 0.06) 0%, transparent 15%);
  z-index: 1;
  opacity: 0.6;
  will-change: auto;
}

.paper-content {
  position: relative;
  z-index: 2;
}

.ink-stain {
  position: relative;
}

.ink-stain::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(234, 88, 12, 0.02) 0%, transparent 60%);
  pointer-events: none;
}

.newspaper-edge {
  position: relative;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.06), 0 4px 8px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

.printed-text {
  text-shadow: 0.5px 0.5px 0px rgba(0, 0, 0, 0.12), -0.3px -0.3px 0px rgba(234, 88, 12, 0.06);
  letter-spacing: 0.01em;
}

.font-serif {
  font-family: "Playfair Display", Georgia, serif;
}

.text-primary {
  color: var(--primary);
}

.text-foreground {
  color: var(--foreground);
}

.text-muted-foreground {
  color: var(--muted-foreground);
}

.bg-card {
  background-color: var(--card);
}

.bg-background\/50 {
  background-color: rgba(245, 241, 232, 0.5);
}

.border-border {
  border-color: var(--border);
}

.border-primary\/20 {
  border-color: rgba(234, 88, 12, 0.2);
}

.min-h-screen {
  min-height: 100vh;
}

.relative {
  position: relative;
}

.overflow-hidden {
  overflow: hidden;
}

.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.text-balance {
  text-wrap: balance;
}

.leading-relaxed {
  line-height: 1.625;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

.font-light {
  font-weight: 300;
}

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 700;
}

.italic {
  font-style: italic;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-5xl {
  max-width: 64rem;
}

.max-w-4xl {
  max-width: 56rem;
}

.max-w-2xl {
  max-width: 42rem;
}

.max-w-none {
  max-width: none;
}

.space-y-12 > * + * {
  margin-top: 3rem;
}

.space-y-8 > * + * {
  margin-top: 2rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

.space-y-3 > * + * {
  margin-top: 0.75rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-4 {
  gap: 1rem;
}

.grid {
  display: grid;
}

.rounded-2xl {
  border-radius: 1rem;
}

.rounded-3xl {
  border-radius: 1.5rem;
}

.border {
  border-width: 1px;
}

.border-2 {
  border-width: 2px;
}

.border-t {
  border-top-width: 1px;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

.hover\:bg-background:hover {
  background-color: var(--background);
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.z-10 {
  z-index: 10;
}

.prose {
  max-width: 65ch;
}

#countdown-timer {
  width: 100%;
  max-width: 56rem;
  margin: 0 auto;
}

.countdown-container {
  background-color: rgba(248, 245, 237, 0.8);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  padding: 2rem;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(212, 196, 168, 0.5);
}

.countdown-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  text-wrap: balance;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background-color: rgba(234, 88, 12, 0.08);
  border-radius: 0.75rem;
  border: 2px solid rgba(234, 88, 12, 0.15);
  transition: border-color 0.2s ease;
}

.countdown-unit:hover {
  border-color: rgba(234, 88, 12, 0.3);
}

.countdown-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  font-family: "Courier Prime", "Courier New", monospace;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.countdown-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.countdown-date {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.75rem;
}

.cancelled-banner {
  position: fixed;
  top: 50%;
  left: -10%;
  right: -10%;
  transform: translateY(-50%) rotate(-15deg) translateZ(0);
  background: repeating-linear-gradient(
    45deg,
    rgba(234, 88, 12, 0.95),
    rgba(234, 88, 12, 0.95) 50px,
    rgba(42, 37, 32, 0.95) 50px,
    rgba(42, 37, 32, 0.95) 100px
  );
  padding: 2.5rem 0;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.3), inset 0 2px 3px rgba(255, 255, 255, 0.08);
  border-top: 2px solid rgba(0, 0, 0, 0.25);
  border-bottom: 2px solid rgba(0, 0, 0, 0.25);
  will-change: transform;
  backface-visibility: hidden;
}

.cancelled-banner span {
  display: block;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: #fefdfb;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  text-shadow: 3px 3px 0px rgba(0, 0, 0, 0.4), 2px 2px 0px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 0, 0, 0.4);
  will-change: auto;
}

@media (max-width: 640px) {
  .py-20 {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .py-12 {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .p-8 {
    padding: 1.25rem;
  }

  .p-6 {
    padding: 1rem;
  }

  .px-4 {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  .text-6xl {
    font-size: 2.25rem;
    line-height: 1.1;
  }

  .text-4xl {
    font-size: 1.625rem;
    line-height: 1.9rem;
  }

  .text-xl {
    font-size: 1.0625rem;
    line-height: 1.5rem;
  }

  .text-lg {
    font-size: 0.9375rem;
    line-height: 1.4rem;
  }

  .space-y-12 > * + * {
    margin-top: 1.75rem;
  }

  .space-y-8 > * + * {
    margin-top: 1.25rem;
  }

  .space-y-6 > * + * {
    margin-top: 1rem;
  }

  .mb-8 {
    margin-bottom: 1.25rem;
  }

  .mt-8 {
    margin-top: 1.25rem;
  }

  .gap-8 {
    gap: 0.875rem;
  }

  .rounded-3xl {
    border-radius: 0.875rem;
  }

  .rounded-2xl {
    border-radius: 0.625rem;
  }

  .countdown-container {
    padding: 1.25rem;
    border-radius: 0.875rem;
  }

  .countdown-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }

  .countdown-unit {
    padding: 0.75rem;
    border-radius: 0.5rem;
  }

  .countdown-value {
    font-size: 1.75rem;
  }

  .countdown-label {
    font-size: 0.6875rem;
    margin-top: 0.25rem;
  }

  .countdown-date {
    font-size: 0.6875rem;
    margin-top: 1rem;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .cancelled-banner {
    padding: 1.75rem 0;
    transform: translateY(-50%) rotate(-12deg) translateZ(0);
    left: -15%;
    right: -15%;
  }

  .cancelled-banner span {
    font-size: 1.5rem;
    letter-spacing: 0.15em;
  }
}

@media (min-width: 641px) and (max-width: 767px) {
  .cancelled-banner span {
    font-size: 2rem;
    letter-spacing: 0.2em;
  }
}

@media (min-width: 768px) {
  .md\:text-8xl {
    font-size: 6rem;
    line-height: 1;
  }

  .md\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }

  .md\:text-3xl {
    font-size: 1.875rem;
    line-height: 2.25rem;
  }

  .md\:text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .md\:text-base {
    font-size: 1rem;
    line-height: 1.5rem;
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .countdown-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }

  .countdown-container {
    padding: 2.5rem;
  }

  .countdown-title {
    font-size: 1.875rem;
  }

  .countdown-value {
    font-size: 3rem;
  }

  .countdown-label {
    font-size: 0.875rem;
  }

  .countdown-date {
    font-size: 0.875rem;
  }

  .cancelled-banner {
    padding: 3rem 0;
  }

  .cancelled-banner span {
    font-size: 3.5rem;
    letter-spacing: 0.3em;
  }
}

@media (min-width: 1024px) {
  .lg\:text-9xl {
    font-size: 8rem;
    line-height: 1;
  }

  .countdown-value {
    font-size: 3.5rem;
  }

  .countdown-container {
    padding: 3rem;
  }

  .cancelled-banner span {
    font-size: 4.5rem;
  }
}

@media (min-width: 1280px) {
  .cancelled-banner span {
    font-size: 5rem;
  }
}
