@charset "utf-8";
/* CSS Document */

@font-face {
  font-family: Strawford;
  src: url("/fonts/strawford-regular-webfont.woff");
}

@font-face {
  font-family: Swash;
  src: url("/fonts/BerkshireSwash-Regular.woff");
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Strawford', sans-serif;
  background-image: linear-gradient(to right, #003B6F, #0E79B2, #003B6F);
  color: #FBFEF9; /* Baby Powder */
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Swash', sans-serif;
}

h1 {
    font-size: 2em;
}

img {
  border-radius: 5px;
}

.important {
    background-color: #003B6F; /* Tardis Blue */
    color: #FBFEF9; /* Baby Powder */
    font-weight: bold;
    font-style: italic;
    padding: 10px 10px;
    border: 4px solid red;
    border-radius: 5px;
    text-align: center;
}

/* Sections */
section {
  min-height: 100vh;
  background-size: cover;
  background-attachment: fixed;
  display: flex;
  justify-content: center;
  align-items: center;
}

section p,h1,h2,h3,h4,h5,h6,ul,ol {
  text-align: left;
  font-size: 1.5em;
}

.text-section {
  width: 85%;
  margin: 0 auto;
  text-align: center;
}

.text-section img {
  max-width: 100%;
  height: 100%;
  padding: 20px;
  object-fit: contain;  /* alternative, cover */
}

.text-section a {
    color: #FBFEF9;  /* Baby Powder */
}

.text-section a:hover {
    color: #F39237;  /* Deep Saffron */
}

/* 9-grid */
.grid-9 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 20px 0;
}

.grid-item {
    padding: 1rem;
    border: 1px solid #F39237;  /* Deep Saffron */
    border-radius: 5px;
    text-align: center;
}

.grid-item img {
    max-width: 256px;
    max-height: 256px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 0.5rem;
}

.grid-item h3 {
    margin: 0.5rem 0;
    font-size: 1.1rem;
}

.grid-item .desc {
    font-size: 0.9rem;
    color: #FBFEF9; /* Baby Powder */
}

/* Mobile: stack all items */
@media (max-width: 768px) {
    .grid-9 {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 768px) {
  .text-section {
    width: 95%;
  }
}