/* getinnerlife.com — set as the app is: Besley for words, Atkinson Hyperlegible Next for small labels,
   navy ink, the Home sky and each meditation's own dawn. Sizes are in cqw (a hundredth of the page's
   width), so every page keeps the proportions of the app's screens and cards on any phone. */

@font-face { font-family: "Besley"; src: url("fonts/Besley-Regular.ttf") format("truetype"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Besley"; src: url("fonts/Besley-Italic.ttf") format("truetype"); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Next"; src: url("fonts/AtkinsonHyperlegibleNext.ttf") format("truetype"); font-weight: 200 800; font-style: normal; font-display: swap; }

:root {
  --ink: #122D3E;
  --navy: #0B2939;
  --cream: #FBF5EA;
  --secondary: #4A5A63;
  --night: #10263C;
  --paper: #F5EEE2;
  --serif: "Besley", "Iowan Old Style", Georgia, serif;
  --ui: "Atkinson Next", -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font-family: var(--serif); }
a { color: inherit; }
img { display: block; }

/* A page that is a picture: the sky fills it, the words sit where the app sets them. */
.art {
  --w: min(100vw, 520px);
  width: var(--w);
  min-height: max(100svh, calc(var(--w) * var(--ratio)));
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--night) center / cover no-repeat;
  container-type: inline-size;
}
.art > * { position: absolute; left: 0; right: 0; margin: 0; }

/* Home: the approved sky, the wordmark where Home has it, the welcome's words on the clouds. */
.home { --ratio: calc(1702 / 816); background-image: url("home-sky.jpg"); }
.home .mark { left: 23.28%; right: auto; top: 18%; width: 57.23%; height: auto; }
.home h1 {
  top: 47.6%; text-align: center; color: var(--navy);
  font: 580 9.45cqw/12.19cqw var(--serif); letter-spacing: -0.025em;
}
.home .caps {
  top: 62.2%; text-align: center; color: var(--navy); text-transform: uppercase;
  font: 500 3.6cqw/5.72cqw var(--ui); letter-spacing: 0.19em;
}
.home .soon { top: 81.4%; text-align: center; color: var(--cream); font: italic 420 5.2cqw/1.3 var(--serif); letter-spacing: -0.012em; }
.home .foot { top: 91.2%; text-align: center; color: var(--cream); font: 400 3.3cqw/1.4 var(--ui); letter-spacing: 0.02em; }

/* A prayer: its own dawn, set as its card is (1080 × 1920: 96 px margins, 64 px line, 38 px note). */
.prayer { --ratio: calc(16 / 9); }
.prayer .words { top: 15.6%; height: 38%; padding: 0 8.89cqw; display: flex; flex-direction: column; justify-content: center; color: #fff; }
.prayer h1 { margin: 0; font: 400 5.93cqw/1.24 var(--serif); }
.prayer .note { margin: 4.07cqw 0 0; font: 400 3.52cqw/1.32 var(--ui); }
.prayer .mark { left: 44.45%; right: auto; width: 11.1%; height: auto; bottom: 17.97%; }
.prayer .soon { top: 85.2%; text-align: center; color: var(--navy); font: 600 3.7cqw/1.3 var(--ui); letter-spacing: 0.02em; }
.prayer .foot { top: 92.4%; text-align: center; color: var(--navy); font: 400 3.1cqw/1.4 var(--ui); letter-spacing: 0.02em; }

.foot a { text-decoration: none; padding: 0.6em 0.5em; }
.foot a:hover, .foot a:focus-visible { text-decoration: underline; }
.foot .dot { opacity: 0.6; }

/* A page of words: warm paper, as the app's reading pages. */
.paper { background: var(--paper); min-height: 100svh; }
.paper main { max-width: 34rem; margin: 0 auto; padding: 3.2rem 1.6rem 4rem; }
.paper .back { font: 400 1rem/1 var(--ui); color: var(--ink); text-decoration: none; display: inline-block; padding: 0.6rem 0; }
.paper h1 { font: 400 2.5rem/1.15 var(--serif); letter-spacing: -0.015em; margin: 2.2rem 0 1.6rem; }
.paper p { font: 400 1.06rem/1.55 var(--ui); color: var(--secondary); margin: 0 0 1.1rem; }
.paper p a { color: var(--ink); }
.paper .mark { width: 4.2rem; height: auto; margin-top: 3rem; }
