/* =========================================
   VARIABLES
   ========================================= */

:root {

  --background: #f7f8fa;
  --surface: #ffffff;

  --text: #2f343b;
  --muted: #66717f;

  --blue: #287caf;
  --cyan: #4bb6ca;
  --purple: #7453bb;
  --green: #58af4c;

  --border: #e5e8ec;

  --max-width: 1450px;
}


/* =========================================
   BASIC RESET
   ========================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  background: var(--background);

  color: var(--text);

  line-height: 1.6;
}


/* =========================================
   HEADER
   ========================================= */

.site-header {
  background: #ffffff;

  border-bottom: 1px solid var(--border);
}


/*
   Header artwork

   The image stops growing beyond 1400px,
   which prevents it becoming enormous on
   an ultrawide monitor.
*/

.header-art {
  display: flex;
  justify-content: center;

  width: 100%;

  background: #ffffff;
}


.header-home-link {
  display: flex;
  justify-content: center;

  width: 100%;

  text-decoration: none;
}


.header-image {
  display: block;

  width: 100%;
  max-width: 1400px;

  height: auto;
}


/* =========================================
   NAVIGATION
   ========================================= */

.main-nav {
  max-width: var(--max-width);

  margin: 0 auto;

  padding: 1rem 2rem;

  display: flex;

  justify-content: center;
  align-items: center;

  flex-wrap: wrap;

  gap: 1rem 2.5rem;

  background: #ffffff;
}


.main-nav a {
  color: var(--text);

  text-decoration: none;

  font-weight: 600;

  transition:
    color 0.2s ease,
    transform 0.2s ease;
}


.main-nav a:hover {
  color: var(--blue);

  transform: translateY(-1px);
}






/* =========================================
   DEVELOPMENT NOTICE
   ========================================= */

.development-notice {
  max-width: var(--max-width);

  margin: 1.5rem auto 0;

  padding: 1rem 1.5rem;

  background: #fff8d8;

  border: 1px solid #eadb8b;
  border-left: 5px solid #d8b83f;

  border-radius: 10px;

  color: #55491f;
}

.development-notice strong {
  display: block;

  margin-bottom: 0.25rem;

  font-size: 1.05rem;
}

.development-notice p {
  margin: 0;

  color: #6a5d2c;
}


/* =========================================
   MAIN PAGE LAYOUT
   ========================================= */

.page-layout {
  max-width: var(--max-width);

  margin: 2.5rem auto;

  padding: 0 2rem;

  display: grid;

  grid-template-columns:
    minmax(0, 3fr)
    minmax(280px, 1fr);

  gap: 2rem;
}


/* Important for grid overflow */

.main-column,
.sidebar {
  min-width: 0;
}


/* =========================================
   CONTENT CARDS
   ========================================= */

.content-card,
.side-card {
  background: var(--surface);

  border: 1px solid var(--border);

  border-radius: 16px;

  padding: 2rem;

  margin-bottom: 2rem;
}


/* =========================================
   HEADINGS
   ========================================= */

.content-card h1,
.content-card h2,
.content-card h3,
.side-card h2 {
  color: var(--text);
}


.content-card h1,
.content-card h2,
.side-card h2 {
  margin-top: 0;
}


.content-card h1 {
  margin-bottom: 1.5rem;

  font-size: clamp(
    2rem,
    4vw,
    3.2rem
  );

  line-height: 1.15;
}


.content-card h2,
.side-card h2 {
  font-size: 1.6rem;
}


.activity h3 {
  margin-top: 0;

  font-size: 1.1rem;
}


/* =========================================
   PARAGRAPHS
   ========================================= */

.content-card p,
.side-card p {
  color: var(--muted);
}


/* =========================================
   ACTIVITIES
   ========================================= */

.activity-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 1.25rem;

  margin-top: 1.5rem;
}


.activity {
  border-top: 4px solid var(--blue);

  padding-top: 1rem;
}


.activity:nth-child(2) {
  border-color: var(--green);
}


.activity:nth-child(3) {
  border-color: var(--purple);
}


.read-more {
  display: inline-block;
  margin-top: 0.5rem;

  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}


.read-more:hover {
  text-decoration: underline;
}

/* =========================================
   NEWS ARTICLES
   ========================================= */

.news-header {
  margin-bottom: 1.5rem;
}

.news-header h2 {
  margin-bottom: 0.35rem;
  font-size: 2rem;
  line-height: 1.2;
}

.news-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;

  color: var(--muted);
  font-size: 0.9rem;
}

.news-meta strong {
  color: var(--text);
}

.news-meta-separator {
  color: var(--blue);
}

.news-content {
  max-width: 850px;
}

.news-content p {
  font-size: 1.05rem;
}

.news-signoff {
  margin-top: 2rem;
  font-weight: 600;
  color: var(--text) !important;
}

/* =========================================
   SIDEBAR
   ========================================= */

.accent-card {
  background:
    linear-gradient(
      135deg,
      rgba(40, 124, 175, 0.08),
      rgba(116, 83, 187, 0.06)
    );
}

.sidebar {
  align-self: start;
}


/* =========================================
   FOOTER
   ========================================= */

.site-footer {
  margin-top: 4rem;

  background: #303842;

  color: #ffffff;

  padding:
    2.5rem
    max(
      2rem,
      calc((100vw - var(--max-width)) / 2)
    );

  display: flex;

  justify-content: space-between;

  gap: 3rem;
}


.site-footer strong {
  color: #ffffff;
}


.site-footer p {
  margin:
    0.3rem
    0
    0;

  color: #d6dce3;
}


.site-footer a {
  color: #ffffff;
}


/* =========================================
   TABLET
   ========================================= */

@media (max-width: 1000px) {

  .page-layout {
    grid-template-columns:
      minmax(0, 2fr)
      minmax(240px, 1fr);
  }

}


/* =========================================
   MOBILE / SMALL SCREENS
   ========================================= */

@media (max-width: 850px) {

  .main-nav {
    gap: 0.8rem 1.4rem;

    padding: 1rem;
  }


  .page-layout {
    grid-template-columns: 1fr;

    padding: 0 1rem;

    margin-top: 1.5rem;
  }


  .activity-grid {
    grid-template-columns: 1fr;
  }


  .content-card,
  .side-card {
    padding: 1.5rem;
  }


  .site-footer {
    flex-direction: column;
  }

}


/* =========================================
   VERY SMALL PHONES
   ========================================= */

@media (max-width: 500px) {

  .main-nav {
    font-size: 0.9rem;

    gap: 0.6rem 1rem;
  }


  .content-card h1 {
    font-size: 2rem;
  }


  .content-card {
    padding: 1.25rem;
  }

}