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

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

:root {
  /* Brand palette */
  --primary:                    #005a47;
  --primary-container:          #1e745e;
  --secondary:                  #3e6a00;
  --secondary-fixed:            #a1fa2d;
  --secondary-container:        #9ef72a;
  --on-secondary-fixed:         #0f2000;
  --on-secondary-container:     #416e00;

  /* Surface hierarchy */
  --surface:                    #fffcc9;
  --surface-container-low:      #fbf98e;
  --surface-container:          #f6f389;
  --surface-container-high:     #f0ed84;
  --surface-container-highest:  #eae77f;
  --surface-container-lowest:   #ffffff;

  /* Text */
  --on-surface:                 #1d1d00;
  --on-primary:                 #ffffff;
  --on-surface-variant:         #3f4945;

  /* Typography */
  --font-main:   'Plus Jakarta Sans', sans-serif;

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

  /* Spacing */
  --section-py:  4rem;
  --section-px:  2rem;
  --section-px-lg: 6rem;

  /* Navbar height — used for scroll-margin-top on anchor targets */
  --navbar-h: 4.5rem;
}

@media (min-width: 1024px) {
  :root {
    --section-py: 5rem;
  }
}

/* --------------------------------------------------------------------------
   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(--surface);
  color: var(--on-surface);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
}

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;
}

.fwr-highlight {
  color: #8de407;
  font-weight: 900;
  font-style: italic;
  display: inline-block;
  line-height: 1;
  font-size: 1.15em;
}

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

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

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