/* ===========================================================================
   Quill — Color
   ---------------------------------------------------------------------------
   A naturalist sketchbook palette: warm pressed-paper grounds, soft sepia ink,
   and a small cast of botanical pigments (terracotta, moss, indigo, gold) used
   sparingly, the way you'd reach for one colored pencil on a graphite page.
   =========================================================================== */

:root {
  /* ---- Paper (surfaces / grounds) -------------------------------------- */
  --paper:        #F5EDDD;  /* base page — pressed cream */
  --paper-warm:   #EFE4CE;  /* cards, raised surfaces */
  --paper-deep:   #E8DCC0;  /* wells, insets, muted chips */

  /* ---- Ink (text / strokes) -------------------------------------------- */
  --ink:          #2A2622;  /* primary text, near-black sepia */
  --ink-soft:     #5C524A;  /* secondary text, body at ease */
  --ink-muted:    #8A7F72;  /* captions, meta, disabled */

  /* ---- Pigments (accents) ---------------------------------------------- */
  --terracotta:        #C4684B;  /* the signature accent — italic words, CTAs */
  --terracotta-deep:   #A0513A;  /* pressed / hover state of terracotta */
  --moss:              #7A8C5C;  /* "signed" tier, success, growth */
  --moss-deep:         #5E6E43;
  --indigo:            #5B6B8A;  /* "featured" tier, cool counterpoint, links, info */
  --indigo-deep:       #44516D;
  --gold:              #B89968;  /* highlight, warning */
  --gold-deep:         #9A7D4E;

  /* ---- Hairlines (ink at low alpha over paper) ------------------------- */
  --line-faint:   rgba(42, 38, 34, 0.08);  /* inner dividers */
  --line-soft:    rgba(42, 38, 34, 0.12);  /* card borders */
  --line:         rgba(42, 38, 34, 0.15);  /* inputs, section rules */
  --line-strong:  rgba(42, 38, 34, 0.20);

  /* =========================================================================
     Semantic aliases — reach for these in components, not the raw values.
     ========================================================================= */

  /* Surfaces */
  --surface-page:    var(--paper);
  --surface-card:    var(--paper-warm);
  --surface-well:    var(--paper-deep);

  /* Text */
  --text-strong:     var(--ink);
  --text-body:       var(--ink-soft);
  --text-muted:      var(--ink-muted);
  --text-on-ink:     var(--paper);
  --text-accent:     var(--terracotta);

  /* Interactive */
  --accent:          var(--terracotta);
  --accent-pressed:  var(--terracotta-deep);
  --link:            var(--indigo);

  /* Borders */
  --border-card:     var(--line-soft);
  --border-field:    var(--line);
  --border-divider:  var(--line-faint);

  /* Tier / status pigments */
  --tier-everyday-bg:  var(--paper-deep);
  --tier-everyday-fg:  var(--ink-soft);
  --tier-featured-bg:  rgba(91, 107, 138, 0.22);
  --tier-featured-fg:  var(--indigo-deep);
  --tier-signed-bg:    rgba(122, 140, 92, 0.22);
  --tier-signed-fg:    var(--moss-deep);
  --tier-heirloom-bg:  rgba(196, 104, 75, 0.16);
  --tier-heirloom-fg:  var(--terracotta-deep);

  /* Feedback */
  --success:   var(--moss-deep);
  --warning:   var(--gold-deep);
  --danger:    var(--terracotta-deep);
  --info:      var(--indigo);

  /* Focus & overlay — ink-based on paper. Overridden wholesale in dark. */
  --focus-ring:        rgba(42, 38, 34, 0.10);  /* input focus halo */
  --focus-ring-danger: rgba(160, 81, 58, 0.14); /* invalid input halo */
  --scrim:             rgba(42, 38, 34, 0.45);   /* modal backdrop */
}
