/* Ali Almashaqbeh - INFOST 320: Flexbox Assignment 2 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { width: 90%; margin: 0 auto; background: #f4f3ee; color: #263d39; font-family: Arial, Helvetica, sans-serif; line-height: 1.65; }
header { padding: 48px 38px 0; background: #153f38; color: #fff; border-top: 8px solid #d8eaa2; }
.eyebrow { color: #d8eaa2; font-size: .75rem; font-weight: bold; letter-spacing: .18em; margin: 0 0 12px; }
#title { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(2rem, 4vw, 3.8rem); line-height: 1.12; letter-spacing: -.04em; margin: 0 0 18px; }
.intro { max-width: 630px; color: #dce7e3; margin: 0 0 30px; }
nav ul { display: flex; flex-wrap: wrap; gap: 6px 12px; list-style: none; padding: 16px 0; margin: 0; border-top: 1px solid #638079; }
nav a { display: inline-block; padding: 8px 14px; border-radius: 4px; font-weight: bold; text-decoration: none; }
/* Five hyperlink states: link, visited, hover, focus, active. */
nav a:link { color: #fff; }
nav a:visited { color: #d8eaa2; }
nav a:hover { background: #d8eaa2; color: #153f38; }
nav a:focus { outline: 3px solid #f6c773; outline-offset: 3px; background: #285b50; color: #fff; }
nav a:active { background: #f6c773; color: #153f38; }
#main { display: flex; flex-direction: row; padding: 36px 0; }
#main > section { min-width: 0; padding: 0 24px; }
.column1 { flex: 1; order: 3; }
.column2 { flex: 1.25; order: 2; border-right: 1px solid #c9d2c9; }
.column3 { flex: 1; order: 1; border-right: 1px solid #c9d2c9; }
h2 { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 2rem; line-height: 1.2; margin: 0 0 20px; color: #153f38; }
#main img { display: block; width: 100%; max-width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 3px; }
.label { color: #547346; font-size: .68rem; font-weight: bold; letter-spacing: .12em; margin: 22px 0 6px; }
h3 { font-size: 1.12rem; line-height: 1.4; margin: 0 0 12px; }
section p { font-size: .95rem; }
.note { border-top: 3px solid #c7d99c; padding-top: 15px; margin-top: 25px; }
.note p { margin-bottom: 0; font-size: .85rem; }
footer { display: flex; flex-direction: row; justify-content: space-between; flex-wrap: wrap; gap: 30px; padding: 32px 38px; background: #e2e8dd; border-top: 1px solid #bccbbd; font-size: .9rem; }
footer > div, footer > address { min-width: 0; }
footer strong { color: #153f38; }
footer p { margin: 5px 0 14px; }
footer small { font-size: .75rem; }
address { font-style: normal; }
footer a { color: #234f43; overflow-wrap: anywhere; }
footer a:hover { color: #000; }
a:focus-visible, summary:focus-visible { outline: 3px solid #896114; outline-offset: 4px; }
.social-links { display: flex; gap: 10px; margin: 12px 0 18px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid #b4c4b5; border-radius: 50%; background: #fff; }
.social-links img { display: block; }
summary { cursor: pointer; }
/* Below 1000px, the page uses the full viewport width. */
@media (max-width: 999px) { body { width: 100%; } }
/* Below 700px, stack the columns and remove all column borders/padding. */
@media (max-width: 699px) {
  header { padding: 30px 20px 0; }
  nav ul { gap: 4px; }
  nav a { padding: 8px 10px; font-size: .9rem; }
  #main { flex-direction: column; padding: 26px 20px; gap: 36px; }
  #main > section { padding: 0; border: 0; flex: auto; }
  h2 { margin-bottom: 15px; }
  footer { padding: 26px 20px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
