@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Sora:wght@400;500;600&display=swap");

:root {
  --ink: #15231c;
  --ink-soft: #2a3d33;
  --mist: #e7efe8;
  --paper: #f3f7f2;
  --leaf: #2f6b4f;
  --leaf-deep: #1e4a36;
  --amber: #c48a2a;
  --line: rgba(21, 35, 28, 0.12);
  --danger: #8b2e2e;
  --shadow: 0 18px 50px rgba(21, 35, 28, 0.12);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Sora", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(47, 107, 79, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(196, 138, 42, 0.14), transparent 50%),
    linear-gradient(180deg, #f7faf6 0%, var(--paper) 40%, #eef4ef 100%);
  line-height: 1.55;
}

a {
  color: var(--leaf-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  display: block;
}

.shell {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 4rem;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--leaf);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  background: var(--leaf);
  color: white;
  font: inherit;
  font-weight: 550;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease;
}

.btn:hover {
  background: var(--leaf-deep);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.secondary {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn.ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: transparent;
  padding-inline: 0.4rem;
}

.btn.danger {
  background: var(--danger);
}

.hero {
  min-height: min(72vh, 640px);
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 2rem 0 3rem;
  animation: rise 700ms ease both;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero p {
  margin: 0;
  max-width: 34rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.panel {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem;
  backdrop-filter: blur(8px);
  animation: rise 500ms ease both;
}

.panel + .panel {
  margin-top: 1rem;
}

.vault-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 0.4rem;
  letter-spacing: -0.02em;
}

.vault-hero .lede {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.option-list {
  display: grid;
  gap: 0.75rem;
}

.option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  text-align: left;
  font: inherit;
  transition: border-color 160ms ease, transform 160ms ease;
}

.option:hover {
  border-color: rgba(47, 107, 79, 0.45);
  transform: translateY(-1px);
}

.option strong {
  display: block;
  font-weight: 600;
}

.option span {
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.form-grid {
  display: grid;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--ink);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 400;
}

.muted {
  color: var(--ink-soft);
}

.error {
  color: var(--danger);
  font-size: 0.92rem;
}

.success {
  color: var(--leaf-deep);
  font-size: 0.92rem;
}

.memory-list {
  display: grid;
  gap: 1rem;
}

.memory {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.memory:first-child {
  border-top: 0;
  padding-top: 0;
}

.memory h3 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.memory .meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.memory .body {
  white-space: pre-wrap;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.photo-grid a {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 1;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.status-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-soft);
}

.status-pill.approved {
  background: rgba(47, 107, 79, 0.15);
  color: var(--leaf-deep);
}

.status-pill.hidden {
  background: rgba(139, 46, 46, 0.12);
  color: var(--danger);
}

.mod-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.auth-card {
  width: min(420px, 100%);
  margin: 3rem auto;
}

.auth-card h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 0 0 0.5rem;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 1rem 0;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.hidden {
  display: none !important;
}

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

@media (max-width: 640px) {
  .option {
    flex-direction: column;
    align-items: flex-start;
  }
}
