/* tahdah.net — simple static rebuild of the 2011 WebsiteBuilder page */

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

html {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #999;
  color: #036;
  font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
  font-size: 0.75rem; /* 12px at the default 16px root */
  line-height: 1.3;
}

.page {
  position: relative;
  width: min(730px, 100%);
  margin: 0 auto;
  background-color: #fff;
  /* Beveled side edges, matching the original 5px gray border */
  box-shadow:
    -1px 0 0 #959595,
    -2px 0 0 #8c8c8c,
    -3px 0 0 #7d7d7d,
    -4px 0 0 #6b6b6b,
    1px 0 0 #959595,
    2px 0 0 #8c8c8c,
    3px 0 0 #7d7d7d,
    4px 0 0 #6b6b6b;
}

/* On a full-width desktop, use the original repeating page chrome */
@media (min-width: 730px) {
  .page {
    background-image: url("images/contentbg.gif");
    background-repeat: repeat-y;
    background-position: center top;
    box-shadow: none;
  }

  .site-header {
    background-image: url("images/headerbg.gif");
    background-repeat: no-repeat;
    background-position: top left;
  }

  .site-footer {
    background-image: url("images/footerbg.gif");
    background-repeat: no-repeat;
    background-position: top left;
    background-color: transparent;
  }
}

/* --- Header and banner ----------------------------------------------- */

.site-header {
  position: relative;
  /* 25px of page gray above the banner, same as the original header graphic */
  padding: 25px 5px 0;
}

.banner {
  position: relative;
}

.banner-image {
  display: block;
  width: 100%;
  height: auto;
}

.site-title {
  position: absolute;
  /* 235px from the 730px container = 230px into the 720px banner */
  left: 31.94%;
  top: 5px;
  z-index: 2;
  margin: 0;
  width: 67%;
  max-width: 490px;
  font-family: "Comic Sans MS", "Comic Sans", cursive;
  font-style: normal;
  font-size: clamp(1.25rem, 4.7vw, 2.125rem);
  font-weight: normal;
  line-height: 1.2;
  color: #900;
}

/* --- Navigation ------------------------------------------------------ */

.main-nav {
  background: #16518c url("images/navbg.gif") repeat-x left top;
  margin: 0 5px;
  overflow: hidden;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav a {
  display: block;
  height: 28px;
  padding: 2px 19px 0 24px;
  background: url("images/n1activeitem.gif") no-repeat top left;
  color: #630;
  font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: normal;
  line-height: 22px;
  text-decoration: none;
}

.main-nav a[aria-current="page"] {
  cursor: default;
}

/* --- Main content ---------------------------------------------------- */

.content {
  /* Desktop values are set in the min-width: 730px rule so the
     "Oh yeah!" line lands where the original spaced it. */
  padding: 1.75rem 1.25rem 2rem;
  color: #036;
  font-family: "Trebuchet MS", Tahoma, Verdana, Arial, sans-serif;
  font-size: 0.75rem;
  line-height: 1.3;
}

.content p {
  margin: 0;
}

@media (min-width: 730px) {
  .content {
    /* 37px top + text ink ≈ the original 41px below the nav.
       316px left matches the original 32-nbsp indent in the
       right-hand column. Bottom padding keeps the 65px footer
       sitting at the same place as before. */
    padding: 37px 20px 40px 316px;
    min-height: 93px;
  }
}

/* --- Footer bar (WebsiteBuilder credit removed) ---------------------- */

.site-footer {
  height: 65px;
  background-color: #eee;
}

/* --- Narrow screens -------------------------------------------------- */

@media (max-width: 729px) {
  /* Let the banner sit at the top of the card, since the original
     25px gray header band disappears into the page background. */
  .site-header {
    padding-top: 0;
    padding-left: 5px;
    padding-right: 5px;
  }
}
