
/* =========================================================
   LOCALLY HOSTED HISTORICAL SITE FONTS
   ========================================================= */

@font-face {
  font-family: 'Old Standard TT';
  src: url('/assets/fonts/OldStandardTT-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Old Standard TT';
  src: url('/assets/fonts/OldStandardTT-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Text';
  src: url('/assets/fonts/CrimsonText-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Text';
  src: url('/assets/fonts/CrimsonText-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Crimson Text';
  src: url('/assets/fonts/CrimsonText-SemiBold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: 'Crete Round';
  src: url('/assets/fonts/CreteRound-Regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: 'Crete Round';
  src: url('/assets/fonts/CreteRound-Italic.ttf') format('truetype');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background-color: #e5e5e5;
  background-image: url('/wp-content/uploads/2015/02/bkg.jpg');
  background-repeat: no-repeat;
  background-position: center top;
  background-attachment: fixed;
  color: #565656;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 15px;
  line-height: 1.5;
}

a {
  color: #1ebdbb;
  text-decoration: none;
}

a:hover {
  color: #f16a73;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.site-shell {
  width: min(1100px, 100%);
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 18px rgba(0,0,0,.03);
}

.topbar {
  height: 46px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1ebdbb;
  color: #fff;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 9px;
}

.social-mini {
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: bold;
}

.topbar-message {
  margin-left: 12px;
  font-weight: 600;
}

.top-menu {
  display: flex;
  align-items: center;
  gap: 31px;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 1px;
}

.top-menu a,
.search-symbol {
  color: #fff;
}

.site-header {
  min-height: 150px;
  padding: 18px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:
    #fafafa
    url('/wp-content/uploads/2015/02/concrete.png')
    repeat;
}

.site-logo {
  width: 335px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-family: 'Crete Round', Georgia, serif;
  font-size: 13px;
  letter-spacing: 1.4px;
}

.primary-nav > a,
.nav-dropdown > a {
  color: #094664;
}

.primary-nav > a:hover,
.nav-dropdown:hover > a {
  color: #f16a73;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  z-index: 100;
  min-width: 205px;
  padding: 10px 0;
  background: #fff;
  border: 1px solid #eee;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 18px;
  color: #094664;
  line-height: 1.35;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}

.nav-dropdown-menu a:hover {
  color: #f16a73;
  background: #fafafa;
}

.home-main {
  background: #fff;
}

.homepage-hero img {
  width: 100%;
}

.home-inner {
  padding: 33px 44px 54px;
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.home-feature {
  color: #1ebdbb;
  text-align: center;
}

.home-feature img {
  width: 100%;
}

.home-feature span {
  display: block;
  margin-top: 13px;
  font-size: 18px;
  font-style: italic;
}

.section-title {
  margin: 61px 0 30px;
  color: #1ebdbb;
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: 35px;
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.adventure-carousel {
  overflow: hidden;
}

.carousel-pages {
  display: flex;
  width: 100%;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  transition: transform .42s ease;
}

.carousel-pages.is-dragging {
  cursor: grabbing;
  transition: none;
}

.carousel-page {
  display: grid;
  flex: 0 0 100%;
  min-width: 100%;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.adventure-image {
  display: block;
  aspect-ratio: 1.42 / 1;
  overflow: hidden;
}

.adventure-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.adventure-categories {
  min-height: 22px;
  margin-top: 12px;
  font-size: 15px;
}

.adventure-card h2 {
  margin: 10px 0 16px;
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: 20px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
}

.adventure-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  color: #555;
  font-size: .8em;
}

.adventure-meta span:not(:last-child)::after {
  content: "|";
  margin: 0 7px;
  color: #aaa;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 38px 0 26px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d7d7d7;
  cursor: pointer;
}

.carousel-dot.active {
  background: #8d8d8d;
}

.divider-title {
  width: 70%;
  margin: 0 auto 29px;
  display: flex;
  align-items: center;
  gap: 19px;
  color: #1ebdbb;
  font-family: 'Old Standard TT', Georgia, serif;
  font-style: italic;
}

.divider-title::before,
.divider-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #eee;
}

.divider-title span {
  white-space: nowrap;
}

.instagram-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 3px;
}

.instagram-item {
  aspect-ratio: 1;
  overflow: hidden;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instagram-follow {
  margin-top: 15px;
  text-align: center;
}

.instagram-follow span {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 3px;
  background: #408bd1;
  color: #fff;
  font: 11px Arial, sans-serif;
}

.site-footer {
  background:
    #fafafa
    url('/wp-content/uploads/2015/02/concrete.png')
    repeat;
}

.footer-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px;
  padding: 46px 44px 39px;
  color: #777;
}

.footer-column h3 {
  margin: 0 0 19px;
  padding: 13px 8px;
  border: 1px solid #e5e5e5;
  background: rgba(255,255,255,.58);
  color: #1ebdbb;
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.footer-column p {
  margin-top: 0;
}

.footer-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-recent li {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 13px;
  margin-bottom: 13px;
}

.footer-recent img {
  width: 58px;
  height: 48px;
  object-fit: cover;
}

.footer-recent a {
  display: block;
  font-style: italic;
}

.footer-recent small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: .8em;
}

.archive-subscribe strong {
  display: block;
  margin-bottom: 5px;
  color: #555;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 15px;
  font-weight: 600;
}

.archive-subscribe input {
  width: 100%;
  height: 30px;
  padding: 5px 8px;
  border: 1px solid #ddd;
  background: #fff;
}

.archive-subscribe button {
  margin-top: 9px;
  padding: 10px 17px;
  border: 0;
  border-radius: 4px;
  background: #f16a73;
  color: #fff;
  font-family: 'Crete Round', Georgia, serif;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 26px;
}

.social-ornament {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font: 700 16px/1 Arial, sans-serif;
  text-decoration: none;
}

.youtube-mark {
  font-size: 14px;
}

.youtube-mark:hover {
  color: #f16a73;
}

.colophon {
  min-height: 42px;
  padding: 0 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #1ebdbb;
  color: #fff;
  font-size: 13px;
}

.colophon a {
  color: #fff;
  text-decoration: underline;
}

.colophon a:hover {
  color: #094664;
}


/* =========================================================
   SHARED SITE UI
   Corner drawer + back-to-top
   ========================================================= */

/* ---------- Corner drawer ---------- */

.corner-drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 900;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  background: rgba(255,255,255,.985);
  box-shadow: 0 5px 18px rgba(0,0,0,.08);
  opacity: 0;
  visibility: hidden;
  transition:
    max-height .42s ease,
    opacity .28s ease,
    visibility .28s ease;
}

.corner-drawer.is-open {
  max-height: 520px;
  opacity: 1;
  visibility: visible;
}

.corner-drawer-inner {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 58px 44px 38px;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  gap: 34px;
}

.corner-drawer h3 {
  margin: 0 0 20px;
  padding: 11px 8px;
  border: 1px solid #e5e5e5;
  background: #fafafa;
  color: #1ebdbb;
  font-family: 'Old Standard TT', Georgia, serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 400;
  text-align: center;
}

.corner-drawer-toggle {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 950;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background:
    linear-gradient(
      45deg,
      transparent 0 49%,
      #f16a73 50% 100%
    );
  cursor: pointer;
}

.corner-drawer-toggle::before,
.corner-drawer-toggle::after {
  content: "";
  position: absolute;
  top: 12px;
  right: 9px;
  width: 14px;
  height: 1px;
  background: rgba(255,255,255,.85);
  transition: all .22s ease;
}

.corner-drawer-toggle::after {
  transform: rotate(90deg);
}

.corner-drawer-toggle[aria-expanded="true"] {
  background: #fff;
  box-shadow: -1px 1px 0 rgba(0,0,0,.04);
}

.corner-drawer-toggle[aria-expanded="true"]::before,
.corner-drawer-toggle[aria-expanded="true"]::after {
  top: 20px;
  right: 10px;
  width: 23px;
  background: #888;
}

.corner-drawer-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.corner-drawer-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}


/* ---------- Drawer recent posts ---------- */

.drawer-recent {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer-recent li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  padding: 0 0 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #eee;
}

.drawer-recent img {
  width: 64px;
  height: 60px;
  object-fit: cover;
}

.drawer-recent-title {
  display: block;
  margin: 2px 0 6px;
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 15px;
  font-style: italic;
  letter-spacing: .2px;
  line-height: 1.25;
}

.drawer-recent-meta {
  color: #555;
  font-size: 13px;
}


/* ---------- Drawer promotional graphics ---------- */

.drawer-promos {
  display: grid;
  gap: 12px;
}

.drawer-promos a {
  display: block;
}

.drawer-promos img {
  width: 100%;
}

/* Historical donation graphic treatment.
   We can replace this with the original image later if we
   identify its exact filename in the archive. */

.drawer-donate-tile {
  min-height: 92px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f16a73;
  color: #fff !important;
  text-align: center;
  line-height: 1;
}

.drawer-donate-tile small {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 18px;
}

.drawer-donate-tile strong {
  margin-top: 4px;
  font-family: 'Crete Round', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 1px;
}


/* ---------- Drawer subscription/social ---------- */

.drawer-keep-tabs p {
  color: #777;
}

.drawer-social {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 28px;
}


/* ---------- Back to top ---------- */

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 850;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 5px rgba(0,0,0,.08);
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top::before,
.back-to-top::after {
  content: "";
  position: absolute;
  top: 19px;
  width: 12px;
  height: 2px;
  background: #1ebdbb;
}

.back-to-top::before {
  left: 11px;
  transform: rotate(-45deg);
}

.back-to-top::after {
  right: 11px;
  transform: rotate(45deg);
}

.back-to-top:hover::before,
.back-to-top:hover::after {
  background: #f16a73;
}


@media (max-width: 850px) {
  .corner-drawer {
    overflow-y: auto;
  }

  .corner-drawer.is-open {
    max-height: 90vh;
  }

  .corner-drawer-inner {
    grid-template-columns: 1fr;
    padding: 58px 28px 32px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 560px) {
  .corner-drawer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .corner-drawer-toggle {
    width: 38px;
    height: 38px;
  }
}


@media (max-width: 850px) {
  .site-header {
    display: block;
  }

  .site-logo {
    width: 285px;
    max-width: 100%;
    margin: 0 auto 22px;
  }

  .primary-nav {
    justify-content: center;
    flex-wrap: wrap;
  }

  .carousel-page {
    grid-template-columns: 1fr;
  }

  .home-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .instagram-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-widgets {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topbar {
    height: auto;
    padding: 10px 18px;
    display: block;
  }

  .top-menu {
    margin-top: 8px;
    gap: 15px;
  }

  .site-header {
    padding: 20px;
  }

  .site-logo {
    width: min(335px, 100%);
  }

  .home-inner {
    padding: 25px 20px 40px;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
  }

  .instagram-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-widgets,
  .colophon {
    padding-left: 20px;
    padding-right: 20px;
  }

  .colophon {
    display: block;
    padding-top: 12px;
    padding-bottom: 12px;
  }
}



/* =========================================================
   JJA MOBILE SITE CHROME
   ========================================================= */

.mobile-nav-toggle,
.mobile-blog-toggle,
.mobile-nav-secondary {
  display: none;
}


@media (max-width: 700px) {

  /*
   * Phone layout is white to the viewport edge.
   * Remove the desktop background artwork/gutter.
   */

  html,
  body {
    background: #fff !important;
  }

  .site-shell {
    width: 100%;
    margin: 0;
    box-shadow: none;
  }


  /*
   * Desktop turquoise utility bar is replaced by
   * links inside the hamburger menu.
   */

  .topbar {
    display: none;
  }


  /*
   * Compact mobile header.
   */

  .site-header {
    min-height: 105px;
    padding: 16px 20px;

    display: grid;
    grid-template-columns:
      minmax(0, 1fr) 48px;

    align-items: center;
    column-gap: 14px;

    background:
      #fafafa
      url('/wp-content/uploads/2015/02/concrete.png')
      repeat;
  }

  .site-logo {
    width: min(
      285px,
      calc(100vw - 105px)
    );

    margin: 0;
  }


  /*
   * Hamburger
   */

  .mobile-nav-toggle {
    width: 48px;
    height: 48px;

    padding: 8px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 7px;

    border: 0;
    background: transparent;

    cursor: pointer;
  }

  .mobile-nav-toggle span {
    width: 100%;
    height: 2px;

    display: block;

    background: #094664;

    transition:
      transform .18s ease,
      opacity .18s ease;
  }


  /*
   * Turn hamburger into X when open.
   */

  .mobile-nav-open
  .mobile-nav-toggle span:nth-child(1) {
    transform:
      translateY(9px)
      rotate(45deg);
  }

  .mobile-nav-open
  .mobile-nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .mobile-nav-open
  .mobile-nav-toggle span:nth-child(3) {
    transform:
      translateY(-9px)
      rotate(-45deg);
  }


  /*
   * Main mobile menu.
   */

  .primary-nav {
    grid-column: 1 / -1;

    display: none;

    width: 100%;

    margin: 14px 0 0;
    padding: 7px 0 0;

    flex-direction: column;
    align-items: stretch;
    gap: 0;

    border-top:
      1px solid rgba(9,70,100,.13);

    font-size: 14px;
  }

  .mobile-nav-open .primary-nav {
    display: flex;
  }

  .primary-nav > a {
    padding: 14px 4px;

    border-bottom:
      1px solid #ececec;
  }


  /*
   * Blog row gets its own submenu toggle.
   */

  .nav-dropdown {
    position: relative;

    display: grid;
    grid-template-columns:
      minmax(0, 1fr) 44px;

    align-items: center;

    border-bottom:
      1px solid #ececec;
  }

  .nav-dropdown > a {
    padding: 14px 4px;
  }

  .mobile-blog-toggle {
    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;

    color: #094664;

    font-family: Georgia, serif;
    font-size: 22px;

    cursor: pointer;

    transition: transform .18s ease;
  }

  .nav-dropdown.mobile-submenu-open
  .mobile-blog-toggle {
    transform: rotate(180deg);
  }


  /*
   * Disable desktop hover dropdown behavior
   * and make it a normal inline mobile list.
   */

  .nav-dropdown-menu,
  .nav-dropdown:hover
  .nav-dropdown-menu {
    position: static;

    grid-column: 1 / -1;

    display: none !important;

    min-width: 0;

    padding:
      0 0 10px 17px;

    border: 0;

    background: transparent;

    box-shadow: none;
  }

  .nav-dropdown.mobile-submenu-open
  .nav-dropdown-menu {
    display: block !important;
  }

  .nav-dropdown-menu a {
    padding: 8px 4px;

    white-space: normal;

    font-family:
      'Crimson Text',
      Georgia,
      serif;

    font-size: 15px;
    letter-spacing: 0;
  }


  /*
   * Sponsors / Archives / Donate.
   */

  .mobile-nav-secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;

    padding: 17px 4px 8px;
  }

  .mobile-nav-secondary a {
    color: #1ebdbb;

    font-family:
      'Crimson Text',
      Georgia,
      serif;

    font-size: 13px;
    letter-spacing: .7px;
  }

  .mobile-nav-secondary a:hover {
    color: #f16a73;
  }
}



/* =========================================================
   MOBILE CORNER DRAWER
   ========================================================= */

@media (max-width: 700px) {
  .corner-drawer-toggle {
    display: none !important;
  }
}
