/*Developed by Iris Tapley, October 15th 2026. If, while altering, any questions arise, please contact me at will!*/
/*This document was made with the intention of popping up a lightweight & portable WRCC website while complying to modern web style conventions.*/

/*Font query*/
@font-face {
  font-family: 'Libre Franklin';
  src: url('media/fonts/LibreFranklin-VariableFont_wght.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}


/*Global variables*/
:root {
  /*Colour palette*/
  --primary-color: #31377e;     
  --primary-hover: #b30800;    /*hyperlink hover*/
  --bg-dark: #333333;          /*banner background*/
  --bg-light: #f7f7f7;         /*body background*/
  --text-main: #1e293b;        /*text colour*/
  --text-muted: #64748b;       /*soft text profile*/
  --border-clean:  #4443b8;     /*hairline divider*/

  /*Text structure */
  --reading-width: 1250px;       
  --font-sans: "Libre Franklin", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  
  --fs-hero-title: clamp(2.25rem, 5vw, 3.5rem);
  --fs-section-title: clamp(1.5rem, 3.5vw, 2rem);
  --fs-body: 1.125rem;         
}


/*Setting and forcing styles*/
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}


/*Headers*/
h1, h2, h3 {
  color: #000000;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}


/*Hyperlinks*/
a {
  color: var(--primary-color);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}


/*Single-column container*/
.stack-container {
  width: 100%;
  max-width: var(--reading-width);
  margin-right: auto;
  margin-left: auto;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
}


/*Navigation bar*/
.site-header {
  background-color: --bg-light;
  border-bottom: 1px solid var(--primary-color);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 75px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-hover);
}

.nav-logo {
    display: inline-block;
    height: 100px;
    width: 143px;
    background-image: url('media/WRCC-Logos/MainSmall.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}


/*Hero banner*/
.hero-stack {
  background-color: var(--bg-dark);
  color: #ffffff;
  padding: clamp(4rem, 10vw, 7rem) 0;
  text-align: center;
}

.hero-stack h1 {
  color: #ffffff;
  font-size: var(--fs-hero-title);
  margin-bottom: 1.5rem;
}

.hero-stack p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}


/*Site content feed*/
.feed-section {
  padding: 5rem 0;
}

.feed-section h2 {
  font-size: var(--fs-section-title);
  margin-bottom: 2.5rem;
  text-align: center;
}

.feed-item {
  display: block;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border-clean);
}

.feed-item:first-of-type {
  padding-top: 0;
}

.feed-item:last-child {
  border-bottom: none; 
}

.item-meta {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.item-title {
  font-size: 1.45rem;
  margin-bottom: 0.75rem;
}

.item-title a {
  color: #000000;
  text-decoration: none;
}

.item-title a:hover {
  color: var(--primary-hover);
}

.item-excerpt {
  font-size: var(--fs-body);
  color: var(--text-main);
}


/*Members Gallery*/
.member-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.member-title {
    font-size: var(--fs-section-title);
    margin-bottom: 2.5rem;
    text-align: center;
}

.member-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 30px;
    align-items: center;
}

.member-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 120px;
  padding: 15px;
  background-color: --bg-light;
  border-radius: 8px;
}

.member-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;  
}


/*Footer*/
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.75rem;
    padding-left: 0;
}

.footer-links img {
    display:block;
}


/*Heavy button*/
.btn-action {
  display: inline-block;
  background-color: var(--primary-color);
  color: #ffffff !important; 
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  padding: 0.85rem 2rem;
  border-radius: 2px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: background-color 0.2s ease, transform 0.2s ease;
}


.btn-action:hover {
  background-color: var(--primary-hover);
  transform: translateY(-1px);
}

/*Mobile adjustments*/
@media (max-width: 520px) {
.nav-wrapper {
    flex-direction: column;
    justify-content: center;
    display: flex;
    gap: 1rem;
    height: 150px;          
    padding: 0.2rem 0;   
  }

.nav-links {
    gap: 2rem;
    justify-content: center;
}

 .nav-links a {
     font-size: 1rem;
     letter-spacing: 0.05em;
 }

 .member-grid {
     flex-direction: column;
     width: max-content;
     max-width: 90%;
     margin: 0 auto;
 }

 .member-card {
     width: 100px;
     height: 100px
 }
}


