:root {
  color-scheme: light;
  --ink: #24170f;
  --brown: #3d2412;
  --paper: #fff9ed;
  --muted: #7b6852;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: #f5efe4;
}

body {
  display: grid;
  min-height: 100svh;
  margin: 0;
  padding: 32px;
  place-items: center;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(255, 249, 237, 0.84), rgba(255, 249, 237, 0.48)),
    url("./library.webp") center / cover fixed;
  font-family: Georgia, "Times New Roman", serif;
}

/* Keep the project name stable when browser translation is enabled. */
.brand-name.notranslate {
  display: inline !important;
}

.brand-name-ru {
  display: inline !important;
}

.brand-name-latin {
  display: none !important;
}

html.brand-translation-active .brand-name-ru {
  display: none !important;
}

html.brand-translation-active .brand-name-latin {
  display: inline !important;
}

.placeholder-card {
  width: min(760px, 100%);
  padding: 76px;
  border: 1px solid rgba(117, 76, 29, 0.24);
  background: rgba(255, 251, 243, 0.76);
  box-shadow: 0 20px 60px rgba(69, 40, 15, 0.18);
  backdrop-filter: blur(10px);
}

.brand {
  margin: 0 0 24px;
  color: #72573b;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

h1 {
  max-width: 600px;
  margin: 0;
  font-size: clamp(4rem, 6.2vw, 4.875rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 610px;
  margin: 28px 0 0;
  font-size: 24px;
  line-height: 1.4;
}

.status {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 15px 21px;
  border: 1px solid var(--brown);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
}

.button-solid {
  color: var(--paper);
  background: var(--brown);
}

.button-line {
  color: var(--brown);
  background: rgba(255, 251, 243, 0.24);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid #a66e27;
  outline-offset: 3px;
}

@media (max-width: 720px) {
  body {
    padding: 18px;
    background-attachment: scroll;
  }

  .placeholder-card {
    padding: 42px 28px;
  }

  h1 {
    font-size: clamp(3.35rem, 16vw, 4.35rem);
  }

  .lead {
    font-size: 20px;
  }

  .actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
