:root {
  --cream: #FBF6EE;
  --cream-2: #F3ECDD;
  --ink: #26333A;
  --ink-soft: #5B6B72;
  --amber: #E28C3F;
  --amber-deep: #C46A2B;
  --teal: #3C7A73;
  --line: #E4D9C4;
}
:root:not([data-theme="light"]) {
  @media (prefers-color-scheme: dark) {
    --cream: #211D17;
    --cream-2: #2A241B;
    --ink: #F3EFE6;
    --ink-soft: #C9BFA9;
    --amber: #F0A25E;
    --amber-deep: #F6B679;
    --teal: #6FB3AA;
    --line: #4A4130;
  }
}
:root[data-theme="dark"] {
  --cream: #211D17;
  --cream-2: #2A241B;
  --ink: #F3EFE6;
  --ink-soft: #C9BFA9;
  --amber: #F0A25E;
  --amber-deep: #F6B679;
  --teal: #6FB3AA;
  --line: #4A4130;
}

* { box-sizing: border-box; }

html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.wrap {
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.card {
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.glass {
  width: 108px;
  height: auto;
  margin: 0 auto 36px;
  display: block;
}

.grain {
  animation: fall 2.6s ease-in-out infinite;
  transform-origin: 54px 54px;
}

@keyframes fall {
  0%   { opacity: 1; transform: translateY(0); }
  45%  { opacity: 1; transform: translateY(30px); }
  50%  { opacity: 0; transform: translateY(30px); }
  50.01% { opacity: 0; transform: translateY(-26px); }
  100% { opacity: 0; transform: translateY(-26px); }
}

@media (prefers-reduced-motion: reduce) {
  .grain { animation: none; opacity: 0.9; }
}

h1 {
  font-family: Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}

p.lead {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44ch;
  margin: 0 auto 34px;
}

.divider {
  width: 40px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
  margin: 0 auto 34px;
}

.details {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  margin: 0 auto 34px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.details dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
}

.details dt {
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.details dd {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

.status {
  color: var(--amber-deep);
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--amber);
  color: #2A1B0E;
  box-shadow: 0 6px 18px -6px rgba(196, 106, 43, 0.55);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -8px rgba(196, 106, 43, 0.6);
}

.btn-primary:focus-visible,
.link:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.link {
  color: var(--teal);
  font-size: 0.94rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.link:hover {
  border-bottom-color: var(--teal);
}

.footnote {
  margin-top: 46px;
  font-size: 0.82rem;
  color: var(--ink-soft);
  opacity: 0.8;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
