/* Tiny Take's web pages, in the app's own look: warm paper, ink, Allo set a fifth rounder than
   it is drawn (as the app sets it), the baby's colour marigold for the camera and the underlines,
   and the warm clouds of the App Store pictures. The colours are the app's own (brand/tokens.json),
   light and dark. */

@font-face {
  font-family: "Allo";
  src: url("fonts/AlloVariable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #f4efe6;
  --card: #fcf9f3;
  --well: #ebe4d7;
  --ink: #2a2622;
  --ink-secondary: #685f55;
  --hairline: #dcd3c5;
  --marigold: #b87a1a;
  --gold: #ddbb72;
  --sky-fade: rgba(244, 239, 230, 0);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14110e;
    --card: #1e1a16;
    --well: #1b1713;
    --ink: #ede4d6;
    --ink-secondary: #a99c8b;
    --hairline: #2e2822;
    --marigold: #e6b160;
    --gold: #ebd6a0;
    --sky-fade: rgba(20, 17, 14, 0.55);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Allo", ui-rounded, -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-variation-settings: "ROND" 70;
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* The clouds behind the top of every page, fading into the paper. */
.sky {
  background:
    linear-gradient(to bottom, var(--sky-fade) 0%, var(--sky-fade) 35%, var(--paper) 100%),
    url("images/clouds.webp") center 38% / cover no-repeat;
  padding: 18px 20px 72px;
}

.bar {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.name img { width: 30px; height: 26px; }

.bar nav { display: flex; gap: 18px; font-size: 16px; }

.bar nav a { color: var(--ink); text-decoration: none; font-weight: 500; }

.bar nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

main {
  max-width: 720px;
  margin: -40px auto 0;
  padding: 0 20px 56px;
}

h1 {
  font-size: clamp(36px, 8vw, 52px);
  font-weight: 560;
  letter-spacing: -0.012em;
  line-height: 1.08;
  margin: 0 0 14px;
}

h2 {
  font-size: 23px;
  font-weight: 560;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 40px 0 8px;
}

p, li { margin: 0 0 14px; }

ul { padding-left: 22px; margin: 0 0 14px; }

li::marker { color: var(--marigold); }

.lead { font-size: 21px; color: var(--ink-secondary); margin-bottom: 8px; }

.small { font-size: 15px; color: var(--ink-secondary); }

/* Small capitals, as the app's labels are ("WEEK 3", "TODAY"). */
.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-secondary);
  margin: 0 0 6px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--marigold);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 20px 22px 6px;
  margin: 28px 0;
}

.icon {
  width: 120px;
  height: 120px;
  border-radius: 27px;
  box-shadow: 0 14px 34px rgba(84, 48, 26, 0.18);
  display: block;
  margin: 0 0 22px;
}

.links { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }

.links a {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--hairline);
  text-decoration: none;
  font-weight: 560;
  font-size: 17px;
}

footer {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  border-top: 1px solid var(--hairline);
  color: var(--ink-secondary);
  font-size: 15px;
  text-align: center;
}

footer .heart { color: var(--marigold); }

@media (max-width: 520px) {
  body { font-size: 17px; }
  .sky { padding: 14px 16px 64px; }
  main { padding: 0 16px 48px; }
  footer { padding: 22px 16px 40px; }
  .bar nav { gap: 14px; font-size: 15px; }
  .name { font-size: 18px; }
  .lead { font-size: 19px; }
}
