/* RootNote — the global frame. Everything else is drawn inline by app.js,
   matching the design file element for element. */

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: #FAF7F0;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: #2F3A31;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

input, textarea, button, select {
  font-family: inherit;
  color: inherit;
}

/* iOS zooms the page in on any field under 16px. */
input, textarea, select { font-size: 16px; }

button { -webkit-appearance: none; appearance: none; }

a { color: #6F8A6B; }
a:hover { color: #2F3A31; }

#app {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  height: 100dvh;
  background: #FAF7F0;
  overflow: hidden;
}

.rn-scroll { overscroll-behavior: contain; }

/* Hidden on touch, where there is no pointer to give feedback to anyway. */
@media (hover: hover) {
  .rn-row:hover { background: rgba(255, 253, 248, 0.75); }
}

/* No visible scrollbars — the design treats these as journal pages. */
::-webkit-scrollbar { width: 0; height: 0; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

#splash {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background-color: #FAF7F0;
  background-image: radial-gradient(rgba(125, 145, 121, 0.10) 1px, transparent 1px);
  background-size: 15px 15px;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: #3E4A40;
  transition: opacity 0.35s ease;
}

#splash.gone { opacity: 0; pointer-events: none; }

::selection { background: rgba(125, 145, 121, 0.25); }
