/* ==========================================================================
   base.css — CSS custom properties, reset, typography, utilities

   CUSTOMIZATION:
   1. Replace the color palette in :root with your brand colors.
   2. Change --font-main to your project's typeface.
   3. Adjust radius and spacing tokens as needed.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES
   -------------------------------------------------------------------------- */

:root {
  /* Brand palette */
  --color-brown:        #593604;
  --color-gold:         #B48E41;
  --color-gold-dark:    #8a6a28;
  --color-text:         #212121;
  --color-text-light:   #555555;
  --color-bg:           #FAF8F7;
  --color-bg-section:   #F2EDE6;
  --color-white:        #ffffff;
  --color-border:       rgba(89, 54, 4, 0.12);

  /* Aliases dla kompatybilności z istniejącymi stylami */
  --primary:                    var(--color-brown);
  --secondary:                  var(--color-gold);
  --surface:                    var(--color-bg);
  --surface-container-low:      var(--color-bg-section);
  --surface-container:          #EDE6DC;
  --surface-container-high:     #E0D5C5;
  --surface-container-highest:  #CEC0AB;
  --on-surface:                 var(--color-text);
  --on-primary:                 var(--color-white);
  --on-surface-variant:         var(--color-text-light);

  /* Typography */
  --font-heading: 'Vesper Libre', serif;
  --font-main:    'Roboto', sans-serif;

  /* Radius */
  --radius-sm:   0.25rem;
  --radius-md:   0.5rem;
  --radius-lg:   1rem;
  --radius-xl:   2rem;
  --radius-full: 9999px;

  /* Spacing */
  --section-py:    5rem;
  --section-px:    1.5rem;
  --section-px-lg: 4rem;
}

/* --------------------------------------------------------------------------
   2. RESET
   -------------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 1rem;
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); color: var(--color-brown); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--color-gold); }
h3 { font-size: 1.3rem; color: var(--color-brown); }

p { margin: 0 0 1.25rem; }

main {
  flex: 1;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button {
  cursor: pointer;
  font-family: var(--font-main);
}

::selection {
  background-color: var(--secondary-container);
  color: var(--on-secondary-container);
}

/* --------------------------------------------------------------------------
   3. TYPOGRAPHY
   -------------------------------------------------------------------------- */

.display-text {
  letter-spacing: -0.02em;
}

.label-upper {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* --------------------------------------------------------------------------
   4. UTILITIES
   -------------------------------------------------------------------------- */

.shadow-soft {
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
