/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --font-sans: Montserrat;
  --font-serif: Playfair Display;
  --font-script: Great Vibes;

  --color-fondamental: #704489;
  --color-neutral-back: #F5E8D0;
  --color-accent: #D4AF37;
  --color-neutral-marroon: #8B4513;
  --color-danger: #E74C3C;
  --color-text-back: white;
  --color-text-front: black;

  font-family: var(--font-sans), sans-serif;
  font-size: clamp(10pt, 2vw, 12pt);
  font-optical-sizing: auto;
  background: var(--color-fondamental);
  color: var(--color-neutral-back);
}

body {
  max-width: 80em;
  margin-inline: auto;
  padding-inline: 1em;
}

button,
input,
select,
textarea {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  padding: 0.5ex 1ex;

  appearance: none;
  border-radius: 0.5ex;
  border: 0;
  font: inherit;
  color: var(--color-text-front);

  &[readonly] {
    background: var(--color-neutral-back);
  }
}

select {
  padding-right: calc(6 * 0.5ex);
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 3 * 0.5ex) 50%,
    calc(100% - 2 * 0.5ex) 50%;
  background-size: 0.5ex 0.5ex;
  background-repeat: no-repeat;
}

a {
  color: inherit;
}
