/* =========================================================
   base.css
   Reset, typography, and default HTML styles.
   ========================================================= */

:root {
  --cream: #fbf7ef;
  --soft-green: #eef6ef;
  --green: #74966f;
  --dark-green: #315a45;
  --text: #263229;
  --muted: #667267;
  --border: #dfe8dc;
  --white: #ffffff;
  --gold: #d6a84b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

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

a {
  color: var(--dark-green);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--green);
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  margin-bottom: 0.25em;
}

h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 0.45em;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5em;
}

p {
  margin-bottom: 1rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  background: var(--white);
}

input:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(116, 150, 111, 0.35);
  outline-offset: 2px;
}

label {
  display: block;
  margin-top: 14px;
  margin-bottom: 6px;
  font-weight: 700;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.skip-link:focus {
  top: 12px;
  left: 12px;
  z-index: 999;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  color: var(--white);
  background: var(--dark-green);
  border-radius: 8px;
}
