:root{
    --color-main: rgba(0,62,107,1);
    --color-bg: #fff;
    --color-txt: #000000;
}

/* nunito-sans-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 300;
  src: url('../font/nunito-sans-v19-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* nunito-sans-600 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Nunito Sans';
  font-style: normal;
  font-weight: 600;
  src: url('../font/nunito-sans-v19-latin-600.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}



/* -------------------------------------------------
   Base & utilities
   ------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-family: 'Nunito Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: var(--color-txt);
    font-weight: 300;
    background-color: var(--color-bg);
}

/* -------------------------------------------------
   Header
   ------------------------------------------------- */
.header {
    display: flex;
    padding: 2rem 1rem;
    background-color: var(--color-main);
    color: #fff;
}

.header__container{
    flex: 2;
    text-align: center;
}

.header__image{
    width: 100%;
    max-width: 100px;
    aspect-ratio: keep;
    height: auto;
}

.header__title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: .4rem;
}

.header__subtitle {
    font-size: 1rem;
    opacity: .85;
}

/* -------------------------------------------------
   Journals block
   ------------------------------------------------- */
.journals {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* -------------------------------------------------
   Journal (block) & its elements
   ------------------------------------------------- */
.journal {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,.1);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}

.journal:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 12px rgba(0,0,0,.15);
}

/* Logo – element */
.journal__logo {
    width: 95%;
    max-height: 125px;
    object-fit: scale-down;
    padding: 1rem;
    height: auto;
    display: block;
}

/* Link that wraps the logo – element */
.journal__link {
    display: block;
}

/* Content wrapper – element */
.journal__content {
    padding: 1rem;
    flex-grow: 1;
}

/* Title – element */
.journal__title {
    color:var(--color-main);
    font-size: 1.4rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

/* Title link – element */
.journal__title-link {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}

.journal__title-link:hover,
.journal__title-link:focus {
    color: #004d7a;
}

/* Description – element */
.journal__description {
    font-size: .95rem;
    color: #555;
}

/* -------------------------------------------------
   Footer
   ------------------------------------------------- */
.footer {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #004d7a;
    color: #fff;
    margin-top: 4rem;
}

.footer__text {
    font-size: .9rem;
}

/* -------------------------------------------------
   Responsive tweaks (optional)
   ------------------------------------------------- */
@media (max-width: 480px) {
    .header__title { font-size: 1.8rem; }
    .journal__title { font-size: 1.2rem; }
}