/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-text);
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape on iPhone */
}

body {
  background-image: url('../images/desert_bg.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: var(--space-xxl); /* Creates space between Nav, Main, and Footer */
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

h1 { font-size: var(--font-size-xxl); }
h2 { font-size: var(--font-size-xl); }
h3 { font-size: var(--font-size-lg); }

p {
  margin-bottom: var(--space-md);
  max-width: 70ch; /* Comfortable reading length */
}

a {
  color: var(--color-link);
  text-decoration: none;
  min-height: var(--touch-target-size); /* Accessibility */
  display: inline-block; /* Ensure min-height applies if needed, though inline usually sufficient for text links */
}

a:hover {
  text-decoration: underline;
}

a:focus, button:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

ul, ol {
  margin-bottom: var(--space-md);
  padding-left: var(--space-lg);
}

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

/* Structure */
main {
  flex: 1; /* Pushes footer down if content is short */
}
