/* Mella — shared design tokens */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  /* Palette */
  --cream: #FAF7F2;
  --cream-deep: #F3EEE4;
  --cream-shadow: #EAE3D5;
  --ink: #1F1B17;
  --ink-soft: #2A2622;
  --mid: #6B635C;
  --mid-soft: #8C857E;
  --rule: #E5DED4;
  --rule-soft: #EFE9DF;
  --teal: #2E5C5C;
  --teal-bright: #3F7474;
  --teal-deep: #234848;
  --teal-tint: #D8E2E0;
  --teal-wash: #ECF1EF;
  --ochre: #B8893A;
  --sienna: #B85A3A;
  --paper: #FFFFFF;

  /* Type */
  --serif: 'Instrument Serif', 'GT Sectra', 'IBM Plex Serif', Georgia, serif;
  --sans: 'IBM Plex Sans', 'Söhne', 'Inter', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

@keyframes mellaSuccessIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

html {
  scroll-behavior: smooth;
}

.mella-page {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: 'ss01', 'kern', 'liga';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
}

.mella-page h1, .mella-page h2, .mella-page h3, .mella-page h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.mella-page p {
  margin: 0;
  text-wrap: pretty;
}

.mella-page a {
  color: inherit;
  text-decoration: none;
}

.mella-page button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  color: inherit;
}
