@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap");

:root {
  --bg: #f7f2ea;
  --bg-2: #fdf8f2;
  --panel: #ffffff;
  --text: #2a2623;
  --muted: #6f6a64;
  --accent: #d7906d;
  --accent-2: #7bb5a6;
  --danger: #c94242;
  --danger-bg: #fff4f4;
  --border: #eadfd2;
  --container: 920px;
  --radius: 14px;
}

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

body {
  font-family: "Manrope", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: radial-gradient(1200px 600px at 10% -10%, #fff3e6 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 0%, #e7f5f2 0%, transparent 55%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  min-height: 100vh;
}

header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 242, 234, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner { max-width: var(--container); margin: 0 auto; padding: 24px 24px 16px; }
.header-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.profile-wrap { position: relative; display: flex; align-items: center; gap: 8px; }

.menu-btn {
  width: 38px;
  height: 38px;
  padding: 0;
  border-radius: 999px;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-card {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(300px, 90vw);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.12);
  padding: 12px;
}

h1 {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.3px;
  font-family: "Cormorant Garamond", "Times New Roman", serif;
}

nav { margin-top: 14px; display: flex; gap: 8px; flex-wrap: wrap; }

.nav-btn {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.nav-btn.active {
  background: linear-gradient(135deg, var(--accent), #c47d5c);
  color: #fff;
  border-color: transparent;
}

main { max-width: var(--container); margin: 0 auto; padding: 24px; }
.sub { color: var(--muted); font-size: 13px; }
.sub-spaced { margin-top: 6px; }
.release-sub { margin-top: 8px; }
.section-title { font-weight: 700; }

.card {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}

.release-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}

.release-list li + li { margin-top: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; }

.tile {
  display: block;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  text-decoration: none;
  color: inherit;
}

.tile.disabled {
  opacity: 0.55;
  pointer-events: none;
  filter: grayscale(0.2);
}

.tile strong { display: block; margin-bottom: 6px; }
.tile-note { margin-top: 6px; font-size: 12px; color: #9a6f5f; }
.hidden { display: none !important; }

.profile-card-email {
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  word-break: break-word;
}

.profile-card-nav {
  display: grid;
  gap: 8px;
}

.profile-card-nav .nav-btn {
  width: 100%;
  text-align: center;
}

@media (max-width: 640px) {
  .header-top { display: grid; grid-template-columns: 1fr auto; align-items: start; }
  .profile-wrap { justify-self: end; margin-left: auto; }
}

body:not(.is-admin) .admin-only { display: none !important; }
