/* The maintenance page. The hero of the home page (apps/client/src/site/site.css)
   with the account box swapped for a notice and no monsters: the painting,
   the logo, the same colours. */

:root {
  --ink: #2a1a10;
  --parchment: #f7edd9;
  --parchment-dim: #d9c9a8;
  --panel-edge: #6b452a;
  --terracotta: #c9542b;
  --gold: #f2c14e;
  --shade: rgba(24, 14, 8, 0.78);
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--parchment);
  background: var(--ink);
}

/* Both languages are in the HTML; only the one <html lang> names is drawn. */
html[lang="en"] #notice [lang="pt-BR"],
html[lang="pt-BR"] #notice [lang="en"] { display: none; }

#topbar { position: absolute; top: 0; right: 0; z-index: 2; padding: 0.75rem 1rem; }
#lang { display: flex; gap: 0.35rem; }

#lang button {
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--parchment);
  background: var(--shade);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 0.35rem 0.7rem;
  cursor: pointer;
}

#lang button[aria-pressed="true"] { background: var(--terracotta); border-color: var(--gold); color: #fff; }

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 3.5rem 1rem 2rem;
  text-align: center;
  background: #6a8fbf url(/site/background.jpg) center / cover no-repeat;
}

/* Darkens the painting under the text without touching the painting. */
#hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 6, 0.35) 0%, rgba(20, 12, 6, 0.15) 35%, rgba(20, 12, 6, 0.85) 100%);
  pointer-events: none;
}

#hero > * { position: relative; }

h1 { margin: clamp(3rem, 24vh, 16rem) 0 0; }

#logo {
  display: block;
  /* 2.83 wide per 1 tall: bounded by the height too, so logo and notice fit
     one laptop screen. */
  width: clamp(260px, min(62vw, 80vh), 640px);
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(0, 0, 0, 0.7));
}

#notice {
  width: min(520px, 100%);
  margin-top: auto; /* to the hero's foot */
  background: var(--shade);
  border: 2px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.4rem;
}

#notice h2 { margin: 0 0 0.6rem; font-size: clamp(1.15rem, 3.2vw, 1.5rem); color: var(--gold); text-wrap: balance; }
#notice p { margin: 0 0 0.6rem; line-height: 1.45; text-wrap: balance; }
#notice .date { font-size: 1.1rem; }
#notice .date strong { color: var(--gold); text-transform: uppercase; letter-spacing: 0.06em; }

#discord {
  display: block;
  margin-top: 1rem;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #fff;
  background: #5865f2;
  border: 2px solid var(--gold);
  border-radius: var(--radius);
  padding: 0.75rem;
}

#discord:hover { background: #6d78f5; }
#discord:focus-visible, #lang button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
