:root {
  --ink: #14201b;
  --muted: #4a5c54;
  --paper: #e8f0ea;
  --leaf: #1f6b4a;
  --leaf-deep: #145238;
  --glow: rgba(31, 107, 74, 0.18);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 700px at 15% 10%, #cfe3d6 0%, transparent 55%),
    radial-gradient(900px 600px at 90% 80%, #d7ebe1 0%, transparent 50%),
    linear-gradient(160deg, #f4faf6 0%, var(--paper) 45%, #dce8e0 100%);
  display: grid;
  place-items: center;
  padding: 1.5rem;
  -webkit-tap-highlight-color: transparent;
}

.stage {
  width: min(100%, 36rem);
  text-align: center;
  animation: rise 0.7s ease both;
}

.brand {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}

h1 {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.55rem;
}

.sub {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 1.75rem;
  min-height: 1.4em;
}

.file-list {
  list-style: none;
  display: grid;
  gap: 0.85rem;
  text-align: left;
}

.file-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 4.25rem;
  padding: 1.1rem 1.2rem;
  border-radius: 0.75rem;
  background: var(--leaf);
  color: #f7fff9;
  text-decoration: none;
  box-shadow: 0 14px 34px var(--glow);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
  -webkit-user-select: none;
  user-select: none;
  touch-action: manipulation;
}

.file-btn:hover,
.file-btn:focus-visible {
  background: var(--leaf-deep);
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(31, 107, 74, 0.28);
  outline: none;
}

.file-btn:active {
  transform: translateY(0) scale(0.99);
}

.file-meta {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  flex: 1;
}

.file-name {
  font-weight: 700;
  font-size: 1.05rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-size {
  font-size: 0.88rem;
  opacity: 0.85;
}

.file-action {
  flex-shrink: 0;
  font-size: 0.88rem;
  font-weight: 700;
  opacity: 0.95;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(247, 255, 249, 0.35);
  border-radius: 0.45rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  body {
    padding: 1rem;
    align-items: start;
    padding-top: 2.5rem;
  }

  .file-btn {
    min-height: 4.75rem;
  }
}
