/* index.css */
:root {
  --bg: #f7f7f7;
  --text: #222;
  --accent: rgba(54, 21, 161);
  --nav-bg: #ffffff;
  --border: #e0e0e0;
  --footer-bg: rgba(0, 0, 0, 0.8);
  --pb-base-font-family: "Noto Sans Hebrew", 'Roboto', 'Noto', sans-serif;
  --pb-serif-font-family: "SBL BLit", "Noto Serif Hebrew", "Junicode", Georgia, "Times New Roman", serif;
  --font: var(--pb-base-font-family); /* system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; */
}

/* make page fill viewport vertically */
html, body {
  height: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font);
  color: #ffffff;
  background:
    linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
    url('../images/Bodleian-Library-MS-Kennicott-1_00022_fol-9v_reduced_c.jpg') right top / cover no-repeat;
  background-attachment: scroll; /* mai 'fixed' su Safari/iOS */
  display: flex;
  flex-direction: column;
}

.page {
  flex: 1;  /* make main content fill remaining height and push footer down */
}

.content {
  min-height: 100%;
  display: flex;
  align-items: center;      /* vertical centering */
  justify-content: center;  /* optional: horizontal centering of the block */
}

.content-layout {
  display: flex;
  gap: 4rem;            /* space between title and text */
  align-items: center;
  width: min(100% - 4rem, 110rem);
  margin: 0 auto;
  padding: 0 2rem;
}

/* each side roughly half the width */
.title,
.intro {
  flex: 1 1 0;
  min-width: 0;
}

/* option: make title column a bit narrower */
.title {
  flex: 0 0 45%;
}

.intro {
  flex: 0 0 55%;
}

/* tidy headings inside the left column */
.title h1 {
  margin: 0 0 0.5rem;
  font-size: 4rem;
}

.title h2 {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 400;
}

.content {
  padding: 3rem 4rem 3rem;
}

.intro p {
  font-size: 1.3rem;
  line-height: 1.3;
}

.intro p + p {
  margin-top: 0.9rem;
}

.primary-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.6rem;
  background: white;
  color: black;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
}

.primary-button:hover {
  background: #08488a;
  color: white;
}

.site-footer {
  background: var(--footer-bg);
  padding: 1rem 2rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  flex-direction: column;
  gap: 0.75rem;
}

.logo-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;  /* vertically center all logos in the row */
    gap: 2.5rem;
}

.logo-row img {
    max-height: 70px;
    width: auto;
    flex: 0 0 auto;
}

.footer-separator {
    width: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 0.5rem auto; 
}

/* text left, icons right inside license */
.site-footer .license {
  display: flex;
  justify-content: space-between; /* left vs right */
  align-items: center;
}

.site-footer .license span {
  display: inline-block;
}

/* group of CC icons */
.site-footer .license .license-icons {
  display: flex;
  gap: 0.2rem;
}

.site-footer .license .license-icons img {
  max-width: 2em;
  max-height: 2em;
}

.site-footer a {
  color: grey;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* Basic mobile adaptation */
@media (max-width: 820px) {

  body {
      margin: 0;
      background:
        linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)),
        url('../images/Bodleian-Library-MS-Kennicott-1_00022_fol-9v_reduced_portrait.jpg') top / cover no-repeat;
      background-attachment: scroll; /* mai 'fixed' su Safari/iOS */
      display: flex;
      flex-direction: column;
  }
  
  .page {
      margin: 0;
      padding: 0;
  }
  
  .page .content {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.5rem 0.75rem;
    box-sizing: border-box;
  }
  
  .content-layout {
    flex-direction: column;
    align-items: flex-start;
    max-width: 100%;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
  }

  .title,
  .intro {
    flex: 0 0 auto;
    width: 100%;               /* each block spans full width */
  }

  .title h1 {
    font-size: 2.2rem;         /* smaller headline on mobile */
  }

  .title h2 {
    font-size: 1.3rem;
  }
  
  .intro {
      text-align: left;
  }
  
  .intro p {
    font-size: 1.1rem;         /* slightly smaller body text */
    max-width: 100%;
  }

  .primary-button {
    display: block;
    margin: 1.5rem auto 0;
    font-size: 1.2rem;
    white-space: nowrap;
    text-align: center;
  }
  
/*
  .primary-button {
    display: block;
    width: 50%;
    text-align: center;
    margin: 1rem auto 0 auto;
    font-size: 1.2rem;
  }

  /* footer: stack logos above license text on small screens */
  .site-footer {
    align-items: flex-start;
  }

  .logo-row {
    flex-wrap: wrap;
  }

  .site-footer .license {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.25rem;
  }

  .site-footer .license .license-icons {
    align-self: center;
    text-align: center;
  }
}

@font-face {
    font-family: "Noto Sans Hebrew";
    src: url("../fonts/NotoSansHebrew-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Noto Sans Hebrew";
    src: url("../fonts/NotoSansHebrew-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Noto Sans Hebrew";
    src: url("../fonts/NotoSansHebrew-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Noto Serif Hebrew";
    src: url("../fonts/NotoSerifHebrew-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "Noto Serif Hebrew";
    src: url("../fonts/NotoSerifHebrew-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Noto Serif Hebrew";
    src: url("../fonts/NotoSerifHebrew-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "SBL BLit";
    src: url("../fonts/SBL_BLit.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
}