:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#1e2330;
  --muted:#5f677a;
  --line:#e1e4ee;
  --btn:#eef1f8;
  --btn-primary:#3b63ff;
  --shadow: 0 14px 40px rgba(20,30,80,.08);
  --radius: 18px;
}

/* Reset / Base */
*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background:
    radial-gradient(1200px 600px at 20% 10%, #ffffff 0%, var(--bg) 60%);
  color: var(--text);
}

/* Layout */
.wrap{
  max-width: 980px;
  margin: 0 auto;
  padding: 18px;
}

/* Hero */
.hero{
  display:flex;
  gap:18px;
  align-items:center;
  padding: 18px;
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.portrait{
  width: 110px;
  height: 110px;
  border-radius: 999px;
  overflow:hidden;
  border:1px solid var(--line);
  flex: 0 0 auto;
  background:#fff;
}

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

.heroText h1{
  margin:0;
  font-size: 1.65rem;
  line-height: 1.15;
  font-weight: 700;
}

.subtitle{
  margin: .35rem 0 .6rem;
  color: var(--muted);
}

.meta{
  color: var(--muted);
  display:flex;
  gap:10px;
  align-items:center;
  font-size:.95rem;
}

.dot{ opacity:.6; }

/* Cards */
.card{
  margin-top: 16px;
  padding: 18px;
  border:1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.card h2{
  margin:0 0 10px;
  font-size: 1.2rem;
  font-weight: 600;
}

.cardHead{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
}

/* Controls / Buttons */
.controls{
  display:flex;
  gap:10px;
}

.btn{
  border:1px solid var(--line);
  background: var(--btn);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 600;
}

.btn:hover{
  background:#e7ebf6;
}

.btn.primary{
  background: linear-gradient(180deg, #5a7cff 0%, var(--btn-primary) 100%);
  color:#fff;
  border-color: rgba(0,0,0,.08);
}

.btn.primary:hover{
  filter: brightness(1.05);
}

/* Text helpers */
.muted{ color: var(--muted); }
.micro{ font-size: .85rem; }
.hint{
  margin:12px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* Tributes */
.tributeViewport{
  position: relative;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  min-height: 140px;
  background: #fafbff;
  margin-top: 14px;
}

.tribute{
  display:none;
  animation: fadeIn .35s ease-out;
}

.tribute.active{
  display:block;
}

.msg{
  margin:0;
  font-size: 1.05rem;
  line-height: 1.5;
}

.name{
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 600;
}

/* Forms */
.form{
  display:grid;
  gap: 12px;
}

label{
  display:grid;
  gap: 6px;
  color: var(--muted);
  font-size: .95rem;
}

input,
textarea{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border:1px solid var(--line);
  background: #fff;
  color: var(--text);
  outline: none;
  font-size: 1rem;
}

input:focus,
textarea:focus{
  border-color: rgba(59,99,255,.45);
}

/* Notices */
.notice{
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.notice.ok{
  background: rgba(70,160,110,.12);
}

.notice.err{
  background: rgba(200,80,80,.12);
}

/* Embed */
.embed{
  width:100%;
  aspect-ratio: 16/9;
  border-radius: 14px;
  overflow:hidden;
  border:1px solid var(--line);
  background:#f1f3fa;
}

.embed iframe{
  width:100%;
  height:100%;
}

/* Footer */
.footer{
  padding: 12px 0 30px;
  text-align:center;
}

/* Animations */
@keyframes fadeIn{
  from{
    opacity:0;
    transform: translateY(4px);
  }
  to{
    opacity:1;
    transform: translateY(0);
  }
}

/* Mobile */
@media (max-width: 560px){
  .hero{
    flex-direction: column;
    text-align:center;
  }

  .portrait{
    width: 124px;
    height: 124px;
  }

  .cardHead{
    flex-direction: column;
    align-items:flex-start;
  }
}

/* =====================================
   ORCHID BACKGROUND
   ===================================== */

body{
  position: relative;
}

/* Soft background image layer */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;

  background-image:
    linear-gradient(
      rgba(246,247,251,0.92),
      rgba(246,247,251,0.92)
    ),
    url("/assets/orchid.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  filter: saturate(0.9) blur(0.5px);
}
