/* Loup Garou — loup-garou.app. Brand colours from the old app (mobile-config.js, colors.scss). */
:root {
  --red: #811717;
  --red-dark: #410b0b;
  --red-menu: #a01d1e;
  --paper: #f5efdc;
  --ink: #410b0b;
  --moon: #f7e7b3;
  --night: #000f3a;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--red);
  color: var(--moon);
  font-family:
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--moon);
  outline-offset: 3px;
}

.top {
  background: var(--red-dark);
  padding: 0.75rem 1rem;
}

.top a {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.top img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 1.5rem 1rem 2.5rem;
}

.card {
  position: relative;
  width: 100%;
  max-width: 30rem;
  padding: 2.25rem 1.5rem 1.75rem;
  border-radius: 12px;
  background: var(--paper) url('/images/background_texture.jpg') center / cover
    no-repeat;
  color: var(--ink);
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Bookmark ribbon in the top-right corner; h1 keeps symmetric side padding so it never runs under it. */
.card::before {
  content: '';
  position: absolute;
  top: -2px;
  right: 0.6rem;
  width: 32px;
  height: 82px;
  background: url('/images/ribbon.png') center / contain no-repeat;
  pointer-events: none;
}

.card a:focus-visible,
.card button:focus-visible {
  outline-color: var(--night);
}

.card a {
  color: var(--red-dark);
}

.icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

h1,
h2 {
  margin: 0 0 0.5rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--red-dark);
  line-height: 1.15;
}

h1 {
  padding: 0 1.5rem;
  font-size: 2rem;
}

h2 {
  font-size: 1.25rem;
  margin-top: 1.75rem;
}

/* Second language of a bilingual heading, shown as a lighter sub-line. */
h1 .alt {
  display: block;
  font-size: 0.7em;
  font-weight: 400;
}

.subtitle {
  margin: 0 0 1rem;
  font-style: italic;
  font-size: 1.1rem;
  color: var(--red);
}

.lead {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
}

.muted {
  font-size: 0.95rem;
  opacity: 0.85;
}

.btn {
  display: block;
  width: 100%;
  margin: 0.5rem 0;
  padding: 1rem 1.25rem;
  border: 0;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover,
.btn:focus-visible {
  background: var(--red-menu);
}

.card .btn {
  color: #fff;
}

.code {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0 1.5rem;
}

.code code {
  padding: 0.35rem 0.5rem 0.35rem 0.7rem;
  border: 2px dashed var(--red);
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--red-dark);
  user-select: all;
  -webkit-user-select: all;
}

.copy {
  padding: 0.5rem 0.9rem;
  border: 2px solid var(--red);
  border-radius: 8px;
  background: transparent;
  color: var(--red-dark);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.copy:hover {
  background: rgba(129, 23, 23, 0.1);
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1rem;
  margin: 0.75rem 0 0;
  padding: 0;
  list-style: none;
}

.badges img {
  display: block;
  height: 40px;
  width: auto;
}

/* The Google Play PNG carries transparent padding; trim it so both badges align. */
.badges .play img {
  height: 60px;
  margin: -10px -9px;
}

.prose {
  text-align: left;
}

.prose p {
  margin: 0.25rem 0 0.75rem;
}

footer {
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: var(--moon);
}

[hidden] {
  display: none !important;
}

@media (min-width: 40rem) {
  main {
    align-items: center;
  }

  .card {
    padding: 2.5rem 2.5rem 2rem;
  }

  h1 {
    font-size: 2.4rem;
  }
}
