/* ============================================== */
/* ============= GLOBAL VARIABLES =============== */
/* ============================================== */
:root {
  /* Set fonts */
  --sans-font:
    "Avenir Next", Avenir, "Nimbus Sans L", Roboto, "Noto Sans", "Segoe UI",
    ui-sans-serif, sans-serif;
  --serif-font: ui-serif, Caladea, Georgia, serif;

  /* Set colors */
  --bg: #fff;
  --accent-bg: #d2e6e64b;
  --text: #212121;
  --text-light: #585858;
  --border: #898ea4;
  --accent-lightest: rgba(255, 166, 0, 0.4);
  --accent-light: rgba(255, 166, 0, 0.6);
  --accent: #0d47a1;
  --h1-color: #000;
  --h2-color: #771d3b;
  --h3-color: #855600;

  /* Miscellaneous */
  --standard-border-radius: 5px;
  --border-width: 1px;

  /* Image sizes */
  --img-md: 5rem;
}

/* ============================================== */
/* ================= PRELIMINARIES =================== */
/* ============================================== */
/* Include margin and padding in height and width */
*,
::after,
::before {
  box-sizing: border-box;
}

html {
  font-family: var(--sans-font);
}

/* ============================================== */
/* =========== HEADINGS AND PARAGRAPH =========== */
/* ============================================== */
h1 {
  font-size: 3rem;
  color: var(--h1-color);
}

h2 {
  font-size: 2.6rem;
  margin-top: 3rem;
  color: var(--h2-color);
}

h3 {
  font-size: 2rem;
  margin-top: 3rem;
  color: var(--h3-color);
}

h4 {
  font-size: 1.44rem;
}

h5 {
  font-size: 1.15rem;
}

h6 {
  font-size: 0.96rem;
}

p {
  margin: 1.5rem 0;
}

/* Prevent long strings from overflowing container */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

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

/* ============================================== */
/* ======= HEADINGS - MOBILE ADJUSTMENTS ======== */
/* ============================================== */
@media (max-width: 720px) {
  h1 {
    font-size: 2.6rem;
  }

  h2 {
    font-size: 2.1rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.25rem;
  }
}

/* ============================================== */
/* ================= BODY ======================= */
/* ============================================== */
body {
  color: var(--text);
  background-color: var(--bg);
  font-size: 1.15rem;
  line-height: 1.5;
  display: grid;
  grid-template-columns: 1fr min(45rem, 90%) 1fr;
  margin: 0;
}
body > * {
  grid-column: 2;
}

/* ============================================== */
/* ================== LINKS ==================== */
/* ============================================== */
a,
a:visited {
  color: var(--accent);
  background-color: var(--bg);
}

a:hover {
  text-decoration: none;
}

/* ============================================== */
/* ================== HEADER ==================== */
/* ============================================== */
/* Make the header bg full width, but the content inline with body */
body > header {
  line-height: 1.2;
  background-color: var(--bg);
  background-image: radial-gradient(
    circle,
    var(--accent-lightest) 10%,
    transparent 1px
  );
  background-size: 15px 15px;

  border-bottom: var(--border-width) solid var(--border);
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr min(45rem, 90%) 1fr;
}

header > * {
  grid-column: 2;
}

/* ============================================== */
/* ================ NAVIGATION ================== */
/* ============================================== */
header nav {
  padding: 0 0 0 0;
}

header nav ul {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style-type: none;
  margin: 0;
  padding: 0;
}

header nav ul li {
  display: inline-block;
  vertical-align: middle;
}

header nav a {
  margin: 0.5rem 0.5rem;
  border: var(--border-width) solid var(--border);
  border-radius: var(--standard-border-radius);
  color: var(--text);
  display: inline-block;
  padding: 0 1rem;
  text-decoration: none;
}

header nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================== */
/* ====== NAVIGATION - MOBILE ADJUSTMENTS ======= */
/* ============================================== */
@media (max-width: 720px) {
  header nav a {
    border: none;
    padding: 0;
    text-decoration: underline;
    line-height: 1;
  }
}

/* ============================================== */
/* ================= FOOTER ==================== */
/* ============================================== */
body > footer {
  margin-top: 4rem;
  padding: 2rem 1rem 1.5rem 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
  text-align: center;
  border-top: var(--border-width) solid var(--border);
}

body > footer img {
  max-width: var(--img-md);
}

/* ============================================== */
/* ============ MISC BODY ELEMENTS ============== */
/* ============================================== */
hr {
  border: none;
  height: var(--border-width);
  background: var(--border);
  margin: 1rem auto;
}

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--standard-border-radius);
}

blockquote {
  margin-inline-start: 1.5rem;
  margin-inline-end: 0;
  margin-block: 2rem;
  padding: 0.001rem 1rem;
  border-inline-start: 0.35rem solid var(--accent-light);
  color: var(--text-light);
  font-style: italic;
}

/* ============================================== */
/* ========  CUSTOM CLASSES - HEADER ============ */
/* ============================================== */
body > header .title-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1%;
  margin-bottom: 1rem;
}

.title {
  font-family: var(--serif-font);
  font-size: 4rem;
  flex-shrink: 2;
}

.logo {
  max-width: var(--img-md);
  transform: rotate(5deg);
  padding-top: 1rem;
}

.switch-lang {
  margin-top: 1rem;
  text-align: right;
}

.donate-button,
.donate-button:visited {
  padding: 1rem;
  background-color: #a7e0d7;
  text-decoration: none;
  /* font-weight: bold; */
}

/* ============================================== */
/* ========  CUSTOM CLASSES - FOOTER ============ */
/* ============================================== */
.contact-us {
  display: flex;
  column-gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-bottom: 1rem;
}

.contact-us__title {
  font-size: 3rem;
  color: black;
}

footer .links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
}

/* ============================================== */
/* ===== CUSTOM CLASSES - ANNOUNCEMENTs ==== */
/* ============================================== */
.announcement {
  display: flex;
  justify-content: center;
  align-items: center;
  clip-path: shape(
    from 0 0,
    curve to 0 100% with 2rem 50%,
    curve to 40% calc(100% - 1rem) with 25% calc(100% - 2rem),
    smooth to 62.5% calc(100% - 1rem),
    smooth to 100% calc(100% - 1.5rem),
    curve to 100% 0 with calc(100% - 2rem) 50%,
    hline to 0
  );
  background-color: #ffb6b6;
  padding: 1rem 2rem 2rem;
  margin: 0;
  font-size: 2rem;
}

/* ============================================== */
/* ===== CUSTOM CLASSES - MOBILE ADJUSTMENTS ==== */
/* ============================================== */
@media (max-width: 720px) {
  .title {
    font-size: 3.5rem;
  }
  .contact-us__title {
    font-size: 2rem;
  }
  .announcement {
    font-size: 1.5rem;
  }
  .donate-button,
  .donate-button:visited {
    padding: 0.5rem 0.1rem;
  }
}
