/* Shared by the public pages: the landing page, /request/ and /help/.
   Colors, fonts and paintings come from /theme.css (one region per page, day
   and night following the device). Nothing here loads from another host. */
*{box-sizing:border-box}
html,body{margin:0}
body{
  background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-size:17px; line-height:1.65;
  -webkit-font-smoothing:antialiased;
  padding:0 16px; min-height:100vh; min-height:100dvh;
}
.wrap{max-width:460px; margin:0 auto; padding-block:24px 48px; position:relative}
p{margin:0 0 14px; color:var(--muted)}
h2{font-weight:700; font-size:24px; margin:0 0 10px; color:var(--ink)}
a{color:var(--link)}

/* ---- the name: «میرزایی» in Nastaliq, Mirzaie under it ---- */
.name{margin:0; text-align:center; display:flex; flex-direction:column; align-items:center}
.name a{color:inherit; text-decoration:none; display:flex; flex-direction:column; align-items:center}
.name .name-fa{font-size:clamp(52px,14vw,68px); color:var(--accent)}
.name .name-en{margin-top:4px; font-size:13px; font-weight:500; letter-spacing:.3em; text-transform:uppercase; color:var(--muted)}

/* ---- landing: the painting fills the screen, a card holds the way in ---- */
.landing-art{position:fixed; inset:0; z-index:0}
.landing{min-height:100vh; min-height:100dvh; display:flex; flex-direction:column; justify-content:flex-end; padding-bottom:max(20px, env(safe-area-inset-bottom))}
.card{position:relative; z-index:1; background:var(--card); border:1px solid var(--line); border-radius:18px; padding:14px 20px 8px}
.card .name{margin-bottom:8px}
.card .name .name-fa{line-height:1.7}

/* ---- request / help: a strip of the painting with the name on it ---- */
.art-head{position:relative; height:170px; border-radius:18px; overflow:hidden; margin-bottom:18px}
.art-head .art-strip{position:absolute; inset:0}
.art-head .name{position:absolute; left:16px; right:16px; bottom:12px; padding:6px 10px 2px; border-radius:14px; background:var(--card)}
.art-head .name .name-fa{font-size:40px; line-height:1.8}
.art-head .name .name-en{display:none}

/* Buttons: big targets, plain words. Sized for a thumb and for older eyes. */
.actions{display:flex; flex-direction:column; gap:12px}
.btn{
  display:flex; align-items:center; justify-content:center;
  min-height:56px; padding:14px 24px; border-radius:12px;
  font:700 18px/1.2 var(--sans);
  text-decoration:none; text-align:center; cursor:pointer;
  border:2px solid transparent; width:100%;
}
.btn:focus-visible{outline:3px solid var(--second); outline-offset:3px}
.btn.primary{background:var(--accent); color:var(--on-accent)}
.btn.primary:hover{filter:brightness(1.08)}
.btn.secondary{background:transparent; color:var(--ink); border-color:var(--second); font-weight:500}
.btn.secondary:hover{background:var(--chip)}
.btn.quiet{background:transparent; color:var(--link); min-height:48px; font-weight:500; font-size:16px;
  text-decoration:underline; text-underline-offset:4px}

/* Forms */
label{display:block; font-weight:600; font-size:15px; margin:18px 0 6px; color:var(--ink)}
.hint{font-weight:400; color:var(--muted)}
input,textarea{
  width:100%; font:inherit; font-size:17px; color:var(--ink);
  background:var(--surface); border:1px solid var(--line); border-radius:10px;
  padding:13px 14px;
}
textarea{min-height:96px; resize:vertical}
input:focus,textarea:focus{outline:2px solid var(--accent); outline-offset:1px}
form .btn{margin-top:24px}
/* Honeypot: hidden from people, visible to naive bots. */
.hp{position:absolute; inset-inline-start:-9999px; width:1px; height:1px; overflow:hidden}
.ts{margin-top:22px; min-height:65px}
.byline{text-align:center; margin:-6px 0 16px; color:var(--muted); font-size:16px}
.byline:empty{display:none}
.soon{text-align:center; margin:4px 0 18px; font-size:20px; letter-spacing:.5px; color:var(--ink)}

.panel{background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--accent); border-radius:14px; padding:22px 20px}
.steps{margin:0 0 14px; padding-inline-start:22px; color:var(--muted)}
.steps li{margin-bottom:10px}
.steps b{color:var(--ink)}
.back{display:block; margin-top:24px; text-align:center; color:var(--link)}
.notice{border-inline-start:3px solid var(--accent); padding:12px 16px; background:var(--surface);
  border-radius:0 10px 10px 0; margin-bottom:18px; color:var(--ink)}
.notice.err{border-inline-start-color:var(--second)}
[hidden]{display:none!important}

/* Language switcher: each name in its own language, top of every public page. */
.langs{position:relative; z-index:2; display:flex; justify-content:flex-end; gap:6px; max-width:460px; margin:0 auto; padding-top:14px}
/* On the landing page the switcher floats over the painting, so the card still
   sits on the first screen. */
body:has(.landing) .langs{position:absolute; top:0; left:16px; right:16px}
.langs button{background:var(--card); border:1px solid transparent; border-radius:999px;
  color:var(--ink); font:500 15px/1 var(--sans); padding:10px 14px; min-height:40px; cursor:pointer}
.langs button[aria-pressed="true"]{border-color:var(--accent); font-weight:700}
.langs button:focus-visible{outline:3px solid var(--second); outline-offset:2px}

/* Farsi and other right-to-left scripts: a little more line height reads better. */
:root[dir="rtl"] body{line-height:1.9}
:root[lang="fa"] .steps{list-style-type:persian}

@media (prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}
