:root {
  --bg: #0e0b07;
  --panel: #171208;
  --panel-2: #1f1809;
  --line: #3a2d14;
  --gold: #c9a24b;
  --gold-soft: #e2c983;
  --text: #efe6d2;
  --muted: #a99a78;
  --danger: #e0736a;
  --ok: #8fbf7f;
  --radius: 14px;
  --maxw: 720px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 340px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 56px 20px 44px;
  background-image: url("/images/bosaurum-banner.jpg");
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--line);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background: radial-gradient(
      120% 90% at 50% 30%,
      rgba(14, 11, 7, 0.45) 0%,
      rgba(14, 11, 7, 0.82) 62%,
      rgba(14, 11, 7, 0.97) 100%
    );
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__avatar {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.12), 0 14px 40px rgba(0, 0, 0, 0.6);
  filter: grayscale(0.15);
}

.hero__rip {
  margin: 20px 0 0;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  font-size: 0.9rem;
  color: var(--gold-soft);
  text-transform: uppercase;
}

.hero__name {
  margin: 4px 0 8px;
  font-size: clamp(2.6rem, 8vw, 4.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

.hero__role {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: 1.05rem;
}

/* --- Layout -------------------------------------------------------------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 36px 20px 8px;
  display: grid;
  gap: 28px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.panel h2 {
  margin: 0 0 18px;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--gold-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

/* --- Form ---------------------------------------------------------------- */
.form {
  display: grid;
  gap: 18px;
}

.field {
  display: grid;
  gap: 6px;
  position: relative;
}

.field__label {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

input,
textarea {
  width: 100%;
  background: var(--panel-2);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #7a6e54;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}

.field__count {
  justify-self: end;
  font-size: 0.75rem;
  color: var(--muted);
}

.btn {
  justify-self: start;
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #2a1e07;
  border: none;
  border-radius: 10px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: transform 0.06s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.06);
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
}

.form__note {
  min-height: 1.2em;
  font-size: 0.9rem;
}

.form__note.is-error {
  color: var(--danger);
}

.form__note.is-ok {
  color: var(--ok);
}

/* --- Wall of memories ---------------------------------------------------- */
.wall__count {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 400;
}

.wall {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.wall__item {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  padding: 16px 18px;
}

.wall__msg {
  margin: 0 0 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.wall__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

.wall__author {
  color: var(--gold-soft);
  font-weight: 600;
}

.wall__empty {
  color: var(--muted);
  font-style: italic;
  margin: 4px 0 0;
}

/* --- Footer -------------------------------------------------------------- */
.footer {
  max-width: var(--maxw);
  margin: 24px auto 40px;
  padding: 24px 20px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: grid;
  justify-items: center;
  gap: 10px;
}

.footer__mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.75;
  filter: grayscale(0.4);
}

.footer p {
  margin: 0;
  font-style: italic;
}

@media (max-width: 480px) {
  .panel {
    padding: 18px;
  }
  .hero__avatar {
    width: 104px;
    height: 104px;
  }
}
