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

html, body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: clip;
}

body {
  background: var(--paper-warm);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(206, 220, 231, 0.55) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(246, 255, 140, 0.28) 0%, transparent 55%),
    radial-gradient(ellipse 90% 60% at 60% 100%, rgba(194, 184, 135, 0.35) 0%, transparent 65%),
    linear-gradient(180deg, #f3ece0 0%, #e9e4d8 40%, #dfe3e8 100%);
}

.app-shell,
.site-footer {
  position: relative;
  z-index: 1;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.7; }

h1, h2, h3, h4, h5 {
  font-family: var(--heading);
  font-weight: 400;
  margin: 0;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.05rem; }

p { margin: 0 0 var(--space-4); color: var(--ink-soft); }

code, pre { font-family: var(--mono); }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: var(--ink);
}

::selection { background: var(--yellow); color: var(--ink); }
