@font-face{
  font-family: "Preeti";
  src: url("preeti.TTF") format("truetype");
  font-display: swap;
}

:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --text:#101828;
  --muted:#667085;
  --line:#eaecf0;
  --accent:#d90429;
  --shadow: 0 10px 30px rgba(16,24,40,.08);
  --radius: 16px;
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.wrap{
  max-width: 1280px;
  margin: 28px auto 40px;
  padding: 0 16px;
}

.hero{
  text-align:center;
  margin-bottom: 18px;
}

.hero h1{
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: -0.02em;
}

.desc{
  margin: 0 auto;
  max-width: 820px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.grid{
  align-items: stretch;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.box{
  min-height: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  display:flex;
  flex-direction: column;
}

.box-head{
  display:flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.box-head h2{
  margin:0;
  font-size: 15px;
}

.hint{
  color: var(--muted);
  font-size: 12px;
}

.ta{
  flex: 1;
  width:100%;
  min-height: 520px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  outline: none;
  font-size: 18px;
  line-height: 1.65;
  background: #fbfcff;
}

.ta:focus{
  border-color: rgba(225, 29, 72, .45);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, .10);
  background: #fff;
}

.preeti{
  font-family: "Preeti", Arial, sans-serif;
}

.unicode{
  font-family: "Noto Sans Devanagari","Mangal","Kalimati", system-ui, sans-serif;
}

.actions{
  margin-top: auto;
  display:flex;
  gap: 10px;
  margin-top: 12px;
}

.btn{
  border: 0;
  cursor: pointer;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 600;
  background: var(--accent);
  color: #fff;
}

.btn:hover{filter: brightness(.95)}
.btn:active{transform: translateY(1px)}

.btn-ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

footer{
  margin-top: 18px;
  text-align:center;
  color: var(--muted);
  font-size: 13px;
}

footer a{color: var(--accent); text-decoration: none;}
footer a:hover{text-decoration: underline;}

@media (max-width: 860px){
  .grid{
  align-items: stretch;grid-template-columns: 1fr;}
  .ta{
  flex: 1;min-height: 300px;}
}

.accent{color: var(--accent);}

/* Top navigation */
.nav{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding: 12px 14px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(16,24,40,.06);
  position: sticky;
  top: 10px;
  z-index: 10;
  backdrop-filter: blur(8px);
  margin-bottom: 18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color: var(--text);
}
.brand img{
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}
.brand span{
  font-weight: 800;
  letter-spacing: -0.02em;
}
.menu{
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
}
.menu a{
  text-decoration:none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 10px;
}
.menu a:hover{
  color: var(--text);
  background: #f2f4f7;
}
.menu a.active{
  color: var(--accent);
  background: rgba(217,4,41,.08);
}
@media (max-width: 720px){
  .nav{position: static; border-radius: 14px;}
  .menu{gap: 6px;}
}
