/*
  styles-reflections-match.css
  ---------------------------------------------------------------------------
  Purpose: Make contact.html and resources.html visually match reflections.html
  and keep nav font size consistent across pages.
*/

:root {
  --font-serif: 'Spectral', 'Georgia', 'Iowan Old Style', 'Palatino Linotype', 'Times New Roman', serif;
  --text-base: 18px;
  --leading: 1.7;

  --bg-page: #fdfcf9;
  --text: #333;
  --heading: #2e2e2e;
  --nav-bg: #f5efe6;
  --nav-link: #3b3b3b;
  --nav-hover-bg: #ded6cb;
  --nav-border: #ddd;

  --maxw: 800px;
  --r: 6px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-6: 24px; --s-8: 32px; --s-10: 40px;
}

* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  line-height: var(--leading);
  color: var(--text);
  background: var(--bg-page);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

.wrapper {
  max-width: var(--maxw);
  margin: 3rem auto;
  padding: 0 var(--s-4);
}

/* Hero */
header.hero img.hero-media {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
}
.header-text { text-align: center; padding: 2rem 1rem 1rem; }
.header-text h1 { font-size: 2.5rem; margin: 0.5rem 0 0; color: var(--heading); font-weight: 600; }
.header-text p { font-style: italic; margin-top: 0.5rem; color: #555; }

/* Nav */
nav.site-nav {
  background-color: var(--nav-bg);
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--nav-border);
  border-bottom: 1px solid var(--nav-border);
  font-size: 18px; /* explicit: keep nav text same size everywhere */
}
nav.site-nav a {
  margin: 0 1.2rem;
  text-decoration: none;
  color: var(--nav-link);
  padding: 0.3rem 0.5rem;
  border-radius: var(--r);
  transition: background-color 0.2s ease, color 0.2s ease;
  font-weight: 400;           /* Spectral regular */
  letter-spacing: 0.01em;
}
nav.site-nav a:hover,
nav.site-nav a:focus,
nav.site-nav a[aria-current="page"] {
  background-color: var(--nav-hover-bg);
  color: #1f1f1f;
}

/* Headings / lists */
h2 { text-align: center; color: var(--heading); font-weight: 600; }
ul { padding-left: 1.5rem; }
li { margin-bottom: 1rem; }
a { color: var(--nav-link); }
a.underline { text-decoration: underline; }

/* Button */
.button {
  display: inline-block;
  background-color: var(--nav-hover-bg);
  color: #1f1f1f;
  padding: 0.6rem 1.2rem;
  border-radius: var(--r);
  text-decoration: none;
  font-weight: 600;
}
.button:hover { filter: brightness(0.98); }

/* Footer */
footer { text-align: center; font-size: 0.9rem; margin: 4rem 0 2rem; color: #777; }

/* Responsive */
@media (max-width: 600px) {
  .header-text h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
}


/* Responsive nav font size */
@media (max-width: 480px) {
  nav.site-nav { font-size: 15px; }
}


/* Tighter nav on small phones to prevent wrapping (Contact page is longest) */
@media (max-width: 480px) {
  nav.site-nav a {
    margin: 0 0.5rem;        /* was ~1.2rem */
    padding: 0.25rem 0.35rem;
    letter-spacing: 0;       /* tighten slightly */
  }
}
@media (max-width: 400px) {
  nav.site-nav { font-size: 14.5px; }  /* step down a bit more for very narrow screens */
}
@media (max-width: 360px) {
  nav.site-nav { font-size: 14px; }    /* final safeguard for the smallest devices */
}
