/* =========================================================
   Luttrell House Creche - shared stylesheet for every page.
   To change colours or fonts, edit ONLY the values in the
   "SITE COLOURS AND FONTS" block just below.
   ========================================================= */

/* ---------- SITE COLOURS AND FONTS ---------- */
:root {
  --blue: cornflowerblue;      /* headings, links, menu buttons */
  --blue-light: #a1c1d8;       /* menu button for the current page / on hover */
  --paper: floralwhite;        /* background of the menu and page content */
  --footer: #db0369;           /* pink footer bar */
  --form-bg: #baddf8;          /* background of the callback form */
  --notice-bg: navajowhite;    /* notice board background */
  --text: #222;                /* normal text */
  --heading-font: soopafresh, Arial, sans-serif;
  --body-font: Lato, Arial, sans-serif;
}
/* ---------- END OF COLOURS AND FONTS ---------- */

@font-face {
  font-family: "soopafresh";
  src: url("assets/fonts/soopafre.woff2") format("woff2"),
       url("assets/fonts/soopafre.woff") format("woff");
  font-display: swap;
}

* { box-sizing: border-box; }

html { background: #f3e9d6 url("assets/images/bg.jpg") repeat-y top center; }

body {
  max-width: 800px;
  margin: 1rem auto 0;
  color: var(--text);
  font-family: var(--body-font);
  line-height: 1.35;
  display: grid;
  grid-template-columns: 2fr 7fr;
  grid-template-areas: "header header" "nav main" "footer footer";
}

h1, h2, h3, h4 {
  font-family: var(--heading-font);
  font-weight: normal;
  color: var(--blue);
  margin: 0 0 1rem;
}
h1 { font-size: 1.5rem; }
h2, h4 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }
a { color: var(--blue); }
strong { font-weight: bold; }
hr { border: 0; border-top: 1px solid #ccc; margin: 1rem 0; }
img { max-width: 100%; height: auto; display: block; }

/* Header banner */
.site-header { grid-area: header; }
.site-header img { width: 100%; }

/* Side menu */
.sidebar {
  grid-area: nav;
  text-align: center;
  padding: 1rem;
  word-break: break-word;
  background: var(--paper) url("assets/images/navBg.gif") right bottom no-repeat;
  padding-bottom: 140px;
}
.sidebar p { margin-bottom: .5rem; font-size: .9rem; }
.menu { list-style: none; margin: 0 0 1rem; padding: 0; }
.menu li { margin-bottom: 2px; }
.menu a {
  display: block;
  background: var(--blue);
  color: #000;
  padding: .5rem;
  border-radius: 1rem;
  font-family: var(--heading-font);
  text-decoration: none;
}
.menu a:hover, .menu a[aria-current="page"] { background: var(--blue-light); }
.menu-toggle { display: none; }

/* Page content */
main {
  grid-area: main;
  background: var(--paper);
  padding: 1rem 2rem 1rem 1rem;
  min-width: 0;
}
main img { width: 100%; margin: 1rem 0; }
.resumeBg { background: var(--paper) url("assets/images/resumeBg.png") no-repeat center bottom / contain; min-height: 600px; }
.times { margin: 0 0 1rem 2rem; padding: 0; }
.times li { list-style: square; line-height: 1.5rem; }
.docs li { margin-bottom: .6rem; }
.map { width: 100%; height: 450px; border: 0; }
.hidden { display: none !important; }

/* Notice board (yellow sticky notes) */
.noticeBoard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--notice-bg);
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.noticeBoardTitle {
  width: 100%;
  font-size: 2.5rem;
  text-align: center;
  margin: .5rem 0 0;
  color: orange;
  text-shadow: 2px 2px #333;
}
.postIt {
  background: url("assets/images/postIt.png") no-repeat center / 300px 300px;
  width: 280px;
  height: 300px;
  padding-top: 4rem;
  text-align: center;
}
.postIt * { transform: rotate(-3deg); margin-bottom: .5rem; }
.postIt a { color: red; }

/* Callback form */
.contactForm { background: var(--form-bg); padding: 1rem; }
.contactForm label { display: block; font-family: var(--heading-font); color: var(--blue); margin-bottom: .4rem; }
.contactForm input, .contactForm select, .contactForm textarea {
  width: 100%;
  font: inherit;
  font-size: .95rem;
  padding: .5rem 1rem;
  border: 1px solid var(--blue);
  background: #fff;
  margin-bottom: 1.2rem;
}
.contactForm textarea { min-height: 10rem; resize: vertical; }
.contactForm input[type="submit"] {
  width: 47%;
  background: var(--blue);
  color: #fff;
  border: 2px solid #000;
  cursor: pointer;
}
.contactForm input[type="submit"]:hover { background: #fff; color: var(--blue); }
.marginTop { margin-top: 1rem; }

/* Footer */
.site-footer {
  grid-area: footer;
  text-align: center;
  background: var(--footer);
  color: #fff;
  padding: 1rem;
}
.site-footer p { margin-bottom: .4rem; }
.site-footer a { color: #fff; }

/* Phones: one column, menu folds into a button */
@media (max-width: 700px) {
  body {
    margin-top: 0;
    grid-template-columns: 1fr;
    grid-template-areas: "header" "nav" "main" "footer";
  }
  .sidebar { padding: 1rem 16px; background-image: none; }
  main { padding: 1rem 16px; }
  .menu-toggle {
    display: block; width: 100%;
    background: var(--blue); color: #000; border: 0; border-radius: 1rem;
    font: 1.1rem var(--heading-font); padding: .6rem; cursor: pointer;
  }
  .menu { display: none; margin-top: .5rem; }
  .sidebar.open .menu { display: block; }
}
