/* letspack.today: the colours of the app, by day and by night, and the few
   shapes the three pages share. No fonts or scripts from anywhere else. */

:root {
  --background: #f3f7ef;
  --paper: #ffffff;
  --mist: #e8f0e3;
  --ink: #15302a;
  --ink-soft: #4c6158;
  --line: #d8e2d3;
  --pine: #1c6a4c;
  --pine-soft: #e0efe5;
  --sun: #ffc23d;
  --sun-soft: #fff3d3;
  --on-sun: #15302a;
  --on-pine: #ffffff;

  /* The landscape at the top of the first page. */
  --sky-top: #d6ebee;
  --sky-bottom: #fff3d3;
  --disc: #ffc23d;
  --far: #bcd8ca;
  --mid: #7db394;
  --near: #1c6a4c;
  --tree: #124634;
  --water: #6fb1c6;
  --tent: #ffffff;
  --tent-door: #1c6a4c;
  --stars: 0;

  --serif: ui-serif, 'New York', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

/* At the tent in the evening the page is a green-black, and the tent is lit from inside. */
@media (prefers-color-scheme: dark) {
  :root {
    --background: #111916;
    --paper: #18221e;
    --mist: #1c2622;
    --ink: #e6eee9;
    --ink-soft: #a7b6ae;
    --line: #27342f;
    --pine: #5bc394;
    --pine-soft: #173126;
    --sun: #f0b43f;
    --sun-soft: #33290f;
    --on-sun: #1c1606;
    --on-pine: #0e1713;

    --sky-top: #0a1310;
    --sky-bottom: #16271f;
    --disc: #e6eee9;
    --far: #18291f;
    --mid: #1d382c;
    --near: #173126;
    --tree: #0c1a15;
    --water: #1b4253;
    --tent: #f0b43f;
    --tent-door: #5a3f08;
    --stars: 1;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
}

a {
  color: var(--pine);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
}

.wrap {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* The bar at the top: the mark, the name, and a way home. */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  display: block;
  border-radius: 9px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--on-sun);
  font-weight: 700;
  font-size: 15px;
}

.pill.quiet {
  background: var(--pine-soft);
  color: var(--pine);
}

/* The first screen: a few words over a sky, and the place itself underneath. */
.hero {
  background: linear-gradient(var(--sky-top), var(--sky-bottom));
}

.hero-words {
  padding-top: clamp(24px, 6vw, 72px);
  padding-bottom: clamp(8px, 2vw, 24px);
}

.hero h1 {
  max-width: 12em;
  font-size: clamp(38px, 7vw, 68px);
}

.lead {
  margin-top: 18px;
  max-width: 34em;
  color: var(--ink-soft);
  font-size: clamp(18px, 2.2vw, 21px);
}

.hero .pill {
  margin-top: 26px;
  padding: 10px 18px;
  font-size: 16px;
}

/* Narrow screens see the middle of the drawing; wide ones see all of it. */
.landscape {
  display: block;
  width: 100%;
  height: max(clamp(210px, 32vw, 400px), 29.2vw);
}

.landscape .stars {
  fill: #e6eee9;
  opacity: var(--stars);
}

.landscape .disc {
  fill: var(--disc);
}

.landscape .far {
  fill: var(--far);
}

.landscape .mid {
  fill: var(--mid);
}

.landscape .water {
  fill: var(--water);
}

.landscape .near {
  fill: var(--near);
}

.landscape .tree {
  fill: var(--tree);
}

.landscape .tent {
  fill: var(--tent);
}

.landscape .door {
  fill: var(--tent-door);
}

.landscape .ground {
  fill: var(--background);
}

section {
  padding: clamp(40px, 7vw, 80px) 0;
}

section h2 {
  font-size: clamp(28px, 4.2vw, 40px);
}

.intro {
  margin-top: 12px;
  max-width: 36em;
  color: var(--ink-soft);
}

/* Three steps, read left to right, or top to bottom on a phone. */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--sun);
  color: var(--on-sun);
  font: 700 20px var(--serif);
}

.steps h3 {
  font-size: 22px;
}

.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* What else is in the app: small cards, each with its sign. */
.band {
  background: var(--mist);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.card svg {
  display: block;
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  fill: none;
  stroke: var(--pine);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--sans);
  font-size: 18px;
  letter-spacing: 0;
}

.card p {
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 16px;
}

/* For someone who came here from a link a friend sent. */
.invited {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: center;
}

.invited ol {
  margin: 0;
  padding: 22px 22px 22px 44px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink-soft);
}

.invited li + li {
  margin-top: 8px;
}

footer {
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 32px;
}

/* The two smaller pages: one column of text on the same paper. */
.narrow {
  max-width: 680px;
}

.page {
  max-width: 680px;
  padding-top: clamp(16px, 4vw, 40px);
  padding-bottom: 64px;
}

.page h1 {
  font-size: clamp(30px, 5vw, 44px);
}

.page h2 {
  margin-top: 32px;
  font-family: var(--sans);
  font-size: 20px;
  letter-spacing: 0;
}

.page p {
  margin-top: 10px;
  color: var(--ink-soft);
}

.page .note {
  margin-top: 20px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--sun-soft);
  color: var(--ink);
}

.sheet {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
}

.sheet ol {
  margin: 0 0 8px;
  padding-left: 22px;
  color: var(--ink-soft);
}

.sheet .aside {
  margin-top: 14px;
  font-size: 15px;
  text-align: center;
}

.button {
  display: block;
  min-height: 52px;
  margin-top: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--pine);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button.main {
  border-color: var(--pine);
  background: var(--pine);
  color: var(--on-pine);
}

[hidden] {
  display: none !important;
}

@media (max-width: 760px) {
  .steps,
  .cards,
  .invited {
    grid-template-columns: 1fr;
  }

  .cards {
    gap: 12px;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}
