/* laukispele.lv. Colors and type are the game's (docs/art/style-bible.md). */
:root {
  --ink: #57301a;
  --deepest: #392e2c;
  --birch: #fcf4e5;
  --cream: #fce6c6;
  --rye-light: #f9ca6c;
  --rye: #e7a952;
  --soil: #995d3a;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-title: ui-serif, Georgia, 'Times New Roman', serif;

  background: #ecd9b0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(180deg, var(--birch) 0%, #f5e8cc 55%, #ecd9b0 100%);
}

a {
  color: var(--ink);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--soil);
}

a:focus-visible {
  outline: 3px solid var(--rye);
  outline-offset: 2px;
}

h1,
h2 {
  margin: 0;
  color: var(--deepest);
  font-family: var(--font-title);
  line-height: 1.2;
}

.wrap {
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 16px;
}

/* The bar at the top */
.top {
  border-bottom: 1px solid rgb(87 48 26 / 18%);
}

.top .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-top: 0.6rem;
  padding-bottom: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--deepest);
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.top nav {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
}

/* The home page */
.intro {
  display: grid;
  align-items: center;
  gap: 1rem 2.5rem;
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.intro h1 {
  font-size: clamp(2.2rem, 7vw, 3.2rem);
}

.intro p {
  margin: 0.6rem 0 0;
}

.intro .lead {
  font-size: 1.15rem;
}

.scene {
  display: block;
  width: 100%;
  max-width: 480px;
  height: auto;
  margin: 0 auto;
}

@media (min-width: 760px) {
  .intro {
    grid-template-columns: 1fr 1.1fr;
    padding-top: 3rem;
  }

  .scene {
    order: 2;
  }
}

/* The team's letter, on the game's letter paper. The paper stretches to the text, and the
   curled corner at its bottom right stays clear. */
.letter {
  max-width: 34rem;
  margin: 1.5rem auto 2.5rem;
  padding: 3.2rem 13% 4.5rem 11%;
  background: url('/img/letter.png') center / 100% 100% no-repeat;
  font-family: var(--font-title);
  font-size: 1.05rem;
  filter: drop-shadow(0 4px 5px rgb(57 46 44 / 30%));
}

.letter p {
  margin: 0 0 0.8rem;
}

.letter .from {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  opacity: 0.7;
  text-transform: uppercase;
}

.letter .signed {
  margin: 1.2rem 0 0;
  font-style: italic;
}

.play {
  display: inline-block;
  margin-top: 0.2rem;
  padding: 0.45em 1.2em;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--rye-light);
  box-shadow: 0 3px 0 rgb(102 59 41 / 35%);
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
}

.play:active {
  box-shadow: none;
  transform: translateY(3px);
}

/* The privacy policy */
.doc {
  max-width: 44rem;
  margin: 2rem auto 2.5rem;
  padding: 1.5rem 1.4rem 1.75rem;
  border: 1px solid rgb(87 48 26 / 25%);
  border-radius: 6px;
  background: var(--birch);
}

.doc h1 {
  font-size: 2rem;
}

.doc h2 {
  margin: 1.75rem 0 0.4rem;
  font-size: 1.2rem;
}

.doc p,
.doc ul {
  margin: 0 0 0.7rem;
}

.doc ul {
  padding-left: 1.2rem;
}

.doc li + li {
  margin-top: 0.3rem;
}

.doc .meta {
  margin-top: 0.3rem;
  font-size: 0.9rem;
  opacity: 0.8;
}

@media (min-width: 760px) {
  .doc {
    padding: 2.25rem 2.75rem 2.5rem;
  }
}

/* The page's foot */
.foot {
  border-top: 1px solid rgb(87 48 26 / 18%);
  font-size: 0.9rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.lost {
  padding: 3rem 16px;
  text-align: center;
}

.lost img {
  width: min(360px, 90%);
  height: auto;
}
