/* --------------------------------------------------
   GLOBAL RESET & BASE
-------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
}

body {
  font-family: system-ui, Arial, Helvetica, sans-serif;
  width: 100%;
  margin: 0 auto;
  padding: 0;
  padding-bottom: 2.4rem; /* footer spacing */
  overflow-x: hidden;
  background: linear-gradient(to bottom, #0d0d0d 0%, #1a1a1a 100%);
  color: #eaeaea;
  line-height: 1.4;
}

.site-title {
  font-family: "Inter", sans-serif;
  font-weight: 600;
  text-align: center;
  color: #eaeaea;
  margin: 0;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  letter-spacing: 0.5px;
}

.site-title .tagline {
  display: block;
  margin-top: 0.6rem;
  font-size: clamp(1.2rem, 1.4vw, 1.4rem);
  font-weight: 300;
  color: #ff0;
}

/* --------------------------------------------------
   LINKS (GLOBAL)
-------------------------------------------------- */
a {text-decoration: none; color: inherit;}
a:hover { color: #a00; }
a.blue { color: #f0f; }
a.blue:hover { color: #a00; }

/* --------------------------------------------------
   TYPOGRAPHY
-------------------------------------------------- */

p {
  font-size: clamp(0.85rem, 0.9vw, 1.05rem);
  line-height: 1.32;
  color: #fff;
}

p.date {
  font-size: 0.85rem;
  color: #8f8;
  text-align: right;
  margin-bottom: 0.4rem;
}

h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-align: center;
  color: #ff0;  /* softer, richer yellow #f6e65c;*/
  padding: .1rem 0;
  letter-spacing: 0.5px;
  font-size: clamp(1.3rem, 1.8vw, 2.2rem);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35); /* improves clarity on brown */
}

@media (max-width: 768px) {
  h1 {padding: 0.2rem 0;}}

/* --------------------------------------------------
   GRID WRAPPER
-------------------------------------------------- */
.wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .1rem;
  padding: .2rem;
  margin: 0 auto;
}

/* --------------------------------------------------
   CONTENT BOXES (CARDS)
-------------------------------------------------- */
.box {
  background-color: #900;
  padding: 1rem;
  border: 5px solid #900;
  position: relative;
  /* next 2 are tests*/
  display: flex;
  flex-direction: column;
  /*display: block;*/
  border-radius: 5px;
  transition: border-color .5s ease; 
  /*test*/
  height:100%;
}

.box:hover {
  border-color: #ff0;
  cursor: pointer;
}

.card-link {
    display: block;
    width: fit-content;

    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.1rem;

    padding: 0.2rem 0.4rem;
    border: 2px solid #bbb;
    background-color: #00a;
    border-radius: 4px;
    color: #fff;
}

.card-link p {
    margin: 0;
}

.box-link {
   display: flex;
  color: inherit;
  text-decoration: none;
  }
  
  .box-link:hover {color: inherit;}

  /* Style the card titles consistently, regardless of h2/h3 */
.box-title {
  font-size: 1.1em;
  font-weight: 400;
  text-align: center;
  margin: 0.6rem 0;
  color: #ff0;
  line-height: 1.2;
}


/* --------------------------------------------------
   IMAGES & FRAME EFFECTS
-------------------------------------------------- */

img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid black;
 }

.btn-frame {
  display: inline-block;
  border-radius: 6px;
  border: 3px solid #aaa;
  /* Subtle bevel using dual shadows */
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,  /* top highlight */
    0 -1px 0 rgba(0, 0, 0, 0.15) inset,      /* bottom shade */
    0 0 4px rgba(0, 0, 0, 0.25);             /* outer soft shadow */
  padding: 0px; /* “frame” thickness */
}



/* --------------------------------------------------
   HEADER & MENU
-------------------------------------------------- */
.header-container {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  min-height: 240px;
  gap: 5px;
  width: 100%;
  align-items: center;
  position: relative;
  background: linear-gradient(to bottom, #0d0d0d 0%, #1a1a1a 100%);
  color: #eaeaea;
  margin-top: 0;	
}

@media (max-width: 768px) {.header-container {min-height: 0;}}

.header-column {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 3px;
}

@media (max-width: 768px) {
  .header-column {
    padding-top: 0;
    margin-top: -1rem;
  }
}

.header-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10000;
}

.header-menu a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: rgba(255,255,255,1);
  backdrop-filter: blur(6px);
  border-radius: 10px;
  color: #00d;
  text-decoration: none;
}

.header-menu svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.header-menu a:hover {
  color: #f00;
  background: rgba(255, 255, 255, 1);
  transform: scale(1.05);
  transition: 0.2s ease;
}


/* --------------------------------------------------
   MOBILE HEADER
-------------------------------------------------- */
@media (max-width: 768px) {
  .header-container {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .header-column p {
    font-size: clamp(1.8rem, 6vw, 4rem);
    line-height: 1.2;
    padding: 0 1rem;
    white-space: normal;
  }

  .logo-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    justify-self: center;
	  }

  .logo-wrapper img {
    margin: 0 auto;
    display: block;
  }
}


/* new bits */
@media (hover: none) {
  .box:hover,
  .box:hover img,
  .hover-container:hover img {
    transform: none;
  }
}